LSPI functions using RTD.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LSPI functions using RTD.

ソリューションへジャンプ
1,209件の閲覧回数
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,185件の閲覧回数
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,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 件の賞賛
返信