
Publication 1746-PM001A-US-P
A-6 BASIC Macro Library
Battery Back-Up
The following table describes the macro CALLs used to control the battery
back-up.
Program Control
The following table describes the macro CALLs used for program control.
Table A.5 Battery Back-up Macros
Battery Back–up
Macro CALLs
Macro Inputs Outputs
battery_on() Enables battery back-up. None None
battery_off() Disables battery back-up. None None
alloc_bat_var(%1) Allocates battery backed memory for non-volatile data
storage. One parameter is required. %1 is the number of
variables to be stored. If the MTOP is not 5FFFh, then this
function is skipped.
%1 = Number
variables
None
read_bat_var(%1,%2) Retrieves battery backed variables. %2 = storage number %1 = variable to
be retrieved
write_bat_var(%1,%2) Writes battery backed variables. %2 = storage number %1 = variable to
be written
Table A.6 Program Macros
Program Control
Macro CALLs
Macro Inputs Outputs
CALL_ram() Transfers control of the BASIC program to the second line of the
program in RAM.
None None
CALL_rom(%1) Transfers control of the BASIC program to the second line of the
program specified in EEPROM.
%1 = number of ROM
program
None
ret() Transfers control back to were it was in the main program prior to the
CALL.
None None
Comentários a estes Manuais