SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 95
Version 2.0
7.6.2
ADC Data register (ADC_ADB)
Address Offset: 0x04
ADB is ADC data buffer to store AD converter result.
Note: The initial value of ADC buffer (ADB) after reset is unknown.
Bit
Name
Description
Attribute
Reset
31:12
Reserved
R
0
11:0
ADB[11:0]
ADB11~ADB4 bits for 8-bit ADC
ADB11~ADB0 bits for 12-bit ADC
R
0
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*VREFH
0
0
0
0
0
0
0
0
0
0
0
0
1/4096*VREFH
0
0
0
0
0
0
0
0
0
0
0
1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4094/4096*VREFH
1
1
1
1
1
1
1
1
1
1
1
0
4095/4096*VREFH
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. 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.
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
7.6.3
Port 2 Control register (ADC_P2CON)
Address Offset: 0x08
The Port 2 is shared with ADC input function. Only one pin of port 2 can be configured as ADC input in the same time
by ADM register. The other pins of port 2 are digital I/O pins.
Connect an analog signal to COMS digital input pin, especially, the analog signal level is about 1/2 VDD will cause
extra current leakage. In the power down mode, the above leakage current will be a big problem. Unfortunately, if users
connect more than one analog input signal to port 2 will encounter above current leakage situation.
P2CON is Port2 Configuration status register. When ADC is enabled, HW will configure P2CON [15:0] to make related
port 2 pin as pure analog input pin to avoid current leakage.
Bit
Name
Description
Attribute
Reset
31:16
Reserved
R
0
15:0
P2CON[15:0]
P2.x configuration control bits. (x=0 to 15)
0: P2.x can be an analog input (ADC input) or digital I/O pins.
1:
P2.x is pure analog input, can’t be a digital I/O pin.
R
0