Timercounter Control - Toshiba TLCS-870/C Series Manual

8 bit microcontroller
Hide thumbs Also See for TLCS-870/C Series:
Table of Contents

Advertisement

9. 8-Bit TimerCounter (TC3, TC4)
9.1 Configuration

9.2 TimerCounter Control

The TimerCounter 3 is controlled by the TimerCounter 3 control register (TC3CR) and two 8-bit timer registers
(TTREG3, PWREG3).
TimerCounter 3 Timer Register
TTREG3
(001CH)
R/W
PWREG3
(002CH)
R/W
Note 1: Do not change the timer register (TTREG3) setting while the timer is running.
Note 2: Do not change the timer register (PWREG3) setting in the operating mode except the 8-bit and 16-bit PWM modes while
the timer is running.
TimerCounter 3 Control Register
TC3CR
(0018H)
TFF3
TFF3
TC3CK
TC3S
TC3M
Note 1: fc: High-frequency clock [Hz] fs: Low-frequency clock[Hz]
Note 2: Do not change the TC3M, TC3CK and TFF3 settings while the timer is running.
Note 3: To stop the timer operation (TC3S= 1 → 0), do not change the TC3M, TC3CK and TFF3 settings. To start the timer opera-
tion (TC3S= 0 → 1), TC3M, TC3CK and TFF3 can be programmed.
Note 4: To use the TimerCounter in the 16-bit mode, set the operating mode by programming TC4CR<TC4M>, where TC3M must
be fixed to 011.
Note 5: To use the TimerCounter in the 16-bit mode, select the source clock by programming TC3CK. Set the timer start control
and timer F/F control by programming TC4CR<TC4S> and TC4CR<TFF4>, respectively.
Note 6: The operating clock settings are limited depending on the timer operating mode. For the detailed descriptions, see Table
9-1 and Table 9-2.
7
6
5
4
7
6
5
4
7
6
5
4
TC3CK
Time F/F3 control
Operating clock selection [Hz]
TC3 start control
TC3M operating mode select
3
2
1
0
3
2
1
0
3
2
1
0
TC3S
TC3M
0:
Clear
1:
Set
NORMAL1/2, IDLE1/2 mode
DV7CK = 0
11
000
fc/2
7
001
fc/2
5
010
fc/2
3
011
fc/2
100
fs
101
fc/2
110
fc
111
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 TC4M.)
Reserved
1**:
Page 82
TMP86PM29BUG
(Initial value: 1111 1111)
(Initial value: 1111 1111)
(Initial value: 0000 0000)
SLOW1/2
SLEEP1/2
DV7CK = 1
mode
3
3
fs/2
fs/2
7
fc/2
5
fc/2
3
fc/2
fs
fs
fc/2
fc
fc (Note 8)
TC3 pin input
R/W
R/W
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents