User`s guide
Using Stimulus
© 2006 Microchip Technology Inc. DS51519B-page 231
SFR Values As Triggers
Triggers and traces will ONLY occur when the SFR is updated by the user, not the
peripheral.
For example, the trigger dialog is set up to fire when TMR2 = 0x06. When TMR2 is
incremented past 0x06, the trigger will not fire. However, if the following sequence is
executed in user code:
MOVLW 0X06
MOVWF TMR2
then the trigger will occur.
18.2.1 Pin/Register Actions
Basic synchronous pin and/or register actions may be entered here. For more complex
actions, use the Advanced Pin/Register tab.
To enter data in this tab:
1. Select the unit of time in the “Time Units” list box that you will use to trigger all
stimulus.
2. Click on the text that says “Click Here to Add Signals” to open the Add/Remove
Signals dialog (see Section 18.2.3 “Add/Remove Signals Dialog”). In this
dialog, you select the pins, registers or other signals to which you will apply
stimulus. These selections will become the titles of the columns.
3. Fill out each row, entering a trigger time (“Time”) and value for each pin/register
column. Trigger time for each row is accumulative time (since the simulation
began), not interval time between adjacent rows.
4. To delete a row, select it and then click Delete Row.
5. Check the checkbox “Repeat after X (decimal)” to repeat the stimulus on the tab
after the last stimulus has occurred. Specify a delay interval for when to repeat
the stimulus.
Once the tab is filled out, you may proceed to another tab or click General SCL From
All Tabs to create the workbook file.
To scroll through signals:
• If you add more signals to the dialog than will fit in the window, a scroll bar will appear.
• You may scroll through all the signals to view their values.
Time Units
Time units chosen apply to all Time values in the Time column. Selectable units are:
• cyc – Instruction cycles
• h:m:s – Hours:minutes:seconds
• ms – milliseconds
• us – microseconds
• ns – nanoseconds
Note: Care must be taken when using SFR values as triggers.
Note: The Time column remains fixed when you scroll through the signal
columns.