cancel
Showing results for 
Search instead for 
Did you mean: 

L9963E direct SPI mode with SPC574S controller and their endianness query

VP.6
Associate II

We have a BMS board with SPC574S64 Controller and L9963E as BMS IC

I am trying to communicate with the BMS IC via Direct/Normal SPI mode

I have done the necessary HW connections properly and ensured the SPI lines are proper.

Now I have a question:

1. the SPC574S64 controller is Big endian and the L9963E is little endian as per the data sheets registers how they were represented

I have captured the SPI sequence via logic analyzer, I am trying to send the broad cast frame with data as 

0xC0040C1040

           C0 04 0C 10 40

Byte    4    3    2   1   0

As the LSB [40] shall be the first/zero th  byte on the bus and MSB [C0] shall be the last one to go the bus

This is how the data looks on the bus

VP6_0-1687091495588.png

Please let me know if this understanding and observations are correct as per the endianness of both the controllers

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Max VIZZINI
ST Employee

Please check BMS example in latest AutoDevKit Studio www.st.com/autodevkitsw 

View solution in original post

1 REPLY 1
Max VIZZINI
ST Employee

Please check BMS example in latest AutoDevKit Studio www.st.com/autodevkitsw