[LPSPI] complex transfer with peripheral FIFO

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

[LPSPI] complex transfer with peripheral FIFO

跳至解决方案
2,566 次查看
MassimilianoPegaso
Contributor II

Hello Community,

I hope you're all doing well. I'm reaching out to seek some assistance regarding managing SPI communication with the utilization of FIFO functionalities of the peripheral.

Background: I'm currently working on a project that involves SPI communication between #i.MX-RT1050## and an ADC device. To streamline the data transfer process and enhance efficiency, I'm looking into implementing it using the peripheral command/data FIFO. However, I'm facing some challenges in integrating this feature into my project.

Request for Support: I would greatly appreciate it if anyone could provide guidance, insights, or resources on how to effectively manage SPI communication while using the peripheral command/data FIFO to manage communication with multiple CS cycles using only one call to LPSPI_MasterTransferNonBlocking or other functions.

Time Diagram Reference: I've attached an image of the time diagram illustrating the SPI communication process for reference.

Thank you in advance for your time and assistance. I look forward to your responses and insights.

Best regards.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
2,510 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @MassimilianoPegaso ,

 

Multiple CS cycles mean multiple frames/transfers, I don't think one call to LPSPI_MasterTransferNonBlocking may implement such functionality, maybe you have to define a custom API based on LPSPI_MasterTransferNonBlocking. 

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,511 次查看
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @MassimilianoPegaso ,

 

Multiple CS cycles mean multiple frames/transfers, I don't think one call to LPSPI_MasterTransferNonBlocking may implement such functionality, maybe you have to define a custom API based on LPSPI_MasterTransferNonBlocking. 

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1840804%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BLPSPI%5D%20%E4%BD%BF%E7%94%A8%E5%A4%96%E8%AE%BEFIFO%E7%9A%84%E5%A4%8D%E6%9D%82%E4%BC%A0%E8%BE%93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1840804%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E5%B8%8C%E6%9C%9B%E4%BD%A0%E4%BB%AC%E4%B8%80%E5%88%87%E9%83%BD%E5%A5%BD%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E5%AF%BB%E6%B1%82%E4%B8%80%E4%BA%9B%E5%85%B3%E4%BA%8E%E5%88%A9%E7%94%A8%E5%A4%96%E5%9B%B4%E8%AE%BE%E5%A4%87%E7%9A%84%20FIFO%20%E5%8A%9F%E8%83%BD%E6%9D%A5%E7%AE%A1%E7%90%86%20SPI%20%E9%80%9A%E4%BF%A1%E7%9A%84%E5%B8%AE%E5%8A%A9%E3%80%82%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E8%83%8C%E6%99%AF%EF%BC%9A%3C%2FSTRONG%3E%E6%88%91%E7%9B%AE%E5%89%8D%E6%AD%A3%E5%9C%A8%E4%BB%8E%E4%BA%8B%E4%B8%80%E4%B8%AA%E6%B6%89%E5%8F%8A%23i.MX-RT1050%23%23%E5%92%8C%20ADC%20%E8%AE%BE%E5%A4%87%E4%B9%8B%E9%97%B4%E7%9A%84%20SPI%20%E9%80%9A%E4%BF%A1%E7%9A%84%E9%A1%B9%E7%9B%AE%E3%80%82%E4%B8%BA%E4%BA%86%E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87%BD%E6%95%B0%E7%9A%84%E5%A4%9A%E4%B8%AA%20CS%20%E5%91%A8%E6%9C%9F%E7%9A%84%E9%80%9A%E4%BF%A1%EF%BC%8C%E6%88%91%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E6%97%B6%E9%97%B4%E5%9B%BE%E5%8F%82%E8%80%83%EF%BC%9A%3C%2FSTRONG%3E%E6%88%91%E9%99%84%E4%B8%8A%E4%BA%86%E4%B8%80%E5%BC%A0%E6%97%B6%E9%97%B4%E5%9B%BE%EF%BC%8C%E5%B1%95%E7%A4%BA%E4%BA%86%20SPI%20%E9%80%9A%E4%BF%A1%E8%BF%87%E7%A8%8B%EF%BC%8C%E4%BB%A5%E4%BE%9B%E5%8F%82%E8%80%83%E3%80%82%3C%2FP%3E%3CP%3E%E6%8F%90%E5%89%8D%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E6%97%B6%E9%97%B4%E5%92%8C%E5%B8%AE%E5%8A%A9%E3%80%82%E6%88%91%E6%9C%9F%E5%BE%85%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E5%92%8C%E8%A7%81%E8%A7%A3%E3%80%82%3C%2FP%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1840804%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20105x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E