Datasheet

Emulator User’s Guide for MPLAB X IDE
DS52085A-page 54 2013 Microchip Technology Inc.
6.2.1 Data Capture and DMCI
Data capture provides streaming data from a device to the following:
Data Monitoring and Control Interface (DMCI) – Plug-in
To install the DMCI plug-in:
1. Select Tools>Plugins
. The Plugins window will open.
2. Click on the Available Plugins tab.
3. Find DMCI and check the checkbox next to it.
4. Click Install and follow the screens.
See also the “Add Plug-in Tools” in the “Additional Tasks” section of the MPLAB X IDE
help file.
To set up data capture:
1. Build the project (In the Projects window, right click on the project name and
select “Build”). The project must be built to see the available symbols.
2. Select Window>Debugging>Watches
to open the Watches window.
3. Right click in the window and select “New Watch”. Select the symbol or SFR wish
to watch in the New Watch window. Click OK.
4. Right click on the project and select “Properties” to open the Project Properties
dialog. Then click on the “Real ICE” category and select the “Clock” option
category. Enter instruction speed information.
5. Select Tools>Embedded>DMCI>DMCI Window
to open the DMCI dialog.
6. Set up the DMCI for this data capture. See the DMCI help file for details
(Help>Help Contents
, “Plug-In Tools” section).
7. Begin a debug session (Debug>Debug Project
). Input data using DMCI controls
or view data in a DMCI graphical window.
6.2.2 Runtime Watches and the Watch Window
A runtime watch provides updating of a variable in the following windows during
program execution instead of on halt:
Watches – Window > Debugging menu
Memory – Window > PIC Memory Views menu
To set up runtime watches:
1. Build the project (In the Projects window, right click on the project name and
select “Build”). The project must be built to see the available symbols.
2. Select Window>Debugging>Watches
to open the Watches window.
3. Right click in the window and select “New Runtime Watch”. Select the symbol or
SFR wish to watch in the New Run Time Watch window. Click OK.
4. Right click on the project and select “Properties” to open the Project Properties
dialog. Then click on the “Real ICE” category and select the “Clock” option
category. Enter instruction speed information.
5. Begin a debug session (Debug>Debug Project
). Watch variable values change
in the Watch window.
6. Pause (halt) and open another window containing the watched variable. Con-
tinue the program and watch the values change in this window.