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.

DRV8311: DRV8311P: Some Issues on SPI and tSPI

Part Number: DRV8311

Hello,

I am currently using DRV8311P to control the motor

One MCU controls one DRV8311P and ultimately controls one motor. The control plan of the motor is controlled using FOC SVPWM, current loop, speed loop, and position loop. Now I have a few questions

1. DRV8311P must use tSPI, cannot SPI be used?

2. If SPI can be used, what should PWP_SYNC do? Because I am in DRV8311

3. At present, I have only found the officially provided SPI code. Do you currently have tSPI code available for reference porting? Please provide a code for tSPI

Thank you.

  • Hi Chun,

    Thank you for your question. 

    I would not recommend using SPI for a tSPI device (DRV8311P)  variant and would suggest using only the tSPI code. Although, it may be possible but there are differences in protocol/register configurations that need to be addressed, as stated in the data sheet in the image below: 

    For PWM_SYNC there should not need to be any changes from tSPI protocol with pin connected directly to MCU, unlike 8311S having the PWM_SYNC routed from MCU to INLB pin. 

    Regarding any starting code I do not believe we have example code available to provide,  but I will confirm if there are any such  resources.

    Best Regards,

    -Joshua

  • Hi Joshua

    Thank you very much for your reply

    Can you provide a timing chart for tSPI communication? A timing diagram for configuring registers for DRV8311 and a timing diagram for reading DRV8311

    Thank you.