1. Click the File Stimulus tab of the Simulator Stimulus dialog (Debugger>Stimulus). 2. Click Add under "Input Files". Enter stim1 for "File Name" and click OK in the Open dialog. The file name should appear in the file list box, i.e., C:\SimProj\ stim1.ssti. 3. Click on the file name to select the file. Click Edit under "Input Files". This will disable some "Input Files" buttons and enable the "Edit Controls" buttons. 4. Click Add Row under "Edit Controls". A row will appear for entering data. 5. Set up the row for file injection into a register as follows: Select "PC" under "Trigger On". Note: You must use PC with register stimulus.
Enter 0x1a under "Trig Value". Select TRISB under "Pin/Register". Note: You cannot inject file values into port registers, e.g., PORTB. Use pin values (explained next.) Also, you cannot inject file values into the W register.
6. Select "File" under "Value". This will open a dialog to select a register stimulus file. Select reg1.rsti and click Open to enter this file under "Value".