English
Language : 

W78ERD2 Datasheet, PDF (44/72 Pages) Winbond – 8-BIT MICROCONTROLLER
W78ERD2
BIT NAME
FUNCTION
7
CILD
Counter idle control: CILD = 0 programs the PCA Counter to continue functioning
during idle mode CILD = 1 programs it to be gated off during idle.
6
WDTE
Watchdog Timer Enable: WDTE = 0 disables Watchdog Timer function on PCA
module 4. WDTE = 1 enables it.
5
-
Reserved
4
-
Reserved
3
-
Reserved
2 CPS1 PCA Count Pulse Select bit 1
1 CPS0 PCA Count Pulse Select bit 0
0
ECF
PCA Enable Counter Overflow interrupt: ECF = 1 enables CF bit in CCON to
generate an interrupt. ECF = 0 disables that function of CF.
There are three additional bits associated with the PCA in the CMOD SFR. They are CILD which
allows the PCA to stop during idle mode, WDTE which enables or disables the watchdog function on
module4 (the watchdog timer is executed in module4), and ECF which when set causes an interrupt
and the PCA overflow flag CF to be set when the PCA timer overflows.
CCON(D8H)
BIT NAME
FUNCTION
PCA Counter Overflow flag. Set by hardware when the counter rolls over. CF
7
CF flags an interrupt if bit ECF in CMOD is set. CF may be set by either hardware or
software but can only be cleared by software.
6
CR
PCA Counter Run control bit. Set by software to turn the PCA counter on. Must
be cleared by software to turn the PCA counter off
5
-
Reserved
4
CCF4
PCA Module4 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
3
CCF3
PCA Module3 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
2
CCF2
PCA Module2 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
1
CCF1
PCA Module1 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
0
CCF0
PCA Module0 interrupt flag. Set by hardware when a match or capture occurs.
Must be cleared by software.
- 44 -