Hello Dave,

an afterthought:

before you try and implement a protocol with multiple configuration bytes and 
answer-response traffic, you may want to make sure that a one-byte message 
does get through to the I2C device.

You could use a PCF8574 (or PCF8574A with the alternate address) and simple 
led-resistor loads on the totem-pole (20mA source and sink) outputs to check 
the physical bus. 

Jean-Paul


Le Jeudi 3 Juillet 2008 07:54, dave jones a écrit :
> 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.

-- 
Tu mangeras quand tu seras compétitif, Mamadou !


-- 
Never jump into a loop!

-------------------------------------------------------------------------
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