S32K144EVB-Q100 SPI COMMUNICATION

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

S32K144EVB-Q100 SPI COMMUNICATION

2,728 Views
ilker
Contributor I

Hello, we are trying to drive the MCZ33996 IC with SPI communication over the S32K144EVB-Q100 development board. However, we couldn't get it to work properly. Our example is attached. Can you help me? 

0 Kudos
Reply
5 Replies

2,605 Views
ilker
Contributor I

Hello,

We are still working on SPI communication via this development board S32K144EVB-Q100.

We were able to settle some issues.

The ICs we are working with are MCZ33996 and MC33CD1030.


We have now made sure that SPI communication is working on the MC33CD1030.


However, we still do not get the feedback we expect from FreeMaster.

Attached is the MATLAB file we are working with.

We look forward to your feedback.

renditionDownload.jpg

0 Kudos
Reply

2,714 Views
adriantudor
NXP Employee
NXP Employee

Hello @ilker ,

 

I see in your model that you use SPI in Slave mode. Are you sure that you don't need to use the SPI instance in Master mode? If the SPI is properly configured, please give us more detail about your hardware setup.

 

Best regards,

Adrian

 

0 Kudos
Reply

2,707 Views
ilker
Contributor I

ilker_0-1629204755546.png

Hi, the connection diagram of the MCZ33996 IC is as above.

ilker_1-1629204847615.png

The pins of the S32K144EVB-Q100 board are as above.

 

We encounter similar problems when we choose the SPI mode as master.

 

 

 

 

 

0 Kudos
Reply

2,677 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @ilker,

Can you please have a look at this thread here? We had a customer at some point using the same chip. of course, this was on another platform (MPC) but the idea should be the same in terms of settings/configurations. At least it is a starting point.

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Request-for-HSD-LSD-MSDI-Communication-... 

Hope this helps,

Marius

2,682 Views
adriantudor
NXP Employee
NXP Employee

Hello @ilker , 

I don't have this MCZ33996 ic to give you more detail, but ...

To communicate with MCZ33996 ic, the SPI instance must be configured as Master and I recommend using the next pins for SPI instance 1: SIN-PTD1, SOUT-PTD2,CS-PTD3,SCLK-PTB14. The recommendation to use those pins instead of pins that you initially used is due to an ic (SBC chip) placed on S32K144EVB, that is connected on the same SPI pins. 

adriantudor_1-1629286532200.png

 

The SPI must be configured to transmit 24 bit ( because MCZ33996 ic demands 24 bit for every SPI transfer). Please see the below pictures. 

adriantudor_0-1629286512191.png

 

And the MCZ33996 ic needs a PWM signal that has to come from somewhere (maybe you should add a PWM block).

Another very important thing when you connect two different boards is to use the same voltage level (3.3V or 5V) if you connect them thru a communication interface.

 

Best regards,

Adrian

0 Kudos
Reply