LSPI functions using RTD.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LSPI functions using RTD.

跳至解决方案
1,210 次查看
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 项奖励
回复
1 解答
1,186 次查看
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 项奖励
回复
1 回复
1,187 次查看
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 项奖励
回复