who configured the OSC(0~2) bits of register MCRB to accelerate the current demagnetizaiton successibly? May you share your successive experience? now whether I configure it, the motor run abnornally, if I set PWM on the high side by OSC2, it works well, but the demagnetization time is so long.
I have used the following configuration #define mem_CCW_MCRB1_SCM ((u8)80) // SDM, rising BEMF #define mem_CCW_MCRB2_SCM ((u8)20) // SDM, falling BEMF + PWM LOWSIDE #define mem_CCW_MCRB3_SCM ((u8)80) // SDM, rising BEMF #define mem_CCW_MCRB4_SCM ((u8)20) // SDM, falling BEMF + PWM LOWSIDE #define mem_CCW_MCRB5_SCM ((u8)80) // SDM, rising BEMF #define mem_CCW_MCRB6_SCM ((u8)20) // SDM, falling BEMF + PWM LOWSIDE I have used only Software demagnetization of 340us and it worked ok. It is possible that when it is set the HDM the microcontroller miss the demagnetization event? Best regards Gigi