[En-Nut-Discussion] ds1388 i2c

Ernst Stippl ernst at stippl.org
Tue Feb 20 20:50:05 CET 2007


Hi!

the 1388 web page says "The device is accessed through an I2C serial
interface. " 

This interface is implemented in the mega128 as the "two wire serial
interface"
Have a look at page 198 in the doc# 2467L this is the atmega128 ref manual.

regards
ernst
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von myrteza kertusha
Gesendet: Dienstag, 20. Februar 2007 14:02
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] ds1388 i2c

Hi everyone,
I'm working on an Ethernut 2.1 board trying to communicate with a dallas
1388 rtc. I had a few questions to clear out, maybe someone out there can
answer.
1) what do we mean with "SDA High"?
 DDRX1 = 1; // i.e. output direction
 PORTX1 = 1; // i.e. drive high

or

 DDRX1 = 0; // i.e. input direction
 PORTX1 = 1; // i.e. pull-up get activated

or

DDRX1 = 0; // i.e. input direction as in dev/twbbif.c of the NUT/OS declared
in a macro

2) We write to PORTX and we read from PINX? Is it so?

3) PINX reflects what written to PORTX?

Thanx in advance
Best regards
Zac
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.3/693 - Release Date: 19.02.2007
17:01




More information about the En-Nut-Discussion mailing list