CONFIG EEPROM

Top  Previous  Next

Action

Setup memory mode for EEPROM in XMEGA.

 

 

Syntax

CONFIG EEPROM=mode

 

 

Remarks

In Xmega, the EEPROM can be mapped so it can be used with pointer operations such as LD,ST,LDS and STS.

When EEPROM is mapped, it will start at &H1000. The advantage of mapping the EEPROM is that reading the EEPROM becomes much more simpler.

 

In release 1.11.9.6, only MAPPED is supported. When you use the BASCOM EEPROM routines, you must include this statement before you use the EEPROM.

 

To maintain compatibility with code and other AVR chips you can still use address 0 for the EEPROM. The library will add an offset of &H1000 to the address.

 

 

See also

NONE

 

 

Example

Config Eeprom = Mapped