Hi, my name is Iulian Popa.
I´m a student from Univerity of Zaragoza in Spain. Im using one of your development board 'LAUNCHXL-F280049C' and I have some questions and problems when I´m trying to control some PWM signals.
First of all, Im using:
- CodeComposer version 9.3
- C2000Ware version 3.1.0.00
My problem is related to the use of high-resolution phase shift. With the configuration of the different modules and PWM outputs I can perform a phase shift between the PWM outputs using the function "EPWM_setPhaseShift(EPWMX_BASE, xxxU);" and I can also perform a high-resolution variable phase shift of all PWM signals. The concrete problem is that I am not able to perform a variable phase shift by making the registers "EPwmXRegs.TBPHS.bit.TBPHS" change within the "main loop" or even during the program execution.
Summarizing:
- I can configure the ePWM modules to synchronize and offset only with the own configuration
- I manage to configure the MEP and HRPWM registers for this functionality to work properly.
- I do not understand what I have to do to be able to do the EPWM_setPhaseShift(EPWMX_BASE, xxxU); inside the main loop to get a phase shift that varies (because I can only get the phase shift that I put inside the configuration). Can I write this register once the program is running? Do I have to do something special to be able to write this register
I hope you understand my question/problem :D
A greeting. Iulian