Yahoo Groups archive

AVR-Chat

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

Message

Re: Excecuting through SRAM

2005-07-02 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, Dave VanHorn <dvanhorn@d...> wrote:
> 
> >
> > > also how can i use the spm instruction to write one word
> > > only in the flash mem. using the ATmega8515??
> >
> >         Reading the datasheet, perhaps?
> 
> Specifically the SPM instruction.

A careful reading of the procedure for using the SPM instruction will 
probably reveal that you cannot write just one word.  Rather, you must 
write a page at a time.  However, you can effect the change of a 
single word by reading the data for a page, changing the word and 
writing the page back.

Remember, datasheets are your friend.  Google, too.

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.