as follows: The first reading is taken with autoranging, and subsequent
readings are taken on the same range as the first.
DSPEEK? <
address
> <
data_page
>
2040
16
Reads a 16-bit word from the control processor’s Data Space RAM and
returns it in the Query Response Register. Addressing is based on the
Control Processor’s memory map, and thus depends on how the data page
bits (BD0-BD3) are set. Values of
<
data_page
>
between 0 and 15
inclusive, specify which page to read. If a value of FFFF
16
is specified for
<
data_page
>
, the current page is read. The value of
<
data_page
>
is
irrelevant for addresses below 8000
16
. Some low addresses may appear to
have different contents when read via A24 access. This is because the
control processor’s internal RAM and registers are not available via A24.
DSPOKE <
address
> <
data_page
> <
data
>
2080
16
Writes the 16-bit word specified in
<
data
>
to the Control Processor’s Data
Space RAM. Many Control Processor registers are mapped into low RAM.
Use this command carefully! The
<
address
>
, and
<
data_page
>
parameters have the same meanings as for the
DSPEEK?
command.
PSPEEK? <
address
> <
code_page
> <
table_page
>
2100
16
Reads a 16-bit word from the control processor’s Program Space memory.
Since the subsystem uses paging when accessing the Program Space, the
<
code_page
>
and
<
table_page
>
parameters are necessary. Valid values of
<
table_page
>
are 0, 1, or FFFF
16
with the latter specifying “ use current
page” . The value of
<
table_page
>
is irrelevant for addresses below 8000
16
.
Valid values for
<
code_page
>
are 0, 1, 2, 3, or FFFF
16
. The value of
<
code_page
>
matters only for the address range 4000
16
through 7FFF
16
. In
general, the
PSPEEK?
command reads flash memory, but for the address
range 2000
16
through 23FF
16
, it “ usually” reads control processor RAM
mapped to Program Space. A24 accesses can be used to view this region,
however.
374 Register-Based Programming
Appendix D
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com