[stella] AtariVox/SaveKey question

bob.montgomery at thomson.com bob.montgomery at thomson.com
Mon Jun 4 16:26:10 CDT 2007


Hi,

If I want to read (or write) multiple bytes from the EEPROM on the
AtariVox/SaveKey, but I don't need to do it all in a single frame, do I
need to start and stop reading on every frame, or can I leave the EEPROM
hanging there between frames?

I.e., can I do this (using code from AtariVox.rtf file):
Frame 1: 
		jsr	i2c_startwrite	; Start signal and $a0 command
byte
Frame 2:
		lda	#$01			; upper byte of address
		jsr	i2c_txbyte
Frame 3:
		lda	#$40			; lower byte of address
		jsr	i2c_txbyte
Frame 4:
		lda 	Value1
		jsr 	i2c_txbyte		;write byte 1
Frame 5:
		lda 	Value2
		jsr	i2c_txbyte		;write byte 2
Frame 6:
		jsr	i2c_stopwrite	; terminate write and commit to
memory

Or do I need to send the start signal, address, and terminate signal on
every frame?

Does this make sense?

Thanks,

-Bob




More information about the Stella mailing list