BAT32G1x9 user manual | Chapter 8 Timer B
287 / 1149
Rev.1.02
Figure 8-24 Operation example of PWM mode (1).
TBIO0 output
TBGRA register
TBGRB register
Value of TB register
(a) clear counter while TBGRA register compare matching
clear counter while compare matching A.
0000H
Time
(b)clear counter while TBGRB register compare matching
TBGRA register
TBGRB register
TBIO0 output
Value of TB register
clear counter while compare matching B.
Time
0000H
An example of a PWM waveform outputting 0% and 100% duty cycle in PWM mode is shown in Figure 8-25.
When the comparison match of the TBGRB register is set to the clear source of the counter and the following
conditions are met, the duty cycle of the PWM waveform is 0%.
•
The setting value of the TBGRA register > the setting value of the TBGRB register
When the comparison match of tbGRA registers is set to the clear source of the counter and the following
conditions are met, the duty cycle of the PWM waveform is 100%.
• The setting value of the TBGRB register > the setting value of the TBGRA register
When the following conditions are met, the output value is unchanged even if a comparison match occurs.
• Setting value of TBGRA register = setting value of TBGRB register