Pulse Width Modulation Mode; Figure 68. One Pulse Mode Timing Example; Figure 69. Pulse Width Modulation Mode Timing Example - STMicroelectronics ST72361 Auto Series Manual

8-bit mcu for automotive with flash or rom, 10-bit adc, 5 timers, spi, linsci
Table of Contents

Advertisement

8-bit timer (TIM8)

Figure 68. One pulse mode timing example

Figure 69. Pulse width modulation mode timing example

13.3.6

Pulse width modulation mode

Pulse Width Modulation (PWM) mode enables the generation of a signal with a frequency
and pulse length determined by the value of the OC1R and OC2R registers.
Pulse Width Modulation mode uses the complete Output Compare 1 function plus the
OC2R register, and so this functionality can not be used when PWM mode is activated.
In PWM mode, double buffering is implemented on the output compare registers. Any new
values written in the OC1R and OC2R registers are taken into account only at the end of the
PWM period (OC2) to avoid spikes on the PWM output pin (OCMP1).
Procedure
To use pulse width modulation mode:
134/279
IC1R
F8
COUNTER
ICAP1
OCMP1
Note: IEDG1 = 1, OC1R = D0h, OLVL1 = 0, OLVL2 = 1
FC
COUNTER E2
OCMP1
compare2
Note: OC1R = D0h, OC2R = E2, OLVL1 = 0, OLVL2 = 1
Doc ID 12468 Rev 3
F8
FC
FD
FE
OLVL2
FD
FE
OLVL2
ST72361xx-Auto
D3
D0
D1
D2
FC
D3
OLVL1
compare1
D0
D1
D2
E2
OLVL1
compare1
compare2
FD
OLVL2
FC
OLVL2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST72361 Auto Series and is the answer not in the manual?

Table of Contents