This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV8889-Q1: Status register

Other Parts Discussed in Thread: DRV8889-Q1

Hi ,

  In my project I am suing drv 8889 driver to connect stepper motor. I need to access the status register especially Fault and Diagnostic 2 register .But while reading these register I'm always getting a value 0×84 and 0×18 ,indicates motor stall condition. Could you please let me know why always getting stall condition flag even if the motor is in running condition. 

And also we have tested the motor under temperature (-10).But the UTW is not changing to high.

Please clear my doubts 

Thanks & Regards 

Abhitha

  • Abhiitha,

    Are you using your own board and microprocessor or EVM?  If you are using your own board, please send scope capture of the 4 SPI signals to verify what you are reading.  We have seen many times that timing issues result in incorrect data. Only way to verify is with scope captures.

    Also, what is the stall threshold set at?  If you change the threshold to a very low level, do you still get the fault?  

    Regards,

    Ryan

  • Ryan ,

    Thank you so much for your response .

    We are using our own board and microprocessor . I will try to provide you the scope capture of SPI signals.

    These are the setting that I have used in my project .Please verify and give your suggestions .

    Value of the CNTRL_1 register - 0xB3 

    Value of the CNTRL_2 register -0x0F     

    Value of the CNTRL_3 register -0x08     

    Value of the CNTRL_4 register -0x39     

    Value of the CNTRL_5 register -0x38     

    Value of the CNTRL_6  register -0x60     (STALL_TH)

    And also please let me know the flag status below -25degC. Since our operating temperature range goes down to -40degC.

    Waiting for your response .

    Regards ,

    Abhitha E

  • Abhitha,

    It is a US holiday today.  I will respond in 24 hours.  Please help with SPI signals if you are able.

    Regards,

    Ryan

  • Abhitha,

    Less than -25C should indicate and UTW.  -10C is just a typical.  Minimum per datasheet is -25C.  

    For stall, are you getting nFAULT = LOW.  Based on your register setting, if it is a real stall, you should see this.  Also, bit 5 in CTRL5 is the stall learn. On a successful learn, this will go back to "0".  Does it ever read "0"?  

    Regards,

    Ryan

  • Thank you Ryan ,

    Yes I'm getting STL_LRN=0 in CNTRL5 register and nFault =Low also , But the STL and STALL is not updating properly . Sometimes the STL and STALL are setting ONE even if the motor is in running condition .

  • Abhitha,

    Have you tried adjusting the threshold as I proposed before?  It might be that the "learned" value is too high and causing stall even under running conditions.

    Regards,

    Ryan

  • Abhitha,

    The motor can keep running when the host controller keeps sending STEP pulse to DRV8889-q1. 

    Please send the register value when you think it is wrong. 

    Regards,

    Wang Li

  • Hi Ryan , Thank you for your support . Stall flag is setting properly now since I have changed the STALL_TH . The under temperature flag yet to test and confirm

    Regards ,

    Abhitha E

  • Abhitha,

    Thank you for the response.  I will close it for now.  If you see issue with under-temp flag, please re-post and it will open back up on our end.  If thread is locked, you can choose the "ask a related question" button.

    Regards,

    Ryan