Hi,

Thanks for the quick reply. The i2c implementation I mentioned has an
error code check,
and I think the part of the code is almost the same with yours. I
guess my problem
is whether I set the wrong slave address or I miss something? Thanks.

Regards,
Dave.

On Wed, Jul 2, 2008 at 9:49 PM, Gudjon I. Gudjonsson  wrote:
> Hi
>> 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.
>    Sorry, I haven't got time to explain more but I hope it works. There are
> no error checks in the code. I did not find any solution around different
> implementation for the last byte written.
>
> Cheers
> Gudjon
>
> -------------------------------------------------------------------------
> 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

Reply via email to