ML51/ML54/ML56
Sep. 01, 2020
Page
582
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
ADCSR
– ADC Status Register
Register
SFR Address
Reset Value
ADCSR
E7H, Page 0
0000_0000 b
7
6
5
4
3
2
1
0
SLOW
ADCDIV[2:0]
-
CMPHIT
HDONE
FDONE
R/W
R/W
-
R/W
R/W
R/W
Bit
Name
Description
[7]
SLOW
ADC Slow Speed Selection
This bit is used to select ADC low speed.
0 = high speed 500 ksps
1 = low speed 200 ksps
[6:4]
ADCDIV[2:0]
ADC Clock Divider
000 = FADC is FSYS/1.
001 = FADC is FSYS/2.
010 = FADC is FSYS/4.
011 = FADC is FSYS/8.
100 = FADC is FSYS/16.
101 = FADC is FSYS/32.
110 = FADC is FSYS/64.
111 = FADC is FSYS/128.
[3]
-
Reserved
[2]
CMPHIT
ADC Comparator Hit Flag
This bit is set by hardware when ADCMPO (ADCCON2.4) flag rising
Note:
This bit can be cleared by writing 0 to it.
[1]
HDONE
A/D Conversion Half Done Flag
This bit is set by hardware when half of ADCSN A/D conversions are complete in continue
mode.
Note:
This bit can be cleared by writing 0 to it
[0]
FDONE
A/D Conversion Full Done Flag
This bit is set by hardware when all of ADCSN A/D conversions are complete in continue
mode or single conversion in single mode.
Note:
This bit can be cleared by writing 0 to it..