C2000 ePWM down-count after syncronized in up-down counter
Mostrar comentarios más antiguos
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 comentarios
Aman Banthia
el 18 de Jun. de 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
el 20 de Jun. de 2024
Respuesta aceptada
Más respuestas (1)
Romy
el 12 de Feb. de 2026
0 votos
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.

Categorías
Más información sobre C2000 Microcontroller Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!