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.
1
Go to the state analyzer’s Trigger menu.
2
Define the terms LP_START and LP_END to represent the start and
end addresses of statements in the loop, and LP_EXIT to represent
the first statement executed after the loop terminates.
3
Change State Sequence Level 1’s macro to "Find event2 n times after
event1 before event3 occurs."
4
In the pop-up, enter the following sequence specification:
•
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
Single-Machine Trigger Examples
To trigger on the nth iteration of a loop
5-6
Содержание 1660CS
Страница 5: ...Introduction iv ...
Страница 16: ...1 Logic Analyzer Overview ...
Страница 24: ...2 Connecting Peripherals ...
Страница 33: ...2 10 ...
Страница 34: ...3 Using the Logic Analyzer ...
Страница 55: ...3 22 ...
Страница 56: ...4 Using the Trigger Menu ...
Страница 75: ...4 20 ...
Страница 76: ...5 Triggering Examples ...
Страница 109: ...5 34 ...
Страница 110: ...6 File Management ...
Страница 114: ...Saving the system configuration for programmatic control File Management To save a configuration 6 5 ...
Страница 119: ...6 10 ...
Страница 120: ...7 Reference ...
Страница 221: ...7 102 ...
Страница 222: ...8 System Performance Analysis SPA Software ...
Страница 241: ...SPA Time Interval System Performance Analysis SPA Software SPA measurement processes 8 20 ...
Страница 252: ...9 Concepts ...
Страница 273: ...HP 1660CS series analyzer theory HP 1660C CS logic analyzer The Analyzer Hardware HP 1660CS series analyzer theory 9 22 ...
Страница 279: ...Oscilloscope board theory Oscilloscope board The Analyzer Hardware Oscilloscope board theory 9 28 ...
Страница 284: ...10 Troubleshooting ...
Страница 298: ...11 Specifications ...
Страница 311: ...11 14 ...
Страница 312: ...12 Operator s Service ...
Страница 324: ...Troubleshooting Flowchart 2 Troubleshooting To use the flowcharts 12 13 ...
Страница 337: ...Glossary 4 ...