My goal is to implement a high speed control loop on the TMS320F28377S microcontroller. The reference input to the controller will be a sine wave. Therefore I have four ime critical tasks:
1)Calculate sine input
2)Run Controller
3)Assign new controller output to PWM
4)Data filtering
Currently I am running tasks 1,3, and 4 in the main CPU ISR and task 2 on the CLA. I'm interested in moving tasks 1 and 3 to the CLA to increase the speed of my control loop. Is it possible to write register values (specifically the CMPA value of the ePWM peripheral) from the CLA. What are the steps involved in this?
For the reference signal generation, is it possible to run the SGEN module from the CLA. That is what I am currently using in the CPU. If not, what are the differences between the SGEN module and the CLAMath library. It seems like they have similar capabilities, so I could simply use the CLAMath library and write my own signal generation block.
Thanks,
Matt