SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 116
Version 1.0
ADM REGISTER
ADM initial value = 0000 x000
0B1H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ADM
ADENB ADS EOC GCHS
-
-
CHS1 CHS0
R/W R/W R/W R/W - - R/W
R/W
Bit[1:0]
CHS[1:0]:
ADC input channels select bit.
00 = AIN0
01 = AIN1
10 = AIN2
11 = ADC input about VDD/4 for battery monitor
Bit4
GCHS:
Global channel select bit.
0 = to disable all ADC input channel
1 = to enable all ADC input channel.
Bit5
EOC:
ADC status bit.
0 = Progressing
1 = End of converting and reset ADS bit.
Bit6
ADS:
ADC starts bit.
0 = stop
1 = starting.
Bit7
ADENB:
ADC control bit.
0 = disable
1 = enable.
ADR REGISTERS
ADR initial value = x00x 0000
0B3H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ADR
- ADCKS1
ADLEN
ADCKS0
ADB3 ADB2 ADB1 ADB0
- R/W R/W R/W R
R
R
R
Bit[3:0]
ADBn:
ADC data buffer.
ADB11~ADB4 data for 8-bit ADC.
ADB11~ADB0 data for 12-bit ADC.
Bit5
ADLEN:
ADC’s resolution selects bits.
0 = 8-bit
1 = 12-bit.
Bit6,Bit4
ADCKS1, ADCKS0:
ADC’s clock source select bit.
ADCKS1 ADCKS0 ADC Clock Source Note
0
0
Fcpu/4
Both validate in Normal mode and Slow mode
0
1
Fcpu/2
Both validate in Normal mode and Slow mode
1
0
Fhosc
Only validate in Normal mode
1
1
Fhosc/2
Only validate in Normal mode