Re: Confused about synchronous communications



On a sunny day (Thu, 20 Sep 2007 23:03:38 GMT) it happened "Jon Slaughter"
<Jon_Slaughter@xxxxxxxxxxx> wrote in
<e%CIi.8213$JD.4197@xxxxxxxxxxxxxxxxxxxxxxxxxx>:

Yes, but I don't think that is anything to difficult? I just have to make
sure I set the lines correctly and wait atleast the minimum times.

Look at the datasheets is all I can say.

I did but was confused when exactly the data on the data line had to be
correct. They show the data edge right and the clock edge rise at the same
time. This can't work though and I didn't really notice the clock was 2x as
fast ;/ It make sense and everything but I really wanted to make sure
before I went any farther with my code(which I essentially have the clock at
the same rate as the data(but I was just testing my code with some leds so
it wasn't critical).

Jon

I dunno what sort of code you have, asm, C, BASIC, or whatever, but for i2c
you could download C code from Philips IIRC.
I have open source drivers in C too, they are in iiclib.c
http://panteltje.com/panteltje/xkrs/xkrs-1.1.tgz
That program does i2c protocol via 3 par port pins.
.