hello,
I am using S32k312 in S32DS. i need to interface SPI flash memory using RTD. to use RTD LSPI functions i need to use full duplex mode to send and receive data. There is only examples for half duplex mode either for sending or receiving, Can i use Half duplex mode for both sending and recieving the data? i tried that too, it halts at halfduplextransmit function. How can i use RTD drivers for SPI flash please let me know.
Thanking you in advance.
Solved! Go to Solution.
There is an example of LPSPI full-duplex communication included in the RTDs, the Lpspi_Flexio_Ip_S32K312 implements communication between LPSPI2 and FLEXIO_SPI_0.
It is not the same to use a half-duplex instead of a full-duplex because in full-duplex communication shift registers of both master and slave are linked using two unidirectional lines between MOSI and MISO pins. And in half-duplex for data communication, there is only one data line. The MOSI of the master connects to the MISO of the slave.
B.R.
VaneB
There is an example of LPSPI full-duplex communication included in the RTDs, the Lpspi_Flexio_Ip_S32K312 implements communication between LPSPI2 and FLEXIO_SPI_0.
It is not the same to use a half-duplex instead of a full-duplex because in full-duplex communication shift registers of both master and slave are linked using two unidirectional lines between MOSI and MISO pins. And in half-duplex for data communication, there is only one data line. The MOSI of the master connects to the MISO of the slave.
B.R.
VaneB