BAT32G1x9 user manual | Chapter 10 Timer M
354 / 1149
Rev.1.02
10.3.19
Timer M General Purpose registers Ai, Bi, Ci, Di
(TMGRAi, TMGRBi, TMGRCi, TMGRDi) (i=0, 1)
[Input capture function].
The TMGRAi~TMGRDi registers must be accessed in 16 bits, not 8 bits.
When using the input capture function, the following registers are invalid:
TMOER1, TMOER2, TMOCR, TMPOCR0, TMPOCR1
When no digital filter is used (the DFj bit of the TMDFi register is "0"), the pulse width of the capture signal input to the TMIOji
pin must be at least 3 timer M's operating clock (f CLK) cycle.
[Output comparison function].
The TMGRAi~TMGRDi registers must be accessed in 16 bits, not 8 bits.
When using the output comparison function, the following registers are invalid:
TMDF0, TMDF1, TMPOCR0, TMPOCR1
[PWM function].
The TMGRAi~TMGRDi registers must be accessed in 16 bits, not 8 bits.
When using the PWM function, the following registers are invalid:
TMDF0, TMDF1, TMIORA0, TMIORC0, TMIORA1, TMIORC1
[Reset Synchronous PWM Mode].
The TMGRAi~TMGRDi registers must be accessed in 16 bits, not 8 bits.
In reset synchronous PWM mode, the following registers are invalid:
TMPMR, TMOCRnote, TMDF0, TMDF1, TMIORA0, TMIORC0, TMPOCR0, TMIORA1, TMIORC1, TMPOCR1
Note As the initial output setting of TMIOC0 in reset synchronous PWM mode and complementary PWM mode, only the
TOC0 bit of the TMOCR register is valid.
[Complementary PWM mode].
The TMGRAi~TMGRDi registers must be accessed in 16 bits, not 8 bits.
In complementary PWM mode, the TMGRC0 register is not used.
In complementary PWM mode, the following registers are invalid:
TMPMR, TMOCR
注
, TMDF0, TMDF1, TMIORA0, TMIORC0, TMPOCR0, TMIORA1, TMIORC1, TMPOCR1
Note As the initial output setting of TMIOC0 in reset synchronous PWM mode and complementary PWM mode, only the
TOC0 bit of the TMOCR register is valid.
Since you cannot write the TMGRB0, TMGRA1, TMGRB1 registers (prohibited) directly after starting counting, you must
add TMGRD0, TMGRC1 The TMGRD1 register is used as a buffer register.
However, when writing the TMGRD0, TMGRC1, TMGRD1 registers, place the TMBFD0 bits, TMBFC1 bits, and TMBFD1
positions Write these registers after "0" (General Purpose registers). Thereafter, the TMBFD0 bit, TMBFC1 bit, and TMBFD1
position "1" (slow charge register) can be changed.