BAT32G1x9 user manual | Chapter 10 Timer M
358 / 1149
Rev.1.02
Fig. 10-37 Timer M General Purpose registers Ai, Bi, Ci, Di
Format of (TMGRAi, TMGRBi, TMGRCi, TMGRDi) (i=0, 1) [ Reset synchronous PWM mode].
Address: 0x40042A78
(TMGRA0),
0x40042A7A
(TMGRB0),
After reset:
FFFFH R/W
0x40042B58 (TMGRC0) , 0x40042B5A (TMGRD0) ,
0x40042A88 (TMGRA1) , 0x40042A8A (TMGRB1) ,
0x40042B5C(TMGRC1), 0x40042B5E(TMGRD1)
Symbol 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TMGRAi
TMGRBi
TMGRCi
TMGRDi
—
function
bit15
~
0
Refer to "Table 10-6
Reset
TMGRji
Register Function
in Synchronous PWM Mode".
Table 10-6 Reset TMGRji register function in synchronous PWM mode
register
Set up
Register function
PWM output pin
TMGRA0
—
General Purpose registers, the PWM period must be set.
(TMIOC0
is per
PWM.
)
Period for inverting output)
TMGRB0
—
A general purpose register where the change point of the
PWM1 output must be set.
TMIOB0T
MIOD0
TMGRC0
TMBFC0=0
(Not used in reset synchronous PWM mode).
—
TMGRD0
TMBFD0=0
TMGRA1
—
A general purpose register where the change point of the
PWM2 output must be set.
TMIOA1T
MIOC1
TMGRB1
—
A general purpose register where the change point of the
PWM3 output must be set.
TMIOB1T
MIOD1
TMGRC1
TMBFC1=0
(Not used in reset synchronous PWM mode).
—
TMGRD1
TMBFD1=0
TMGRC0
TMBFC0=1
Buffer register, the next PWM period must be set (refer to
"10.4.2 Buffer Run").
(TMIOC0
is per
PWM.
)
Period for inverting output)
TMGRD0
TMBFD0=1
Buffer register, which must be set to the next PWM1 output
change point (reference
"10.4.2 Buffer Run").
TMIOB0T
MIOD0
TMGRC1
TMBFC1=1
Buffer register, which must be set to the next PWM2 output
change point (reference
"10.4.2 Buffer Run").
TMIOA1T
MIOC1
TMGRD1
TMBFD1=1
Buffer registers, which must be set to the next PWM3 output
change point (reference
"10.4.2 Buffer Run").
TMIOB1T
MIOD1
Note if you put
the
TCK2~TCK0
position
of
the TCK0
register
"000B"
(f
CLK
,
f
HOCO
And set the comparison value to
"0000H"
to
generate
a
request signal to the
DMA
and
ELC
only after starting the count. If the comparison
value is greater than or equal to
"0001H", a request signal is generated at each time the comparison matches.
Remark
i=0, 1,j=A, B, C, D
TMBFC0,
TMBFD0,
TMBFC1,
TMBFD1:
Bits of the
TMMR
register