
Z8 GP™ ZGP323 In-Circuit Emulator
User Manual
UM019606-0408
Sample Project
22
Using an Event to Stop Execution
Events allow you to stop execution based on more complex conditions
than a simple instruction address.
The following events are available:
•
Program counter position, with mask
•
Data on Port0 (state of its pins), with mask
•
Data on Port2 (state of its pins), with mask
•
Data on Port3 (state of its three input pins), with mask
•
External Trigger In (0 or 1)
The following steps setup and execute an event:
1. Select
Tools
––>
Trace and Event System
. The
Trace and Event
System
window appears, see
2. Check
Enable Event System
check box and in the
Then:
section,
check
Break
radio button.
3. In the
When:
section, check
Program Counter
check box and set
Program Counter
to
0044
and
Mask
to
FFFF
.