English
Language : 

DS80C320-MCG Datasheet, PDF (127/175 Pages) Dallas Semiconductor – High-Speed Microcontroller User Guide
T2CON.5
High-Speed Microcontroller User’s Guide
RCLK - Receive Clock Flag. This bit determines whether Timer 1
or 2 is used for Serial Port 0 timing of received data in Serial Modes
1 or 3. RCLK = 1 causes Timer 2 overflow to be used as the receive
clock. RCLK = 0 causes Timer 1 overflow to be used as the receive
clock.
T2CON.4
TCLK - Transmit Clock Flag. This bit determines whether Timer 1
or 2 is used for Serial Port 0 timing of Transmit data in Serial
Modes 1 or 3. TCLK = 1 causes Timer 2 overflow to be used as the
transmit clock. TCLK = 0 causes Timer 1 overflow to be used as
the transmit clock.
T2CON.3
EXEN2 - Timer 2 External Enable. Setting this bit to a 1 allows a
capture or reload to occur as a result of a falling transition on T2EX
(P1.1), if Timer 2 is not generating baud rates for the serial port.
EXEN2 = 0 causes Timer 2 to ignore all external events at T2EX.
T2CON.2
TR2 - Timer 2 run. Setting this bit to a 1 starts Timer 2. Setting it
to a 0 stops Timer 2.
T2CON.1
C/ T2 - Counter/Timer Select. Setting this bit to a 0 selects a timer
function for Timer 2. Setting it to a 1 selects a counter of falling
transitions on T2 (P1.0). Timer 2 runs at 4 clocks per tick or 12
clocks per tick as programmed by CKCON.5. This bit will be
overridden and Timer 2 directed to use a divide by 2 clock if either
the baud–rate generator or clock output mode is used.
T2CON.0
CP/ RL2 - Capture/Reload Flag. When this bit is set to 1, Timer 2
captures will occur on 1 to 0 transitions of T2EX (P1.1) if EXEN2 =
1. When this bit is set to 0, auto–reloads will occur when Timer 2
overflows or when 1 to 0 transitions occur on T2EX if EXEN2 = 1.
If either RCLK or TCLK is set to a 1 this bit will not function and
the timer will function in an auto–reload mode following each
overflow.
T2MOD REGISTER SUMMARY
TIMER TWO MODE
CONTROL
T2MOD.7-2
T2MOD.1
T2MOD.0
T2MOD; C9h
Reserved
T2OE - Timer 2 Output Enable. Setting this bit to a 1 enables the
Timer 2 to drive the T2 (P1.0) pin with a clock output. When T2OE
= 0, the T2 (P1.0) pin is used as either an input for Timer 2 or a
standard port pin.
DCEN - Down Count Enable. When this bit is set to 1, the Timer 2
function counts up or down when in 16–bit auto–reload mode
depending on T2EX (P1.1). When DCEN is set to a 0, the Timer 2
counts up only.
127 of 175