Page 1 of 1
I2C addressing
Posted: Tue Oct 18, 2011 12:56 pm
by ssultana
Hi,I was trying to use MAX518 (DAC) and the write address for MAX518 is 0x58. But it looks like my master I2C cannot communicate with the DAC.Can anybody suggest me what can be issue here?
Re: I2C addressing
Posted: Wed Oct 19, 2011 12:58 pm
by lgitlitz
Take a look at the following topic for debugging communication with I2C:
http://forum.embeddedethernet.com/viewt ... ?f=5&t=982
You should scan through all the addresses on a NetBurner dev board. This will confirm the bus is okay since you will see the RTC respond to its address, hopefully you will also see your added device respond to its addresses.
-Larry
Re: I2C addressing
Posted: Wed Oct 19, 2011 1:09 pm
by ssultana
Thanks for quick response. I figured it out that the address fro MAX518 was not the correct one as mentioned in the data sheet.I had to devide it by 2 and it worked fine.
Re: I2C addressing
Posted: Thu Oct 20, 2011 10:24 am
by pbreed
RANT!
The I2C spec says addresses are 7 bits with a Read/Write flag.
Yet MANY MANY MANY data sheets publish an 8 bit address with different addresses for read/write.
On a device like a DAC that might not have a datasheet read address you have no way to tell if the data sheet is wrong.
If the data sheet has BOTH a read and write address it's an error and the address you really want is the write address /2
So if I2C does not work, first try to use the data sheet write address /2.
/RANT!
Re: I2C addressing
Posted: Sun Nov 27, 2011 10:30 am
by ahbushnell
Do you have an AP note or example code for I2C?
Thanks