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

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

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

Jump to solution
1,057 Views
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 Kudos
1 Solution
623 Views
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

View solution in original post

0 Kudos
3 Replies
623 Views
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 Kudos
623 Views
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 Kudos
624 Views
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 Kudos