LPSPI Rx FIFO in Continuous Mode

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

LPSPI Rx FIFO in Continuous Mode

跳至解决方案
3,721 次查看
sankar_devaraj
Contributor I

The LPSPI is configured as Continuous mode (CONT=1 and CONTC=1), Master Mode .

After loading first transmit data into TX FIFO, The RX FIFO is not filled immediately . only In the next data Transmission the RX FIFO is getting filled.
Why this delay is present, Is it Controller feature?.

标签 (1)
标记 (2)
1 解答
3,205 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
I’ve just noticed that you mean that Rx FIFO is not loaded immediately.
Yes, this behavior is expected.
Section 49.4.2.2, S32K1xx RM rev. 7
“During a continuous transfer, if the transmit FIFO is empty, then the receive data is only written to the receive FIFO after the transmit FIFO is written or after the Transmit Command Register (TCR) is written to end the frame.”

Regards,
Daniel

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,785 次查看
ZohaibAli
Contributor III

@sankar_devaraj I am having exactly the same issue with LPSPI on IMX RT1060, but I am not satisfied with @danielmartynek's reply because I am checking Receive Data Register after writing the first byte on Transmit Data Register, so Tx FIFO should not be empty. Please let me know what was the solution for you?

Thanks,

Zohaib Ali

0 项奖励
回复
3,205 次查看
sankar_devaraj
Contributor I

Hi , Daniel Martynek Thanks for the Reply , Yes i am asking about the RX delay in continuous mode.

0 项奖励
回复
3,205 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I unable to reproduce this behavior on S32K144.

The transmission starts immediately in the continuous mode.

Can you share your test code?

 

Regards,

Daniel

0 项奖励
回复
3,206 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
I’ve just noticed that you mean that Rx FIFO is not loaded immediately.
Yes, this behavior is expected.
Section 49.4.2.2, S32K1xx RM rev. 7
“During a continuous transfer, if the transmit FIFO is empty, then the receive data is only written to the receive FIFO after the transmit FIFO is written or after the Transmit Command Register (TCR) is written to end the frame.”

Regards,
Daniel

0 项奖励
回复