[En-Nut-Discussion] ds1388 i2c

myrteza kertusha myrkertu at gmail.com
Tue Feb 20 14:02:12 CET 2007


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



More information about the En-Nut-Discussion mailing list