[En-Nut-Discussion] TWI / I2C and DS1307

Alexander Baranov baranov at intech21.com
Wed Feb 2 21:46:54 CET 2005


Hi, Douglas.
I have, but regretfully, I had written it by myself before the TWI appeared
in Ethernut distribution. It works and I can send you the code for
reference. Only confirm that you agree to accept this home-made product.
Regards, Alexander
----- Original Message ----- 
From: "Douglas Pearless" <Douglas.Pearless at pearless.co.nz>
To: "'amit khandelwal'" <khandelwal.amit at gmail.com>; "'Ethernut User Chat
(English)'" <en-nut-discussion at egnite.de>
Sent: Wednesday, February 02, 2005 6:15 AM
Subject: [En-Nut-Discussion] TWI / I2C and DS1307


> Hi People,
>
> I have been trying to get a DS1307 on the Ethernut v2 going using the code
> from the TWI project.
>
> If I send the wrong slave address I get a rc 4 (which is correct)
>
> When I send the correct slave address I always get a rc=0 for reads and
> writes, BUT they never seem to alter the registers or the RAM correctly.
>
> I always get the same garbage.
>
> I use TWInit first, and I have tried setting the speed, and not setting
the
> speed.
>
> Before I tear my remaining hair out, does anyone have some working TWI
code
> for a RTC (or anything) that works that they would share?
>
> Cheers Douglas.
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 28/01/2005
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>





More information about the En-Nut-Discussion mailing list