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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/05/01 05:59
Read: times


 
#12191 - I2C interface for 24C16 + DS1307
I'm working on a project at home where I have a 8031 that I setup so the P1.6 and P1.7 is connected to an I2C bus. On this bus I have one 24C16 and one DS1307.

I had some code that makes it possible to read and write from the 24C16. But when I started to use this for the DS1307 I had to add some 'wait' between etch step otherwise the data didn't com out.

Now the the real problem! Now and then, the DS1307 flips out and does not response when I try to read it!? I just get FF back.

The code I'm using is not handling the ACK in an nice way.

Is there anyone out there that has an nice and work code block for accessing an I2C bus? (If so please mail me...)

I've searched the net but haven't been able to find and god code...

BTW the project is about an automatic flower watering system, with RS232 command interface and an LCD-display.

/Magnus

List of 17 messages in thread
TopicAuthorDate
I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
serching ADuC824 applications            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: I2C interface for 24C16 + DS1307            01/01/70 00:00      
RE: serching ADuC824 applications            01/01/70 00:00      
RE: serching ADuC824 applications            01/01/70 00:00      

Back to Subject List