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!
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