EasyManuals Logo

Microchip Technology MPLAB ICD 4 User Manual

Microchip Technology MPLAB ICD 4
98 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #32 background imageLoading...
Page #32 background image
MPLAB
®
ICD 4 User’s Guide
DS50002596A-page 32 2017 Microchip Technology Inc.
3.10 BREAKPOINTS AND STOPWATCH
Use breakpoints to halt code execution at specific lines in your code. Use the stopwatch
with breakpoints to time code execution.
Breakpoint Resources
Hardware or Software Breakpoint Selection
Breakpoint and Stopwatch Usage
3.10.1 Breakpoint Resources
In 16-bit devices, breakpoints, data captures, and runtime watches use the same
resources. Therefore, the available number of breakpoints is actually the available
number of combined breakpoints/triggers.
In 32-bit devices, breakpoints use different resources than data captures and runtime
watches. Therefore, the available number of breakpoints is independent of the
available number of triggers.
The number of hardware and software breakpoints available and/or used is displayed
in the Dashboard window (Window>Dashboard
). See the MPLAB X IDE
documentation for more on this feature. Not all devices have software breakpoints.
For limitations on breakpoint operation, including the general number of hardware
breakpoints per device, and hardware breakpoint skidding amounts, see the online
Help file in MPLAB X IDE for the MPLAB ICD 4 In-Circuit Debugger limitations.
3.10.2 Hardware or Software Breakpoint Selection
To select hardware or software breakpoints:
1. Select your project in the Projects window. Then, select F
ile>Project Properties
or right click and select “Properties”.
2. In the Project Properties dialog, select “ICD4” under “Categories”.
3. Under “Option Categories,” select “Debug Options”.
4. Check “Use software breakpoints” to use software breakpoints. Uncheck to use
hardware breakpoints.
To help you decide which type of breakpoints to use (hardware or software), the
following table compares the features of each.
TABLE 3-2: HARDWARE VS. SOFTWARE BREAKPOINTS
Note: Using software breakpoints for debugging impacts device endurance.
Therefore, it is recommended that devices used in this manner are not
be used as production parts.
Feature Hardware Breakpoints Software Breakpoints
Number of breakpoints Limited Unlimited
Breakpoints written to* Internal Debug Registers Flash Program Memory
Breakpoints applied to** Program Memory/Data Memory Program Memory only
Time to set breakpoints Minimal Dependent on oscillator
speed, time to program Flash
Memory, and page size
Breakpoint skidding Most devices. See the online Help,
Limitations section, for details.
No
* Where information about the breakpoint is written in the device.
** What kind of device feature applies to the breakpoint. This is where the breakpoint is set.

Table of Contents

Other manuals for Microchip Technology MPLAB ICD 4

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Microchip Technology MPLAB ICD 4 and is the answer not in the manual?

Microchip Technology MPLAB ICD 4 Specifications

General IconGeneral
BrandMicrochip Technology
ModelMPLAB ICD 4
CategoryComputer Accessories
LanguageEnglish

Related product manuals