Remote-processing RPC-330 Manual de usuario Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 48
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
SAVING PROGRAMS SECTION 3
Page 3-1 RPC-330
Figure 3-1 W3 autorun jumper
INTRODUCTION
Program s are stored in an EPROM in socket U6. You
can store one or more programs, depending upon
EPROM size. One BASIC program can call another
when a 512K byte EPRO M is used.
Maximum program size that can be run at any one time
is about 62K, not including space for variables. 32K
bytes is the maximum program size when a 29C256 IC
type is used to save a program.
A conservative rule to determine program memory
requirements is one line requires 40 bytes. 32K bytes
would stor e 800 lines of code. Your application could
be significantly more or less, depending upon the
number of comm ands/line, comments, and pr int
statements.
Despite the fact you may have a 128K or 512K RAM
installed, the maximum program size RPBASIC-52 can
run at one time is about 60K (including room for some
variable storage). The table below shows the maximum
capacity, maximum number of program lines, program
size at one time, and number of programs for an
EPROM type.
EPROM Max Prog Max No.
type Cap. lines Bytes Progs
29C256 30K 400 32K 1
29C040 509K 12400 62K 8
One program can call another using the EXECUTE n
command. n is from 0 to 7, depending upon the
EPROM type.
NOTE: When a program calls another, the old program
is completely replaced. All variables and
arrays are cleared (set to 0).
To keep variables, you m ust save them before calling the
new progr am. When the new program is running, these
variables may be restor ed. Use P EEK and PO KE to
read and save numbers and strings. See SECTION 5,
STORING VARIABLES IN RAM for more inform ation.
Binary data is saved and read from the EPROM using
BSAVE and BLOAD commands. The EPROM has a
limited number of write cycles (about 1000), so writing
information should be kept to a minimum.
A flash EPROM is non-volatile (retaining data even
when power is disconnected), having an unlimited
number of read cycles and a limited number of write
cycles (about 1,000). A program is not run from
EPROM . It is transferred to RAM and run from there.
Programs in RAM can be modified. They can be saved
to EPROM for auto execution later.
The RPC-330 can be set to autorun on power up or reset
by removing jumper (W9). W hen autorun is on, the
program in EPROM segment 0 is loaded into RAM and
begins to execute immediately.
This section discusses saving programs to EP ROM (U6)
and program autoexecution.
SAVING A PROGRAM
For this example, assume you wanted to save the
following program:
20 FOR N= 0 TO 2
30 PRINT "Hello ",
40 NEXT
50 PRINT
If this progr am is not alr eady in, type it in now (or , if
you prefer, use your own program).
Type in the following command:
SAVE
RPBASIC-52 responds with:
Saving 35 bytes
Verifying --- OK
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 47 48

Comentarios a estos manuales

Sin comentarios