LSPI functions using RTD.

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

LSPI functions using RTD.

Jump to solution
681 Views
sai-bodhanapu
Contributor I

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.

0 Kudos
Reply
1 Solution
657 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @sai-bodhanapu 

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

View solution in original post

0 Kudos
Reply
1 Reply
658 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @sai-bodhanapu 

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

0 Kudos
Reply