
M-51 for TUC52, Issue 1.0
Page 8
January 21, 1998
File: m51-i1.doc
m51-> sx b000 {rtn}
xB000: 00 {sp}
xB001: 20 30 {sp}
xB003: 40 {rtn}
m51-> dx f000 {rtn}
xB000: 00 30 40 00 00 00 00 00 00 00 00 00 00 00 00 00 .0@..............
m51->
2.5.1
ZNEXT (Z)
The ZNEXT command works exactly like the NEXT command except that when a CALL instruction is
found, the monitor will not step through the subroutine. It will break at the location the subroutine should
return to.
Be sure to review the section on "Cautions with GO Breakpoints and NEXT" This is important information.
2.6
T
EST
C
OMMANDS IN
D
ETAIL
This section outlines each test command in more detail. Test commands are used to exercise various
hardware elements and are machine specific. These are not expected to be used to debug user’s firmware
and therefor are not restricted from using Internal Data Memory (IDM) within the 8051 CPU.
2.6.1
Test External Data Memory (TX)
The TX command is used to test some contiguous area of External Data Memory. This is usually the system
RAM. The test makes use of the standard WRITE, READ, WRITE command with walking 1s and walking
0s that usually picks up crossed (or heavily capacitivly coupled) address and/or data leads.
An example would be:
m51-> tx 0 1000 {rtn}
TR: Write, Read, Write Test....
TR: Loading initial value, 00
TR: Walking ones, 01 02 04 08 10 20 40 80
TR: Loading initial value, FF
TR: Walking zeros, FE FD FB F7 EF DF BF 7F
TR: Random data test...
TR: Test OK!
m51->
3.
MEMORY AND PORT MAPPING
The m-51 monitor, as configured for TUC-52, requires that the monitor ROM start at 0H. For TUC-52, this
ROM function is provided by the 27c256 installed at IC4. This ROM must output data to the bus when
PSEN* is active. PSEN* can be OR-ed with RD* before going to the ROM OE* signal but this isn't a must.
RAM must exist from EF00H to EFFFH and must be double mapped as code and data space (i.e., TUC-52
must OR the PSEN* and RD* signals from the 8032 and connect the output of the OR gate to the RD* input
on the RAM). On TUC-52 this RAM is function is provided by the 43256 installed at IC6. When user’s
programs are executed from RAM, that RAM device must be double mapped as program and data space
(i.e., you must OR the PSEN* and RD* signals from the 8032 and connect the output of the OR gate to the
RAM’s OE* input). On TUC-52 with the shunt settings shown below, the RAM at IC6 will be accessed
from 08000H to 0EFFFH. The user should stay out of locations 0EF00 to 0EFCF which are used for
monitor functions.