[Top][All Lists]

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

Re: [avr-gcc-list] Placing constants at known locations in eeprom at com

From: David Breeze
Subject: Re: [avr-gcc-list] Placing constants at known locations in eeprom at compile time
Date: Fri, 30 May 2003 08:07:50 +0100

Thanks for the tip.


>>> Klaus Rudolph <address@hidden> 30 May 2003 07:08:06 >>>
Hi David,

> I have a requirement to place constants in the EEPROM of an ATmega323 in 
> known locations at compile time.

I use the following code in my project:

//* EEProm Positionen                                              *
.section .eeprom

.byte 0x80      ;defaultadresse
.byte 0x40      ;defaultadresse 

//now we need a gap, so that all!!! informations stand whitin one page!
//of the eeprom!
.rept 64-2
.byte 0x00

.rept ANZ_BANK
.rept 4
.byte 0x30+0x02, 0x00           ;dauer Bit7..3, Gruppe Bit2..0 (3Bit)

It make no difference between writing data to flash than
to eeprom. Only difference is to use the .eeprom section here.

Hope that helps


avr-gcc-list mailing list

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.  If 
an addressing or transmission error has misdirected this e-mail, please notify 
the author by replying to this e-mail.  If you are not the intended recipient 
you must not use, disclose, copy, print or rely on this e-mail.

Joy Mining Machinery Limited/P&H Minepro Services aims to prevent the 
propagation of viruses, but cannot guarantee that this email is virus free.  
You are advised to scan all attachments and open them at your own risk.

Joy Mining Machinery Limited/P&H Minepro Services may monitor outgoing and 
incoming e-mails and other telecommunications on its e-mail and 
telecommunication systems.

reply via email to

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