English
Language : 

W925EP01 Datasheet, PDF (61/108 Pages) Winbond – 8-BIT CID MICROCONTROLLER
W925EP01/ W925EP01FG
C1
C2
C3
C4
Ins.
serial out
instruction
P4.0
SEDG=1, falling changed
P4.0
SEDG=0, rising changed
1234 56 78
1234 56 78
SF1
P4.1
Data output
NOTE: The serial clock frequency is fosc/2
Figure 6-7 Timing of the Serial port1 Output Function
6.10 Comparator
A built-in comparator can compare the analog signal. There is an analog input path from pin VNEG.
And one reference input from pin VPOS. When the voltage of positive input is higher than the negative
input, the comparator output will be high. The RESEC (COMPR.3) is the result of the comparison. An
internal rising signal on RESC produces interrupt flag of COMPF (EXIF.4). The flag COMPF is cleared
when comparator interrupt routine is executed or cleared by software. Set COMPEN to enable the
comparator function.
VNEG(P4.2)
VPOS(P4.4)
REF1
REF
X.XV
REGULATOR
EN
C3
RESET
D
CK
Clr
D
RESC CK
Clr
COMPF=0
COMPEN
SCON1.5(REGON)
EXIF.4
(COMPF)
Figure 6-8 The Configuration of Comparator
- 61 -
Publication Release Date: Apr. 10, 2006
Revision A2