Hello,
I’m implementing space vector modulation algorithm for PMSM. I need few things to implement on microcontroller are as follows
- Reference vector – magnitude and phase angle
- Integration of HET IDE generated ‘C ‘code to code composer.
1. Reference vector – magnitude and phase angle
I will receive signal from gas pedal. It will be having some DC voltage. How should I create reference vector in the form of magnitude and phase angle?
2. Integration of HET IDE generated ‘C ‘code to code composer.
For this algorithm, I need 6 centre aligned PWMs out of this 3 inverted + 3 non inverted. I created all of these using HET IDE. If I export this code to code composer studio, it will be HEX code values. But for real time implementation part, I’m implementing in ‘C’ code. How to integrate HEX values to ‘C’ code for ex. to change /update duty cycle during run time. There are already some functions like pwmsetduty etc. Is it possible to use them ?
Thank you in advance.
Regards,
Suyog