Data Sheet

LABCENTER ELECTRONICS LTD.
200
Note that you need to separately configure ADRESH and ADRESL. The watch window display
should look like the following when you are finished.
Having set up the watch conditions all we need do now is adjust the POT back down until the
breakpoint kicks in when the conditions are met. As before you can do this either via the POT
active popup inside VSM Studio or by switching to the schematic tab. When triggered you
should see that the value on the watch items is 0x1FF and - if need be - you could start single
stepping your code at exactly the point the conditions were triggered.
Watch conditions are particularly useful for things like debugging timer code when
you want to trap an overflow condition.
You can disable watch point expressions by right clicking on a watch item, selecting
watchpoint condition and then selecting the 'turn off watchpoints' option from the
resulting dialogue.
Before we move on to discuss hardware breakpoints either disable the watchpoint conditions
(as described above) or delete the watch items completely and then press the stop button on
the animation control panel to end the simulation.