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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/19/03 00:57
Read: times


 
#58982 - RE: Which one is correct ?
Responding to: ???'s previous message
Mario,

you've answered your own question

Datasheet says 1101000+0 = address+write bit = D0 Hex

which is 68hex with another bit added on = D0 hex

i2c deals in bytes:

therefore to access a device you code must:

send start sequence
send address with r/w bit
.....
send stop sequence

therefore to read the device the address and r/w bit = D1 hex and to write the device the value is D0 hex (I could be back to front here!!)

no magic here my friend. You could've tried both values - at least one would've worked and there would be your answer.

List of 24 messages in thread
TopicAuthorDate
Psudo Code for RTC Ds1307 - 8051            01/01/70 00:00      
   RE: Psudo Code for RTC Ds1307 - 805            01/01/70 00:00      
      RE: Psudo Code for RTC Ds1307 - 805            01/01/70 00:00      
         RE: Psudo Code for RTC Ds1307 - 805            01/01/70 00:00      
   RE: Psudo Code for RTC Ds1307 - 805            01/01/70 00:00      
   RE: Psudo Code for RTC Ds1307 - 8051            01/01/70 00:00      
      verify please            01/01/70 00:00      
   verify please 2            01/01/70 00:00      
      RE: verify please 2            01/01/70 00:00      
      RE: verify please 2            01/01/70 00:00      
         Slave address help ?            01/01/70 00:00      
            RE: Slave address help ?            01/01/70 00:00      
            Which one is correct ?            01/01/70 00:00      
               RE: Which one is correct ?            01/01/70 00:00      
               RE: Which one is correct ?            01/01/70 00:00      
               RE: Which one is correct ?            01/01/70 00:00      
   Here is the Psudo Code            01/01/70 00:00      
      Russell Thanks            01/01/70 00:00      
      RE: Here is the Psudo Code            01/01/70 00:00      
      RE: Here is the Psudo Code            01/01/70 00:00      
      RE: Here is the Psudo Code            01/01/70 00:00      
      RE: Here is the Psudo Code            01/01/70 00:00      
         Get your flameproof suit on, Mahmood!            01/01/70 00:00      
         RE: Pascal            01/01/70 00:00      

Back to Subject List