How to use I2C module as communication interface between K60DN128 with MKL25Z128?

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

How to use I2C module as communication interface between K60DN128 with MKL25Z128?

跳至解决方案
1,072 次查看
changkenta
Contributor II


Hello,

I want to use I2C module as interface between K60DN128 with MKL25Z128, setting K60 as I2C-master and MKL25 as I2C-slave.

Could you please let me know How to routine the firmware in C language on CW 10.5?

Regards,

Kenta

0 项奖励
1 解答
638 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Kenta,

About Init_I2C PE component example, there is no related example code.

I would recommend to refer Kinetis 100MHz V2 example code and KL25 example code, which includes I2C example demo.

Kinetis 100MHz V2 software could be downloaded from below link:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K60_100&nodeId=01624698C9DE2DDDAF&fps...

KL25 example could be downloaded from below link:

http://cache.freescale.com/files/32bit/software/KL25_SC.exe

Wish it helps.

B.R.

Ma Hui

在原帖中查看解决方案

0 项奖励
3 回复数
638 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Kenta,

I would recommend you to use Processor Expert tool, which provides I2C_LDD component.

The I2C_LDD component also provides typical usage example for your reference, includes I2C master and slave mode.

Wish it helps.

B.R.

Ma Hui

0 项奖励
638 次查看
changkenta
Contributor II

hi Hui_Ma,

thanks.

by the way, I hope to know how to setting I2C master and slave function in Init_I2C component, is there any example?

Regards,

Kenta

0 项奖励
639 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Kenta,

About Init_I2C PE component example, there is no related example code.

I would recommend to refer Kinetis 100MHz V2 example code and KL25 example code, which includes I2C example demo.

Kinetis 100MHz V2 software could be downloaded from below link:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K60_100&nodeId=01624698C9DE2DDDAF&fps...

KL25 example could be downloaded from below link:

http://cache.freescale.com/files/32bit/software/KL25_SC.exe

Wish it helps.

B.R.

Ma Hui

0 项奖励