Tool/software:
Hello,
I am implementing a design with the DRV8434S and I am attempting to do all of the control for the chip through the SPI bus. I've come across an odd phenomenon when writing to the CTRL3 register. When attempting to spin the motor CCW the first step with the DIR field set to 1 spins the motor CW, though all subsequent writes step the motor CCW as expected. I've recreated this phenomenon on two separate drivers and two separate motors.
For example, for the following SPI writes to CTRL3 (address 0x05) I see the following:
0x30 |
Motor doesn't spin (correct) |
0xF0 | Motor spins CW (incorrect) |
0xF0 | Motor spins CCW (correct) |
0xF0 | Motor spins CCW (correct and continues for all subsequent writes). |
I see similar behavior as well if it try to change directly from CW rotation to CCW rotation.
0x70 |
Motor spins CW (correct) |
0xF0 | Motor spins CW (incorrect) |
0xF0 | Motor spins CCW (correct) |
0xF0 | Motor spins CCW (correct and continues for all subsequent writes). |
Looking at the SPI bus directly, I don't see any problems obvious problems with the timing or the frame formatting. Any insight into what could be causing this would be welcome. Thanks!