![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 197](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609197.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
197 / 1149
Rev.1.02
TCRmn: Timer count register (TCRmn).
TDRmn: Timer data register (TDRmn).
TOmn:
The TOmn pin output signal
m: unit number (m=0,1) n: channel number (when m=0: n=0~3, m=1: n=0~7).
Figure 6-49 an example of register settings when the divider is running (channel 0 of unit 0).
(a) Timer mode register 00 (TMR00).
CKS001
1/0
CKS000
0
0
CCS00
1
0
STS002
0
STS001
0
STS000
0
CIS001
1/0
CIS000
1/0
0
0
MD003
0
MD002
0
MD001
0
MD000
1/0
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
15
TMR00
operation mode of Channel N
000B: Interval Timer
Timn Pin input edge selection
00B: Detect falling edge
01B: Detect rising edge
10B: Detect both edges
11B: reserved
start trigger selection
000B: only select software to start trigger.
Count clock selection
1: Select TI00 pin output valid edge
operational clock (fMCK) selection
00B: select CK00 as operational clock of Channel 0.
10B: select CK01 as operational clock of channel 1.
operation configuration when start counting
0: when start counting, not to generate INTTMmn and do not generate inverted Phase Timer output.
1: when start counting, generate INTTMmn and generate inverted Phase Timer output.
(b) Timer output register 0 (TO0).
bit 0
TO0
TO00
1/0
0:
Output "0" by TO00.
1: Output
"1"
by
TO00.
(c) Timer output enable register 0 (TOE0).
bit 0
TOE0
TOE00
1/0
0: Stops the TO00
output
made by the count run.
1: Enable TO00
output
by counting runs.
(d) Timer output level register 0 (TOL0).
bit 0
TOL0
TOLL00
0
0: "0" in the main control channel output mode (TOM00=0).
(e) Timer output mode register 0 (TOM0).
bit n
TAT0
TOM00
0
0: Set the main control channel output mode.