BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
161 / 1149
Rev.1.02
6.3.10
Timer output register m (TOm).
The TOm register is a buffer register for the output of each channel timer.
The values of this register are output from the output pin (TOmn) of each channel timer.
The TOmn bit of this register can only be rewritten by software when the timer output (TOEmn=0) is disabled.
When the timer output (TOEmn=1) is Enabled, the rewrite operation through the software is ignored and its value is
changed only by the operation of the timer.
To use the TOmn pin as a port function, the corresponding TOmn position must be "0".
The TOm register is set by the 16-bit memory operation instructions.
User can set the lower 8 bits of the TOm register with TOmL and through the 8-bit memory operation
instruction. After generating a reset signal, the value of the TOm register changes to "0000H".
Figure 6-18
timer output register m(TOm).
symbol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TOm
0
0
0
0
0
0
0
0
0
0
0
0
TOm3 TOm2 TOm1 TOm0
m=0
symbol
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TOm
0
0
0
0
0
0
0
0
Tom7 Tom6 Tom5 Tom4 TOm3 TOm2 TOm1 TOm0
m=1
TOmn
Timer output for channel
n
0
The output value of the timer is "0".
1
The output value of the timer is "1".
Note: Bit15~4
must be
set to
"0".
Note: m: unit number (m=0,1)n: channel number (when m=0: n=0~3, m=1: n=0~7).