Figure 6-8: Initialization of DMA Transfer for A/D Conversion Result
Remark:
n = 0, 1
(number of ADC channel)
x = n
(number of DMA channel)
Chapter 6 DMA Functions (DMA Controller)
Initialization of DMA transfer for
A/D conversion result of ADCn
(DMA channel 0 or 1)
no
ADCEn bit = 1?
ADCSn bit = 1?
Disable operation of A/D converter n:
ADCEn bit = 0
Set up A/D conversion scan range in the
ADMn2 register
Set up the MARx register with destination
start address within iRAM in
Specify the DMA transfer count in the
DTCRx register (1 to 256)
Clear status bit of DMA channel x:
DMASx bit = 0
Enable DMA transfer channel x:
DEx bit = 1
Enable operation of A/D converter n:
ADCEn bit = 1
End of initialization
User's Manual U16580EE3V1UD00
yes
no
yes
201