Table 23. CCON Register
CCON – PCA Counter Control Register (D8h)
7
6
CF
CR
5
4
3
-
CCF4
CCF3
2
CCF2
1
CCF1
0
CCF0
Bit
Number
7
6
5
4
3
2
1
Bit
Mnemonic Description
PCA Counter Overflow Flag
CF
Set by hardware when the counter rolls over. 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.
PCA Counter Run Control Bit
CR Must be cleared by software to turn the PCA counter off.
Set by software to turn the PCA counter on.
-
Reserved
The value read from this bit is indeterminate. Do not set this bit.
CCF4
PCA Module 4 Interrupt Flag
Must be cleared by software.
Set by hardware when a match or capture occurs.
CCF3
PCA Module 3 Interrupt Flag
Must be cleared by software.
Set by hardware when a match or capture occurs.
CCF2
PCA Module 2 Interrupt Flag
Must be cleared by software.
Set by hardware when a match or capture occurs.
CCF1
PCA Module 1 Interrupt Flag
Must be cleared by software.
Set by hardware when a match or capture occurs.
PCA Module 0 Interrupt Flag
0
CCF0 Must be cleared by software.
Set by hardware when a match or capture occurs.
Reset Value = 000X 0000b
Bit addressable
The watchdog timer function is implemented in Module 4 (see Figure 14).
The PCA interrupt system is shown in Figure 12.
34 AT89C51RB2/RC2
4180E–8051–10/06