ML51/ML54/ML56
Sep. 01, 2020
Page
565
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
ADCR[11:4]
ADCR[3:0]
XRAM ADDR
{ADCRH[7:0],ADCRL[3:0]}
1
ADCR[11:4]
ADCR[3:0]
ADCR[11:4]
ADCR[3:0]
2
1
2
N
ADCR[11:4]
ADCR[11:4]
ADCR[11:4]
1
2
N
ADCR[3:0]
ADCR[3:0]
1
2
ADCR[3:0]
ADCR[3:0]
3
4
ADCR[3:0]
ADCR[3:0]
N
-
1
N
length
(ADCCN[7:0] + 1)
N
N
{ADCBAH[3:0],ADCBAL[7:0]}
ADCBA[11:0]
ADCBA[11:0] + 1
ADCBA[11:0] + N
ADCBA[11:0] + N + 1
ADCBA[11:0] + N + 2
ADCBA[11:0] + N + (N / 2)
ADC conversion result
ADC Continues Conversion schedule
XRAM
Figure 6.13-4 ADC Continues mode with DMA
A programing sequence is described below.
1 Set ADC channel and enable ADC as same as normal ADC setting method.
2 Set CONT (ADCCON1.4)to one for set ADC into continues conversion mode.
3 Set ADCBAH and ADCBAL registers to configure store address of conversion result.
4 Set ADCCN register to configure ADC conversion count.
5 Set HIE/FIE (ADCCON1[5]) to enable ADC conversion half done interrupt. (optional)
6 Start ADC RUN by software trigger (ADCS=1) or external trigger (ADCEX=1).