PIC16F7X7
15.19 In-Circuit Debugger
15.22 In-Circuit Serial Programming
When the DEBUG bit in the Configuration Word is pro-
grammed to a ‘0’, the In-Circuit Debugger functionality
is enabled. This function allows simple debugging
functions when used with MPLAB® ICD. When the
microcontroller has this feature enabled, some of the
resources are not available for general use. Table 15-7
shows which features are consumed by the background
debugger.
PIC16F7X7 microcontrollers can be serially
programmed while in the end application circuit. This is
simply done with two lines for clock and data and three
other lines for power, ground and the programming
voltage (see Figure 15-17 for an example). This allows
customers to manufacture boards with unprogrammed
devices and then program the microcontroller just
before shipping the product. This also allows the most
recent firmware or
programmed.
a custom firmware to be
TABLE 15-7: DEBUGGER RESOURCES
For general information of serial programming, please
refer to the “In-Circuit Serial Programming™ (ICSP™)
Guide” (DS30277).
I/O pins
RB6, RB7
1 level
Stack
Program Memory
Address 0000h must be NOP
Last 100h words
FIGURE 15-17:
TYPICAL IN-CIRCUIT
SERIALPROGRAMMING™
CONNECTION
Data Memory
0x070 (0x0F0, 0x170, 0x1F0)
0x165-0x16F
To use the In-Circuit Debugger function of the micro-
controller, the design must implement In-Circuit Serial
Programming connections to MCLR/VPP, VDD, GND,
RB7 and RB6. This will interface to the In-Circuit
Debugger module available from Microchip or one of
the third party development tool companies.
To Normal
Connections
External
Connector
Signals
*
PIC16F7X7
+5V
0V
VDD
VSS
Note:
In-Circuit Debugger operation must occur
between the operating voltage range
(VDD) of 4.75V-5.25V on PIC16F7X7
devices.
VPP
MCLR/VPP/RE3
RB6
RB7
CLK
Data I/O
15.20 Program Verification/Code
Protection
If the code protection bit(s) have not been
programmed, the on-chip program memory can be
read out for verification purposes.
*
*
*
VDD
To Normal
Connections
15.21 ID Locations
* Isolation devices (as required).
Four memory locations (2000h-2003h) are designated
as ID locations where the user can store checksum or
other code identification numbers. These locations are
not accessible during normal execution but are
readable and writable during program/verify. It is
recommended that only the four Least Significant bits
of the ID location are used.
DS30498C-page 192
2004 Microchip Technology Inc.