
SAVING PROGRAMS SECTION 3
Page 3-2 RPC-320
The time it takes save a program depends upon the
length and complexity of the program and flash EPROM
type. Programming rate is roughly 600 bytes/second. If
the program is not successfully saved to EPROM, an
error message will appear.
Saving a program overwrites the previous one. There is
no way to recover the old one since both occupy the
same space.
Using SAVE without any parameters is the same as
typing SAVE 0.
When a 128K (29C010) or 512K (29C 040) EPROM is
installed in U6, the SAVE segment parameter is 0 or 1
(128K) or 0 - 7 (512K). EXECUTE loads and runs the
program in the segment specified by SAVE. A 32K
(29C256) EPROM can run just one program.
Make the following modifications to the above program
as instructed to see how one program can call another.
There must be a 128K or 512K EPROM installed to run
this code.
Add the following lines:
10 PRINT "Program segment 0"
60 EXECUTE 1
Now type:
SAVE 0
Now modify lines 10 and 60 as follows:
10 PRINT "Program segment 1"
60 EXECUTE 0
Now type:
SAVE 1
To see the programs operate, type RUN. To stop program
execution, press < Ctrl-C> .
You may notice there is a slight pause between the
printed hello' s and program segment number. T his is
the time it takes to clear memory and load the program.
Loading and clearing take appr oximately 0.25 seconds in
a very small program up to 1 second in a very large
program.
AUTORUNNING
To autorun a program:
1. Make sure there is a program in EPROM (from
above). When using a 128K or 512K size EPROM,
make sure the start up progr am was saved to
segment 0.
2. Remove jumper W9.
Push the reset button. The program will run. If there
are any errors, the program will stop (assuming you
have not trapped them with ON ERROR) and display the
error message. EX ECUTE n is used within any
program to load and run another program. The EPROM
size must be a 128K or 512K.
PREVENTING AUTORUN
When troubleshooting a program, it' s not always
convenient for an autoexecute file to run. This is
especially true if the program has been configured to
ignore the < ESC> or < Ctl-C> keys.
To prevent autorun, install jumper W9 before power up
or reset.
LOADING A PROGRAM
There are times when you may w ish to temporarily
modify or otherwise test out a change to a program.
Since the program is loaded into RAM in autorun,
modifications are made without affecting the pr ogram in
EPROM. Use the LOAD or LOAD n command to
transfer the EPROM program to RAM.
If you find out that modifications are not desirable or did
not work, you can restore the original program to RAM
using the LOAD command.
CHANGING EPROM SIZE
The RPC-320 can com e with a 32K or 512K flash
EPROM . The size may be changed at any time. Set
W3 according to the type/size.
Type Size W3
Bytes Configuration
29C256 32K [3-5], [4-6]
29C010 128K [3-5], [2-4]