10
4.0. mikroICD (In-Circuit Debugger)
The mikroICD (In-Circuit Debugger) is an integral part of the on-board programmer. It is used for 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 dsPIC 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.
Icon commands
A complete list of registers within the
microcontroller being programmed
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
Double click on the Value field
enables you to change data format
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.
Step 1:
In
this
example
the
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.
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.
NOTE:
For more information on the mikroICD debugger refer to the mikroICD Debugger manual.
MikroElektronika
Figure 4-1: Watch Values window
41st
Development System EasydsPIC6
mikroICD debugger options:
Start Debugger
Run/Pause Debugger
Stop Debugger
Step Into
Step Over
Step Out
Toggle Breakpoint
Show/Hide Breakpoints
Clear Breakpoints
Each of these commands is activated via
keyboard shortcuts or by clicking appropriate
icon within the Watch Values window.
1
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.
2
[F9]
[F6]
[Ctrl+F2]
[F7]
[F8]
[Ctrl+F8]
[F5]
[Shift+F4]
[Ctrl+Shift+F5]
Need help?
Do you have a question about the EasydsPIC6 and is the answer not in the manual?