Download MPSIM User's Guide
Transcript
MPSIM USER’S GUIDE
Table 4.1
MPSIM Commands by Function (Continued)
F FileReg
File Register Display/Modify. Displays or modifies the contents
of any FileReg (by absolute address or symbolic name).
IR {ALL | RAM SFR}
Initialize with Random Values. Loads random values into
registers.
LR [filename]
Load Registers. Loads contents of registers with data from a
DOS text file.
SE [I/O_pin | port]
Display/Modify I/O Pin. Displays or modifies an I/O_pin or port.
UR {ALL|RAM|SFR}[filename]
Upload Registers. Uploads contents of registers into a DOS
text file.
W
Work Register Display/Modify. Displays/modifies the contents
of the W register.
ZR
Zero the Registers. Zeros all file registers.
Stimulus and Timer
CK [pin,{#hi,#low|–}
Clock. Assigns a clock to specified I/O pin.
No Argument
pin,#hi,#low
pin,–
DK [AltFxkey#,[pin,event]|[–]]
Displays current clock assignment.
Defines clock period on pin.
Disables clock on specified pin.
Define Key. Assigns asynchronous event to an Alt function key.
No Argument:
AltFxkey#
AltFxkey#–
–
event = H,L,T,P
Displays assignment of all function keys
Displays assignment of specified function
key
Cancels specified function.
The dash cancels all assignments.
High, Low, Toggle, Pulse
DW [E|D]
Enable/Disable Watchdog Timer.
E = Enable D = Disable
With no parameters, displays WDT state.
FI {filename,addr,FileReg[,n]|–}
File Input. Inserts the next value from filename into file register
when current PC=addr. Repeats n times.
IP [time|step]
Injection Point. Injects a stimulus according to the time or step
count. With no parameters, displays current mode.
RE
Reset Elapsed Time and Step Count.
SC [cyclelength]
Display/Set Processor Cycle Time. Displays or modifies the
microcontroller’s simulated cycle time.
ST filename
Read Stimulus File. Loads stimulus file.
DS30027I - page 44
1995 Microchip Technology Inc.