Basic Configuration for I2C on KL27

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Basic Configuration for I2C on KL27

跳至解决方案
1,957 次查看
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 项奖励
回复
1 解答
1,951 次查看
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.
-------------------------------------------------------------------------------

在原帖中查看解决方案

3 回复数
1,948 次查看
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 项奖励
回复
1,952 次查看
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,953 次查看
ErichStyger
Specialist I

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