Datasheet
78K0/Ix2 CHAPTER 13 COMPARATORS
R01UH0010EJ0500 Rev.5.00 411
Feb 28, 2012
13.2 Configuration of Comparators
The comparators consist of the following hardware.
Table 13-1. Configuration of Comparators
Item Configuration
Control registers Comparator n control register (CnCTL)
DAn internal reference voltage selection register (CnRVM)
Comparator output flag register (CMPFLG)
A/D configuration register 0 (ADPC0)
Port mode register 2 (PM2)
Port register 2 (P2)
13.3 Registers Controlling Comparators
The comparators use the following five registers.
• Comparator n control register (CnCTL)
• DAn internal reference voltage selection register (CnRVM)
• Comparator output flag register (CMPFLG)
• A/D configuration register 0 (ADPC0)
• Port mode register 2 (PM2)
(1) Comparator n control register (CnCTL)
CnCTL is used to control the operation of comparator n, enable or disable comparator output, reverse the output,
and set the noise elimination width.
CnCTL can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears CnCTL to 00H.
Remark n = 0 to 2