MPLAB ? REAL ICE ? In-Circuit Emulator User’s Guide
? The target device must have its configuration words programmed correctly:
- The oscillator Configuration bits should correspond to RC, XT, etc., depending
upon the target design.
- For some devices, the Watchdog Timer is enabled by default and needs to be
disabled.
- The target device must not have code protection enabled.
- The target device must not have table read protection enabled.
Once the above conditions are met, you may proceed to the following:
2.7.1
Sequence of Operations Leading to Debug Mode
Given that the Requirements For Debug Mode are met, these actions can be
performed when the MPLAB REAL ICE in-circuit emulator is set as the current
debugger ( Debugger>Select Tool ):
? When Debugger>Program is selected, the application code is programmed into
the device’s memory via the ICSP protocol as described above.
? A small “debug executive” program is loaded into the high area of program
memory of the target device. Since the debug executive must reside in program
memory, the application program must not use this reserved space. The debug
executive typically needs about 0x120 words of program memory. Some devices
have special memory areas dedicated to the debug executive. Check your device
data sheet for details.
? Special “in-circuit debug” registers in the target device are enabled. These allow
the debug executive to be activated by the emulator.
? The target device is held in Reset by keeping the V PP /MCLR line low.
2.7.2
Debug Mode Details
Figure 2-13 illustrates the MPLAB REAL ICE in-circuit emulator system when it is ready
for debugging.
FIGURE 2-13:
MPLAB ? REAL ICE? IN-CIRCUIT EMULATOR READY FOR
DEBUGGING
+5V
+12V
Internal Circuits
4.7 k Ω
4.7 k Ω
1
5
4
V DD
V PP /MCLR
PGC
Internal
Debug
Registers
Debug
Executive
Program
Memory
Target
must
be
Running
for Debug
Executive
to Function
Area
Reserved
for Debug
Executive
PGD
Hardware
Stack Shared
by Debug Exec
DS51616A-page 18
About 0x10
Bytes Used by
Debug Exec
File
Registers
? 2006 Microchip Technology Inc.
相关PDF资料
AC2626M6 PROBE TEMP 6" GENERAL PURP
AC300024 MOTOR STEPPER 2PHASE 8WIRE
AC300030 KIT ACOUSTIC ACCESSORY
ACM-16 CABLE MODULE FR3 16BIT 40-DIP
ACM-2X8 ACTIVE CABLE MODULE DUAL 8 BIT
ACM-8 CABLE MODULE FR3 8BIT 28/32-DIP
ACS9510EVB EVALUATION BOARD FOR ACS9510
ACS9550EVB EVALUATION BOARD FOR ACS9550
相关代理商/技术参数
AC244007 制造商:Microchip Technology Inc 功能描述:MPLAB REAL ICE JTAG ADAPTER - Boxed Product (Development Kits) 制造商:Microchip Technology Inc 功能描述:ADAPTER MPLAB REAL ICE JTA 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG; Accessory Type:JTAG adaptor Board; For Use With:Microchip PIC32MX devices; SVHC:No SVHC (19-Dec-2012) ;RoHS Compliant: Yes
AC244008 功能描述:处理器配件 MPLAB REAL ICE Power Monitor RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244022 功能描述:插座和适配器 Procs Extnsn Pak for PIC24FJ128GA010-ICE RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244022 制造商:Microchip Technology Inc 功能描述:Processor Extension Pak for PI
AC244023 功能描述:插座和适配器 PROCESSOR EXTNSN PAK FOR PIC18F1xK50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244024 功能描述:插座和适配器 Processor Ext Pak for PIC18LF14K50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244026 功能描述:插座和适配器 Processor Ext Pak (PIC16F727-ICE) 200K RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244027 功能描述:插座和适配器 Processor Ext Pak (PIC16LF727-ICE)200K RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x