User manual
UM0036 EMU3 emulator features
Doc ID 7705 Rev 11 311/385
1. Open the Advanced Breakpoints window.
2. Configure your Advanced Breakpoints window as summarized in the table below.
Note: The input trigger is used here to provide an event which is always true. For an unconnected
trigger the statement trigger input = 0 is always TRUE.
Example 3—Measure frequency of interruptions
This Advanced Breakpoint program records a snapshot each time the event occurs (such as
an interrupt). Then, by calculation from the timing mark of the trace, the frequency of the
event can be determined. It may be useful to export the trace record as a text file. The file
can then be manipulated using any convenient spreadsheet software, to be presented in
graph form.
Program the Advanced Breakpoints window as summarized in the table below.
You must start with the Trace OFF so that snapshots are the only records in the trace buffer.
Example 4—Run until trace full
This simple program allows you to start recording the trace at the start of the program,
running until the trace buffer is full, and then stopping the program.
Table 77. Advanced breakpoints summary
Step Description
START with TRACE ON
LEVEL 1:
IF (opcode fetch at sample.c:164)
THEN (Goto Level 2);
LEVEL 2:
IF (Counter (Trigger IN == 0) >= 128)
THEN Break;
LEVEL 3-4: (empty)
Table 78. Advanced breakpoints summary
Step Description
START with TRACE OFF
LEVEL 1:
IF (opcode fetch at main.c:57)
THEN (Trace snapshot);
LEVEL 2-4: (empty)
Table 79. Advanced breakpoints summary
Step Description
START with TRACE ON
LEVEL 1:
IF (Trace buffer is full)
THEN Break;
LEVEL 2-4: (empty)