[stella] AtariVox/SaveKey question

bob.montgomery at thomson.com bob.montgomery at thomson.com
Tue Jun 5 14:29:18 CDT 2007


Hi Thomas,

Okay, now I'm confused. :)  Maybe.

I'm reading three bytes, every time.

Before I read the first one, I make sure the overflow flag is clear,
because I don't send an acknowledge bit first.  Right?
But then when I read the 2nd and 3rd bytes I need to make sure the
overflow flag is set before calling i2c_rxbyte, so that the acknowledge
bit is sent first.  Correct?
And after the 3rd I need to transmit an acknowledge bit, but
i2c_stopread will take care of that.

I think this might just work... :D

Thanks again,

-Bob


-----Original Message-----
From: stella-bounces at atari2600.org [mailto:stella-bounces at atari2600.org]
On Behalf Of Thomas Jentzsch
Sent: Tuesday, June 05, 2007 12:09 PM
To: Atari 2600 programming list
Subject: Re: [stella] AtariVox/SaveKey question

Bob Montgomery wrote:
> So the acknowledge bit is only necessary when reading, and I just make
> sure the overflow-flag is clear when I call i2c_rxbyte.

For all bytes except for the first and last one.

The first byte doesn't have to transmit an ACK before. The last byte has
to
transmit NACK after it has been read (-> in i2c_stopread).

Have fun!
Thomas                            
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |


_______________________________________________
Stella mailing list
Stella at atari2600.org
http://atari2600.org/mailman/listinfo/stella




More information about the Stella mailing list