BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
213 / 1149
Rev.1.02
6-63 Example of register settings when the pulse output function is triggered alone (slave channel).
(a) Timer mode register mp (TMRmp).
CKSmp1
1/0
CKSmp0
0
0
CCSmp
0
M/S
注
0
STSmp2
1
STSmp1
0
STSmp0
0
CISmp1
0
CISmp0
0
0
0
MDmp3
1
MDmp2
0
MDmp1
0
MDmp0
0
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
15
TMRmp
operation mode of Channel P
100B: single counting mode
start trigger during operation
0: Trigger input invalid.
start trigger selection
100B: Select master control channel INTTMmn
MASTERmp bit configuration (Channel 2)
0: slave channel
SPLITmp bit configuration (Channel 1, 3)
0: 16 bit Timer
counting clock selection
0: Select operational clock (fMCK)
operational clock (fMCK) selection
00B: select CKm0 as operational clock of Channel p
10B: select CKm1 as operational clock of Channel p
same as master control channel configuration
TImp Pin input edge selection
00B: set to "00" since not used
(b) The timer output register m (TOm).
bit p
TOm
TOmp
1/0
0: Output "0"
by
TOmp.
1: Output
"1"
by
TOmp.
(c) The timer output enable register m (TOEm).
bit p
TOEm TOEmp
1/0
0: Stops the TOmp
output
made by the
count run.
1: Enable TOmp
output
by counting
runs.
(d) The timer output level register m(TOLm).
bit p
TOLm
TOLmp
1/0
0: Positive logic output (active high).
1: Negative logic output (active low
).
(e) Timer output mode register m (TOMm).
bit p
TOMm TOMmp
1
1: Set the slave channel output mode.
Remark: TMRm2, TMRm4, TMRm6: MASTERmp bit
TMRm1, TMRm3: SPLITmp bit
Note: m: Unit number (m=0,1) n: Master channel number (n=0,
2, 4, 6).
p: Slave channel number (m=0Time:n
<
p≤3
,
m=1Time:n
<
p≤7)