BAT32G1x9 user manual | Chapter 15 A/D converter
486 / 1149
Rev.1.02
15.2.1 Peripheral enable
register 0 (PER0).
The PER0 register is a register that is set to allow or disable clocks to each peripheral hardware. Reduce
power consumption and noise by stopping clocking hardware that is not in use.
To use the A/D
converter, bit5 (ADCEN) must be set to "1".
The PER0 register is set via the 8-bit memory operation instructions.
After generating a reset signal, the value of this register changes to "00H".
Figure15-2 The format of the Peripheral enable register 0 (PER0).
Reset value: 00H
R/W
7
6
5
4
3
2
1
0
PER0
RTCEN
-
ADCEN
IICA0EN
SCI1EN
SCI0IN
CAN0EN
TM40EN
ADCEN
Control of the input clock of the A/D converter
0
Stop providing the input clock.
• Cannot write
SFR
used by
A/D
converters.
• The A/D converter is in a reset state.
1
An input clock is provided.
• Can read and write
SFR
used by
A/D
converters.
Note1: To set the A/D
converter, you must first set the following registers in the ADCEN bit "1". When the ADCEN bit is
"0", the value of the control register of the A/D converter is the initial value, ignoring the write operation (Pin Mode Control
Register (PMCxx)) except).
• Mode register 0 (ADM0) for A/D converters
• Mode register 1 (ADM1) for A/D converters
• Mode register 2 (ADM2) for A/D converters
• Trigger Mode Register (ADTRG) for A/D converters
•Analog Input Channel Specified Register (ADS).
• Conversion results compare the lower limit value of the setting register (ADLL).
• Conversion results compare upper limit value set register (ADUL).
• A/D Sampling Time Control Register (ADNSMP).
• 12-bit A/D Conversion Result Register (ADCR).
• 8-bit A/D conversion result register (ADCRH).
• A/D Test Register (ADTES).
• A/D Charge and Discharge Control Register (ADNDIS).
• A/D Sampling Time Extended Control Register (ADSMPWAIT).
• A/D Hard Module Status Register (ADFLG).