C2000 ePWM down-count after syncronized in up-down counter
Show older comments
I want to make two PWM module that the counting direction is reverve as picture bellow.
- ePWM 1 is start counting Up-down-Up,
- ePWM 2 is start counting at Down-up-Down.
I set the PWM module syncronized = zero, without any Phase shifted (TBPHS=0). However, i can not get the desured result.
with kindly, need assistance for set this ePWM matter.


2 Comments
Aman Banthia
on 18 Jun 2024
You have set the counting mode to 'Up-Down' in both the ePWM Block Parameters. Changing that might help you get the desired result.
Arifin
on 20 Jun 2024
Accepted Answer
More Answers (1)
Romy
on 12 Feb 2026
0 votes
Hi The syncronization action seems to be in counts, not in degress.
The documentation explains values from 0 to 360, but when I try that it does not work accordingly. Instead, I have observed that it works in terms of counts. My timer Period is 300 to achieve 200KHz PWM using 120MHz CPU core, and ePWM prescaler of 1. Then when I changed the phase larger than 300, I see 0 Duty cycle in my PWM, I only see a phase shift when the value is within 0 to 300.

Categories
Find more on C2000 Microcontroller Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!