DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AT89C51RB2-RLTCM View Datasheet(PDF) - Atmel Corporation

Part Name
Description
Manufacturer
AT89C51RB2-RLTCM
Atmel
Atmel Corporation 
AT89C51RB2-RLTCM Datasheet PDF : 127 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
Registers
4180E–8051–10/06
AT89C51RB2/RC2
Table 22. CMOD Register
CMOD – PCA Counter Mode Register (D9h)
7
6
5
4
3
CIDL
WDTE
-
-
-
2
CPS1
1
CPS0
0
ECF
Bit
Number
7
Bit
Mnemonic Description
CIDL
Counter Idle Control
Cleared to program the PCA Counter to continue functioning during idle Mode.
Set to program PCA to be gated off during idle.
Watchdog Timer Enable
6
WDTE Cleared to disable Watchdog Timer function on PCA Module 4.
Set to enable Watchdog Timer function on PCA Module 4.
5
-
Reserved
The value read from this bit is indeterminate. Do not set this bit.
4
-
Reserved
The value read from this bit is indeterminate. Do not set this bit.
3
-
Reserved
The value read from this bit is indeterminate. Do not set this bit.
2
CPS1 PCA Count Pulse Select
CPS1 CPS0 Selected PCA input
0
0
Internal clock FCLK PERIPH/6
1
CPS0 0
1
Internal clock FLK PERIPH/2
1
0
Timer 0 Overflow
1
1
External clock at ECI/P1.2 pin (max rate = fCLK PERIPH/ 4)
PCA Enable Counter Overflow Interrupt
0
ECF Cleared to disable CF bit in CCON to inhibit an interrupt.
Set to enable CF bit in CCON to generate an interrupt.
Reset Value = 00XX X000b
Not bit addressable
The CMOD register includes three additional bits associated with the PCA.
• The CIDL bit which allows the PCA to stop during idle mode.
• The WDTE bit which enables or disables the watchdog function on Module 4.
• The ECF bit which when set causes an interrupt and the PCA overflow flag CF (in
the CCON SFR) to be set when the PCA timer overflows.
The CCON register contains the run control bit for the PCA and the flags for the PCA
timer (CF) and each Module (see Table 23).
• Bit CR (CCON. 6) must be set by software to run the PCA. The PCA is shut off by
clearing this bit.
• Bit CF: The CF bit (CCON. 7) is set when the PCA counter overflows and an
interrupt will be generated if the ECF bit in the CMOD register is set. The CF bit can
only be cleared by software.
• Bits 0 through 4 are the flags for the Modules (bit 0 for Module 0, bit 1 for Module 1,
etc. ) and are set by hardware when either a match or a capture occurs. These flags
also can only be cleared by software.
33

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]