SN8P2714X_2715
8-bit micro-controller build-in 12-bit ADC
SONiX TECHNOLOGY CO., LTD
Page 96
V1.4
11
8-CHANNEL ANALOG TO DIGITAL
CONVERTER
11.1 OVERVIEW
This analog to digital converter of SN8P2710 has 8-input sources with up to 4096-step resolution to transfer analog
signal into 12-bits digital data. The sequence of ADC operation is to select input source (AIN0 ~ AIN7) at first, then set
GCHS and ADS bit to “1” to start conversion. When the conversion is complete, the ADC circuit will set EOC bit to “1”
and final value output in ADB register.
A/D
CONVERTER
(ADC)
DB
AU
TS
A
AIN0/P4.0
AIN5/P4.5
AIN2/P4.2
AIN3/P4.3
AIN4/P4.4
AIN1/P4.1
AIN6/P4.6
AIN7/P4.7
A/D
CONVERTER
(ADC)
AIN0/P4.0
AIN0/P4.0
AIN5/P4.5
AIN5/P4.5
AIN2/P4.2
AIN2/P4.2
AIN3/P4.3
AIN3/P4.3
AIN4/P4.4
AIN4/P4.4
AIN1/P4.1
AIN1/P4.1
AIN6/P4.6
AIN6/P4.6
AIN7/P4.7
AIN7/P4.7
Figure 11-1. AD Converter Function Diagram
¾
Note: The analog input level must be between the AVREFH and AVREFL.
¾
Note: The AVREFH level must be between the AVDD and VSS + 2.0V.
¾
Note: ADC programming notice:
Set ADC input pin I/O direction as input mode
Disable pull-up resistor of ADC input pin
Disable ADC before enter power down (sleep) mode to save power consumption.
Set related bit of P4CON register to avoid extra power consumption in power down mode.
Delay 100uS after enable ADC (set ADENB = “1”) to wait ADC circuit ready for conversion.
Disable ADC (set ADENB = “0”) before enter sleep mode to save power consumption.