
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
169 / 1149
Rev.1.02
6.4.2
Timer channel start register m(TSm).
The TSm register is a trigger register that initializes the timer count register mn (TCRmn) and sets the start of each
channel count run. If each position is "1", the corresponding bit of the Enabled status register m (TEm) of the timer
channel is placed "1". Because the TSmn bit, TSHm1 bit, and TSHm3 bit are trigger bits, if it becomes a run-Enabled
state (TEmn, TEHm1,TEHm3=1), immediately clear the TSmn bit, TSHm1 bit, and TSHm3 bit.
The TSm register is set via a 16-bit memory operation instruction.
User can set the low 8 bits of the TSm register with TSmL and through the 8-bit memory operation instruction.
After generating a reset signal, the value of the TSm register changes to "0000H".
Figure 6-23
timer channel start register m(TSm).
symb
ol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TSm
0
0
0
0
TSHm
3
0
TSHm
1
0
0
0
0
0
TSm3 TSm2 TSm1 TSm0
m=0
symb
ol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TSm
0
0
0
0
0
0
0
0
TSm7 TSm6 TSm5 TSm4 TSm3 TSm2 TSm1 TSm0
m=1
TSHm3
The operation of the
high 8-bit timer when
Channel
3
is in 8-bit timer mode enable (start) triggering
0
No triggering.
1
Place teem3
at position
"1"
and enter the Count Enabled state.
If the count of TCRm3
registers is started in the counting Enabled state, it enters interval timer
mode (see
Table
6-6 of "Start Timing of the
TSHm1
The operation of the high 8-bit timer when
Channel
1
is
in 8-bit timer mode enable (start) triggering
0
No triggering.
1
Place teem1
at position
"1"
and enter the Count Enabled state.
If the count of TCRm1
registers is started in the counting Enabled state, it enters interval timer
mode (see
Table 6-6 of "Start Timing
of
Counters").
TSmn
The operation of channel n enable (start) triggering
0
No triggering.
1
Place the TEmn position "1" and enter the Count Enabled state. The start of counting the TCRmn
registers in the count-Enabled state varies depending on each operating mode (see Table 6-6 of
"Start Timing of Counters 6.5.2"). In Channel 1 and Channel 3 are 8-bit timer modes, TSm1 and
TSm3 are 8 lows the operation of the bit timer enable (start) triggering.
Note: 1
Bit15~12,
10,
8~4
must be
set to
"0".
2. When switching from the function of not using the
TImn
pin input to the function of using
the TImn
pin input, from
setting the timer mode register
mn
(TMRmn) to setting
TSmn
(TSHm1,
TSHm3) position
"1", the following period of
waiting is required:
When the TImn pin noise filter is active
(TNFENmn=1):
4
operating clocks (f
MCK
).
When the TImn pin noise filter is invalid
(TNFENmn=0):
2
operating clocks (f
MCK
).
Note: 1. The
read value of the TSm register is always
"0".
2.m: unit number (m=0,1)n: channel number (m=0: n=0~3, m=1: n=0~7).