Thanks John! That sbi instruction was the culprit. I misunderstood, and thought that was only necessary if one was worried about the 4 clock cycle delay in reading EEPROM. *sigh* tom John Samperi wrote: > > I have taken the liberty to rearrange your code to my > liking :) this will fetch the last data byte correctly. > Also watch out your use of r16 as it is also defined as temp. > > > rcall NEXT ; go grab next tabel address > out EEARL,r16 ;Sets up address in EEP > sbi EECR,EERE ;************* this is missing in your code > i >
Message
Re: [AVR-Chat] *oh*
2007-01-04 by Thomas Keller