cancel
Showing results for 
Search instead for 
Did you mean: 

VN9D5F20F SPI error problem

FPros.1
Associate III

Hi everyone,

I am implementing the communication between MCU SPC582B and High side driver VN9D5D20F.

 

SPI signals seem fine to me, see next image:

FPros1_0-1707317718252.png

Spi Clk frequency = 625kHz  (range is 0Mhz to 8Mhz)
CS transaction time = 71us
Time between bytes = 7us

Transaction 1 = read CTRL (en = 1, parity = 1, GSBN = 1)
Transaction 2 = read SOCR (all zeroes, GSBN = 1)
Transaction 3 = GSB = 20h (SPIE = 1)

 

On the third transaction, I can't understand why reading SOCR register cause the driver to throw the SPI error (clk count is adequate and SDI is not stuck.

I can't figure out what I am doing wrong.

 

Any help would be very much appreciated.

 

Thanks,

FP

 

1 ACCEPTED SOLUTION

Accepted Solutions
FPros.1
Associate III

I was not specifying correctly the parity bit during transmission.

The parity bit had to be computed based on the first 23 bit of the frame.

Regards,

FP

View solution in original post

1 REPLY 1
FPros.1
Associate III

I was not specifying correctly the parity bit during transmission.

The parity bit had to be computed based on the first 23 bit of the frame.

Regards,

FP