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.

DRV8711: Motor driver control using SPI

Part Number: DRV8711

I have a product board that was designed without connections to the step & dir pins, so we are using the spi registries to control the motor with C++ code.  I have two questions:

1) Does anyone have a library or example that will do this properly, while allowing for setting ramps, profiles, etc.? 

2) Is there any longevity drawbacks to writing the registry rather than the step/dir pins?

  • Hi Andrew,

    1) Does anyone have a library or example that will do this properly, while allowing for setting ramps, profiles, etc.?

    >>> None that we are aware of, but others may be able to point you to them. In general, a library that generates the STEP pin could be modified to create an interrupt instead. The interrupt would then be used to send a STEP signal to the device via the SPI.

    2) Is there any longevity drawbacks to writing the registry rather than the step/dir pins?
    There are none. There can be interrupt latencies that could affect the step to step timing. Also, the SPI clock frequency may limit the STEP frequency below the desired rate.