BAT32G1x9 user manual | Chapter 10 Timer M
357 / 1149
Rev.1.02
Fig. 10-36 Timer M General Purpose registers Ai, Bi, Ci, Di
(TMGRAi, TMGRBi, TMGRCi, TMGRDi) (i=0, 1) format [PWM]. Function].
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-5
TMGRji
Register
Function When Using the PWM Function".
Table 10-5 TMGRji register function when using the PWM function
register
Set up
Register function
PWM output pin
TMGRAi
—
General purpose registers, the PWM period must be set.
—
TMGRBi
—
A general purpose register where the change point of the
PWM output must be set.
TMIOBi
TMGRCi
TMBFCi=0
A general purpose register where the change point of the
PWM output must be set.
TMIOCi
TMGRDi
TMBFDi=0
TMIODi
TMGRCi
TMBFCi=1
Buffer register, the next PWM period must be set (refer to
"10.4.2 Buffer Run").
—
TMGRDi
TMBFDi=1
Buffer register, the change point of the next PWM output
must be set (see "10.4.2 Buffer Run").
TMIOBi
Note if you put the
TCK2~TCK0
position
of
the TMCRi
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
TMBFCi,
TMBFDi:
Bits of the
TMMR
register