Configuration related to SPI on s32k312EVB-q172

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

Configuration related to SPI on s32k312EVB-q172

Jump to solution
858 Views
vinaychitturi
Contributor III

Hello,

I am trying to stack FRDM665SPIEVB on top of s32k312evb-Q172. In that stacking i verified the pins they are using arduino headers  k4(33665a) -->j412(s32k312) -->lpspi0 for SPI master. For the slave SPI arduino headers k2(33665a)-->j4(k312) -->lpspi1 

By default we use the lpspi0 for the sbc configuration. If i select a different Chipselect for spi0 then i can use the spi0 for the SPI master 33665A.

So, is there any way that i can configure sbc, spi master,  spi slave on the s32k312 evb-q172(lpspi0,lpspi1,lpspi2).

 

Thanks,

Vinay Chitturi

0 Kudos
Reply
1 Solution
789 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Vinay,

I don't see any problem here.

That's the purpose of the chip select, the LPSPI0 Master can communicate with both.

Master
SBC
PTC9 LPSPI0_SIN
PTB1 LPSPI0_SOUT
PTC8 LPSPI0_SCK
PTB0 LPSPI0_PCS0

J412
PTE2 LPSPI0_SOUT
PTE6 LPSPI0_PCS2
PTE1 LPSPI0_SCK

Slave
J4
PTB14 LPSPI1_SCK
PTB15 LPSPI1_SIN
PTB17 LPSPI3_PCS0 or LPSPI1_PCS3

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
4 Replies
831 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @vinaychitturi,

I'm not sure I understand.

Can you elaborate?

 

Regards,

Daniel

0 Kudos
Reply
821 Views
vinaychitturi
Contributor III

Hello Daniel,

We are stacking the FRDM665SPIEVB on top of S32K312EVB-Q172.

As per the schematics of FRDM665SPIEVB they are using the DUAL SPI MASTER AND SLAVE PINS in the Arduino headers K4 and K2 as shown below.

vinaychitturi_0-1710531107024.png

After stacking FRDM665 on S32K312-EVB those k2 and K4 headers corresponds(stack on top ) to J412 and J4 on s32k312EVB. In j4 header we need to use pin16,13,7 and j412 header pin 10,19,22.

vinaychitturi_1-1710531255219.png

vinaychitturi_2-1710531306317.png

In the S32K312EVB by default SBC is configured for the LPSPI0 using the PCS0, So as per these Arduino headers we need to lpspi0 for the master spi and lpspi1 for the slave spi. To make it work for k312EVB and  665a EVB we need to select the pcs2 for the spi0, and pcs3 for the spi1.

If I use the spi0 for the Master SPI in the dual spi master slave, Is it possible to make the SPI configurations for the SBC in that EVB after stacking FRDM665SSPIEVB and S32K312EVB ?.

If you have any questions please let me know.

Thanks,

Vinay.

 

 

 

 

 

0 Kudos
Reply
790 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Vinay,

I don't see any problem here.

That's the purpose of the chip select, the LPSPI0 Master can communicate with both.

Master
SBC
PTC9 LPSPI0_SIN
PTB1 LPSPI0_SOUT
PTC8 LPSPI0_SCK
PTB0 LPSPI0_PCS0

J412
PTE2 LPSPI0_SOUT
PTE6 LPSPI0_PCS2
PTE1 LPSPI0_SCK

Slave
J4
PTB14 LPSPI1_SCK
PTB15 LPSPI1_SIN
PTB17 LPSPI3_PCS0 or LPSPI1_PCS3

 

Regards,

Daniel

0 Kudos
Reply
786 Views
vinaychitturi
Contributor III

Thanks for your response Daniel, 

I am bit confused how to use same physical SPI unit  for different external devices before. But i got the information now. 

0 Kudos
Reply