Understanding the Reference Manual pinout/How to i2c

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

Understanding the Reference Manual pinout/How to i2c

Jump to solution
1,591 Views
pb632146
Contributor V

Hello, I am trying to make a simple board with just the S32K341EHT0MPAST on it and some pins to access some analog and digital i/o and the i2c.

However looking at the reference manual and it seems like every GPIO pin is extremely multifunctional? I'm a bit overwhelmed and I don't understand how you would set each pin to a specific function. There are so many "ALTx" columns.

I see on the attached excel file for the s32k3 series that pin 41 and 42 are LPI2C1_SCL and LPI2C1_SDA respectively, and that there is another set of LPI2C0 pins. Do I understand correctly that I should be fine to use pin 41 and 42 as SDA and SCL and that the I2C0 is another "set" of i2c pins I could access?

pb632146_0-1716448687691.png

 

For simple digital and analog i/o I'm also a little lost, I see ADC_Sx as "standard input" pins available, but for digital would those be FXIO_Dx pins?

pb632146_2-1716448915878.png

 

pb632146_1-1716448713531.png

 

0 Kudos
Reply
1 Solution
1,567 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @pb632146

Yes, you can look at each I2C[X] as a different instance for the communication module to use. There are some pins routed to these functions as alt mux that can be changed depending on what modules you may need.

Inside the S32K3xx's datasheet you can find how many communication, analog and human-machine interfaces there are supported for the family. For example, you can find the figure map where each module is listed for the specific MCU derivative:

Julin_AragnM_0-1716486937238.png

For analog, there are up to three Analog Comparators (CMP) and up to three 12-bit Analog-to-Digital Converters (with up to 24 channel analog inputs). For digital, you can use GPIOs.

The FlexIO module is a flexible input and output to emulate communication protocols, you can use this presentation as reference: Introduction to FlexIO.

Best regards,
Julián

View solution in original post

0 Kudos
Reply
1 Reply
1,568 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @pb632146

Yes, you can look at each I2C[X] as a different instance for the communication module to use. There are some pins routed to these functions as alt mux that can be changed depending on what modules you may need.

Inside the S32K3xx's datasheet you can find how many communication, analog and human-machine interfaces there are supported for the family. For example, you can find the figure map where each module is listed for the specific MCU derivative:

Julin_AragnM_0-1716486937238.png

For analog, there are up to three Analog Comparators (CMP) and up to three 12-bit Analog-to-Digital Converters (with up to 24 channel analog inputs). For digital, you can use GPIOs.

The FlexIO module is a flexible input and output to emulate communication protocols, you can use this presentation as reference: Introduction to FlexIO.

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1871711%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUnderstanding%20the%20Reference%20Manual%20pinout%2FHow%20to%20i2c%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1871711%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20am%20trying%20to%20make%20a%20simple%20board%20with%20just%20the%26nbsp%3B%3CSPAN%3ES32K341EHT0MPAST%20on%20it%20and%20some%20pins%20to%20access%20some%20analog%20and%20digital%20i%2Fo%20and%20the%20i2c.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%20looking%20at%20the%20reference%20manual%20and%20it%20seems%20like%20every%20GPIO%20pin%20is%20extremely%20multifunctional%3F%20I'm%20a%20bit%20overwhelmed%20and%20I%20don't%20understand%20how%20you%20would%20set%20each%20pin%20to%20a%20specific%20function.%20There%20are%20so%20many%20%22ALTx%22%20columns.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20see%20on%20the%20attached%20excel%20file%20for%20the%20s32k3%20series%20that%20pin%2041%20and%2042%20are%26nbsp%3BLPI2C1_SCL%20and%26nbsp%3BLPI2C1_SDA%20respectively%2C%20and%20that%20there%20is%20another%20set%20of%20LPI2C0%20pins.%20Do%20I%20understand%20correctly%20that%20I%20should%20be%20fine%20to%20use%20pin%2041%20and%2042%20as%20SDA%20and%20SCL%20and%20that%20the%20I2C0%20is%20another%20%22set%22%20of%20i2c%20pins%20I%20could%20access%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_0-1716448687691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_0-1716448687691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280396i1F513E64FD24B4AC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_0-1716448687691.png%22%20alt%3D%22pb632146_0-1716448687691.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EFor%20simple%20digital%20and%20analog%20i%2Fo%20I'm%20also%20a%20little%20lost%2C%20I%20see%20ADC_Sx%20as%20%22standard%20input%22%20pins%20available%2C%20but%20for%20digital%20would%20those%20be%20FXIO_Dx%20pins%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_2-1716448915878.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_2-1716448915878.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280398i089A446A8EBF2F66%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_2-1716448915878.png%22%20alt%3D%22pb632146_2-1716448915878.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pb632146_1-1716448713531.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pb632146_1-1716448713531.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280397iBB4ED7400C91F09C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pb632146_1-1716448713531.png%22%20alt%3D%22pb632146_1-1716448713531.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1872782%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Understanding%20the%20Reference%20Manual%20pinout%2FHow%20to%20i2c%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1872782%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%2F230291%22%20target%3D%22_blank%22%3E%40pb632146%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20you%20can%20look%20at%20each%20I2C%5BX%5D%20as%20a%20different%20instance%20for%20the%20communication%20module%20to%20use.%20There%20are%20some%20pins%20routed%20to%20these%20functions%20as%20alt%20mux%20that%20can%20be%20changed%20depending%20on%20what%20modules%20you%20may%20need.%3C%2FP%3E%0A%3CP%3EInside%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FS32K3xx.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ES32K3xx's%20datasheet%3C%2FA%3E%20you%20can%20find%20how%20many%20communication%2C%20analog%20and%20human-machine%20interfaces%20there%20are%20supported%20for%20the%20family.%20For%20example%2C%20you%20can%20find%20the%20figure%20map%20where%20each%20module%20is%20listed%20for%20the%20specific%20MCU%20derivative%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_0-1716486937238.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_0-1716486937238.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280529i970E6B6E5EA6DA6B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_0-1716486937238.png%22%20alt%3D%22Julin_AragnM_0-1716486937238.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%20analog%2C%20there%20are%20up%20to%20three%20Analog%20Comparators%20(CMP)%20and%20up%20to%20three%2012-bit%20Analog-to-Digital%20Converters%20(with%20up%20to%2024%20channel%20analog%20inputs).%20For%20digital%2C%20you%20can%20use%20GPIOs.%3C%2FP%3E%0A%3CP%3EThe%20FlexIO%20module%20is%20a%20flexible%20input%20and%20output%20to%20emulate%20communication%20protocols%2C%20you%20can%20use%20this%20presentation%20as%20reference%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fsupporting-information%2FFTF-ACC-F1179_Introduction_to_FlexIO.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EIntroduction%20to%20FlexIO.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E