Remote-processing RPC-220 Manual de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 47
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
WRITING, DEBUGGING, AND SAVING PROGRAMS SECTION 3
Page 3-4
DI
All internal memory from 0 to FFH are displayed.
DP D isplay I/O port
Addresses for I/O devices (and monitor EPROM)
are show n in the I/O memory m ap above. This
comm and autom atically sets the I/ O control CPU bit
P4.0. The DP command is used to access I/O
devices (RTC , expansion). C ommand format is:
DP address<cr>
You can view the contents of the monitor EPROM
in U3 using this command. T he address is from 0
to 0x7fff.
DR Display Registers
CPU registers A, B, R0-R7, DPTR, CPU ports P1
and P3, stack pointer (SP), program status word
(PS), interrupt (IE), and program counter (PC) are
displayed. These registers are displayed after a
program break is encountered and are loaded on a
GOTO command.
When using this command after a power up or push
button reset, certain registers default to a variety of
states. The SP is always 7, DPTR and PSW (PS) are
0. P1 and P 3 are set to a state that forces bank 0 and
memory segment. Additionally, the PC (program
counter) is not valid. Command format is simply:
DR
The term inal outputs:
A B R0 R1 R2 R3 R4 R5 R6 R7 P1 P3 PS SP DPTR IE PC
12 34 56 78 9A BC DE F0 12 34 C7 CE 04 4E 0123 00 2114
Numbers under the registers are for illustration only.
Upon reset or program break, register values are stored
in external RAM. Register values after reset reflect
default conditions. PC is not reliable and IE is always 0.
Registers may be modified using the MX command. The
starting address is displayed on a break command.
DS Display SF R' s
Special function registers are accessed by the DS
command. F ormat is:
DS
A < cr> is not necessary.
Special function registers are those between 80H - FFH.
These include timers, A and B accumulators, P SW, and
other registers. Since ther e are only 128 locations, 8
lines are displayed. This command is different from DR
in that the current contents is displayed. DR shows those
saved after a break or
reset.
NOTE: A short program is run from RAM at address
0xfffa to directly access these registers. You
may have to reload your program after
executing this command.
Modify Commands
There are 4 com mands to modify memory, r egisters, or
I/O:
MX Modify eXternal memory
MI Modify Internal memory
MS Modify Special function registers
MO Modify I/O
Data or status to be mo dified is displayed one byte at a
time. The memory segment, if appropriate, is displayed
at the start of the line followed by its address. The
current data is then displayed. If the data is modified or
skipped (by pressing the space bar), the next address and
its data is displayed. A max imum of 4 addresses and data
are displayed on a line.
For example, MX can display the following at address
0x0000:
00:0000 0A 0001 0D 03 0002 52 43 0003 43 51
Segment:address is first displayed followed by the
current data at that address. If < space> is hit, nothing
is modified and the next address and data are displayed.
To modify, simply enter the new value.
Addresses and data are displayed in hex notation.
Modifications are entered in hex.
Data is modified or not modified depending upon the
number of data characters entered, if any, and type of
continuation character hit. Pressing < space> always
continues to the next address. If any characters were
entered, then data at the address displayed gets modified
by the value displayed. If no characters were entered,
then no modifications are made. Pressing < Enter>
ends the modification routine. If any digits were
entered, then data at the last address is modified.
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 46 47

Comentarios a estos manuales

Sin comentarios