
Application Note
Software Design Overview
AN1288
6
MOTOROLA
transferred from K3EEPROG to the MMDS/MMEVS. When reading the
PEEPROM, data must be transferred from the MMDS or MMEVS to
K3EEPROG which can display it to the user. K3EEPROG also must be
able to determine if the development system software executed properly
or not so as to take appropriate action.
User commands and data are communicated from K3EEPROG to the
MMDS/MMEVS by means of the host software’s startup file feature. This
feature frequently is used to automate the configuring of a development
system at startup and take it to a predetermined state.
An MMDS/MMEVS startup file is an ASCII text file consisting of a list of
MMDS/MMEVS commands. To be a valid startup file, a file must have
the name
Startup.05
and must reside in the same directory as the host
software executables. When operation of either MMDS or MMEVS is
started, the host software eschews its resident directory for a startup file.
If one is found, the development system executes each command in the
file sequentially. Command execution continues until the end of the file
is reached or an invalid command is encountered. Only then does the
host software return to the MMDS/MMEVS host software command line.
Nearly all MMDS/MMEVS commands can be executed from a startup
file, making it possible to control the operation of both the MMDS and the
MMEVS. Since startup files can contain the MMDS/MMEVS
EXIT
command, MMDS/MMEVS host software execution can be stopped and
control returned to the DOS prompt without user intervention at the
MMDS/MMEVS command line. Making effective use of this
MMDS/MMEVS feature satisfies K3EEPROG’s requirement to control
and stop MMDS/MMEVS operation.
After programming or reading the PEEPROM, the MMDS/MMEVS host
computer software exits to DOS and the execution of K3EEPROG
resumes. It is at this time that K3EEPROG must evaluate the results of
the MMDS/MMEVS’s execution and in the case of a reading command,
extract PEEPROM data for display to the user. To accomplish this task,
K3EEPROG makes use of the logging feature of the MMDS/MMEVS
host computer software. The logging feature allows the MMDS/MMEVS
to record the execution of MMDS/MMEVS commands and the system’s
response to them. By using the MMDS/MMEVS memory display,
MD
, or
the register display,
REG
, the contents of any area of emulator memory