BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
228 / 1149
Rev.1.02
Fig. 6-75 multiple PWM output function (slave channel) (in the case of outputting two PWMs).
(a) Timer mode registers mp, mq (TMRmp, TMRmq).
CKSmq1
1/0
CKSmq0
0
0
CCSmq
0
M/S
注
0
STSmq2
1
STSmq1
0
STSmq0
0
CISmq1
0
CISmq0
0
0
0
MDmq3
1
MDmq2
0
MDmq1
0
MDmq0
1
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
15
TMRmq
operation mode of Channel p and q
100B:single counting mode
start trigger during operation
1: Trigger input valid.
start trigger selection
100B: Select master control channel INTTMmn
MASTERmp bit and MASTERmq bit configuration
(Channel 2) 0: slave channel
SPLITmp bit and SPLITmq bit configuration
(Channel 1, 3) 0: 16 bit Timer
Count clock selection
0: Select operational clock (fMCK)
operational clock (fMCK) selection
00B: select CKm0 as operational clock of Channel p and q
10B: select CKm1 as operational clock of Channel p and q
same as master control channel configuration
Timp and TImq Pin input edge selection
00B: set to "00B" since not used
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
1
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
15
TMRmp
(b) The timer output register m (TOm).
bit q
bit p
TOm
TOmq
1/0
TOmp
1/0
0: Output
"0"
by
TOmp
and
TOmq.
1: Output "1"
by
TOmp
and
TOmq.
(c) The timer output enable register m (TOEm).
bit q
bit p
TOEm TOEmq
1/0
TOEmp
1/0
0: Stops the TOmp
and
TOmq
outputs performed by
the count run.
1: Enable TOmp
and
TOmq
output
by counting runs.
(d) The timer output level register m(TOLm).
bit q
bit p
TOLm TOELq
1/0
TOELp
1/0
0: Positive logic output (active-high).
1: Negative logic output (active low
).
(e) Timer output mode register m (TOMm).
bit q
bit p
TOMm TOMLq
1
TOMLp
1
1: Set the slave channel output mode.
Note: TMRm2,
TMRm4
:
MASTERmp
bit,
MASTERmq
bit
TMRm1,
TMRm3:
SPLITmp
bit, SPLITmq
bit
Note: m: Unit number (m=0,1) n: Master channel number (n=0, 2, 4).
p: Slave channel number q: Slave channel number
m=0Time:n
<
p
<
q≤3 (p
和
qis greater thanninteger)
m=1Time:n
<
p
<
q≤7 (p
和
qis greater thanninteger)