Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Buffered interrupt driven EERPOM writes

2005-07-01 by arhodes19044

I want to do background writes of data to eeprom.

So, it needs to be interrupt driven.  Is it as simple as having a 
subroutine store the addresses of the source and destination in a 
global variable(s), then enable the eeprom interrupt, then do the 
first write  (&source[0] to &eeprom_dest[0])?

Then in the EEPROM ISR have it write sequentially from &source[1] to 
&eeprom_dest[1] for sizeof(source)-1 more bytes of data?  When the 
count of the bytes reaches zero, then the ISR would disable the EEPROM 
interrupt?

I guess there needs to be a eeprom_busy flag so nothing else tries to 
use the eeprom while the ISR is busy.

Any ideas or suggestions?

-Tony

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.