Preliminary User’s Manual U16315EJ1V0UD
224
CHAPTER 12 A/D CONVERTER
12.1 Functions of A/D Converter
The A/D converter converts an analog input signal into a digital value, and consists of up to eight channels (ANI0 to
ANI7) with a resolution of 10 bits.
The A/D converter has the following two functions.
(1) 10-bit resolution A/D conversion
10-bit resolution A/D conversion is carried out repeatedly for one channel selected from analog inputs ANI0 to
ANI7. Each time an A/D conversion operation ends, an interrupt request (INTAD) is generated.
(2) Power-fail detection function
This function is used to detect a voltage drop in a battery. The A/D conversion result (ADCR register value) and
power-fail comparison threshold register (PFT) value are compared. INTAD is generated only when a
comparative condition has been matched.
Figure 12-1. Block Diagram of A/D Converter
Sample & hold circuit
Series resistor string
Successive
approximation
register (SAR)
ADCS
FR2
FR1
ADCE
Controller
Voltage comparator
A/D conversion result
register (ADCR)
AV
REF
(Can be used as
analog power supply)
AV
SS
INTAD
Internal bus
A/D converter mode
register (ADM)
Tap selector
Selector
ANI0/P20
ANI1/P21
ANI2/P22
ANI3/P23
FR0
ADS1
ADS0
Analog input channel
specification register
(ADS)
3
ADS2
ANI4/P24
ANI5/P25
ANI6/P26
ANI7/P27