52259 - I2C Interrupt driven routines?

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

52259 - I2C Interrupt driven routines?

跳至解决方案
2,723 次查看
FridgeFreezer
Senior Contributor I

Does anyone have an interrupt-driven routine for the MCF52259 I2C interface? The freescale example code is polling only which is slightly disappointing given the hardware supports I2C interrupts :smileyindifferent:

标签 (1)
0 项奖励
回复
1 解答
981 次查看
mjbcswitzerland
Specialist V

Hi

 

Attached is an I2C driver reference (for all V2 parts incl. M52259 on 2 interfaces). Only the HW interface is show (register defines should be fairly obvious but not included). The use of the I2C module is described at http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF

 

As described, the I2C interface can also be simulated to study it operation and verify application's use of it.

 

This is from the uTasker project, which supports simulation of the Kirin3, includes most drivers, including USB, and Ethernet (with TCP/IP stack and utFAT for SD cards). Eg. of M52259 running:

 

Simulated M52259

 

Regards

 

Mark

 

www.uTasker.com

www.utasker.com/kirin3.html

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
982 次查看
mjbcswitzerland
Specialist V

Hi

 

Attached is an I2C driver reference (for all V2 parts incl. M52259 on 2 interfaces). Only the HW interface is show (register defines should be fairly obvious but not included). The use of the I2C module is described at http://www.utasker.com/docs/uTasker/uTaskerIIC.PDF

 

As described, the I2C interface can also be simulated to study it operation and verify application's use of it.

 

This is from the uTasker project, which supports simulation of the Kirin3, includes most drivers, including USB, and Ethernet (with TCP/IP stack and utFAT for SD cards). Eg. of M52259 running:

 

Simulated M52259

 

Regards

 

Mark

 

www.uTasker.com

www.utasker.com/kirin3.html

 

0 项奖励
回复
981 次查看
FridgeFreezer
Senior Contributor I

You're a gentleman and a scholar, Sir! Thanks very much :smileyhappy:

0 项奖励
回复