T89C51CC02 Atmel, T89C51CC02 Datasheet - Page 61

no-image

T89C51CC02

Manufacturer Part Number
T89C51CC02
Description
8-Bit MCU
Manufacturer
Atmel
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
T89C51CC02CA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02CA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-RATIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SISIM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
T89C51CC02UA-SITIM
Manufacturer:
Atmel
Quantity:
10 000
13.4. Registers
T2CON (S:C8h)
Timer 2 Control Register
Reset Value = 0000 0000b
Bit addressable
Rev.A - May 17, 2001
Bit Number Bit Mnemonic
TF2
7
7
6
5
4
3
2
1
0
CP/RL2#
EXEN2
EXF2
RCLK
TCLK
C/T2#
EXF2
TR2
TF2
6
Timer 2 overflow Flag
Timer 2 External Flag
Receive Clock bit
Transmit Clock bit
Timer 2 External Enable bit
Timer 2 Run control bit
Timer/Counter 2 select bit
Timer 2 Capture/Reload bit
RCLK
TF2 is not set if RCLK=1 or TCLK = 1.
Must be cleared by software.
Set by hardware on timer 2 overflow.
Set when a capture or a reload is caused by a negative transition on T2EX pin if EXEN2=1.
Set to cause the CPU to vector to timer 2 interrupt routine when timer 2 interrupt is enabled.
Must be cleared by software.
Clear to use timer 1 overflow as receive clock for serial port in mode 1 or 3.
Set to use timer 2 overflow as receive clock for serial port in mode 1 or 3.
Clear to use timer 1 overflow as transmit clock for serial port in mode 1 or 3.
Set to use timer 2 overflow as transmit clock for serial port in mode 1 or 3.
Clear to ignore events on T2EX pin for timer 2 operation.
Set to cause a capture or reload when a negative transition on T2EX pin is detected, if timer 2 is not used to
clock the serial port.
Clear to turn off timer 2.
Set to turn on timer 2.
Clear for timer operation (input from internal clock system: F
Set for counter operation (input from T2 input pin).
If RCLK=1 or TCLK=1, CP/RL2# is ignored and timer is forced to auto-reload on timer 2 overflow.
Clear to auto-reload on timer 2 overflows or negative transitions on T2EX pin if EXEN2=1.
Set to capture on negative transitions on T2EX pin if EXEN2=1.
5
Figure 47. T2CON Register
Preliminary
TCLK
4
EXEN2
3
Description
TR2
2
T89C51CC02
OSC
).
C/T2#
1
CP/RL2#
0
61

Related parts for T89C51CC02