BAT32G1x9 user manual | Chapter 10 Timer M
313 / 1149
Rev.1.02
Chapter 10 Timer M
10.1 Function of timer M
Timer M has the following 4 modes:
•
Timer mode
-
The input capture function is triggered by an external signal to take the count value to the register.
-
The output comparison function detects whether the count value and the register value are the same
(the output of the pin can be changed at the time of detection).
-
The PWM function continuously outputs any pulse width.
The following 3 modes use the PWM function:
•
Reset Synchronous PWM Mode This is a mode that outputs sawtooth wave modulation with no dead time
three-phase waveforms (6).
•
Complementary PWM mode This is a mode of output triangular wave modulation with dead time three-
phase waveforms (6).
•
PWM3 mode This is the mode of outputing the same-period PWM waveform (2).
In timer mode, timer M0 and timer M1 have equal input capture functions, output comparison functions, and
PWM functions, which can be selected at each pin and can be used in combination in timer M0 and timerM1.
Reset synchronous PWM mode, complementary PWM mode, and PWM3 mode output waveforms via a
combination of counters and registers from timer M0 and timer M1, with pin function depending on the operating
mode.
Timer M has 4 input/output pins.
The operating clock of timer M is f
CLK
or f
HOCO
.