AnsweredAssumed Answered

Desaturation Error 

Question asked by chding ding on Jun 19, 2018
Latest reply on Jun 26, 2018 by MATEJ PACHA

Hi,

I download the source code from NXP website,

 

so as to motor can be started,  at first  #define ADVANCE_ANGLE  FRAC16(0.4815), 

and another macro define :#define ADVANCE_ANGLE1 FRAC16(0.08),

when the motor speed reach the certain speed, i want to let the motor‘s speed much faster,so we will let advanceAngle decrease ,judge

if(advanceAngle>ADVANCE_ANGLE1)
   advanceAngle-=2;

when ADVANCE_ANGLE < 0.12 , GDUDSE ERR will appear.

i don't know where is wrong, and how to correct it.

below figure is my Schematic,

Outcomes