[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] Problem with eeprom_write_byte

From: Matthias Fechner
Subject: [avr-libc-dev] Problem with eeprom_write_byte
Date: Mon, 07 Jun 2010 19:59:20 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv: Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4


I'm not sure if this is a bug or if I'm doing something wrong, maybe
someone could help me here, please.

I have a ATMega168p and I'm using a queuing system to write data to the
eeprom asynchronously.
To do this I use the ISR EE_READY_vect (code is written in C).

But it seems that the function eeprom_write_byte clears the EERIE in the
register EECR, that disables the EE_READY_vect interrupt and I have to
reenable it in every ISR call.

Is that a wanted behaviour or maybe a bug?



"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

reply via email to

[Prev in Thread] Current Thread [Next in Thread]