BAT32G1x9 user manual | Chapter 15 A/D converter
483 / 1149
Rev.1.02
Chapter 15 A/D converter
15.1
Functions of the A/D converter
The A/D converter is a converter that converts analog inputs to digital values and supports A/D conversion
of up to 31 analog
channels (28external pin input channels and 3 internal channels). The number of external
analog input channels for the A/D converter is related to each product as shown in the following table.
Number of pins
48 pins
64 pins
80
pins
100
pins
The number of
analog input
channels
15ch
16ch
21ch
28ch
(ANI0~ANI12)
(ANI14~ANI
15)
(ANI0~ANI15)
(ANI0
~
ANI20)
(ANI0
~
ANI27)
The A/D converter supports
A/D
conversion with 12-bit resolution. Select 1 channel of analog signal from
ANIx, PGA0, PGA1 and built-in temperature sensors for A/D with
12-bit
resolution
Transfer. For every
A/D
conversion at the end of the A/D conversion, an Interrupt Request
(INTAD) is generated. A/D conversion of
each channel can be performed in single-shot, continuous, scan mode.
Various A/D
conversion modes are set by the combination of modes described below.
Trigger mode
Software triggered
Start the conversion with software operations.
Hardware triggers no-
wait mode
Start the conversion by detecting hardware triggers.
Hardware triggers
wait mode
In the switch standby state of the power supply, the power is turned on by
detecting the hardware trigger, and the conversion automatically starts after
the A/D
power supply stable wait time.
Channel selection
mode
Select a mode
Select 1
channel of analog input for
A/D
conversion.
Scan mode
A/D conversion of 2/3/4 channel analog inputs sequentially. Consecutive
2/3/4 channels from ANI0 to ANI15 can be selected as analog inputs.
Conversion mode
Single-shot
conversion mode
Perform 1 A/D conversion on the selected channel.
Continuous transition
mode
Continuous A/D conversion of the selected channels until stopped by the
software.
Sampling time
Sample clock 5.5 to
255
ADCLKs
The sampling time can be selected by the ADSMP register, which uses 13.5
conversion clocks (fAD) by default.