![Sino Wealth SH79F3283 Manual Download Page 48](http://html1.mh-extra.com/html/sino-wealth/sh79f3283/sh79f3283_manual_1283063048.webp)
SH79F3283
48
Registers
Table 7.28
Timer2 Control Register
C8H, Bank0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
T2CON
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
C/T2
———
CP/RL2
————
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
(POR/WDT/LVR/PIN)
0
0
0
0
0
0
0
0
Bit Number
Bit Mnemonic
Description
7
TF2
Timer2 overflow flag bit
0: No overflow(must be cleared by software)
1: Overflow (Set by hardware if RCLK = 0 & TCLK = 0)
6
EXF2
External event input (falling edge) from T2EX pin detected flag bit
0: No external event input (Must be cleared by software)
1: Detected external event input (Set by hardware if EXEN2 = 1)
5
RCLK
EUART0 Receive Clock control bit
0: Timer4 generates receiving baud-rate
1: Timer2 generates receiving baud-rate
4
TCLK
EUART0 Transmit Clock control bit
0: Timer4 generates transmitting baud-rate
1: Timer2 generates transmitting baud-rate
3
EXEN2
External event input (falling edge) from T2EX pin used as Reload/Capture
trigger enable/disable control bit
0: Ignore events on T2EX pin
1: Cause a capture or reload when a negative edge on T2EX pin is detected,
when Timer 2 is not used to clock the EUART (T2EX always has a pull up
resistor)
2
TR2
Timer2 start/stop control bit
0: Stop Timer2
1: Start Timer2
1
C/T2
———
Timer2 Timer/Counter mode selected bit
0: Timer Mode, T2 pin is used as I/O port
1: Counter Mode, the internal pull-up resister is turned on
0
CP/RL2
————
Capture/Reload mode selected bit
0: 16-bits timer/counter with reload function
1: 16-bits timer/counter with capture function