LPC5504: SPI via FLEXCOMM2/5

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

LPC5504: SPI via FLEXCOMM2/5

Jump to solution
232 Views
mme255
Contributor II

Hello,

we would like to use SPI via FLEXCOMM5, but we have found conflicting information between the datasheet, reference manual, configurator, and community posts.

From the documentation, SPI appears to be supported in some places:

  • The datasheet lists SPI functionality on the FLEXCOMM5 pins:
    mme255_0-1781790955442.png
  • The datasheet also refers to FLEXCOMM0–FLEXCOMM7 under SPI:
    mme255_1-1781791008935.png
  • The reference manual states that SPI is available on all FLEXCOMM interfaces:
    mme255_4-1781791319751.png

However, other sources suggest that SPI may not be supported on FLEXCOMM5:

  • The configurator does not allow an SPI peripheral to be assigned to FLEXCOMM5:
    mme255_3-1781791035223.png
  • The relevant table in the reference manual does not explicitly list SPI support for FLEXCOMM5:
    mme255_5-1781791439888.png
  • I also found this NXP Community post, which says SPI is not available on FLEXCOMM5 due to missing SSEL pins:
    Support of SPI in FlexComm5 in LPC55S06 - NXP Community

Could you clarify whether SPI can actually be used on FLEXCOMM5?

Specifically, if we manually control the slave-select signal using a GPIO instead of a hardware SSEL pin, is it possible to use FLEXCOMM5 as an SPI interface at the hardware level?

If it is possible from a hardware perspective, what SDK changes would be required to enable this? Also, are there any plans to officially support SPI on FLEXCOMM5 through the SDK in a future release?

Thank you.

Labels (2)
0 Kudos
Reply
1 Solution
138 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @mme255,

Thank you for your post!

The FlexComm 2 and FlexComm 5 instances on the LPC550x family do not support SPI. These FlexComm can still be used with other communication interfaces without any issues.

Apologize the inconvenience this may cause.

 

View solution in original post

2 Replies
139 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @mme255,

Thank you for your post!

The FlexComm 2 and FlexComm 5 instances on the LPC550x family do not support SPI. These FlexComm can still be used with other communication interfaces without any issues.

Apologize the inconvenience this may cause.

 

51 Views
mme255
Contributor II

Hi Carlos,

thank you for the clarification and quick response.

Best regards

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2383173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC5504%3A%20SPI%20via%20FLEXCOMM2%2F5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2383173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EHello%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3Ewe%20would%20like%20to%20use%20SPI%20via%20%3C%2FSPAN%3E%3CSTRONG%3EFLEXCOMM5%3C%2FSTRONG%3E%3CSPAN%3E%2C%20but%20we%20have%20found%20conflicting%20information%20between%20the%20datasheet%2C%20reference%20manual%2C%20configurator%2C%20and%20community%20posts.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EFrom%20the%20documentation%2C%20SPI%20appears%20to%20be%20supported%20in%20some%20places%3A%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3EThe%20datasheet%20lists%20SPI%20functionality%20on%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EFLEXCOMM5%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20pins%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mme255_0-1781790955442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_0-1781790955442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_0-1781790955442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_0-1781790955442.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389389i0CE7456A6938A8ED%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mme255_0-1781790955442.png%22%20alt%3D%22mme255_0-1781790955442.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EThe%20datasheet%20also%20refers%20to%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EFLEXCOMM0%E2%80%93FLEXCOMM7%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20under%20SPI%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mme255_1-1781791008935.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_1-1781791008935.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_1-1781791008935.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_1-1781791008935.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389390iC0E7C10B5434BE50%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mme255_1-1781791008935.png%22%20alt%3D%22mme255_1-1781791008935.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EThe%20reference%20manual%20states%20that%20SPI%20is%20available%20on%20all%20FLEXCOMM%20interfaces%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mme255_4-1781791319751.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_4-1781791319751.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_4-1781791319751.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_4-1781791319751.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389394iB9D003BDD464B403%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mme255_4-1781791319751.png%22%20alt%3D%22mme255_4-1781791319751.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EHowever%2C%20other%20sources%20suggest%20that%20SPI%20may%20not%20be%20supported%20on%20FLEXCOMM5%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3EThe%20configurator%20does%20not%20allow%20an%20SPI%20peripheral%20to%20be%20assigned%20to%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EFLEXCOMM5%3C%2FSPAN%3E%3C%2FSTRONG%3E%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mme255_3-1781791035223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_3-1781791035223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_3-1781791035223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_3-1781791035223.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389392i7195704B3A15346D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mme255_3-1781791035223.png%22%20alt%3D%22mme255_3-1781791035223.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EThe%20relevant%20table%20in%20the%20reference%20manual%20does%20not%20explicitly%20list%20SPI%20support%20for%20FLEXCOMM5%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mme255_5-1781791439888.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_5-1781791439888.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_5-1781791439888.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mme255_5-1781791439888.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389395i4074BBE43E94BEE2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mme255_5-1781791439888.png%22%20alt%3D%22mme255_5-1781791439888.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EI%20also%20found%20this%20NXP%20Community%20post%2C%20which%20says%20SPI%20is%20not%20available%20on%20FLEXCOMM5%20due%20to%20missing%20SSEL%20pins%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLPC-Microcontrollers%2FSupport-of-SPI-in-FlexComm5-in-LPC55S06%2Fm-p%2F1780787%22%20target%3D%22_blank%22%3ESupport%20of%20SPI%20in%20FlexComm5%20in%20LPC55S06%20-%20NXP%20Community%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ECould%20you%20clarify%20whether%20SPI%20can%20actually%20be%20used%20on%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EFLEXCOMM5%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESpecifically%2C%20if%20we%20manually%20control%20the%20slave-select%20signal%20using%20a%20GPIO%20instead%20of%20a%20hardware%20SSEL%20pin%2C%20is%20it%20possible%20to%20use%20FLEXCOMM5%20as%20an%20SPI%20interface%20at%20the%20hardware%20level%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20it%20is%20possible%20from%20a%20hardware%20perspective%2C%20what%20SDK%20changes%20would%20be%20required%20to%20enable%20this%3F%20Also%2C%20are%20there%20any%20plans%20to%20officially%20support%20SPI%20on%20FLEXCOMM5%20through%20the%20SDK%20in%20a%20future%20release%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2383173%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC55xx%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPeripherals%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2383562%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5504%3A%20SPI%20via%20FLEXCOMM2%2F5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2383562%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%2F255693%22%20target%3D%22_blank%22%3E%40mme255%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20post!%3C%2FP%3E%0A%3CP%3EThe%20FlexComm%202%20and%20FlexComm%205%20instances%20on%20the%20LPC550x%20family%20do%20not%20support%20SPI.%20These%20FlexComm%20can%20still%20be%20used%20with%20other%20communication%20interfaces%20without%20any%20issues.%3C%2FP%3E%0A%3CP%3EApologize%20the%20inconvenience%20this%20may%20cause.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2383959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5504%3A%20SPI%20via%20FLEXCOMM2%2F5%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2383959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Carlos%2C%3C%2FP%3E%3CP%3Ethank%20you%20for%20the%20clarification%20and%20quick%20response.%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3C%2FLINGO-BODY%3E