Generating SPWM within ADC Interrupt on F28069M Launchpad Problem
7 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I am having a trouble using embedded coder for automatic code generation. I am using the C2000 TI F28069M launchpad board and planning to run three level SPWM on it. So far when the "SPWM model" is placed outside any block or subblock, the generated code runs on a timer interrupt at the frequency specified on the sine wave block and the generated PWM pulses seem okay. However when I put the "SPWM model" inside the ADC Interrupt (triggered by ePWM module at 30KHz), then the pulses are not okay. I've been checking the generated code and the only difference seems to be on the sine computation. Other thing Im changing inside the ADC Interrupt is the sine wave block sample time as inherited and I have configured the model to run at discrete time of 1/30e3.
Please any help on this, as I would like to run the SPWM inside the ADC interrupt.
Thanks
Rolando
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!