2008-05-04 11:29 PM
2011-05-17 01:15 AM
Hello everyone,
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.2011-05-17 01:15 AM
Hi,
I advise you to consult the following Application Notes dedicated to Motor Control with ST7MC and ST72141:http://www.st.com/mcu/Literature-Motor_Control-All-none.html
Regards, Tanio2011-05-17 01:15 AM
I used ST7FMC1K2T6, to detect zero-crossing during PWM-OFF, when I set the OS[0:2] bit as 000, and the MCRB is configured as the following:
#define mem_CCW_MCRB1 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB2 ((u8)32) // HDM, falling BEMF #define mem_CCW_MCRB3 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB4 ((u8)32) // HDM, falling BEMF #define mem_CCW_MCRB5 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB6 ((u8)32) // HDM, falling BEMF the motor works well, but demagnetization is invalid, if I changed it as the following: #define mem_CCW_MCRB1 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB2 ((u8)36) // HDM, falling BEMF #define mem_CCW_MCRB3 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB4 ((u8)36) // HDM, falling BEMF #define mem_CCW_MCRB5 ((u8)112) // HDM & SDM, rising BEMF #define mem_CCW_MCRB6 ((u8)36) // HDM, falling BEMF when the motor works well at low speed, but it works abnormally at higher speed. the first step is mem_CCW_MCRB2 during FORCED commutation.2011-05-17 01:15 AM
Hello Jinbao,
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