s32k311 i2C

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

s32k311 i2C

1,655 Views
piyush1
Contributor III

hello dear NXP team......

i am configuring NXP s32k311 and I want to configure I2C communication with polling, interrupt and dma mode.....please help me out with project example with s32k311 and other resources...

0 Kudos
Reply
3 Replies

1,640 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @piyush1 

As you know, the S32K3 family includes many derivatives. To reduce development effort, the most recent RTD releases provide example projects only for a subset of devices—specifically, the S32K344, S32K358, S32K388, and S32K396. However, examples for other derivatives can be created by adapting these existing ones.

I recommend reviewing the Example S32K312 I2C Transmit & Receive Using DMA DS3.5 RTD300, as well as the I2c_Ip_Example and I2c_Example included with the RTD package. While these examples are not intended for your specific device, they offer a good starting point.

Additionally, I suggest consulting the S32K3/S32M27x I2C Driver Integration Manual and the User Manual included with the RTDs. These documents provide comprehensive information on the I2C driver, including its limitations, hardware and software requirements, usage instructions, and configuration guidelines. You can typically find these resources in a path similar to:

C:\NXP\S32DS.3.6.2\S32DS\software\PlatformSDK_S32K3\RTD\I2c_TS_T40D34M60I0R0\doc

Please note that the exact path may vary depending on your IDE and software version.

 

BR, VaneB

0 Kudos
Reply

1,635 Views
piyush1
Contributor III

brother....i need dedicated example for s32k311 i2c in polling mode and in interrupt mode...provide me project code.

0 Kudos
Reply

1,628 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @piyush1 

The I2c_Ip_Example and I2c_Example show how to use I2C communication with interrupts. While there is no specific example for polling mode, you can still implement it by using the blocking send and receive functions available in the driver.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2146851%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32k311%20i2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2146851%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%20dear%20NXP%20team......%3CBR%20%2F%3E%3CBR%20%2F%3Ei%20am%20configuring%20NXP%20s32k311%20and%20I%20want%20to%20configure%20I2C%20communication%20with%20polling%2C%20interrupt%20and%20dma%20mode.....please%20help%20me%20out%20with%20project%20example%20with%20s32k311%20and%20other%20resources...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147812%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k311%20i2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147812%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%2F252587%22%20target%3D%22_blank%22%3E%40piyush1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20I2c_Ip_Example%20and%20I2c_Example%20show%20how%20to%20use%20I2C%20communication%20with%20interrupts.%20While%20there%20is%20no%20specific%20example%20for%20polling%20mode%2C%20you%20can%20still%20implement%20it%20by%20using%20the%20blocking%20send%20and%20receive%20functions%20available%20in%20the%20driver.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147628%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k311%20i2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147628%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ebrother....i%20need%20dedicated%20example%20for%20s32k311%20i2c%20in%20polling%20mode%20and%20in%20interrupt%20mode...provide%20me%20project%20code.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2147093%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32k311%20i2C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2147093%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%2F252587%22%20target%3D%22_blank%22%3E%40piyush1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20know%2C%20the%20S32K3%20family%20includes%20many%20derivatives.%20To%20reduce%20development%20effort%2C%20the%20most%20recent%20RTD%20releases%20provide%20example%20projects%20only%20for%20a%20subset%20of%20devices%E2%80%94specifically%2C%20the%20S32K344%2C%20S32K358%2C%20S32K388%2C%20and%20S32K396.%20However%2C%20examples%20for%20other%20derivatives%20can%20be%20created%20by%20adapting%20these%20existing%20ones.%3C%2FP%3E%0A%3CP%3EI%20recommend%20reviewing%20the%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K312-I2C-Transmit-amp-Receive-Using-DMA-DS3-5-RTD300%2Fta-p%2F1801357%22%20target%3D%22_blank%22%3EExample%20S32K312%20I2C%20Transmit%20%26amp%3B%20Receive%20Using%20DMA%20DS3.5%20RTD300%3C%2FA%3E%2C%20as%20well%20as%20the%20I2c_Ip_Example%20and%20I2c_Example%20included%20with%20the%20RTD%20package.%20While%20these%20examples%20are%20not%20intended%20for%20your%20specific%20device%2C%20they%20offer%20a%20good%20starting%20point.%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20I%20suggest%20consulting%20the%20S32K3%2FS32M27x%20I2C%20Driver%20Integration%20Manual%20and%20the%20User%20Manual%20included%20with%20the%20RTDs.%20These%20documents%20provide%20comprehensive%20information%20on%20the%20I2C%20driver%2C%20including%20its%20limitations%2C%20hardware%20and%20software%20requirements%2C%20usage%20instructions%2C%20and%20configuration%20guidelines.%20You%20can%20typically%20find%20these%20resources%20in%20a%20path%20similar%20to%3A%3C%2FP%3E%0A%3CP%3EC%3A%5CNXP%5CS32DS.3.6.2%5CS32DS%5Csoftware%5CPlatformSDK_S32K3%5CRTD%5CI2c_TS_T40D34M60I0R0%5Cdoc%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20the%20exact%20path%20may%20vary%20depending%20on%20your%20IDE%20and%20software%20version.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E