Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/06/08 22:25
Read: times


 
#159862 - 7-bit addresses are confusing
Responding to: ???'s previous message
As Jan said, it all depends on how you care to look at it.

Sending a Slave address is no different to sending any other byte on bus. As you have already seen 0xEE, 0x00 addresses the Slave device and writes 0x00.

Look at your library documentation. If it asks for a sequence of bytes to write and its associated length, then you probably need the ready-shifted 0xEE. If it asks for a 7bit address AND a read/write flag, then that is what you give it.

Remember that your PC software may well have different calling conventions for its library. But whatever happens, read the documentation and use the return values provided.

If in doubt look at any eeprom examples. 24Cxx eeproms use 0xA0/0xA1 slave write/read ( or 0x50 if you use the perverse 7 bit )

David.

List of 7 messages in thread
TopicAuthorDate
I2C Addressing Oddity I'm not quite sure            01/01/70 00:00      
   From the data sheet Slave is 0xExxx0            01/01/70 00:00      
      Pins are physically tied to Vcc            01/01/70 00:00      
         Also forgot to mention            01/01/70 00:00      
         it depends how do you see it            01/01/70 00:00      
            7-bit addresses are confusing            01/01/70 00:00      
            Got it now, it makes sense            01/01/70 00:00      

Back to Subject List