User manual
EMU3 emulator features UM0036
294/385 Doc ID 7705 Rev 11
When you click on the IF button in the Programmable Level portion of the window, as
shown in Figure 224, you are presented with the Combination window. It contains fields
that allow you to define the conditions upon which you want certain action(s) to be taken.
Proceed as follows:
1. First ask yourself: “What type of condition results in an action?”. Is it a single
occurrence of an event, a number of occurrences of the same event, the non-
occurrence of an event or a combination of dissimilar events that trigger the action?
2. In the field, First Event, choose either EVENT 1 or NOT EVENT 1. If you choose
EVENT 1, the condition is satisfied when this event is true. When you choose NOT
EVENT 1, the condition is satisfied when this event is false. (If you leave the First
Event as DISABLED, no event is defined and the Level remains void. Choosing
anything other than DISABLED causes an Event1 tab to appear in the window.)
3. If you want the same event to occur more than once before an action is taken, choose
EVENT 1, and check the Counter asked option, then set the number of times you want
the event to occur before an action is taken. Once these fields are completed, you can
choose between the following options (as shown in Figure 225):
–If counter [event] >= n is selected, then an action is taken when the event has
occurred n or more times (six or more times in the example).
–If counter [event] < n is selected, then an action is taken (the condition is TRUE)
while the event has occurred less than n times and then the action ceases (the
condition becomes FALSE). Use of the counter in this way is useful when you want
to control trace recording, or the sending of signals to an output trigger, but has no
meaning when applied to breakpoints.
Figure 225. Defining a counter
4. If you want to combine the occurrence (or non-occurrence) of event1 with another
event (event2) using a logical operator (OR, XOR, NOR, AND, NAND) choose the
operator from the field in the middle of the window. Choosing anything other than
NONE causes an Event2 tab to appear in the window.
5. If you chose a logical operator in the previous step, you can choose between EVENT 2
and NOT EVENT 2 in the Second Event field. Note that no counter is available in this
field. Only two counters per level are available, associated with event1 and event3 of
each level.
6. The next step is to define event1 and event2 (if present). Click on the Event1 tab.
7. The Event tabs allow you to define each event, as shown in Figure 226.