ADC10 Operation
18-19
ADC10
Figure 18−12. State Diagram for Data Transfer Control in Two-Block Transfer Mode
DTC idle
DTC reset
ADC10B1 = 0
ADC10TB = 1
n=0 (ADC10DTC1)
Initialize
Start Address in ADC10SA
Wait until ADC10MEM
is written
Wait
for
CPU ready
Write to ADC10MEM
completed
Transfer data to
Address AD
AD = AD + 2
x = x − 1
Synchronize
with MCLK
1 x MCLK cycle
n is latched
in counter ’x’
x > 0
DTC init
Wait for write to
ADC10SA
Write to
ADC10SA
Write to ADC10SA
x = 0
Prepare
DTC
DTC
operation
Write to ADC10SA
or
n = 0
ADC10IFG=1
Toggle
ADC10B1
Write to ADC10SA
x = n
If ADC10B1 = 0
then AD = SA
ADC10B1 = 1
or
ADC10CT=1
ADC10CT = 0
and
ADC10B1 = 0
n = 0
n ≠ 0