Remote Processing RPC-330 User Manual
Page 12
SAVING PROGRAMS
SECTION 3
Page 3-2 RPC -330
The time it takes save a program depends upon the
length and complexity of the program and flash EPROM
type. Pr ogramm ing rate is roughly 600 bytes/second. If
the program is not successfully saved to EPROM, an
error message will appear.
Saving a pr ogram overw rites the pr evious one. Ther e 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 512K (29C040) E PROM is installed in U6, the
SAVE segment parameter is 0 - 7 (512K). EXECUTE
loads and runs the program in the segment specified by
SAVE. A 32K (29C256) EP ROM can run just one
p r o gr a m .
Make the following modifications to the above program
as instructed to see how one program can call another.
Ther e must be a 512K EP ROM installed to run this
code.
Add the following lines:
10 PRINT "Program segment 0"
60 EXECUTE 1
Now type:
SAVE 0
Now m odify lines 10 and 60 as follows:
10 PRINT "Pr ogram segme nt 1"
60 EXECUTE 0
Now type:
SAVE 1
To see the programs operate, type
RUN
. To stop program
e x ec u ti on , p r es s < C t r l- C > .
You may notice there is a slight pause between the
printed he llo' s and pro gram segmen t number . T his is
t he ti m e i t t ak e s t o c le a r m em o r y a n d l oa d th e pr o g ra m .
Loading and clear ing take appr oximately 0.2 5 seconds in
a very small program and several seconds in a very large
p r o gr a m .
AUTORUNNING
T o a ut or u n a p r o gr a m :
1.
Make sure there is a program in EP ROM (from
above). W hen using a 512K size EPROM , m ake
sure the start up program w as saved to segment 0.
2.
Remove jumper W9.
Push the reset button. The program will run. If there
are any error s, the progr am will stop (assuming you
have not trapped them with ON E RROR) and display the
error m essage. EX ECU TE n may be used w ithin 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 fo r an autoe xecute file to r un. This is
especially tr ue if the pro gram has been co nfigured to
ignore the < ESC> or < Ctl-C> keys.
To prevent autorun, install jumper W9 before power up
or re set.
LOADING A PROGRAM
Ther e are tim es when y ou may w ish to tempor arily
m o d if y or o th e r wi se te s t o u t a c ha n ge to a pr o g ra m .
Since the program is loaded into RAM in autorun,
modifications can be made without affecting the program
i n E P R O M . U s e t he L O A D or L O A D n comm and to
transfer the EPROM program to RAM.
If you find out tha t modification s are not de sirable or did
not work, you can restore the original program to RAM
using the LOAD com mand.
CHANGING EPROM SIZE
The RP C-330 nor mally come s with a 32K or 512K flash
EPROM . The size may be changed at any time. Set
W2 according to the type/size.
Type
Size
W 2
Bytes
Configuration
29C256 32K
[3-5], [4-6]
29C010 128K
[3-5], [2-4]
29C040 512K
[1-3], [2-4]