On Mon, 22 Oct 2007, Joerg Wunsch wrote: > Robert von Knobloch <[EMAIL PROTECTED]> wrote: > > > The library functions, defined in "avr-libc-1.4.6/libc/misc/eeprom.S" > > always write a 16-Bit address to the EEAR register. This is expressly > > forbidden in the Tiny13 datasheet and is the cause of my problems.
> Too bad if that no longer works. This trick used to work for all AVRs > so far: the undefined EEARH register was just ignored. > > The bad thing about this is that working around that will introduce > more flavors of EEPROM implementation functions inside the library, > similar to the different register locations that are already > implemented. How about reading EEARH and only writing it if the new value is different? If reading it is ok and it reads as zero, then valid addresses shouldn't be a problem. -- Mike [EMAIL PROTECTED] "Horse guts never lie." -- Cherek Bear-Shoulders _______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat