Comparator 0 Control Register 0 (Cmp0Con0) - Lapis ML610Q111 User Manual

Table of Contents

Advertisement

22.2.2

Comparator 0 control register 0 (CMP0CON0)

Address: 0F950H
Access: R/W
Access size: 8 bits
Initial value: 00H
7
CMP0CON0
R/W
Initial value
0
CMP0CON0 is a special function register (SFR) to control the comparator.
[Description of Bits]
• CMP0EN (bit 0)
The CMP0EN bit is used to control ON/OFF of the comparator 0.When CMP0EN is set to "1", the comparator 0 is
turned on. When it is set to "0", the comparator 0 is turned off.
CMP0EN
0
Comparator 0 OFF (initial value)
1
Comparator 0 ON
• CMP0D (bit 1)
CMP0D indicates the status of the comparator 0 output (CMP0OUT in Figure 22-1).It is set to "1" when the PB4 pin
voltage is higher than the PB5 pin voltage (PB4>PB5). It is set to "0" when the PB4 pin voltage is lower than the PB5 pin
voltage (PB4<PB5).It holds the last status even after the comparator 0 is turned off (CMP0EN is set to "0").
Description
CMP0D
0
PB4 < PB5 (initial value)
1
PB4 > PB5
FEUL610Q111
6
5
4
0
0
0
Description
ML610Q111/ML610Q112 User's Manual
Chapter 22 Analog Comparator
3
2
1
CMP0D
R
0
0
0
0
CMP0EN
R/W
0
22-3

Advertisement

Table of Contents
loading

Related Products for Lapis ML610Q111

This manual is also suitable for:

Ml610q112

Table of Contents