C2000 ePWM down-count after syncronized in up-down counter
Afficher commentaires plus anciens
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 commentaires
Aman Banthia
le 18 Juin 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
le 20 Juin 2024
Réponse acceptée
Plus de réponses (1)
Romy
le 12 Fév 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.

Catégories
En savoir plus sur Texas Instruments C2000 Processors dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!