beautypg.com

Campbell Scientific CR23X Micrologger User Manual

Page 41

background image

SECTION 1. FUNCTIONAL MODES

1-7

Operating System
(128 Kbytes)

Active Program
(32 Kbytes Code)

Stored Programs
(32 Kbytes Code)
(32 Kbytes Labels)

Temporary Copy of
Current Program
Saved during
download if download
is aborted
(64 Kbytes)

Alphanumeric Labels
(32 Kbytes)

Unassigned
(192 Kbytes)

SRAM/FLASH

Total 1152 Kbytes

Flash Memory

(EEPROM)

Total 512 Kbytes

How it works:
The Operating System is loaded into
Flash Memory at the factory. System
Memory
is used while the CR23X is
running for calculations, buffering data
and general operating tasks.

Any time a user loads a program into
the CR23X, the program is compiled in
SRAM and stored in the Active
Program
areas. If the CR23X is
powered off and then on, the Active
Program is loaded from Flash and run.

The Active Program is run in SRAM to
maximize speed. The program
accesses Input Storage and
Intermediate Storage and stores data
into Final Storage for later retrieval by
the user.

The Active Program can be copied into
the Stored Programs area. While 98
program "names" are available, the
number of programs stored is limited
by the available memory. Stored
programs can be retrieved to become
the active program. While programs
are stored one at a time, all stored
programs are erased simultaneously.
That is because the flash memory can
only be written to once before it must
be erased and can only be erased in 16
Kbytes blocks.

(Memory Areas separated by dashed
lines:
can be re-sized by the user.)

1 byte per character stored. 9 bytes
per input location label. All final
storage label characters plus 2 bytes
per table name (array ID name) and
field name.

Memory available only to
system

Memory shared between
Program, Input Storage,
and Intermediate Storage

Memory allocable to Final
Storage 1 and 2 only

Memory available only to
Final Storage area 1

32K SRAM

System Memory

4096 Bytes

Active Program

Default

2048 Bytes

Input Storage

Default

112 Bytes

28 Locations

Intermediate Storage

Default

256 Bytes

64 Locations

96K SRAM

Final Storage 1 and 2

98,304 Bytes

49,154 Locations

1M FLASH

Final Storage 1 and 2

917,504 Bytes

458,752 Locations

or

4M FLASH

Final Storage 1 and 2

4,292,610 Bytes

2,146,305 Locations

Final Storage 1 Only

131,072 Bytes

65,536 Locations

FIGURE 1.5-1. CR23X Memory