To Trigger On The Nth Iteration Of A Loop - HP 1660CS-Series User Manual

Logic analyzers
Table of Contents

Advertisement

Single-Machine Trigger Examples

To trigger on the nth iteration of a loop

To trigger on the nth iteration of a loop
Traditional debugging requires print statements around the area of interest.
This is not possible in most embedded systems designs, but the analyzer
allows you to view the system's behavior when a particular event occurs.
Suppose that your system behaves incorrectly on the last iteration of a loop,
which, in this instance, happens to be the 10th iteration. You can use the
analyzer's triggering capabilities to capture that iteration and subsequent
processor activity.
Go to the state analyzer's Trigger menu.
1
Define the terms LP_START and LP_END to represent the start and
2
end addresses of statements in the loop, and LP_EXIT to represent
the first statement executed after the loop terminates.
Change State Sequence Level 1's macro to "Find event2 n times after
3
event1 before event3 occurs."
In the pop-up, enter the following sequence specification:
4
While storing anystate Find "LP_START" "9" times after "LP_END" before
"LP_EXIT" occurs.
You should use your value for n-1 instead of "9" in the sequence specification
above.
Trigger setup for triggering on the 10th iteration of a loop
5-6

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

1662cs1663cs1660cs1661cs

Table of Contents