Tool/software:
Our team's development board plans to use the ADS7138QRTERQ1 chip as the AD chip to recognize the AD value of the physical keypad (pin KEY_KEY), and transmit the converted AD value to the main control chip AM62A74UMHAAMBR through SOC_SDA and SOC_S2C1_SCL.
Currently, AD chip devices can be recognized on the I2C bus
The device tree configuration is as follows:
The script content for reading AIN0 is as follows:
The current issue is:
1. Directly read any register using the i2cget - y 1 0x13 command, and the value will be 0xff.
2. When the physical button is pressed, any register is read, and the value read is consistent with the voltage value measured by the multimeter, which can be understood as the AD value.
Why do all registers behave the same?
3. When I tried to change the value of one of the registers with a write command and then read the register, I found that the write command did not take effect and it was still 0xff.
Please help me analyze the causes of the problem and provide solutions based on the information above. Thank you.
If there are reference routines provided, that would be even better.