SN8P1829
8-Bit MCU build-in 12-bit ADC + PGIA + Charge-pump Reg 128 dots LCD driver
SONiX TECHNOLOGY CO., LTD
Page 117
Version 1.0
ADB REGISTERS
ADB initial value = xxxx xxxx
0B2H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ADB
ADB11 ADB10 ADB9 ADB8 ADB7 ADB6 ADB5 ADB4
R R R R R R R R
ADB is ADC data buffer to store AD converter result. The ADB is only 8-bit register including bit4~bit11 ADC data. To
combine ADB register and the low-nibble of ADR will get full 12-bit ADC data buffer. The ADC buffer is a read-only
register. In 8-bit ADC mode, the ADC data is stored in ADB register. In 12-bit ADC mode, the ADC data is stored in
ADB and ADR registers.
Note: ADB [11:0] value is unknown when power on.
The AIN’s input voltage vs. ADB’s output data
AIN n
ADB11 ADB10 ADB9 ADB8
ADB7
ADB6
ADB5
ADB4
ADB3 ADB2 ADB1
ADB0
0/4096*AVREFH 0 0 0 0 0 0 0 0 0 0 0 0
1/4096*AVREFH 0 0 0 0 0 0 0 0 0 0 0 1
.
. . . . . . . . . . . .
.
. . . . . . . . . . . .
.
. . . . . . . . . . . .
4094/4096*AVREFH
1 1 1 1 1 1 1 1 1 1 1 0
4095/4096*AVREFH
1 1 1 1 1 1 1 1 1 1 1 1
For different applications, users maybe need more than 8-bit resolution but less than 12-bit ADC converter. To
process the ADB and ADR data can make the job well. First, the AD resolution must be set 12-bit mode and then to
execute ADC converter routine. Then delete the LSB of ADC data and get the new resolution result. The table is as
following.
ADB ADR
ADC
Resolution
ADB11 ADB10 ADB9 ADB8
ADB7
ADB6
ADB5
ADB4
ADB3 ADB2 ADB1
ADB0
8-bit
O O O O O O O O x x x x
9-bit
O O O O O O O O O x x x
10-bit
O O O O O O O O O O x x
11-bit
O O O O O O O O O O O x
12-bit
O O O O O O O O O O O O
O = Selected, x = Delete