Datasheet

9
PICPLC16 v6 Development System
PICPLC16 v6 Development System
MikroElektronika
page
The mikroICD debugger also offers functions such as running a program step by step (single stepping), pausing the program execution
to examine the state of currently active registers using breakpoints, tracking the values of some variables etc. The following example
illustrates a step-by-step program execution using the Step Over command.
NOTE: For more information on the mikroICD debugger refer to the mikroICD Debugger manual.
4.0. mikroICD (In-Circuit Debugger)
The mikroICD (In-Circuit Debugger) is an integral part of the on-board programmer. It is used for the purpose of testing and
debugging programs in real time. The process of testing and debugging is performed by monitoring the state of all registers within
the microcontroller while operating in real environment. The mikroICD software is integrated in all PIC compilers designed by
mikroElektronika (mikroBASIC PRO, mikroC PRO, mikroPASCAL PRO etc). As soon as the mikroICD debugger starts up, a window
called Watch Values, appears on the screen, Figure 4-1. The mikroICD debugger communicates to the microcontroller through the
microcontroller’s pins used for programming.
Step 2:
After the Step Over command
is executed, the microcontroller
will execute the 41st program
line. The next line to be
executed is highlighted in blue.
The state of registers being
changed by executing this
instruction may be viewed in
the Watch Values window.
Icon commands
A list of selected registers to be
monitored. The state of these registers
changes during the program execution,
which can be viewed in this window
A complete list of registers within the
microcontroller being programmed
Double click on the Value eld
enables you to change data format
mikroICD debugger options:
Figure 4-1: Watch Values window
Start Debugger [F9]
Run/Pause Debugger [F6]
Stop Debugger [Ctrl+F2]
Step Into [F7]
Step Over [F8]
Step Out [Ctrl+F8]
Toggle Breakpoint [F5]
Show/Hide Breakpoints [Shift+F4]
Clear Breakpoints [Ctrl+Shift+F5]
Each of these commands is activated via
keyboard shortcuts or by clicking appropriate
icon within the Watch Values window.
During operation, the program line to be executed next is
highlighted in blue, while the breakpoints are highlighted in
red. The Run command executes the program in real time
until it encounters a breakpoint.
1
2
Step 1:
In this example the 41st
program line is highlighted in
blue, which means that it will
be executed next. The current
state of all registers within the
microcontroller can be viewed
in the mikroICD Watch Values
window.