English
Language : 

W925E625 Datasheet, PDF (50/75 Pages) Winbond – 8-bit CID MICROCONTROLLER
W925E/C625
P1: I/O mode is controlled by P1IO. Pull high is controlled by P1H. P1.0~P1.3 work as INT2,
P1.4~P1.7 work as INT3. Falling edge on P1 pins to produce INT2 and INT3 flag. P1 is
configured as INT2/INT3 by P1EF register.
P2: I/O mode is controlled by P2IO. Pull high is controlled by P2H.
P3: I/O mode is controlled by P3IO. Pull high is controlled by P3H.
P3.5
T1
Timer/counter 1 external count input
P3.4
T0
Timer/counter 0 external count input
P3.3
INT1
External interrupt 1
P3.2
INT0
External interrupt 0
P4: I/O mode is controlled by P4IO. Pull high is controlled by P4H.
Special function of P4 is described below.
P4.4
Vpos
Positive input of the comparator
P4.2
Vneg
Negative input of the comparator
P4.1
SDATA Serial port output
P4.0
SCLK
Serial port input
6.14 Divider
A built-in 13/14-bit binary up-counter designed to generate periodic interrupt. The clock source is from
sub-oscillator. When the frequency of sub-crystal is 32768Hz, it provides the divider interrupt in the
period of 0.25/0.5 second. Bit DIVS controls the degree of divider. When DIVA is high to enable the
divided counter, when DIVA is low to reset divider and stop counting. As the divider overflows, the
divider interrupt flag DIVF is set. DIVF is clear by software or serving divider interrupt routine.
Fs
1
DIVA
(DIVC.0)
DIVS
(CKCON1.1)
overflow
13 14
Executing DIV Int
Clear by software
D
Q
ck
CR
DIVF
(EXIF.3)
Figure 6-13 13/14-bit Divider
- 50 -