Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

P8XCL580HFT View Datasheet(PDF) - Philips Electronics

Part Name
Description
MFG CO.
'P8XCL580HFT' PDF : 80 Pages View PDF
Philips Semiconductors
Low voltage 8-bit microcontrollers with
UART, I2C-bus and ADC
Product specification
P80CL580; P83CL580
11.3 Timer/Counter 2 Control Register (T2CON)
Table 2 Timer/Counter 2 Control Register (SFR address C8H)
7
6
5
4
3
2
TF2
EXF2
GF2
RTCLK
EXEN2
TR2
1
C/T2
0
CP/RL2
Table 3 Description of T2CON bits.
BIT
SYMBOL
DESCRIPTION
7
TF2
Timer 2 overflow flag. Set by a Timer 2 overflow and must be cleared by software. TF2
will not be set when RTCLK = 1.
6
EXF2 Timer 2 external flag. Set when either a capture or reload is caused by a negative
transition on T2EX and when EXEN2 = 1. When Timer T2 interrupt is enabled,
EXF2 = 1 will cause the CPU to vector to Timer 2 interrupt routine. EXF2 must be
cleared by software.
5
GF2
General purpose flag bit.
4
RTCLK Receive/transmit clock flag. When set, causes the UART serial port to use Timer 2
overflow pulses for its receive and transmit clock in Modes 1 and 3. RTCLK = 0 causes
Timer 1 overflows to be used for the receive and transmit clock.
3
EXEN2 Timer 2 external enable flag. When set, allows a capture or reload to occur as a result
of a negative transition on T2EX, if Timer 2 is not being used to clock the serial port.
EXEN2 = 0, causes Timer 2 to ignore events at T2EX.
2
TR2
Start/stop control for Timer 2. TR2 = 1 starts the timer.
1
C/T2 Timer or counter select for Timer 2. C/T2 = 0 selects the internal timer with a clock
frequency of 112 × fosc. C/T2 = 1 selects the external event counter; negative edge
triggered.
0
CP/RL2 Capture/Reload flag. When set, captures will occur on negative transitions at T2EX, if
EXEN2 = 1. When cleared, auto-reloads will occur either with Timer 2 overflows or
negative transitions at T2EX when EXEN2 = 1. When RTCLK = 1, this bit is ignored and
the timer is forced to auto-reload on a Timer 2 overflow.
Table 4 Timer 2 operating modes; X = don’t care.
RTCLK
0
0
1
X
CP/RL2
0
1
X
X
TR2
1
16-bit Auto-reload
1
16-bit Capture
1
Baud Rate Generator
0
Off
MODE
1997 Mar 14
19
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]