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.

DRV8316C-Q1: SPI write not working but read is OK

Part Number: DRV8316C-Q1
Other Parts Discussed in Thread: DRV8316

I am implementing C driver for the DRV8316C but I am facing issue with the SPI write.

By performing a read of all the registers, I get the following values : 

IC Status : 0x00

Status register 1 : 0x00 

Status register 2 : 0x80  --> weird thing here is that the reserved bit7 is at 1 but should be 0 (reserved read only)

Control register 1 : 0x00

Control register 2 : 0x60

Control register 3 : 0x46

Control register 4 : 0x10

Control register 5 : 0x00

Control register 6 : 0x00

Control register 10 : 0x00

Now if I want to do a write into the Control Register 2 to set the mode to 3xPWM :

[READ CTRL REG2]

 

[WRITE CTRL REG2]

[READ AFTER WRITE]

After this sequence of READ, WRITE, READ, the register remains unchanged.

Do you see any problem in this SPI communication ? Any clue ? 

Thanks a lot for your help !!