Sony CXD5602 User Manual page 304

Table of Contents

Advertisement

Enable control of this synchronization function is controlled by the PWMn_EN field of the PWMn_EN register
and synchronization operation starts by using the Writing to the PWMn_UPDATE register as a trigger.
The following is an example of the settings.
[1]PWM start setting (first time)
PWM0_PARAM = 0x00070007
PWM_PASE0 = 0x00000001
PWM0_EN = 0x0000000x (selection of ADC synchronization source | 0x1[EN])
PWM0_UPDATE = 0x00000001
[2]ADC sampling start
Executes ADC sampling of the SensorDriver
[3]PWM suspend setting
PWM0_EN = 0x00000000
PWM0_UPDATE = 0x00000001
[4]ADC sampling suspension
Suspends by HPADC0_A1 LV_ADC0_EN /HPADC1_A1 LV_ADC1_EN/ LPADC_A0 LV_ADC_EN
Note: The data strobe signal connected to the PWM cannot be controlled by the HPADC0_D2.DECIFIFO_EN/
HPADC1_D2.DECI FIFO_EN/ LPADC_D2 FIFO_EN.
The ADC channels used as the reference can be selected as follows.
Table SCU (Sensor Control Unit)-103 Reference ADC Channel Selection
PWM_SELLn[2:0]
0
1
2
3
4, 5, 6, and 7
3.9.11.3.1
Phase Difference Calculation Formula
When prescaler is set to 1/1
Phase difference (number of SCU_CLOCK) = PWM_DELAYn + 1
When prescaler is set to 1/2 or higher
Phase difference (number of SCU_CLOCK) = PWM_DELAYn x (2^PWM_CNTENn) - α
Range which α may take
The maximum shift width of the Phase difference shift is determined by the prescaler setting value.
α minimum value = 0
AD Selection
Does not synchronize with ADC (free run mode)
Synchronizes with HPADC0
Synchronizes with HPADC1
Reserved
Synchronizes with LPADC0, LPADC1, LPADC2 and LPADC3
-304/1010-
CXD5602 User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents