change pulse width
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-25 2:08 PM
Hi there
MCU:STM32F429.
I have a signal like in the picture below.(input to MCU)
I want to change one of it's pulses width and send it to the output.
Is it possible to do it with timer peripheral?
- Labels:
-
STM32F4 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-25 7:56 PM
Changing the CCRx register will change the duty cycle. With preload enabled (OCxPE bit), you would wait for an update, change CCRx to the new value, wait for another update, then change CCRx back. It's doable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-27 12:48 PM
thanks for quick reply.
I want to know if i can do it without coding.
I have a synchronization clock.
Can I use the clock as ETR and the signal as a trigger?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-27 12:55 PM
Your description is light on details, but I don't think you're going to get very far if your requirement is no coding.
If you want a long pulse, then some short pulses, then another long pulse, in a uniform pattern, possible this can be done with DMA.
