Can I use MC33664 with RaspberryPi ?

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

Can I use MC33664 with RaspberryPi ?

1,196 Views
Yan1
Contributor I

Hello,
I have a battery with 14 cells equipped with a MC3377x using TPL communication.
Can I use the MC33664 component with a raspberry pi zith SPI to read the 14 cells voltages ?

 

Thanks in advance,

Yan

 

 

0 Kudos
7 Replies

1,159 Views
Yan1
Contributor I

Hello,

I have a new question to complet previous one.

If I have 2 arduino, Can I use one, configured as a master, to send the message "READ" to the MC33664 (using SCLK_TX, CSB_TX,
DATA_TX I/O)

and use another Arduino, configured as a slave, to get the response from the MC33664  (using CLK_RX, CSB_RX, DATA_RX I/O) ?

0 Kudos

1,143 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, that's also possible.

0 Kudos

1,170 Views
Yan1
Contributor I

So I will try with Arduino instead.

I'm not very good with programming in this field, where can I find (or can you provide) a basic code to use with arduino for reading cells voltages only?

thanks a lot again

0 Kudos

1,144 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

We provide generic driver written in C which can be ported to any suitable 32bit microcontroller. It was tested on S32K144 microcontroller. You can find the software package on this page:

https://www.nxp.com/products/power-management/battery-management/battery-cell-controllers/14-channel...

… in section Software – Secure files.

“MC33771B&MC33772B Battery Cell Controllers - Software Driver”

Direct link:

https://www.nxp.com/webapp/sd/collateral/1644518515884709073509?version=1.1

 

In case you do not have an access:

https://www.nxp.com/docs/en/user-guide/nxp-secure-access-rights-registration.pdf

0 Kudos

1,178 Views
Yan1
Contributor I

Thanks a lot sir,

I read somewhere that the Raspberry pi can't be configured as a slave (about SPI I mean), is it a problem ?

I only want to read cells voltages

0 Kudos

1,174 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, that will be a problem. You need SPI slave to read data from MC33664.

https://community.nxp.com/t5/S32K/MC33664-with-single-SPI-port-on-MCU/m-p/1450883#M15205

Regards,

Lukas

0 Kudos

1,182 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Yan,

yes, you can use any microcontroller with two SPI modules and with 3.3V / 5V compatible logic thresholds.

Regards,

Lukas

0 Kudos