Skip to main content
phenom
Associate III
May 8, 2019 9:56 AM UTC
Question

How to combine two PWM pulses along with a delay in between?

I am using stm32756G eval board. I want to generate a pattern of two PWM pulse along with a delay. Example: A pulse of 1Khz + delay (milliseconds) + A pulse of 1Khz

I am able to generate a PWM pulse of 1Khz.

Is there any example for that in stm32cubef7?

Please guide me on how to generate such a pattern.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 8, 2019 10:02 AM UTC

The Advanced and some of General purpose timers in the 'F756 have a Combined PWM mode, which allows you to output a phase-shifted pulse at the cost of using two channels. Read the Combined mode subchapter of timers chapter in Reference Manual.

JW

phenom
phenomAuthor
Associate III
May 8, 2019 10:15 AM UTC

Thanks.

Is it possible to generate such a pattern using a single channel?