Hi Dave, I want to read/set RTC date and time with 8051 via the i2c protocol. I2C implementation protocol I used is http://sdccokr.dl9sec.de/dld/top03_pac01.zip Also, I found out there are no ouput voltage with the SDA pin, I should set SDA = 0. I guess that i2c implementation I got is wrong? Thanks.
Dave McGuire wrote: > On Jul 2, 2008, at 9:49 AM, Gudjon I. Gudjonsson wrote: >>> Would anyone have an example about how to interface rs5c372a with >>> 8051 >>> via i2c protocol? I tried to use >>> http://sdccokr.dl9sec.de/dld/top03_pac01.zip with no luck. >>> i2c_write() always failed. The RS5C372A slave address is 0x64. >>> Thanks in advance. >>> >>> rs5c372a datasheet: www.datasheetcatalog.org/datasheets/ >>> 480/482022_DS.pdf >> I made the attached library for my applications on the p89c668 >> microcontroller, but it has worked with all I2C chips I have used. > > The P89C66x processors have an on-chip I2C controller. What 8051 > implementation is the original poster using? > > -Dave > > -- > Dave McGuire > Port Charlotte, FL > > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Sdcc-user mailing list > Sdcc-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user