This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280049C: Example code for solenoid drive

Part Number: TMS320F280049C
Other Parts Discussed in Thread: DRV110, INA180

I want to use one C2000 for both speed control of a motor and solenoid control. I'm planning to replicate functionality provided by DRV110, but with either peak or average current control instead of hysteretic. Current sense will be from analog CSA like INA180. What example code would you recommend starting with for accomplishing the solenoid control without impacting motor drive loop?