English
Language : 

TMP86CS28FG Datasheet, PDF (142/230 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
10. 8-Bit TimerCounter (TC5, TC6)
10.1 Configuration
TMP86CS28FG
10.2 TimerCounter Control
The TimerCounter 5 is controlled by the TimerCounter 5 control register (TC5CR) and two 8-bit timer registers
(TTREG5, PWREG5).
TimerCounter 5 Timer Register
TTREG5
7
6
5
4
3
2
1
0
(0017H)
R/W
(Initial value: 1111 1111)
PWREG5
7
6
5
4
3
2
1
0
(001BH)
R/W
(Initial value: 1111 1111)
Note 1: Do not change the timer register (TTREG5) setting while the timer is running.
Note 2: Do not change the timer register (PWREG5) setting in the operating mode except the 8-bit and 16-bit PWM modes while
the timer is running.
TimerCounter 5 Control Register
TC5CR
7
6
5
4
3
2
1
0
(000BH) TFF5
TC5CK
TC5S
TC5M
(Initial value: 0000 0000)
TFF5 Time F/F5 control
TC5CK Operating clock selection [Hz]
TC5S TC5 start control
TC5M TC5M operating mode select
0: Clear
1: Set
NORMAL1/2, IDLE1/2 mode
DV7CK = 0
DV7CK = 1
000
fc/211
fs/23
001
fc/27
fc/27
010
fc/25
fc/25
011
fc/23
fc/23
100
fs
fs
101
fc/2
fc/2
110
fc
fc
111
TC5 pin input
0: Operation stop and counter clear
1: Operation start
000: 8-bit timer/event counter mode
001: 8-bit programmable divider output (PDO) mode
010: 8-bit pulse width modulation (PWM) output mode
011: 16-bit mode
(Each mode is selectable with TC6M.)
1**: Reserved
R/W
SLOW1/2
SLEEP1/2
mode
fs/23
–
–
R/W
–
fs
–
fc (Note 8)
R/W
R/W
Note 1: fc: High-frequency clock [Hz] fs: Low-frequency clock[Hz]
Note 2: Do not change the TC5M, TC5CK and TFF5 settings while the timer is running.
Note 3: To stop the timer operation (TC5S= 1 → 0), do not change the TC5M, TC5CK and TFF5 settings. To start the timer opera-
tion (TC5S= 0 → 1), TC5M, TC5CK and TFF5 can be programmed.
Note 4: To use the TimerCounter in the 16-bit mode, set the operating mode by programming TC6CR<TC6M>, where TC5M must
be fixed to 011.
Note 5: To use the TimerCounter in the 16-bit mode, select the source clock by programming TC5CK. Set the timer start control
and timer F/F control by programming TC6CR<TC6S> and TC6CR<TFF6>, respectively.
Note 6: The operating clock settings are limited depending on the timer operating mode. For the detailed descriptions, see Table
10-1 and Table 10-2.
Page 132