I2C Events

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

I2C Events

跳至解决方案
1,670 次查看
jacewalton
Contributor III

I am working with the K22f512VLK12 

I set up I2C channel 1 and have been having trouble with the Events 

the OnMasterSend and OnMasterRevieve does not seem to happen I put a break point in those functions and ran the code, it did not break until several iteration through the Main Look

my project is included below 

Thanks

Original Attachment has been moved to: worktrax.zip

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,477 次查看
jacewalton
Contributor III

Found my problem, I was not sending proper messages to the I2C slave device. the Even happens after the block is sent. I just needed to send proper commands the salve device.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,478 次查看
jacewalton
Contributor III

Found my problem, I was not sending proper messages to the I2C slave device. the Even happens after the block is sent. I just needed to send proper commands the salve device.

0 项奖励
回复
1,477 次查看
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Jace Walton

Is this thread related with this other one: I2C internal Freq (Multiplier Factor) ? Have you resolved your issue?

You mentioned that you can access to this events but it needs many time to happen. I believe that in this case you need to check that OnMasterSend and OnMasterRevieve are property set and what are the interrupts that will trigger this events, because you actually can access to the events.

Best Regards

Jorge Alcala

0 项奖励
回复