ã 2001 Microchip Technology Inc.
DS51242A-page 7
ON-CHIP DEBUGGER
SPECIFICATION
12
Chapter 2. PIC16F87X Debugger Control
2.1
Introduction
This chapter describes the hardware and software requirements for on-chip
debugging using the PIC16F87X.
2.2
Highlights
Topics covered in this chapter are:
Enabling/Disabling the On-Chip Debugger
Using the On-Chip Debugger Registers
Communicating with the Target Device
Resetting and Running Programs
Halting Execution
Additional Considerations
2.3
Enabling/Disabling the On-Chip Debugger
The configuration bit BKBUG (bit 11 in the configuration word) is used to
enable/disable the on-chip debugger (Figure 2.1).
See the programming specifications for PIC16C87X devices (DS39025) for
more information on programming the configuration word.
Figure 2.1: CONFIGURATION WORD
CP1
CP0
BKBUG
-
WRT
CPD
LVP
BODEN
CP1
CP0 PWRTE WDTE F0SC1 F0SC0
Register:
CONFIG
Address
2007h
bit13
bit0
bit 11:
BKBUG: On-chip Debugger Mode (This bit documented as reserved in data sheet)
1 = On-chip debugger functions not enabled
0 = On-chip debugger functional.