User`s guide

MPLAB
®
IDE User’s Guide
DS51519B-page 246 © 2006 Microchip Technology Inc.
PC Setup
a) Click on “Trig Value” to set the PC address at which the trigger fires.
b) From “Pin/Register”, choose the register to which the value in the next
column will be applied when the trigger fires. The actual register names
available depend on the device selected.
c) Click on “Value” and enter or change a value to be applied when the trigger
occurs. For a Register, the name of a file (*.rsti) which contains a
sequence of values. These values will be applied in turn, one at each trigger
event.
d) Click on “Comments” to enter or change a text string which will be saved and
restored in the file.
e) For register stimulus, you may only have one stimulus file attached to one
register and vice versa. If you add additional rows/columns, only the last
occurrence will be executed.
f) If you wish to remove a row, click on a cell in the row to select the row and
then click Delete Row.
5. When you are done, click Save to save the synchronous stimulus file.
19.3.1.3 CREATING/EDITING A REGISTER STIMULUS FILE (.RSTI)
A register stimulus file contains register stimulus information in hexadecimal,
return-delimited format. Any text editor or spreadsheet application may be used to
create or edit this file. The default extension is .rsti, but any extension may be used.
Assign a register stimulus file to a register in the Value column of a Synchronous
Stimulus file (*.ssti).
EXAMPLE 19-1: REGISTER STIMULUS FILE
19.3.2 Applying File Stimulus
Once you have created/edited a file stimulus file, the stimulus is applied as the program
is run under MPLAB IDE. When the designated trigger is activated, the designated
event occurs.
Note: Do not choose a pin. It will not work with PC stimulus.
Note: You cannot inject file values into port registers, e.g., PORTB. Use pin
values. Also, you cannot inject file values into the W register.
Note: You may only have one register stimulus file assigned to one register at a
time.
10
2E
38
41
A0
FD
Note: The Stimulus dialog must be open for stimulus to be active.