C2000 ePWM down-count after syncronized in up-down counter
Ältere Kommentare anzeigen
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 Kommentare
Aman Banthia
am 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
am 20 Jun. 2024
Akzeptierte Antwort
Weitere Antworten (1)
Romy
am 12 Feb. 2026
0 Stimmen
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.

Kategorien
Mehr zu C2000 Microcontroller Blockset finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!