RM0082
LS_Analog to digital convertor (ADC)
Doc ID 018672 Rev 1
645/844
29.4 Programming
model
29.4.1 External
pin
connection
Table 574.
External pin connection
The ADC can be fully configured by programming a set of 16 bit wide registers (listed in
) which can be accessed at the base address 0xD008_0000.
Signal
Ball
VREF+
P14
VREF-
N14
AIN0
N16
AIN1
N15
AIN2
P17
AIN3
P16
AIN4
P15
AIN5
R17
AIN6
R16
AIN7
R15
Table 575.
ADC registers summary
Register name
Offset
SIZE
[bit]
Reset
value
Type
Description
ADC_STATUS _REG 0x0000
16
16’h0
R/W
Status Register
AVERAGE_REG
0x0004
16
16’h0
RO
Report the data of requested conversion
SCAN_RATE
0x0008
32
32’h0
R/W
Scan rate for enhanced mode
ADC_CLK_REG
0x000C
16
16’h0
R/W
ADC Clock frequency selection.
CH0_CTRL
0x0010
4
4’h0
R/W
Channel 0 control register
(enhanced mode)
CH1_CTRL
0x0014
4
4’h0
R/W
Channel 1 control register
(enhanced mode)
CH2_CTRL
0x0018
4
4’h0
R/W
Channel 2 control register
(enhanced mode)
CH3_CTRL
0x001C
4
4’h0
R/W
Channel 3 control register
(enhanced mode)
CH4_CTRL
0x0020
4
4’h0
R/W
Channel 4 control register
(enhanced mode)
CH5_CTRL
0x0024
4
4’h0
R/W
Channel 5 control register
(enhanced mode)