problem with interfacing with adc7924 in mk22fn512vll12 for read and write

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

problem with interfacing with adc7924 in mk22fn512vll12 for read and write

1,617 次查看
unknown_boy
Contributor II

hi nxp,

i am using mk22fn512vll12 MC interfacing with external ADC7924  i am facing problem for demo in writing data register and reading data from register 0x02 and 0x03 channel 0 is selected,

plz check this attached file weather it is right or wrong.

 

0 项奖励
回复
3 回复数

1,585 次查看
Joey_z
NXP Employee
NXP Employee

hi,unknown_boy

Thank you for your interest in NXP products.

1.Check if the I2C configuration is correct to ensure that the slave address you are using matches the address set in the program. It is recommended to use a logic analyzer to capture and analyze the transmitted data.

2.Make sure the hardware connection is correct, and assess whether the power supply voltage may be insufficient or unstable.

3.Confirm whether the I2C communication rate matches the rate supported by the slave. I think you should decrease the I2C rate, as I can infer from the picture you provided.

    XuZhang_0-1728613586862.png

4.Additionally, you should review more of the adc7924-related manuals to check if there are any configurations that you might have overlooked.

BR

Xu Zhang

0 项奖励
回复

1,551 次查看
unknown_boy
Contributor II

writing data in adc7924 external ADC with the help of mk22fn512vll12 MC in mcuxpresso ide 

i am facing issue with write function code and setting in IDE plz solve the issue.

0 项奖励
回复

1,519 次查看
Joey_z
NXP Employee
NXP Employee

hi,unknown_boy

Thank you for your reply.

1. We do not have the third-party ADC module you are using, please check whether mk22fn512vll12 can communicate with external ADC7924. To ensure normal communication, IIC communication data can be captured using logic analyzers and oscilloscopes.
2. In addition, you define two I2C addresses, I2C_ADDRESS_write and I2C_ADDRESS_read. Typically, I2C devices have only one address, and read and write operations are distinguished by the first byte in the packet (the register address). Please check the slave address Settings. Look at the ADC7924 Look at the ADC7924 reference, you can set the pin A0 state, set a different slave address, please note this.

XuZhang_0-1729132782248.png

 

Hope it can heip you.

BR

Xu Zhang

0 项奖励
回复