2003-10-20 10:06 PM
2003-10-11 06:36 AM
How can I define constants with indart / assembler in the EEPROM.
Thanks and regards hansjusch2003-10-12 07:52 PM
With Cosmic compiler:
You can use @eeprom to declare variables in EEPROM @eeprom char var1; or you can use #pragma to declare all your variables in EEPROM The compiler uses a runtime library for eeprom variable operations With Metrowerks compiler: You can define a different data segment for EEPROM variables and constants and then define this segment in .prm file in source file use #pragma DATA_SEG EEPROM_DATA unsigned char var1; in .prm file use PLACEMENTS EEPROM_DATA INTO EEPROM refer to compiler manual for read write operations as they may require some EEPROM register settings. Hope this Helps, Best Regards, PraveenG2003-10-20 10:06 PM
Dear PraveenG
Thanks for Your answer. My concern are constants (like look- up tables or character- strings) directly programmed in the EEPROM with InDart / Assembler. Kind regards hansjusch