RL78/G10 CHAPTER 11 COMPARATOR
R01UH0384EJ0311 Rev. 3.11 265
Dec 22, 2016
CHAPTER 11 COMPARATOR
Caution The 16-pin product has one comparator channel.
11.1 Comparator Functions
The comparator integrates the following functions:
• The comparator response speed can be selected.
High-speed mode: Decreased response delay time, with increased power consumption.
Low-speed mode: Increased response delay time, with decreased power consumption.
• The comparator reference voltage can be either the externally input reference voltage or the internal reference
voltage
Note
(0.815 V (typ.)).
• The integrated digital filter for noise elimination allows selecting the noise elimination width.
• The inverted/non-inverted comparator output can be output from the VCOUT0 pin.
• An interrupt (INTCMP0) can be generated upon detection of the effective edge of the comparator output signal.
Note The internal reference voltage cannot be used for the A/D converter and comparator simultaneously. When the
internal reference voltage is selected as the reference voltage of the comparator, do not select the internal
reference voltage as the target for conversion by the A/D converter.
11.2 Comparator Configuration
The comparator consists of the following hardware:
(1) IVCMP0 Pin
The comparator analog input pin. An analog signal to be compared by the comparator is input to this pin.
(2) IVREF0 Pin
A input pin to supply the reference voltage externally. The reference voltage of the comparator and analog input that
is input to the IVCMP0 pin are compared.
In addition to the voltage supplied to the IVREF0 pin externally, the internal reference voltage (0.815 V (typ.)) can be
selected for the comparator reference voltage.
For details on setting the comparator reference voltage, see 11.3.2 Comparator Mode Setting Register
(COMPMDR).
(3) VCOUT0 Pin
A pin to output the comparator comparison results. The inverted/non-inverted comparator output can be output from
the VCOUT0 pin.
For use of the VCOUT0 pin as a comparator output, see 11.4.3 Comparator 0 Output.
Figure 11-1 shows the block diagram of the comparator.