Timer in One-Pulse Mode. All pulses has to end at the same time?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-11-11 4:20 AM
Posted on November 11, 2014 at 13:20
I am programming on the STM32F429 and using a timer in one-pulse mode. I measure the two pulses I have generated on an oscilloscope and they behave like expected.
What I want to do now is keep the pulse timeconstant, but be able to change the delay before the pulse is activated.In PWM mode 2 this can be done by setting the PWM pulse time (delay) and the auto-reload register (pulse) (the pulse duration is pwm pulse time subtracted from the auto-reload register).This work as I want, but the problem is when I introduce a new channel with a different PWM pulse time (delay) the pulse will not have the same duration... This because the auto-reload register works on the entire timer.Is there any way to solve this using one-pulse mode? I see I can probably solve this using output compare, but it would not be as elegant and I am curious if one-pulse mode can solve this.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-11-11 10:44 AM
Posted on November 11, 2014 at 19:44 Why not just use another timer? You should be able to achieve the effect that way.
