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

Douglas Pearless Douglas.Pearless at pearless.co.nz
Wed Feb 2 19:42:09 CET 2005


Hi Henrik,

I'd love to get your code!

Cheers Douglas

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Henrik Maier
Sent: Thursday, 3 February 2005 12:43 a.m.
To: Ethernut User Chat (English)
Subject: Re: [En-Nut-Discussion] TWI / I2C and DS1307

Douglas,

I have some working code which was developed independently of NutOS. I 
am using it with an Ethernut 1 compatible hardware containing a DS1307 
RTC. Maybe at some stage I convert it into a NutOS driver and contribute 
it to the Ethernut project. If you are interested, I can send you the 
current files.

Henrik

Douglas Pearless wrote:
> 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.
> 
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 28/01/2005
 

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




More information about the En-Nut-Discussion mailing list