^24 - The Nonvolatile Memory Port

This port is used read/write to nonvolatile memories in timeclocks including the EnvisionGateway.
Devices without this feature can use persistent memories($) instead to accomplish similar results.

Older timeclocks have 31 slots available. Newer ones have 128.

Syntax

LDA ^24,x //Load from a non volatile memory
STA ^24,x //Store to a non volatile memory
Where x is the memory slot you want to store to.

This port writes to EEPROM locations that have a maximum number of writes available before the wear out. Avoid using these for anything that gets updated often.

Examples

Storing to a non volatile memory location for use later.

Task1()
{
Start(A=200,P=1)    //Start on a schedule override trigger
LDA #1
STA ^24,0 //Store an override is active in case the device loses power.
NULL
}