
BAT32G1x9 user manual | Chapter 15 A/D converter
485 / 1149
Rev.1.02
15.2
Control registers of the A/D converter
The registers that control the A/D
converter are as follows:
Register base address: CSC_BASE=4002_0420H; ADC_BASE=4004_5000H; PORT_BASE=4004_0000H
Register name
Register description
R/W
Reset the
value
Register address
PER0
Peripheral enable register 0
R/W 00H
C20H
ADM0
The mode register of the A/D
converter is 0
R/W 00H
A00H
ADM1
Mode register 1 for A/D converters
R/W 00H
A02H
ADM2
Mode register 2 for A/D converters
R/W 00H
A04H
ADTRG
Trigger mode registers for A/D
converters
R/W 00H
A06AM
ADS
Analog input channels specify
registers
R/W 00H
A08AM
ADLL
The conversion result compares the
lower limit value to set the register
R/W 00H
A0AH
ADULTS
The conversion result compares the
upper limit value to set the register
R/W 00H
A0BH
ADNSMP
The sample time control register of the
A/D converter
R/W 0dH
A0CH
ADCR
1
2-bit
A/D
conversion result register
R
0,000H
A0EH
ADCRH
8-bit A/D
conversion result register
R
00H
A0FH
ADTES
A/D test register
R/W 00H
A10H
ADNDIS
Charge-discharge control registers for
A/D converters
R/W 00H
A11H
ADSMPWAIT
The sampling time of the A/D
converter extends the control registers
R/W 00H
A15H
ADFLG
A/D hardmode status register
R
00H
A16H
PMC0
Pin mode control register 0
R/W FFH
PO60H
PMC1
Pin mode control register 1
R/W FFH
PO61H
PMC2
Pin mode control register 2
R/W FFH
PO62H
PMC10
Pin mode control register 10
R/W FFH
PO6AH
PMC12
Pin mode control register 12
R/W FFH
PO6CH
PMC14
Pin mode control register 14
R/W FFH
PO6EH
PMC15
Pin mode control registers 15
R/W FFH
PO6FH
R:read only,W:write only,R/W:both read and write