S32K144W LPSPI pin setting

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

S32K144W LPSPI pin setting

Jump to solution
1,766 Views
sophie-wang
Contributor III

Dear NXP Friend,

I am developing LPSPI with S32K144W, I use LPSPI1, PTD0 as SCK and PTD1 as SIN. I found that if I use PTD3 as PCS and PTD2 as SOUT, the SPI wave form seems weird. but if I change PCS to PTE1 and SOUT to PTE0, the SPI wave form seems working well. would you please kindly help to check what I did wrong?

1.png2.pngThank you so much

0 Kudos
Reply
1 Solution
1,706 Views
danielmartynek
NXP TechSupport
NXP TechSupport

PTD2 and PTD3 are also conencted to BTN0, BTN1 on the EVB.

danielmartynek_0-1725449257103.png

danielmartynek_0-1725449408288.png

 

These pins are pulled down, this can impact the signals.

You should see it on the oscilloscope.

 

BR, Daniel

View solution in original post

0 Kudos
Reply
4 Replies
1,732 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sophie-wang,

Do you use an NXP EVB?

If so, please specify the revision and the schematic number.

Can you measure the bus with an analog oscilloscope?

The difference between the pins is that PTD2 and PTD3 are standard GPIOs

danielmartynek_0-1725437094651.png

where as PTE0, PTE1 are GPIO-HD, they have better current capabilities/slew rate when their PCR[DSE = 1].

danielmartynek_1-1725437171020.png

danielmartynek_2-1725437270003.png

 

Regards,

Daniel

 

 

0 Kudos
Reply
1,727 Views
sophie-wang
Contributor III

Hi Daniel

Glad to receive your reply. I am using XS32K14WEVB-Q064, SCH-46873 REVB

Do you mean that if I use PTD2 and PTD3, they will function well, the problem is how I measured them?

0 Kudos
Reply
1,707 Views
danielmartynek
NXP TechSupport
NXP TechSupport

PTD2 and PTD3 are also conencted to BTN0, BTN1 on the EVB.

danielmartynek_0-1725449257103.png

danielmartynek_0-1725449408288.png

 

These pins are pulled down, this can impact the signals.

You should see it on the oscilloscope.

 

BR, Daniel

0 Kudos
Reply
1,761 Views
sophie-wang
Contributor III
 
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1946820%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K144W%20LPSPI%20pin%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1946820%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%20Friend%2C%3C%2FP%3E%3CP%3EI%20am%20developing%20LPSPI%20with%20S32K144W%2C%20I%20use%20LPSPI1%2C%26nbsp%3BPTD0%20as%20SCK%20and%20PTD1%20as%20SIN.%20I%20found%20that%20if%20I%20use%20PTD3%20as%20PCS%20and%20PTD2%20as%20SOUT%2C%20the%20SPI%20wave%20form%20seems%20weird.%20but%20if%20I%20change%20PCS%20to%20PTE1%20and%20SOUT%20to%20PTE0%2C%20the%20SPI%20wave%20form%20seems%20working%20well.%20would%20you%20please%20kindly%20help%20to%20check%20what%20I%20did%20wrong%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20630px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20630px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F296969iB9E2D9EB9E1A2E9C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20805px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20805px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F296968iD4BA8FB6F2B297C4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3EThank%20you%20so%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1947206%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K144W%20LPSPI%20pin%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1947206%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPTD2%20and%20PTD3%20are%20also%20conencted%20to%20BTN0%2C%20BTN1%20on%20the%20EVB.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1725449257103.png%22%20style%3D%22width%3A%20475px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1725449257103.png%22%20style%3D%22width%3A%20475px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297071iE45FB60EDB42945E%2Fimage-dimensions%2F475x273%3Fv%3Dv2%22%20width%3D%22475%22%20height%3D%22273%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1725449257103.png%22%20alt%3D%22danielmartynek_0-1725449257103.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1725449408288.png%22%20style%3D%22width%3A%20612px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1725449408288.png%22%20style%3D%22width%3A%20612px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297074iACD218857727B8D4%2Fimage-dimensions%2F612x199%3Fv%3Dv2%22%20width%3D%22612%22%20height%3D%22199%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1725449408288.png%22%20alt%3D%22danielmartynek_0-1725449408288.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThese%20pins%20are%20pulled%20down%2C%20this%20can%20impact%20the%20signals.%3C%2FP%3E%0A%3CP%3EYou%20should%20see%20it%20on%20the%20oscilloscope.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1947026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K144W%20LPSPI%20pin%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1947026%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Daniel%3C%2FP%3E%3CP%3EGlad%20to%20receive%20your%20reply.%20I%20am%20using%20XS32K14WEVB-Q064%2C%20SCH-46873%20REVB%3C%2FP%3E%3CP%3EDo%20you%20mean%20that%20if%20I%20use%20PTD2%20and%20PTD3%2C%20they%20will%20function%20well%2C%20the%20problem%20is%20how%20I%20measured%20them%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1947019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K144W%20LPSPI%20pin%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1947019%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F192662%22%20target%3D%22_blank%22%3E%40sophie-wang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EDo%20you%20use%20an%20NXP%20EVB%3F%3C%2FP%3E%0A%3CP%3EIf%20so%2C%20please%20specify%20the%20revision%20and%20the%20schematic%20number.%3C%2FP%3E%0A%3CP%3ECan%20you%20measure%20the%20bus%20with%20an%20analog%20oscilloscope%3F%3C%2FP%3E%0A%3CP%3EThe%20difference%20between%20the%20pins%20is%20that%20PTD2%20and%20PTD3%20are%20standard%20GPIOs%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1725437094651.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1725437094651.png%22%20style%3D%22width%3A%20583px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297014i6303396055D329B5%2Fimage-dimensions%2F583x252%3Fv%3Dv2%22%20width%3D%22583%22%20height%3D%22252%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1725437094651.png%22%20alt%3D%22danielmartynek_0-1725437094651.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewhere%20as%20PTE0%2C%20PTE1%20are%20GPIO-HD%2C%20they%20have%20better%20current%20capabilities%2Fslew%20rate%20when%20their%20PCR%5BDSE%20%3D%201%5D.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1725437171020.png%22%20style%3D%22width%3A%20582px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1725437171020.png%22%20style%3D%22width%3A%20582px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297016i6076F0F75CB7E97D%2Fimage-dimensions%2F582x181%3Fv%3Dv2%22%20width%3D%22582%22%20height%3D%22181%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1725437171020.png%22%20alt%3D%22danielmartynek_1-1725437171020.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_2-1725437270003.png%22%20style%3D%22width%3A%20592px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_2-1725437270003.png%22%20style%3D%22width%3A%20592px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297020i1978B6CC4DDBEBA9%2Fimage-dimensions%2F592x225%3Fv%3Dv2%22%20width%3D%22592%22%20height%3D%22225%22%20role%3D%22button%22%20title%3D%22danielmartynek_2-1725437270003.png%22%20alt%3D%22danielmartynek_2-1725437270003.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1946821%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K144W%20LPSPI%20pin%20setting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1946821%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3C%2FLINGO-BODY%3E