David Lloyd I have been trying to set up I2C communications

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

David Lloyd I have been trying to set up I2C communications

996 次查看
davidatworkandp
Contributor I

David Lloyd I have been trying to set up I2C communications between two JN5169 MCUs, one configured as slave the other as the master. I have followed the JN-UG-3087 mannual as best as I can understand it, but still have no I2C coms occurring. I have attached I2C files to message, would appreciate any help in where I am going wrong.

标记 (1)
0 项奖励
回复
1 回复

929 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi David,

I am checking the example code that you provide.

The function is setting 2 DIO pins for output purposes. I am assuming that your device is the Slave, so it should be a 1 input for the Clock.

    /* Set IIC DIO lines to outputs */
    vAHI_DioSetDirection(0, IIC_MASK);

Is it possible that you could measure the voltage of those pins?

Did you capture the commands with a logic analyzer?

Regards,

Mario