Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE
I am working on a 14400 Hz, 3-phase pwm using the TMS320F280049C to generate a 400 Hz sine wave. I am a beginner in firmware programming and have gone through the workshop and some examples. I am using code from the C2000Ware ePWM example called epwm_ex11_configure_signal. I am now trying to change the pwm periods to vary as to be passed through a filter to produce the sine wave. I believe this is to be done in an ISR but I am not sure. I planned to alter the EPWM_SignalParams object based on a counter which uses a clock to make these changes every 70us. I am having trouble finding how to set up the counter and alter the duty cycles according. The duty cycle values will be stored in a look up table and passed through the EPWM_SignalParams constructor and then used with the EPWM_configureSignal() function but I was getting an error saying the parameters of the constructor had to be constant. Any help would be greatly appreciated.