SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 97
Version 1.1
5
GCHS
ADC global channel select bit.
0: Disable AIN channel
1: Enable AIN channel
R/W
0
4:0
CHS[4:0]
ADC input channels select bit.
00000: AIN0 00001: AIN1 00010: AIN2 00011: AIN3
00100: AIN4 00101: AIN5 00110: AIN6 00111: AIN7
01000: AIN8 01001: AIN9 01010: AIN10 01011: AIN11
01100: AIN12 01101: AIN13 01110: AIN14 01111: AIN15
10000: AIN16 (Internal reference voltage)
10001: AIN17 (OP0O)
10010: AIN18 (OP1O)
Other: Reserved
R/W
0
7.5.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.5.3 ADC Interrupt Enable register (ADC_IE)
Address offset: 0x0C
This register allows control over which A/D channels generate an interrupt when a conversion is complete. For example,
it may be desirable to use some A/D channels to monitor sensors by continuously performing conversions on them. The
most recent results are read by the application program whenever they are needed. In this case, an interrupt is not
desirable at the end of each conversion for some A/D channels.
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...