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.

DRV8711EVM: SPI Sample Code

Part Number: DRV8711EVM
Other Parts Discussed in Thread: DRV8711

Hi,

Is there any basic example code demonstrating SPI control for the EVM? I seem to find lots of great information and love out there for the 8711 Boost, but not the EVM; this has left me feeling a bit of buyers remorse. Ideally I'd like a basic script that:

(i) initializes a connection to the MSP40 via SPI

(ii) sending modifications from default values in register (i.e. set 1/2 step vs 1/4 step; direction, etc)

(iii) triggers nSleep to high

(iv) initiating/updating motion instructions (i.e. X PPSPS acceleration to YPPS, decelerate to zero and change direction)

(v) disengages motor setting nSleep to low and closes out connection

I've got everything running fine via the GUI, have a general understanding of the register map - but after a good deal of reading on here I've just not come across a simple way to run a scripted set of motions. Having a basic script as a jumping off point would make this all drastically easier.

Thanks!

-David

 

  • Hi David,

    Can you clarify what you mean by SPI control of the EVM?

    The PC GUI sends USB commands to the EVM which are converted to UART commands that sent to the MSP430. The MSP430 then controls the DRV8711 based on the commands received.

    The EVMs were developed to highlight operation of the device using a GUI, but not intended to integrate into a system. The EVMs do have the ability to either reprogram the mcu, or disconnect the mcu and connect using another mcu.
  • So there is no easy way to send a series of commands to the EVM outside of the provided GUI or by-passing the MCU and using an alternative MCU?
  • Hi David,

    That is correct. It can be done but there is no documentation.

    The USB transactions must be captured to interpret the commands that are sent to the USB to UART. The USB transactions can be deciphered and sent from another program.