How can i generate a master PWM that can vary from 1 to 70% of duty cycle and other 2 PWM with 50% but all with same frequency?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-31 3:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-10-31 6:24 PM
Take a timer with at least 3 channels.
How many steps for duty cycle will be the minimum overflow period. Say 100 for 1% increment. Set Timer clock x 100 to be the desired frequency, then set each channel compare to the desired duty cycle and activate the pwm generation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-01 3:40 AM
But I want to make a phase shift from the other two PWM that are 50% duty cycle and complementary one with each other. I want to vary the first PWM independent from the other and want to phase shift. I don´t know how to put this in code to change the value of phase shift.
