
MS51
Dec. 17, 2019
Page
297
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
6.12 12-Bit Analog-To-Digital Converter (ADC)
The MS51 is embedded with a 12-bit SAR ADC. The ADC (analog-to-digital converter) allows
conversion of an analog input signal to a 12-bit binary representation of that signal. The MS51 is
selected as 8-channel inputs in single end mode. The internal band-gap voltage 0.814 V also can be
the internal ADC input. The analog input, multiplexed into one sample and hold circuit, charges a
sample and hold capacitor. The output of the sample and hold capacitor is the input into the converter.
The converter then generates a digital result of this analog level via successive approximation and
stores the result in the result registers. The ADC controller also supports DMA (direct memory access)
function for ADC continuous conversion and storage result data into XRAM no need special enable
PDMA module.
0000
0001
0010
0011
0100
0101
0110
0111
1000
ADC_CH0
ADC_CH1
ADC_CH2
ADC_CH3
ADC_CH4
ADC_CH5
ADC_CH6
ADC_CH7
Internal band-gap
ADCHS[3:0]
12-bit SAR
ADC
A
/D
c
o
n
v
e
rt
io
n
s
ta
rt
ADCRH
ADCRL
12
ADCF
ADC interrupt
ADC result
comparator
V
R
E
F
VDD
ADCEN
ADCS
STADCPX
0
1
P0.4
P1.3
ETGTYP[1:0]
(ADCCON1[3:2])
[00]
[01]
[10]
[11]
00
01
10
ETGSEL[1:0]
(ADCCON0[5:4])
PWM0_CH0
PWM0_CH2
PWM0_CH4
ADCDLY
External Trigger
11
STADC
ADCEX
ADC Clock
Divider
ADCDIV[2:0]
F
SYS
F
ADC
Figure 6.12-112-bit ADC Block Diagram