MPC5775B platform, MS33664 migrate to MS33665A, driver or sample code for MS33665A

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

MPC5775B platform, MS33664 migrate to MS33665A, driver or sample code for MS33665A

1,234 Views
MarkFan
Contributor III

Hi ,

    As title, MPC5775B SPI <=> MS33665A => port 0 => MS33771C x 6, Port 1 => MS33772C x 3(BJB)

   1. driver or sample code for MS33665A on SD32 v2.1 MPC5775B platform?

   2. TPL3 protocol is recommended for communication to MC33665A internal registers
(CADD = 0).  Does  MC33665A internal registers support TPL2 protocol communication?

  3. BCC driver or sample code for MC33774 ?

   Thanks for any help.

Best regards,

Mark

0 Kudos
Reply
8 Replies

1,201 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Mark,

  1. driver or sample code for MS33665A on SD32 v2.1 MPC5775B platform?

[A] Please download the SDK for S32DS from this link. The software is however for the MC33664, predecessor of the MC33665A. You need to adjust it for the MC33665A. The newer MC33665A is intended to be used with the latest BCCs (Battery Cell Controllers) MC33774. Unfortunately we do not have a software exactly for your combination.

JozefKozon_0-1697095523743.png

   2. TPL3 protocol is recommended for communication to MC33665A internal registers
(CADD = 0).  Does  MC33665A internal registers support TPL2 protocol communication?

[A] Yes, the MC33665A supports both TPL2 and TPL3 protocol. You can set each from four TPL ports either to TPL2 or TPL3 protocol. You can do it by changing the PROTOCOL bit in the SYS_PORTx_CFG registers. By default all ports are set to TPL3 protocol. Please refer to the MC33665A datasheet.

JozefKozon_1-1697095659286.png

  3. BCC driver or sample code for MC33774 ?

[A] For this please refer to the RD-HVBMSCT800BUN. You can use the Package Manager. It will download all the software for you. The software for the MC33774 is included in the software package. For description how to use the Package Manager, please refer to the file attached.

With Best Regards,

Jozef

0 Kudos
Reply

1,196 Views
MarkFan
Contributor III

Hi  Jozef,

     Much thanks for your detailed and quick reply.

     Another question is what kind of TPL protocol to initial MC33665A  internal registers in very beginning? TPL3 protocol ?  why I asked this because  BCC driver in my platform support TPL2 protocol but no TPL3 protocol ,  It seems like we have to implement TPL3 protocol to support MC33665A  internal registers in my  BCC driver. right?

Best regards,

Mark

 

 

 

0 Kudos
Reply

1,193 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Mark,

to initiate (write to the registers) the MC33665A you don't do via TPL ports. But via SPI, CAN FD or UART interface, with which you communicate with your MCU. Please refer to the section 5.3 in the MC33665A datasheet. For description of the MC33665A startup, please refer to the section 5.1.

JozefKozon_0-1697106665419.png

If you want to use SPI interface, please make sure, that you have selected correct MC33665A version. Please refer to the Table 2. in the MC33665A for full part numbers for individual MC33665A versions.

With Best Regards,

Jozef

0 Kudos
Reply

1,188 Views
MarkFan
Contributor III

Hi Jozef,

     Thanks for your reply.

     We use SPI interface to communicate MS33665A.

     Initialization the MS33665A. example Write to SYS_SPI_CFG ,  only support TPL3 message  or can we use TPL2 message via SPI to Write to SYS_SPI_CFG?

      

Best regards,

Mark

0 Kudos
Reply

1,185 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Mark,

I apologize, I misunderstood you. You want to communicate with the BCC. In this case, it depends with which version of the BCCs you want to communicate. The older ones MC3377xB and MC3377xC support TPL2 protocol, the newer MC33775A and MC33774 support TPL3. You need to set the individual ports for TPL protocol according to the BCC requirements. Please refer to individual datasheets for the TPL protocol type. 

JozefKozon_1-1697172162475.png

With Best Regards,

Jozef

0 Kudos
Reply

1,180 Views
MarkFan
Contributor III

Hi Jozef,

     It's my bad, my description was unclear and caused you to misunderstand.

     I mean after power up the system, initial MC33775A internal register like SYS_PORT0_CFG  

MarkFan_0-1697176360342.png

   

MarkFan_1-1697176494881.png

MarkFan_2-1697176526268.png

 TPL2 or TPL3 message format should we use to communicate to  MC33775A internal register via SPI interface.

 (initial MC33775A internal register not to BCC driver).

  

Best regards,

Mark

  

0 Kudos
Reply

1,176 Views
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Mark,

for the MC33775A you need to use the TPL3 format. The MC33775A will not understand the TPL2 format. 

With Best Regards,

Jozef

0 Kudos
Reply

894 Views
MarkFan
Contributor III

Hi Jozef,

     We use MPC5775 to connect FRDM665SPIEVB and TPL port 0 to MC33771C.

    I can read/write MC33665A internal register and config port 0 to TPL2, however, I cannot wakeup MC33771C via MC33665A . Previously, we use MC33774 INTB pin to wakeup MC33771C. 

    Don't hoe to wakeup MC33771C via MC33665A? any idea?

    Thanks.

Mark

0 Kudos
Reply