LPC845 Brk - I2C example

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

LPC845 Brk - I2C example

7,363 次查看
tomato
Contributor III

Hi all,

I want to try the I2C of the LPC845 BRK following what reported in the user manual

tomato_0-1674818545971.png

This is the initialization function of the I2C0 in the LPC845brk

tomato_1-1674818861357.png

And this is the send data function

tomato_2-1674818959822.png

I tried to launch a program with these two function called but I am doing something wrong.

While debugging the code is stuck here

tomato_6-1674819642284.png

 

 

and the i2c0 registers tell that the i2c is with communication in progress but i tried to see the SCL and SDA lines with the oscilloscopes and I do not see anything passing (always at 3v3). The MSTDAT register has the correct devaddr that I am passing 

tomato_4-1674819347568.png

Can you tell me what I am doing wrongly?

Thanks 

 

 

 

 

 

 

0 项奖励
回复
21 回复数

756 次查看
tomato
Contributor III

Hi,

@VaneB can you help me to use the code bundles and test the I2C?

 

0 项奖励
回复