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.
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
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.
Hope it can heip you.
BR
Xu Zhang