I now need to communicate with external devices. The communication protocol is very simple, which is to input the data on the data line into the external communication device at the rising edge of the clock for communication. That is to say, I only need one clock line and data line. Can FlexIO simulate it?
something like this below
Solved! Go to Solution.
Hi @LijieDu
yes, FlexIO can do this job. We have this application note which describes how to configure the FlexIO for SPI:
https://www.nxp.com/docs/en/application-note/AN12174.pdf
https://www.nxp.com/webapp/Download?colCode=AN12174SW&location=null
There are drivers in SDK and RTD packages for S32K but those are not configurable. You can select only typical modes like SPI, UART etc. Own configuration of FlexIO is not supported by the drivers, you would have to write own code. So, easiest option is to use FlexIO SPI driver in SDK or RTD and just do not use remaining signals.
Regards,
Lukas
Hi @LijieDu
yes, FlexIO can do this job. We have this application note which describes how to configure the FlexIO for SPI:
https://www.nxp.com/docs/en/application-note/AN12174.pdf
https://www.nxp.com/webapp/Download?colCode=AN12174SW&location=null
There are drivers in SDK and RTD packages for S32K but those are not configurable. You can select only typical modes like SPI, UART etc. Own configuration of FlexIO is not supported by the drivers, you would have to write own code. So, easiest option is to use FlexIO SPI driver in SDK or RTD and just do not use remaining signals.
Regards,
Lukas
Thanks! @lukaszadrapa
I will first run through the SDK and then try writing my own code.