PIC18(L)F2X/4XK50
Flash Memory Programming Specification
1.0
DEVICE OVERVIEW
Note 1: The High-Voltage ICSP mode is always
available, regardless of the state of the
LVP bit, by applying VIHH to the MCLR/
VPP/RE3 pin.
This
document
includes
the
programming
specifications for the following devices:
• PIC18F24K50
• PIC18F25K50
• PIC18F26K50
• PIC18F45K50
• PIC18F46K50
• PIC18LF24K50
• PIC18LF25K50
2: While in Low-Voltage ICSP mode, MCLR
is always enabled, regardless of the
MCLRE bit, and the RE3 pin can no
longer be used as a general purpose
input.
• PIC18LF26K50
• PIC18LF45K50
• PIC18LF46K50
2.0
PROGRAMMING OVERVIEW
2.2
Dedicated ICSP/ICD Port (44-Pin
TQFP Only)
The PIC18(L)F2X/4XK50 devices can be programmed
using either the high-voltage In-Circuit Serial
Programming™ (ICSP™) method or the low-voltage
ICSP method. Both methods can be done with the
device in the users’ system. The low-voltage ICSP
method is slightly different than the high-voltage
method and these differences are noted where
applicable. This programming specification applies to
the PIC18(L)F2X/4XK50 devices in all package types.
The PIC18F45K50/46K50 44-pin TQFP devices are
designed to support an alternate programming input:
the dedicated ICSP/ICD port. The primary purpose of
this port is to provide an alternate In-Circuit Debugging
(ICD) option and free the pins (RB6, RB7 and MCLR)
that would normally be used for debugging the
application. In conjunction with ICD capability,
however, the dedicated ICSP/ICD port also provides an
alternate port for ICSP. Setting the ICPRT
Configuration bit enables the dedicated ICSP/ICD port.
The dedicated ICSP/ICD port functions the same as
the default ICSP/ICD port; however, alternate pins are
used instead. Table 2-2 identifies the functionally
equivalent pins for ICSP purposes: The dedicated
ICSP/ICD port is an alternate port. Thus, ICSP is still
available through the default port even though the
ICPRT Configuration bit is set.
2.1
Hardware Requirements
In High-Voltage ICSP mode, the PIC18(L)F2X/4XK50
devices require two programmable power supplies:
one for VDD and one for MCLR/VPP/RE3. Both supplies
should have a minimum resolution of 0.25V. Refer to
Section 6.0
“AC/DC
Characteristics
Timing
Requirements for Program/Verify Test Mode” for
additional information.
2.1.1
LOW-VOLTAGE ICSP
PROGRAMMING
Note:
The ICPRT Configuration bit can only be
programmed through the default ICSP port.
By default the ICPORT Configuration bit is
enabled. When the ICPRT Configuration bit
is cleared (dedicated ICSP/ICD port is
disabled), the ICDPORTS pin should be
tied to either VDD or VSS on 44 TQFP
packages only. The ICPRT Configuration
bit must be maintained clear for all 28-pin
and 40-pin devices; otherwise, unexpected
operation may occur.
In Low-Voltage ICSP mode, the PIC18(L)F2X/4XK50
devices can be programmed using a single VDD source
in the operating range. The MCLR/VPP/RE3 does not
have to be brought to a different voltage, but can
instead be left at the normal operating voltage. Refer to
Section 2.7 “Entering and Exiting Low-Voltage
ICSP Program/Verify Mode” for additional hardware
parameters.
2012 Microchip Technology Inc.
DS41630B-page 1