Hello Forum,
This is my first thread on this forum.
I want to ask a question regarding I2C communication on ESP32 in Arduino IDE.
I want to write data on AFE4404 which is a i2c support ic.
register is of 24bit long.
How do i write 24 bit data on it.
And how do i know that exactly data is written on each bit?
How do i calculate acknowledgement after each register write?
(Note: AFE4404 Does not support continuous READ/WRITE mode )
To get started, simply find an I2C scanner to discover the device’s I2C address. If you get 0x58 you are doing well.
Then look here Gammon Forum : Electronics : Microprocessors : I2C - Two-Wire Peripheral Interface - for Arduino for sample code for getting data from the device. You’ll get 3 bytes back. You’ll then have to convert the results to a decimal number (it is currently a 2s complement number)