Hello, I'm
I'm controlling the step motor with drv889 using renesas rh850 mcu.
I use the option of CTRL4 to detect overcurrents.
0x0C3A, // [6] (RW) CTRL 4 was set to LOCK:011, EN_OL = 1, OCP_MODE=0, OTSD_MODE=1, and TW_REP=0.
And if the motor pin is shorted, read STATUS with SPI and B11= OCP
0X800 and AND detect short.
It was confirmed that FAULT and OCP of FAULT Status are LATCHed to 1 when detected.
And I was able to send 0x0CBA and READ to confirm that FAULT and OCP became zero.
However, I aim to stop the motor if the short circuit of the motor occurs and reset the motor if the short circuit of the motor is removed within 10 seconds.
So I want to keep the FAULT and OCP pins down to zero by sending 0x0CBA while keeping the short of the motor pin, but this doesn't seem to work properly. Isn't it the right way to check the state of the short by continuously sending CLR_FLT while keeping the short?
Do read STATUS with SPI and B11= OCP pins show 0 if there is a continuous short regardless of CLR_FLT if 1 disappears???
If I send CLR_FLT in 0 state, does it return to operational state??
So would it be right for me to send CLR_FLT while keeping short, not to check B11= OCP, but to continuously check B11= OCP and send CLR_FLT if it's not short? I haven't tried this method yet.
I kept my short and kept sending CLR_FLT. Continuing
I'm using too much time. Please let me know if there's a better way.









