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.

TMS570LC4357: Using N2HET to drive FOC, is it supposed to use interrupt to dynamically generate sine pwm by CPU?

Part Number: TMS570LC4357

I'm trying to build a FOC esc driver with TMS570LC4357.

Although I have seen SPNA217 and SPNA220, but they are not exactly what I want.

For FOC the generated sine wave data will be dynamic according to data measured by ADC. So should I use an interrupt generated by some N2HET instruction (ECMP, for example) to call CPU to compute that value on the fly?

  • My understanding is that the PWM consists of varying the duty cycle at a fixed frequency for FOC to adjust the voltage within the desired target value. The PWM duty cycle is adjusted using the ADC value. To convert the WM signal to sine wave, an external low pass filter is needed as described in SPNA217.