cancel
Showing results for 
Search instead for 
Did you mean: 

L6482 GetStatus command

Dan_ST
Associate

Hi all, I'm using a L6482H on a PCB with STM32F439VIT6 to drive a stepper motor.

MCU and driver are connected via SPI.

I have an issue with the GetStatus command; when the switch input on the L6482H is closed and the driver receives a GetStatus command, sometimes it moves the stepper motor to order to open the switch input.

It does not move the motor everytime, but sometimes it happens. I tested this behaviour by repeatedly sending the GetStatus command with the switch closed (200 ms between every command).

If the MCU send a MOVE command and ask the Status continously to test the "Busy" flag, the drive sometimes moves incoerently. It seems to happen when the Status is asked with the switch closed.

Is there any relation between the GetStatus and the Switch input? I configured the drive to don't use the switch as "HARD STOP" interrupt (SW_MODE = 1 in CONFIG register) and the ALARM_EN mask the external switch condition

 

Thank you for the support.

0 REPLIES 0