English
Language : 

W79E825A Datasheet, PDF (29/127 Pages) Winbond – 8-BIT MICROCONTROLLER
W79E825A/824A/823B/822B Data Sheet
Continued.
BIT NAME
3 CN1
2 OE1
1 CO1
0 CMF1
FUNCTION
Comparator negative input select:
0: The comparator reference pin CMPREF is selected as the negative
comparator input.
1: The internal comparator reference Vref is selected as the negative comparator
input.
Output enable:
1: The comparator output is connected to the CMP1 pin if the comparator is
enabled (CE1 = 1). This output is asynchronous to the CPU clock.
Comparator output:
Synchronized to the CPU clock to allow reading by software. Cleared when the
comparator is disabled (CE1 = 0).
Comparator interrupt flag:
This bit is set by hardware whenever the comparator output CO1 changes state.
This bit will cause a hardware interrupt if enabled and of sufficient priority.
Cleared by software and when the comparator is disabled (CE1 = 0).
COMPARATOR 2 CONTROL REGISTER
Bit: 7
6
5
4
3
2
1
0
-
-
CE2
CP2
CN2
OE2
CO2
CMF2
Mnemonic: CMP2
Address: ADh
BIT NAME
FUNCTION
7-
Reserved.
6-
Reserved.
5 CE2
Comparator enable:
0: Disable Comparator.
1: Enabled Comparator. Comparator output need wait stable 10 us after CE2 is
first set.
4 CP2
Comparator positive input select:
0: CIN2A is selected as the positive comparator input.
1: CIN2B is selected as the positive comparator input.
3 CN2
Comparator negative input select:
0: The comparator reference pin CMPREF is selected as the negative
comparator input.
1: The internal comparator reference Vref is selected as the negative comparator
input.
- 29 -
Publication Release Date: February 21, 2008
Revision A9