beautypg.com

1 internal flash program storage – Campbell Scientific CR23X Micrologger User Manual

Page 46

background image

SECTION 1. FUNCTIONAL MODES

1-12

PC208W automatically makes use of the

D

Mode to upload and download programs from a
computer. Appendix C gives some additional
information on Commands 1 and 2 that are used
for these operations.

When "

D" is keyed in, the CR23X will display

"13: Enter Command". A command (Table 1.8-
1) is entered by keying the command number
and "A".

TABLE 1.8-1.

D

Mode Commands

Command

Description

1

Send (Print) ASCII Program

2

Load ASCII Program,

0

Compile

2--

Load ASCII Program,

6

Compile
(canceled by

D

1

0

mode)

6

Store Program in Flash

7

Load Program from Flash

7N

Save/Load/Clear Program from
Storage Module N

8

Set Datalogger ID

9

Set Full/Half Duplex

10

Set Powerup Options

11

Set Display Contrast Level

12

Set Initial Baud/Set RS232 Power

13

Set Compile Option

If the CR23X program has not been compiled
when the command to save a program is entered,
it will be compiled before the program is saved.
When a program is loaded, it is immediately
compiled and run. When a command is complete,
"13:0000" is displayed;

D

must be entered

again before another command can be given.

If a program download is aborted, the CR23X will
reload the program in its flash into RAM, compile it,
and run it.

TABLE 1.8-2. Program Load Error Codes

E 94

Program Storage Area full

E 95

Program does not exist in flash

E 96

Storage Module not connected or
wrong address

E 97

Data not encountered within 30 sec.

E 98

Uncorrectable errors detected

E 99

Wrong type of file or Editor Error

1.8.1 INTERNAL FLASH PROGRAM STORAGE

Several programs can be stored in the CR23X
Flash Memory and later recalled and run using
the

D

Mode. The Flash Electrically

Erasable Programmable Read Only Memory is
non-volatile memory that can only be erased in
16K blocks. The CR23X has 512K of Flash
EEPROM memory, one 16K block is reserved
for storing extra programs.

When a program is loaded and compiled, it is
saved as the active program. The active
program will be automatically loaded and run
when the CR23X is powered up. Automatic
loading of the program can be aborted by
pressing any key while “Hello” is showing on the
CR23X display; the display will show “Program
Aborted.” (If a Storage Module with a program
8 is connected when the CR23X powers-up, the
Storage Module program 8 will be loaded into
the CR23X and become the active program.)

The active program can be stored in internal
flash memory program storage with

D

command 6 (Table 1.8-3). Programs can be
retrieved with

D

command 7 (Table 1.8-4).

TABLE 1.8-3. Storing Program in

Internal Flash

Key entry

Display

D

13: Enter Command
00

6

A

06: Program ID
00

You may now enter one of the following options:

xx

A

Save active program
as number xx, xx may
be 1-98.

A

Scroll forward and

B

backward through
saved program
numbers. The
numbers are displayed
in the order saved.

9

9

A

9

9

A

Clear all saved
programs.

0

A

Display number of
bytes free in saved
program area.