[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] EEprom Read on Tiny13
From: |
Michael Hennebry |
Subject: |
Re: [avr-chat] EEprom Read on Tiny13 |
Date: |
Tue, 23 Oct 2007 09:54:27 -0500 (CDT) |
On Mon, 22 Oct 2007, Joerg Wunsch wrote:
> Robert von Knobloch <address@hidden> 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 address@hidden
"Horse guts never lie." -- Cherek Bear-Shoulders