BAT32G1x9 user manual | Chapter 10 Timer M
404 / 1149
Rev.1.02
Figure 10-64 Example of operation when the TM0 and TMGRA0 registers in the
complementary PWM mode are matched
TM0 register
counting value
configure value
m of TMGRA0
register
IMFA
bit of
TMSR0
register
TMGRB0
register
TMGRA1
register
TMGRB1
register
this is the scenario while CMD1 and CMD0
bit of TMFCR register as "11B" (transmission
between buffer register to general regsiter
while TM0 and TMGRA0 compare matching)
set to 0 via program
transmit data fom buffer
register
do not transmit data from buffer
register
remain unchanged
Time
•
When changing from a decreasing count to an increasing count, TM1 performs a count of
1
0
FFFFH
0
1.
When performing a decrement count of 1
0
FFFFH, the UDF bit of the TMSRi register becomes "1".
When the CMD1 bit and CMD0 bit of the TMFCR register are "10B" (complementary PWM mode, in
TM1 Transmit buff er data when underf low occurs), the contents of the buffer registers
(TMGRD0, TMGRC1, TMGRD1) are transferred to the General Purpose registers
(TMGRB0, TMGRA1, TMGRB1)
。
When performing an increment count of FFFFH
0
1, the data is not transferred to registers such as
TMGRB0, and the OVF bit of the TMSRi register is unchanged.
Figure 10-65 Example of operation when TM1 underflow occurs in complementary PWM mode
TM0 register
counting value
UDF
bit of
TMSR1
register
OVF
bit of
TMSR1
register
this is the scenario while CMD1 and CMD0 bit
of TMFCR register as "10B" (Buffer register-to-
general-purpose register transfer when TM1
underflows)
TMGRB0
register
TMGRA1
register
TMGRB1
register
transmit data fom buffer
register
do not transmit data from buffer
register
set to 0 via program
remain unchanged
Time