ML610Q111/ML610Q112 User’s Manual
Chapter 22 Analog Comparator
FEUL610Q111
22-6
22.2.5
Comparator 1 control register 0 (CMP1CON0)
Address: 0F954H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
6
5
4
3
2
1
0
CMP1CON0
—
—
—
—
—
—
CMP1D
CMP1EN
R/W
—
—
—
—
—
—
R
R/W
Initial value
0
0
0
0
0
0
0
0
CMP1CON0 is a special function register (SFR) to control the comparator.
[Description of Bits]
•
CMP1EN
(bit 0)
The CMP1EN bit is used to control ON/OFF of the Comparator 1.
When CMP1EN is set to “1”, the Comparator 1 is turned on. When it is set to “0”, the Comparator 1 is turned off.
CMP1EN
Description
0
Comparator 1 OFF (initial value)
1
Comparator 1 ON
•
CMP1D
(bit 1)
CMP1D indicates the status of the Comparator 1 output (CMP1OUT in Figure 22-1).
It is set to “1” when the PA1 pin voltage is higher than the internal reference voltage (PA1>Internal reference voltage). It
is set to “0” when the PA1 pin voltage is lower than the internal reference voltage (PA1<Internal reference voltage).
It holds the last status even after the Comparator 1 is turned off (CMP1EN is set to “0”).
CMP1D
Description
0
PA1 < Internal reference voltage (initial value)
1
PA1 > Internal reference voltage
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...