Yahoo Groups archive

AVR-Chat

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

Message

Re: Buffered interrupt driven EERPOM writes

2005-07-02 by arhodes19044

Thanks for confirming my general approach.  The devil is in the 
details, of course.  I am surprised that there is no generic 
interrupt driven subroutinr and matching ISR.  In its most generic 
form it would be quite functional and useful.  So.... I will write 
it and post it!

-Tony


--- In AVR-Chat@yahoogroups.com, Johnathan Corgan <jcorgan@a...> 
wrote:
> arhodes19044 wrote:
> 
> > So, I think my strategy will be to create a buffer for the data 
in 
> > RAM, then call a subroutine with the address of the data and the 
> > sizeof the data.  Then have that subroutine determine the 
location of 
> > the EEPROM write, store those locations and length in a global 
> > variable,  then initiate the first write, and then return to the 
> > calling program.  The ISR will handle the rest of the transfer.
> 
> This is a pretty tried and true algorithm for sending a block of 
data 
> out a peripheral that interrupts when it is ready for the next bit 
of 
> data, regardless of microprocessor and microcontroller 
architecture. 
> Kick start the first byte and let the ISR go from there.  I have 
old 
> 8250 serial port code I wrote in 1989 for an 80286 that works the 
same way!
> 
> -Johnathan

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.