BAT32G1x9 user manual | Chapter 10 Timer M
395 / 1149
Rev.1.02
(2) Data transfer timing for buffer registers
TMGRD0, TMGRC1, TMGRD1 registers to TMGRB0, TMGRA1, TMGRB1 register data is transferred to
TMFCR The CMD1 bits and CMD0 bits of the registers are "10B" and data transfer occurs when TM1 underflow
occurs.
Data transfer occurs when CMD1 and CMD0 bits are "11B" and the TM0 registers and TMGRA0 registers are
relatively matched.
10.5.6
PWM3 mode
Outputs 2 PWM waveforms of the same period.
The block diagram and operation example of the PWM3 mode are shown in Figures 10-61 and 10-62, respectively,
and the specifications of the PWM3 mode are shown in Table 10-17.
Figure 10-61 Block diagram of PWM3 mode
0
1
f
C
L
K
f
H
O
C
O
F
R
Q
S
E
L
4
o
f
o
p
ti
o
n
b
y
te
s
(
0
0
C
2
H
)
000B
001B
010B
011B
100B
101B
f
C
L
K
/2
f
C
L
K
/4
f
C
L
K
/8
f
C
L
K
/3
2
e
d
g
e
co
n
tro
l
TM
C
L
K
S
TC
L
K
0
:
in
p
u
t
in
v
a
lid
1
:
in
p
u
t
v
a
lid
C
K
E
G
1
,
C
K
E
G
0
0
0
B
:
ri
s
in
g
e
d
g
e
0
1
B
:
fa
lli
n
g
e
d
g
e
1
0
B
:
d
o
u
b
le
e
d
g
e
TC
K
2
~
TC
K
0
TS
TA
R
T0
0
:
S
to
p
c
o
u
n
ti
n
g
1
:
S
ta
rt
c
o
u
n
tin
g
T
M
0
T
im
e
r
M
c
o
u
n
te
r
0
T
M
G
R
A
0
T
im
e
r
M
g
e
n
e
ra
l
re
g
is
te
r
A
0
(
c
o
m
p
a
re
)
c
o
u
n
ti
n
g
s
e
le
c
ti
o
n
c
o
m
p
a
ra
to
r
c
ir
c
u
it
O
V
F
o
v
e
rf
lo
w
s
ig
n
a
l
c
o
m
p
a
re
m
a
tc
h
in
g
s
ig
n
a
l
C
S
E
L
0
0
:
st
o
p
co
u
n
ti
n
g
w
ih
le
T
MG
R
A0
co
mp
a
re
ma
tch
in
g
1
:
co
n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