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
Solved! Go to Solution.
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
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.
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.
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.
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
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.