Skip to main content
VP.6
Associate II
June 18, 2023
Solved

L9963E direct SPI mode with SPC574S controller and their endianness query

  • June 18, 2023
  • 1 reply
  • 1960 views

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

 

 

 

 

This topic has been closed for replies.
Best answer by Max VIZZINI

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

1 reply

Max VIZZINI
Max VIZZINIBest answer
Technical Moderator
November 19, 2023

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