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: Implementation of Motor Drive for PMSM using FOC

Part Number: TMS570LC4357
Other Parts Discussed in Thread: MOTORWARE, TMS570LS3137

Hello All,

I am exploring the implementation of FOC motor drive in TMS570LC4357. My design emphasize is off load CPU as much as I can.

so thinking of  assigning PWM, ADC trigger and eQEP trigger to N2HET module. FOC implementations part of CPU. When FOC is implemented in CPU,

Can I generate PWM using value calculated in CPU in N2HET? Can I Assign ADC and QEP trigger event to N2HET1/N2HET2?.

if anybody did this kind of implementation, Please provide your suggestion/Comments?

  • Hi Rajesh,

    Yes, this is certainly possible using the high-end timer module on the TMS570 parts. The HET is an independent programmable timing co-processor that is configured by the main Cortex-R5F CPU.

    There are several "hooks" designed into these parts that allow for tight synchronization of the timings to trigger ADC conversions with respect to the PWM phase. You can also implement a quadrature encoder interface using the HET, so that is also synchronized with the same time base.

    Please follow the following sequence to download an example implementation. Note that this is an example only and is largely unsupported:

    - Download Hercules motorware from: 

    - Download a patch update from: 

    The examples for TMS570LS3137 are done entirely using the HET module (this part does not have the ePWM and eQEP peripherals). You can use this implementation as a reference.

    Regards,

    Sunil