BAT32G1x9 user manual | Chapter 10 Timer M
386 / 1149
Rev.1.02
(1)
Operation example
Figure 10-54 Example of operation of the PWM function
TMIOBi output
TMIOCi output
TMIODi output
IMFB bit of
TMSRi register
IMFA bit of
TMSRi register
IMFC bit of
TMSRi register
IMFD bit of
TMSRi register
counting source
value in Tmi register
initial output "L"
voltage level before
compare matching
initial output "H"
voltage level before
compare matching
initial output "L"
voltage level before
compare matching
"L" voltage valid
"L" voltage invalid
"H" voltage invalid
"H" voltage invalid
set to 0 via program
set to 0 via program
set to 0 via program
set to 0 via program
Time
"H" voltage valid
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 T MGRDi register
The conditions in the above figure are as follows:
The TMBFCi bits and TMBFDi bits of the TMMR registers are "0" (TMGRCi and TMGRDi do not operate
as buffers).
The EBi bit and ECi bit of the TMOER1 register are "0" (the output of TMIOBi and TMIOCi is allowed).
The TMOCR registers TOBi bits and TOCi bits are "0" (invalid level) and TODi bits are "1" (effective
level).
The TMPOCRi register has a POLB bit of "1" (the "H" level is active), and the POLC bit and THE PLN bit
are "0" (the "L" level is active).