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.

TMS320F28069 SPI Communication

Other Parts Discussed in Thread: LAUNCHXL-F28069M, DRV8301, BOOSTXL-DRV8301

Hi,

I am trying to use the BOOSTXL-DRV8301 with a LAUNCHXL-F28069M to create a SPI communication with DRV8301 and a temperature IC (ADT7310). At the moment I am trying to figure out how to modify the "proj_lab03c" project in order to control a motor while receiving information from the ADT7310. The ADT7310 and the DRV8301 will be on the same SPI (SPIB).

After spending a bit of time trying to find in the code where the Chip Select GPIO is driven low or high to enable the communication with the DRV8301, I still can not find it.

Can you help me to understand why?

Regards,

  • Hi Maxime,

    I haven't used this specific project.  However, in the C2000, the SPI peripheral directly controls the CS (SPISTE) pin whenever data is put into the data buffer.  This is why you don't see the CS controlled directly.

    If you want to have a temp sensor and the DRV working at the same time, I have a few thoughts:
    1) have them use different SPI ports.  You've mentioned that this isn't what you're thinking
    2) have your two SPI slaves share SPISIMO, SPISOMI and SPICLK.  Allow the DRV to have the SPISTE pin that it currently has.  SPISTE for SPIB will also show up somewhere else in the GPIO mux.  When you wish to use the temp sensor, you change the SPISTE for the DRV to a GPIO output outputting high.  And then change the signal that control CS for the temperature sensor from a GPIO outputting high to being the SPISTE (controlled by the peripheral).
    3) it won't be feasible to have the two slaves share all 4 SPI signals.

    Hopefully this helps!


    Thank you,
    Brett