English
Language : 

PIC24FJ16MC101_12 Datasheet, PDF (242/350 Pages) Microchip Technology – 16-bit Microcontrollers (up to 32 KB Flash and 2 KB SRAM)
PIC24FJ16MC101/102 AND PIC24FJ32MC101/102/104
23.5 In-Circuit Serial Programming
The PIC24FJ16MC101/102 and PIC24FJ32MC101/
102/104 devices can be serially programmed while in
the end application circuit. This is done with two
lines for clock and data and three other lines for
power, ground and the programming sequence.
Serial programming allows customers to manufac-
ture boards with unprogrammed devices and then
program the microcontroller just before shipping the
product. Serial programming also allows the most
recent firmware or a custom firmware to be pro-
grammed. Refer to the “PIC24FJXXMC Family Flash
Programming Specification” (DS70512) for details
about In-Circuit Serial Programming (ICSP).
Any of the three pairs of programming clock/data pins
can be used:
• PGEC1 and PGED1
• PGEC2 and PGED2
• PGEC3 and PGED3
23.6 In-Circuit Debugger
When MPLAB® ICD 2 is selected as a debugger, the in-
circuit debugging functionality is enabled. This function
allows simple debugging functions when used with
MPLAB IDE. Debugging functionality is controlled
through the PGECx (Emulation/Debug Clock) and
PGEDx (Emulation/Debug Data) pin functions.
Any of the three pairs of debugging clock/data pins can
be used:
• PGEC1 and PGED1
• PGEC2 and PGED2
• PGEC3 and PGED3
To use the in-circuit debugger function of the device,
the design must implement ICSP connections to
MCLR, VDD, VSS, and the PGECx/PGEDx pin pair. In
addition, when the feature is enabled, some of the
resources are not available for general use. These
resources include the first 80 bytes of data RAM and
two I/O pins.
DS39997C-page 242
Preliminary
© 2011-2012 Microchip Technology Inc.