S32K144 SPI Slave Mode Example

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

S32K144 SPI Slave Mode Example

2,044 Views
chenguangjiang
Contributor I

Can anyone provide an example code for the SPI slave mode? The Design Studio only has code for Master mode configuration. I have trouble in setting the configuration registers and also the interrupt.

I am trying to use an external master to acquire information from the S32K144. The master device will manage the clock and chip select.

Thank you!

Tags (3)
0 Kudos
1 Reply

1,307 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
There is LPSPI_transfer_S32K144 SDK example in S32DS.
The example uses two on board instances of LPSPI, one master and one slave.
The slave sends ADC results to the master.
Unfortunately, there is no non-SDK SPI slave example.

Regards,
Daniel

0 Kudos