- This topic has 1 reply, 2 voices, and was last updated 8 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › How to read 16 bit of data using I2C/TWI Protocol
Hi friends
I have slave device INA219 which has 16 bit resister, and i have to read this 16 bit resister using I2C/TWI Protocol
my confussion is I2C has Data resister(TWDR) 8bit then how to read 16 bit ?
Here i have written I2C/TWI Read function
Hye Amit,
I2C protocol read single byte at a time. INA219 has 16 bit register which is acess in two 8 bytes via I2C Interface. As my opinion repeat two time process of read data.
Try it….