gc80c520a CORERIVER Semiconductor, gc80c520a Datasheet - Page 175

no-image

gc80c520a

Manufacturer Part Number
gc80c520a
Description
Midas1.0 Family Mask Rom/eprom/romless 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
15.28 Timer 2 Mode Register (T2MOD)
Bit No.
C9h
CP/RL2
EXEN2
TCLK
C/T2
TR2
MiDAS1.0 Family
7
-
-
Transmit Clock Flag. This bit determines the serial port timebase when transmitting data
in serial modes 1 or 3.
0: Timer 1 overflow is used to determine transmitter baud rate for serial port.
1: Timer 2 overflow is used to determine transmitter baud rate for serial port. Setting
this bit will force Timer 2 into baud rate generation mode. The timer will operate from a
divide by 2 of the external clock.
Timer 2 External Enable. This bit enables the capture/reload function on the T2EX pin if
Timer 2 is not generating baud rates for the serial port.
0: Timer 2 will ignore all external events at T2EX.
1: Timer 2 will capture or reload a value if a negative transition is detected on the T2EX
pin.
Timer 2 Run Control. This bit enables/disables the operation of Timer 2. Halting this
timer will preserve the current count in TH2 and TL2.
0: Timer 2 is halted.
1: Timer 2 is enabled.
Counter/Timer Select. This bit determines whether Timer 2 will function as a timer or
counter. Independent of this bit, Timer 2 runs at 2 clocks per tick when used in either
baud rate generator or clock output mode.
0: Timer 2 functions as a timer. The speed of Timer 2 is determined by the T2M bit
(CKCON.5).
1: Timer 2 will count negative transitions on the T2 pin (P1.0).
Capture/Reload Select. This bit determines whether the capture or reload function will
be used for Timer 2. If either RCLK or TCLK is set, this bit will not function and the timer
will function in an auto-reload mode following each overflow.
0: Auto-reloads will occur when Timer 2 overflows or a falling edge is detected on T2EX
if EXEN2=1.
1: Timer 2 captures will occur when a falling edge is detected on T2EX if EXEN2=1.
6
-
-
5
-
-
Page 175 of 187
4
-
-
3
-
-
2
-
-
R/W(0)
T2OE
1
R/W(0)
DCEN
0
T2MOD

Related parts for gc80c520a