SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 97
V1.4
11.2 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
-
CHS2 CHS1 CHS0
R/W R/W R/W R/W - R/W
R/W
R/W
Bit 7
ADENB:
ADC control bit.
0 = Disable ADC function
1 = Enable ADC function
Bit 6
ADS:
ADC start bit.
0 = ADC convert stop
1 = ADC convert starting
Bit 5
EOC:
ADC status bit.
0 = Progressing
1 = End of converting and reset ADS bit
Bit 4
GCHS:
Global channel select bit.
0 = Disable AIN channel
1 = Enable AIN channel
Bit [2:0]
CHS [2:0]:
ADC input channels select bit.
000 = AIN0, 001 = AIN1, 010 = AIN2, 011 = AIN3
100 = AIN4, 101 = AIN5, 110 = AIN6, 111 = AIN7
11.3 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 ADCKS0
ADB3
ADB2
ADB1
ADB0
R/W R/W R R R R
Bit 6,4
ADCKS [1:0]:
ADC’s clock source select bit.
ADCKS1 ADCKS0 ADC Clock Source
0 0
Fcpu/16
0 1
Fcpu/8
1 0
Fcpu
1 1
Fcpu/2
Bit [3:0]
ADB [3:0]:
ADC data buffer.
ADB11~ADB0 bits for 12-bit ADC
11.4 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 bit 4~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. the ADC data is stored in ADB and ADR registers.
¾
Note: ADB [0:11] value is unknown when power on.