MC33665 example code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC33665 example code

1,268 Views
haansy
Contributor I

Hello, 

For last few years, we have used 33664 and 33771/33775 for our battery cell monitoring. Currently, we need to use 33665 for 20 AFEs connections. After getting the new 33665-built-in hardware, when I tried to control it, realized that 33665 is not a simple transceiver like 33664. It seems additional set-up is required in 33665 registers such as RSP channel's slave/master mode (for TPL3) setting and SPI speed setting, wakeup and sleep setting in-between interaction to 33775, which means control-flow might be 1) configuring 33665 or wakeup processing with 33665 and wakeup processing with 33775, 2) communicating with 33775 for cell management and 3) configuring 33665, configuring 33775 for sleep.

Before I start all this from scratching, if someone can give me an example code and let me know how to merge this function with 33775 driver, it would be very appreciated.

 

thank you.

0 Kudos
Reply
2 Replies

1,236 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Siyoung,

As far as I know, the latest drivers for our new generation of devices (MC33775/4 BCCs and MC33665) and S32K3 are currently only distributed upon purchase of the HVBMS kit via a registration card.

And you might find useful the AN13640 "MC33665A SPI Application note" which is available as a Secure file (NDA required):

https://www.nxp.com/products/power-management/battery-management/battery-communication-ics/general-p...

Capture.JPG

Best regards,

Tomas

0 Kudos
Reply

1,144 Views
haansy
Contributor I

Thank you very much.

Now I can control 33665a successfully. Some of difficulties were pingpong(or echo) msgs, as far as I know, as long as we don't use pre-fix option (like 33664), 33665 doesn't send back pingpong msgs. So I have changed our software to use Tx complete ISR instead of Rx msg ISR in order to handle command buffers.

anyway, now it works.

Thank you.

0 Kudos
Reply