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.

PMSM sensorless FOC ISR



Hi,

How to select the ISR freq and associated processor clock speed in FOC ?

 My motor is rated for 200V , 200Hz

What is the purpose of offset ISR in PMSM sensorless FOC example code ?

Why is main ISR is called inside offset ISR?

Rgds,

Dijo

  • The ISR freq can be selected in -settings.h file. Processor speed is selected based on your selected device. It should be taken care of already.

    The offset ISR is used to identify the current fbk offset when there is no current. This value will be subtracted from sampled value when the current flows through, and it will be able to sense out bipolar data representing the current.

    Both offset ISR and main ISR are supposed to be called at the ISR rate. Initially offset ISR is called. After the offsets have been identified, the ISR vector is changed to call main ISR.

    rgds,
    ramesh