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.

DRV8912-Q1: SPI daisy chain read and write

Part Number: DRV8912-Q1

Hi Team,

Customer used stm32f103vct6 to control 3 DRV8912 chips through daisy chain. When the sleep pin was set to 1, the fault light will light up. He tried turning off the open circuit detection but still no response. The customer considered this to be a SPI reading and writing problem. 

When operating the DRV8912 register, did he only need to pull the nSCS pin low, wait for 8 bytes of transmission to complete, and then pull it high?The customer's understanding is that nSCS needs to be given a pulse signal to start reading and writing.

When reading and writing DRV8912 through SPI, can full-duplex mode be used or can only half-duplex mode be used? Especially when daisy chained.

According to the SPI communication protocol, in full-duplex mode, reading and writing are performed simultaneously. When he sends the first header byte (HDR1), can he receive the status bit (S3), or does he have to wait for 8 bytes to be sent and then send a null byte to receive the data?

Regards,

Annie

  • Hi Annie,

    Thank you for posting this question. 

    "When operating the DRV8912 register, did he only need to pull the nSCS pin low, wait for 8 bytes of transmission to complete, and then pull it high?The customer's understanding is that nSCS needs to be given a pulse signal to start reading and writing.". The nSCS must not be pulsed to start reading or writing. Like you mentioned nSCS normally must be set high. It must be pulled low for start of transaction and after all bytes in the packets (8-bytes) are sent nSCS must be set back to high. See below.

    "When reading and writing DRV8912 through SPI, can full-duplex mode be used or can only half-duplex mode be used? Especially when daisy chained." 4-wire SPI is always full-duplex. While SDI clocks in data to the DRV8912 the SDO simultaneously clocks out data. See below.

    "According to the SPI communication protocol, in full-duplex mode, reading and writing are performed simultaneously. When he sends the first header byte (HDR1), can he receive the status bit (S3)...." Yes this is correct. If the customer is using an SPI peripheral in the MCU that is correctly configured this will happen automatically.

    We have provided the EVM source code (for MSP430) that can be downloaded from the EVM folder. Customer can use this as reference. 

    Regards, Murugavel