SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 109
Version 2.0
13.2 ADC MODE REGISTER
ADM is ADC mode control register to configure ADC configurations including ADC start, ADC channel selection, ADC
high reference voltage source and ADC processing indicator
…These configurations must be setup completely before
starting ADC converting.
0B1H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ADM
ADENB
ADS
EOC
GCHS
AVREFH
CHS2
CHS1
CHS0
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
After reset
0
0
0
0
0
0
0
0
Bit 7
ADENB:
ADC control bit.
In power saving mode, disable ADC to reduce power consumption.
0 = Disable ADC function.
1 = Enable ADC function.
Bit 6
ADS:
ADC start control bit.
ADS bit is cleared after ADC processing automatically.
0 = ADC converting stops.
1 = Start to execute ADC converting.
Bit 5
EOC:
ADC status bit.
0 = ADC progressing.
1 = End of converting and reset ADS bit.
Bit 4
GCHS:
ADC global channel select bit.
0 = Disable AIN channel.
1 = Enable AIN channel.
Bit 3
AVREFH:
ADC high reference voltage source control bit.
0 = Internal Vdd. P4.0 is GPIO or AIN0 pin.
1 = Enable external reference voltage from P4.0.
Bit [2:0]
CHS[2:0]:
ADC input channel select bit.
000 = AIN0, 001 = AIN1, 010 = AIN2, 011 = AIN3, 100 = AIN4, 101 = AIN5, 110 = AIN6, 111 = AIN7
ADR register includes ADC mode control and ADC low-nibble data buffer. ADC configurations including ADC clock rate
and ADC resolution. These configurations must be setup completely before starting ADC converting.
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
Read/Write
-
R/W
R/W
R/W
R
R
R
R
After reset
-
0
0
0
-
-
-
-
Bit 6,4
ADCKS [1:0]:
ADC‟s clock rate select bit.
00 = Fcpu/16, 01 = Fcpu/8, 10 = Fcpu/1, 11 = Fcpu/2
Bit 5
ADLEN:
ADC‟s resolution select bits.
0 = 8-bit.
1 = 12-bit.