File Stimulus Display

15.3.3 File Stimulus Display

Select Debugger>Stimulus Controller and then click the File Stimulus tab to set up file stimulus. Closing the Stimulus dialog disables stimulus.

Note 1: This is only available when the MPLAB SIM tool has been selected from

the Debugger menu.

2: If any files are changed externally while in use by this dialog tab, the changes will NOT be reflected in the stimuli passed to the simulator. Changing stimulus files outside the Stimulus dialog is NOT recommended.

3: Unsaved changes will be lost without notice when you close this dialog.

File List List of input files available for use as file stimulus. Add, delete, edit and save files from

this list by using the Input Files buttons. Buttons – Input Files

• Add – brings up a browse dialog to select a new file to add to the file list. You may

select an existing file or enter the name of a file to be created. • Delete – deletes the highlighted file from the list (not from your drive) • Edit – displays the contents of the selected file in the stimulus list and allows you

to edit the contents. It also disables the Add and Delete buttons. • Save – saves the contents of the stimulus list into a file, clears the stimulus list,

disables editing and reenables the Add and Delete buttons. • Cancel – Cancel selection of file.

Note: You may display and edit only one file from the file list at a time. Buttons – Edit Controls

• Add Row – creates a default row at the bottom of the stimulus list and moves the cursor there for editing. • Delete Row – removes the row at the cursor from the list. • Add Column – adds another Pin/Register-Value pair of columns to the stimulus list

to the left of the Comments column, allowing you specify additional stimuli for each trigger.

 2005 Microchip Technology Inc.

DS51519A-page 203

MPLAB ® IDE User’s Guide

Buttons – File Stimulus These buttons enable you to save and restore combined file setups.

• Save Setup saves the names of the files currently in the file list into a file. • Load Setup loads the filenames in a file into the file list, just as though you had

added them individually. Note: There is currently no way to view the combined contents of a File Stimulus

setup.

Table Entries • Trigger On – choose between Cycles (Instruction Cycles) and PC (Program

Counter). The selection determines what is available in some of the remaining cells in that row.

• Trig Value – Cycle count or the PC address at which the trigger fires. Value entered can be decimal or hexadecimal. Hex numbers must be preceded with 0x.

• Pin/Register – where to apply the value; a choice among the names of the available pins and registers. The actual names depend on the device selected in the IDE.

• Value – value to be applied when the trigger occurs. For a Pin, either 0 or 1. For a Register, a single value or the name of a file which contains a sequence of values. These values will be applied in turn, one at each trigger event.

• Comments – text string which will be saved and restored in the file.

Note:

A Register stimulus will be effective only with a PC trigger. You may specify

a Cycle trigger for a Register, but it will have no effect. In addition, Register values must be specified from a file; specifying a numeric value will have no effect.

DS51519A-page 204

 2005 Microchip Technology Inc.