![](http://datasheet.mmic.net.cn/120000/ML66525-XXTB_datasheet_3559839/ML66525-XXTB_443.png)
Chapter 14
A/D Converter
Operation
XIV - 41
(7) Set the AD1: Set the AN1CTR0 register
Set the operation mode
AN1CTR0(0x0000A440)
bp1-0: AN1MD1-0=00
Set the conversion clock
AN1CTR0(0x0000A440)
bp4-2: AN1CK2-0=010
Set the external trigger A conversion start
enabled
AN1CTR0(0x0000A440)
bp5: AN1TRG=1
Set the conversion channel (trigger factor
A)
AN1CTR0(0x0000A440)
bp10-8: AN1CH2-0=000
Set the power-down mode
AN1CTR0(0x0000A440)
bp6: AN1OFF=1
Set the external trigger B conversion start
enabled
AN1CTR1(0x0000A444)
bp6: AN1TRGB=1
Set the conversion channel (trigger factor
B)
AN1CTR1(0x0000A444)
bp10-8: AN1CH0B2-0=001
Set the sample/hold cycle
AN1CTR1(0x0000A444)
bp5-4: AN1SHC1-0=10
(7) Set the AN1MD1-0 flags of the AN1CTR0 register to “00”
to set “any channels/one-time conversion for each” to
operation mode.
Set the AN1CK2-0 flags of the AN1CTR0 register to
“010I” to set 3 dividing of IOCLK to the conversion
clock.
Set the AN1TRG flag of the AN1CTR0 register to “1” to
enable the external trigger factor A starting.
Set the AN1CH2-0 flags of the AN1CTR0 register to
“000” to set “channel 2” to the conversion channel of
the external trigger factor A.
Set the AN1OFF flag of the AN1CTR0 register to “1” to
set operation mode to the power-down mode flag.
*After shifted to operation mode, more than 100nsec
wait time is necessary until A/D conversion starts.
Set the AN1TRGB flag of the AN1CTR1 register to “1”
to enable the external trigger factor B starting.
Set the AN1CH0B2-0 flags of the AN1CTR1 register to
“001” to set “channel 3” to the conversion channel of
the external trigger factor B.
(8) Set the AD1: Set the ADST1 register
Select the external trigger factor A
ADST1(0x0000A448)
bp2-0: AD1AST2-0=000
Select the external trigger factor B
ADST1(0x0000A448)
bp6-4: AD1BST2-0=100
(8) Set the AD1AST2-0 flags of the A/D1 start trigger
selection register (ADST1) to “000” to set the PWM0
underflow to start factor A.
Set the AD1BST2-0 flags of the A/D1 start trigger
selection register (ADST1) to “000” to set the PWM1
over to start factor B.
(9) Set the AD1: Set the AD1CTREGB register
AD1CTREGB(0x0000A44D)
bp7-4: AD1BCNT3I-0I=0001
bp3-0: AD1BCNT3-0=0001
(9) Set the AN1BCT3I-0I flags to “0001” to start AD
conversion after the first time of the trigger factor B is
counted.
Set the AN0BCT3-0 flags to “0001” to start AD
conversion every two times the trigger factor B is
generated.
Setup Procedure
Description