Detect the motor is blocked by the OCD flag
Hello,
I thought to use the OCD flag of the L6474 STATUS register to detect the end of the mechanism’s motion when the stepper motor is blocked.
But we have some trouble doing this.
If the current in the OCD_TH is less than the current in TVAL, the OCD flag is set at the beginning of the motion.
If the current in the OCD_TH is greater than the current in TVAL, the OCD flag is never set when the motor is blocked.
Do you think it is possible to detect when the motor is blocked by using the OCD flag and the OCD_TH register.
Thanks for any advices
