106
14.3
SARADC Special Function Registers
CW6632B Bluetooth 3.0 Audio Player SOC
Version 1.0.0
Copyright ©2015, www.appotech.com. All Rights Reserved.
When write:
0 = N/A
1 = Start conversion
EOC
: Check if end of conversion
0 = Finished
1 = Not finished
TMREN
: Timer Input Enable
0 = Disabled
1 = Enabled
ADCTL
: Timer Source Select
0 = Timer0
1 = Timer1
ADCEN
: ADC Module Enable
0 = Disabled
1 = Enabled
ADCS3, ADCSEL
: ADC Channel Select
0000 = P3.3 (ADC0)
0001 = P2.1 (ADC1)
0010 = P1.4 (ADC2)
0011 = P2.2 (ADC3)
0100 = P3.0 (ADC4)
0101 = P1.3 (ADC5)
0110 = 1/2 Battery voltage
0111 = LDO_BG. 0.864V
1000 = P26 (ADC8
,
Only for PIN detected, Not for ADKEY)
1001 = TP2
1010 = TP3
Register 14-2 ADCMODE
– SARADC mode control
Position
7
6
5
4
3
2
1
0
Name
-
-
-
ADCS3
AUTOS
ADCSEL_SH
Default
0
0
0
0
0
0
0
0
Access
RO
RO
RO
R/W
R/W
R/W
R/W
R/W
ADCS3:
ADC Channel Select 3
ADCSEL_SH
: ADCSEL shadow
AUTOS
: Auto channel switching mode
0 = Not switch
1 = Auto load ADCSEL_SH into ADCSEL after conversion finished
Register 14-3 ADCBAUD
– SARADC baud rate control