[LPSPI] complex transfer with peripheral FIFO

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

[LPSPI] complex transfer with peripheral FIFO

Jump to solution
2,647 Views
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.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
2,591 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
2,592 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1840804%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BLPSPI%5D%20complex%20transfer%20with%20peripheral%20FIFO%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%3EHello%20Community%2C%3C%2FP%3E%3CP%3EI%20hope%20you're%20all%20doing%20well.%20I'm%20reaching%20out%20to%20seek%20some%20assistance%20regarding%20managing%20SPI%20communication%20with%20the%20utilization%20of%20FIFO%20functionalities%20of%20the%20peripheral.%3C%2FP%3E%3CP%3E%3CSTRONG%3EBackground%3A%3C%2FSTRONG%3E%20I'm%20currently%20working%20on%20a%20project%20that%20involves%20SPI%20communication%20between%20%23i.MX-RT1050%23%23%20and%20an%20ADC%20device.%20To%20streamline%20the%20data%20transfer%20process%20and%20enhance%20efficiency%2C%20I'm%20looking%20into%20implementing%20it%20using%20the%20peripheral%20command%2Fdata%20FIFO.%20However%2C%20I'm%20facing%20some%20challenges%20in%20integrating%20this%20feature%20into%20my%20project.%3C%2FP%3E%3CP%3E%3CSTRONG%3ERequest%20for%20Support%3A%3C%2FSTRONG%3E%20I%20would%20greatly%20appreciate%20it%20if%20anyone%20could%20provide%20guidance%2C%20insights%2C%20or%20resources%20on%20how%20to%20effectively%20manage%20SPI%20communication%20while%20using%20the%20peripheral%20command%2Fdata%20FIFO%20to%20manage%20communication%20with%20multiple%20CS%20cycles%20using%20only%20one%20call%20to%20LPSPI_MasterTransferNonBlocking%20or%20other%20functions.%3C%2FP%3E%3CP%3E%3CSTRONG%3ETime%20Diagram%20Reference%3A%3C%2FSTRONG%3E%20I've%20attached%20an%20image%20of%20the%20time%20diagram%20illustrating%20the%20SPI%20communication%20process%20for%20reference.%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20for%20your%20time%20and%20assistance.%20I%20look%20forward%20to%20your%20responses%20and%20insights.%3C%2FP%3E%3CP%3EBest%20regards.%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%3CLINGO-SUB%20id%3D%22lingo-sub-1844915%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%5BLPSPI%5D%20complex%20transfer%20with%20peripheral%20FIFO%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1844915%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F208816%22%20target%3D%22_blank%22%3E%40MassimilianoPegaso%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EMultiple%20CS%20cycles%20mean%20multiple%20frames%2Ftransfers%2C%20I%20don't%20think%20one%20call%20to%26nbsp%3BLPSPI_MasterTransferNonBlocking%20may%20implement%20such%20functionality%2C%20maybe%20you%20have%20to%20define%20a%20custom%20API%20based%20on%26nbsp%3BLPSPI_MasterTransferNonBlocking.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E