Basic Configuration for I2C on KL27

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

Basic Configuration for I2C on KL27

Jump to solution
1,012 Views
RicardoRuiz18a
Contributor II

I have been searching in the forum about some examples of how to configure and use i2c but couldn't found any. where i can find some example? Does not matter if is not for KL27, I just want to know how to configure it.

Thank you

0 Kudos
1 Solution
1,006 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi RicardoRuiz18a,

Please Select Development Board and then Build MCUXpresso SDK v2.9.0 of KL27.

Select Development Board.jpgBuild SDK for FRDM-KL27Z.jpg
First you need to install SDK in MCUXpresso IDE, then import examples from SDK.
Here you can refer several I2C example for FRDM-KL27Z.

I2C examples.jpg

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" 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

3 Replies
1,003 Views
bobpaddock
Senior Contributor III

Repeated Start is broken in parts that have the Double Buffered I2C module such as the KL27.
There are a few discussion about it in the forms.

The SDK gets around the issue by inserting undocumented NOPs to outlast the hardware race condition.

 

0 Kudos
1,007 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi RicardoRuiz18a,

Please Select Development Board and then Build MCUXpresso SDK v2.9.0 of KL27.

Select Development Board.jpgBuild SDK for FRDM-KL27Z.jpg
First you need to install SDK in MCUXpresso IDE, then import examples from SDK.
Here you can refer several I2C example for FRDM-KL27Z.

I2C examples.jpg

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" 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.
-------------------------------------------------------------------------------

1,008 Views
ErichStyger
Senior Contributor V

Hi @RicardoRuiz18a ,

there are examples in the SDK, just use them with the MCUXpresso IDE:

ErichS_0-1621831709447.png

ErichS_1-1621831757968.png

 

I hope this helps,

Erich