BAT32G1x9 user manual | Chapter 10 Timer M
382 / 1149
Rev.1.02
An example of how TBGRCi and TMGRDi are used for output control of the TMIOAi pin and TMIOBi pin,
respectively, is shown in Figure 10-52.
Figure 10-52 uses tMGRCi and TMGRDi for examples of operation when using output control of the
TMIOAi pin and TMIOBi pin, respectively
TMi
寄存器的值
TMIOAi output
IMFC bit of
TMSRi register
TMIOBi output
TMSRi
寄存器的
IMFB
位
IMFD bit of
TMSRi register
IMFA bit of
TMSRi register
IMFC bit of
TMSRi register
Initial output
L
voltage level
inverted phase output
while compare matching
set to 0 via program
set to 0 via program
set to 0 via program
set to 0 via program
inverted phase output
while compare matching
Initial output
L
voltage level
value in Tmi register
counting source
Time
Note: i=0,1
m: The setting value of the TMGRAi register
n: The setting value of the TMGRBi register
p: The setting value of the TMGRCi register
q: The setting value of the TMGRDi register
The conditions in the above figure are as follows:
The CSELi bit of the TMSTR register is "1" (TMi does not stop when the comparison matches).
The TMBFCi bits and TMBFDi bits of the TMMR registers are "0" (TMGRCi and TMGRDi do not operate as buffers).
The EAi bits of the TMOER1 register, the EBi bits, and the ECi bits are "0" (allowing the outputs of TMIOAi, TMIOBi, and
TMIOCi).
The CCLR2~CCLR0 bits of the TMCRi register are "001B" (when the TMGRAi comparison matches, the TMi position is
"0000H").