Datasheet

122 PSoC Designer IDE Guide, Document # 001-42655 Rev *B
Debugger
1. Access the Debugger Events dialog box by clicking Debug > Events.
Figure 7-9. Stack Overflow Events Dialog Box
2. Set the Input select drop-down to SP.
3. Set both the Low compare and High compare values to 00FF.
4. Check the Break check box in the State Logic fields.
5. Click Apply, then close the Events window.
The Register A Value, Trace On and Off, and Match Count
To create an event to turn the Trace Off at PC16=0000, turn the Trace On when Register A gets the
value 0x32, and then turn the Trace Off and Break after Register A gets the value 0x32 ten times.
1. Access the Debugger Events dialog box (click on Debug > Windows > Events).
2. Click on the State 0 event.
3. Set Input select to PC16, Low compare to 0000, and High compare to 0000.
4. Under State Logic set Next state to 1 and check Trace Off.
5. Click Apply to save.
6. Click on the State 1 event.
7. Turn on the 8-bit thread by checking Enable 8-Bit Thread.
8. Set Input Select to A, Low compare and High compare to 32, and leave the Input Mask at FF.
9. Under State Logic set Next state to 2 and check Trace On and Break.
10.Click Apply to save.
11.Click on the State 2 event.