[stella] AtariVox/SaveKey question

bob.montgomery at thomson.com bob.montgomery at thomson.com
Thu Jun 7 10:31:36 CDT 2007


Hi,

Based on my testing, you canNOT spread an AtariVox
*read* of multiple bytes over several frames! 
I was banging my head against a wall trying to figure out
why my code wasn't working until I realized that it *was*
reading the first byte (of three) correctly but none of the rest.

Here is what did NOT work:
Frame 1: i2c_startwrite
Frame 2: write high byte of address
Frame 3: write low byte of address
Frame 4: i2c_stopwrite
Frame 5: i2c_startread
Frame 6: read one byte
Frame 7: read one byte
Frame 8: read one byte
Frame 9: i2c_stopread

All writes seem to work just fine spread over many frames, both the
address writes (as above) and when I write data.

I tried playing around with the acknowledge bit and no matter what I did
the result was the same: first byte read correctly, subsequent bytes not
read correctly.

Here is what DID work:
Frame 1: i2c_startwrite
Frame 2: write high byte of address
Frame 3: write low byte of address
Frame 4: i2c_stopwrite
Frame 5: i2c_startread, read one byte, i2c_stopread
Frame 6: i2c_startread, read one byte, i2c_stopread 
Frame 7: i2c_startread, read one byte, i2c_stopread 

Hope this helps someone!

-Bob




More information about the Stella mailing list