Archiv verlassen und diese Seite im Standarddesign anzeigen : Verschiedene Variablen als eine speichern?
Hallo allerseits!
Ich müsste 3 Variablen, einmal ein Text (" " oder "-"), einen Zahlenwert und wieder einen Text (".0" oder ".5") wenn möglich als eine Variable im EEPROM speichern um sie so jederzeit am Display ausgeben zu können.
Gibts da irgendeine Möglichkeit?
MfG,
Maxxtro
stefan_Z
10.08.2009, 21:06
Siehe Anleitung:
Using variable name instead of address
As variables can be moved though the program during development it is not always
convenient to specify an address. You can also use the name of the variable :
DIM W as WORD
Dim B as BYTE AT W OVERLAY
Now B is located at the same address as variable W.
For XRAM variables, you need additional hardware : an external RAM and address
decoder chip.
For ERAM variables, it is important to understand that these are not normal variables.
ERAM variables serve as a way to simple read and write the EEPROM memory. You
can use READEEPROM and WRITEEEPROM for that purpose too.
ERAM variables only can be assigned to SRAM variables, and ERAM variables can be
assigned to SRAM variables. You can not use an ERAM variable as you would use a
normal variable.
Dim b as byte, bx as ERAM byte
B= 1
Bx=b ' write to EEPROM
B=bx ' read from EEPROM
Powered by vBulletin® Version 4.2.5 Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.