Datasheet

PSoC Designer IDE Guide, Document # 001-42655 Rev *B 121
Debugger
7.5.5.3 Event Examples
Here are a few examples for common events.
Find Memory Write
To break on a memory write to address 20h, execute the following example steps.
1. Access the Debugger Events dialog box by clicking Debug > Windows > Events.
2. Choose BITFIELD in the Parameter box.
The small help box in the lower left describes the BITFIELD input. Bit 1 is the RAM write flag.
3. Bit 1 is the focus bit of this example; therefore, you need to mask the other bits. The Input Mask
field allows you to hide bits that you do not care about. It is an 8-bit number. Set bits in the input
mask to mark the bits that you care about (e.g., 0F to get the low four bits, FF to get all eight bits,
01 to get the low bit, 80 to get the high bit, C0 to get the top two bits, etc.). Pick 02 for the input
mask to get the RAM write bit.
4. Any masked bits need to be zeros in the compare fields. You can see in the help box that the
focus bit is active low. It is a ‘0’ when the RAM write is happening. This means you can just set
both compare values to ‘0’.
5. Pick MEM_DA for the input select. (If you picked MEM_DA_DB, you could check the address
and the data value.) Note that this selection is different for the ICE Cube support of the
CY8C29x66 devices.
6. Set both compare values to ‘20’, your desired address.
7. Pick AND for your Combinatorial Operator.
8. Press the Break check box. This makes the debugger halt when it sees the RAM write.
9. Click Apply.
Stack Overflow
To create an event to break when the Stack Pointer reaches FF: