S32K148 pins: default behavior

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

S32K148 pins: default behavior

Jump to solution
1,535 Views
durga_choudhury
Contributor V

Pins on the S32K1xx have default behavior; the pin mux tool on the S32DS IDE shows the default behavior in italics.

 

My question is, if I want to use a pin in the default behavior, must it still be selected in the pin mux tool for that role?

 

Put another way, what I am asking is: what is the difference between configuring a pin for the default behavior in the pin mux tool and not configuring it at all?

0 Kudos
Reply
1 Solution
1,489 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

If you open the ADC example in the S32K1 SDK or RTD, you'll find that the Pins Tool isn't enabled at all. Even if you select the ADC function for that pin in the Pins Tool, it's still generate the default value `.mux=PORT_MUX_ALT0`.

However, if you want to enable the features described in section 43.4 ADC Hardware Interleaved Channels of S32K1 RM Rev14.1, for example: ADC0_SE4 and ADC1_SE14 channels are interleaved on PTB0 pin

Then it's recommended to select ADC0_SE4 and ADC1_SE14 for PTB0 pin in the Pins Tool, The Pins Tool will then generate `.mux=PORT_MUX_ADC_INTERLEAVE`

ADC Hardware Interleave mux PORT_MUX_ADC_INTERLEAVE Pins Tool.png

Calling Port_Ci_Port_Ip_Init() will enable the corresponding SIM_CHIPCTL[ADC_INTERLEAVE_EN] bit, which enables ADC hardware interleaving.

Port_Ci_Port_Ip_Init -> Port_Ci_Port_Ip_PinInit -> Port_Ci_Port_Ip_ConfigureInterleave


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" 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
2 Replies
1,470 Views
durga_choudhury
Contributor V

Hello @Robin_Shen 

Thank you very much for the clarification.

0 Kudos
Reply
1,490 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

If you open the ADC example in the S32K1 SDK or RTD, you'll find that the Pins Tool isn't enabled at all. Even if you select the ADC function for that pin in the Pins Tool, it's still generate the default value `.mux=PORT_MUX_ALT0`.

However, if you want to enable the features described in section 43.4 ADC Hardware Interleaved Channels of S32K1 RM Rev14.1, for example: ADC0_SE4 and ADC1_SE14 channels are interleaved on PTB0 pin

Then it's recommended to select ADC0_SE4 and ADC1_SE14 for PTB0 pin in the Pins Tool, The Pins Tool will then generate `.mux=PORT_MUX_ADC_INTERLEAVE`

ADC Hardware Interleave mux PORT_MUX_ADC_INTERLEAVE Pins Tool.png

Calling Port_Ci_Port_Ip_Init() will enable the corresponding SIM_CHIPCTL[ADC_INTERLEAVE_EN] bit, which enables ADC hardware interleaving.

Port_Ci_Port_Ip_Init -> Port_Ci_Port_Ip_PinInit -> Port_Ci_Port_Ip_ConfigureInterleave


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" 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-2266257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K148%20pins%3A%20default%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPins%20on%20the%20S32K1xx%20have%20default%20behavior%3B%20the%20pin%20mux%20tool%20on%20the%20S32DS%20IDE%20shows%20the%20default%20behavior%20in%20italics.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMy%20question%20is%2C%20if%20I%20want%20to%20use%20a%20pin%20in%20the%20default%20behavior%2C%20must%20it%20still%20be%20selected%20in%20the%20pin%20mux%20tool%20for%20that%20role%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EPut%20another%20way%2C%20what%20I%20am%20asking%20is%3A%20what%20is%20the%20difference%20between%20configuring%20a%20pin%20for%20the%20default%20behavior%20in%20the%20pin%20mux%20tool%20and%20not%20configuring%20it%20at%20all%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2266619%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K148%20pins%3A%20default%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266619%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EIf%20you%20open%20the%20ADC%20example%20in%20the%20S32K1%20SDK%20or%20RTD%2C%20you'll%20find%20that%20the%20%3CSTRONG%3EPins%20Tool%3C%2FSTRONG%3E%20isn't%20enabled%20at%20all.%26nbsp%3B%3CSPAN%3EEven%20if%20you%20select%20the%20ADC%20function%20for%20that%20pin%20in%20the%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3E%20Pins%20Tool%3C%2FSTRONG%3E%3CSPAN%3E%2C%20it's%20still%20generate%20the%20default%20value%20%60.mux%3D%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EPORT_MUX_ALT0%3C%2FSTRONG%3E%3CSPAN%3E%60.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHowever%2C%20if%20you%20want%20to%20enable%20the%20features%20described%20in%20section%20%3CSTRONG%3E%3CEM%3E43.4%20ADC%20Hardware%20Interleaved%20Channels%3C%2FEM%3E%20%3C%2FSTRONG%3Eof%20S32K1%20RM%20Rev14.1%2C%20for%20example%3A%26nbsp%3B%3CSTRONG%3EADC0_SE4%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EADC1_SE14%3C%2FSTRONG%3E%20channels%20are%20interleaved%20on%20PTB0%20pin%3C%2FP%3E%0A%3CP%3EThen%20it's%20recommended%20to%20select%20%3CSTRONG%3EADC0_SE4%3C%2FSTRONG%3E%20and%20%3CSTRONG%3EADC1_SE14%3C%2FSTRONG%3E%20for%20PTB0%20pin%20in%20the%20%3CSTRONG%3EPins%20Tool%3C%2FSTRONG%3E%2C%20The%20%3CSTRONG%3EPins%20Tool%3C%2FSTRONG%3E%20will%20then%20generate%20%60.mux%3D%3CSTRONG%3EPORT_MUX_ADC_INTERLEAVE%3C%2FSTRONG%3E%60%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ADC%20Hardware%20Interleave%20mux%20PORT_MUX_ADC_INTERLEAVE%20Pins%20Tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ADC%20Hardware%20Interleave%20mux%20PORT_MUX_ADC_INTERLEAVE%20Pins%20Tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ADC%20Hardware%20Interleave%20mux%20PORT_MUX_ADC_INTERLEAVE%20Pins%20Tool.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370730i9779E19F6330EE68%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22ADC%20Hardware%20Interleave%20mux%20PORT_MUX_ADC_INTERLEAVE%20Pins%20Tool.png%22%20alt%3D%22ADC%20Hardware%20Interleave%20mux%20PORT_MUX_ADC_INTERLEAVE%20Pins%20Tool.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ECalling%20%3CSTRONG%3EPort_Ci_Port_Ip_Init()%26nbsp%3B%3C%2FSTRONG%3Ewill%20enable%20the%20corresponding%20%3CSTRONG%3ESIM_CHIPCTL%3C%2FSTRONG%3E%5B%3CSTRONG%3EADC_INTERLEAVE_EN%3C%2FSTRONG%3E%5D%20bit%2C%20which%20enables%20%3CSTRONG%3E%3CEM%3EADC%20hardware%20interleaving%3C%2FEM%3E%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPort_Ci_Port_Ip_Init%20-%26gt%3B%26nbsp%3BPort_Ci_Port_Ip_PinInit%20-%26gt%3B%20Port_Ci_Port_Ip_ConfigureInterleave%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%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%3CLINGO-SUB%20id%3D%22lingo-sub-2267004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K148%20pins%3A%20default%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2267004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F57959%22%20target%3D%22_blank%22%3E%40Robin_Shen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20the%20clarification.%3C%2FP%3E%3C%2FLINGO-BODY%3E