2024-02-07 07:03 AM
Hi everyone,
I am implementing the communication between MCU SPC582B and High side driver VN9D5D20F.
SPI signals seem fine to me, see next image:
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
Solved! Go to Solution.
2024-03-03 05:47 AM
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
2024-03-03 05:47 AM
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