Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Octopus, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,
TSHARC, UniWinDriver, WiperLock and ZENA are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS39974A-page 2Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
PIC18F47J13 Family 28/44-Pi n, High- Perf ormance Mi crocontrollers
with nanoWatt XLP Technology
Power Management Features with
nanoWatt XLP for Extreme Low Power:
• Deep Sleep mode: CPU Off, Peripherals Off, SRAM Off,
Currents Down to 9 nA and 700 nA with RTCC:
- Able to wake-up on external triggers, programmable WDT
or RTCC alarm
- Ultra Low-Power Wake-up (ULPWU)
• Sleep mode: CPU Off, Peripherals Off, SRAM On, Fast
Wake-up, Currents Down to 0.2 A, 2V Typical
DS39974A-page 4Preliminary 2010 Microchip Technology Inc.
Pin Diagrams
44-Pin TQFP
Legend: RPn represents remappable pins.Some input and output functions are routed through the Peripheral Pin
Select (PPS) module and can be dynamically assigned to any of the RPn pins. For a list of the input and
output functions, see Table 10-13 and Table 10-14, respectively. For details on configuring the PPS module,
see Section 10.7 “Peripheral Pin Select (PPS)”.
10
11
2
3
6
1
1819202122
121314
15
38
8
7
4443424140
39
16
17
29
30
31
32
33
23
24
25
26
27
28
363435
9
PIC18F4XJ13
37
RA3/AN3/C1INB/VREF+
RA2/AN2/C2INB/C1IND/C3INB/V
REF-/CVREF
RA1/AN1/C2INA/VBG/CTDIN/PMA7/RP1
RA0/AN0/C1INA/ULPWU/PMA6/RP0
MCLR
NC
RB7/CCP7/KBI3/PGD/RP10
RB6/CCP6/KBI2/PGC/RP9
RB5/CCP5/PMA0/KBI1/RP8
RB4/CCP4/PMA1/KBI0/RP7
NC
RC6/CCP9/PMA5/TX1/CK1/RP17
RC5/SDO1/RP16
RC4/SDI1/SDA1/RP15
RD3/PMD3/RP20
RD2/PMD2/RP19
RD1/PMD1/SDA2
RD0/PMD0/SCL2
RC3/SCK1/SCL1/RP14
RC2/AN11/C2IND/CTPLS/RP13
RC1/CCP8/T1OSI/RP12
NC
NC
RC0/T1OSO/T1CKI/RP11
OSC2/CLKO/RA6
OSC1/CLKI/RA7
V
Legend: RPn represents remappable pins.Some input and output functions are routed through the Peripheral Pin
Select (PPS) module and can be dynamically assigned to any of the RPn pins. For a list of the input and
output functions, see Table 10-13 and Table 10-14, respectively. For details on configuring the PPS module,
see Section 10.7 “Peripheral Pin Select (PPS)”.
Note:For the QFN package, it is recommended that the bottom pad be connected to V
DS39974A-page 6Preliminary 2010 Microchip Technology Inc.
Pin Diagrams (Continued)
28-Pin SPDIP/SOIC/SS OP
28-Pin QFN
Legend: RPn represents remappable pins.Some input and output functions are routed through the Peripheral Pin
Select (PPS) module and can be dynamically assigned to any of the RPn pins. For a list of the input and
output functions, see Table 10-13 and Table 10-14, respectively. For details on configuring the PPS module,
see Section 10.7 “Peripheral Pin Select (PPS)”.
Note:For the QFN package, it is recommended that the bottom pad be connected to V
SS.
PIC18F2XJ13
10
11
2
3
4
5
6
1
8
7
9
12
13
14
15
16
17
18
19
20
23
24
25
26
27
28
22
21
MCLR
RA0/AN0/C1INA/ULPWU/RP0
RA1/AN1/C2INA/V
BG/CTDIN/RP1
RA2/AN2/C2INB/C1IND/C3INB/V
REF-/CVREF
RA3/AN3/C1INB/VREF+
V
DDCORE/VCAP
RA5/AN4/C1INC/SS1/HLVDIN/RP2
V
SS1
OSC1/CLKI/RA7
OSC2/CLKO/RA6
RC0/T1OSO/T1CKI/RP11
RC1/CCP8/T1OSI/RP12
RC2/AN11/C2IND/CTPLS/RP13
RC3/SCK1/SCL1/RP14
RB7/CCP7/KBI3/PGD/RP10
RB6/CCP6/KBI2/PGC/RP9
RB5/CCP5/KBI1/SDA2/RP8
RB4/CCP4/KBI0/SCL2/RP7
RB3/AN9/C3INA/CTED2/RP6
RB2/AN8/C2INC/CTED1/REFO/RP5
RB1/AN10/C3INC/RTCC/RP4
RB0/AN12/C3IND/INT0/RP3
V
2.0Guidelines for Getting Started with PIC18FJ Microcontrollers ................................................................................................... 31
7.0Flash Program Memory............................................................................................................................................................ 107
8.08 x 8 Hardware Multiplier.......................................................................................................................................................... 117
20.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 291
24.0 Comparator Voltage Reference Module ................................................................................................................................... 387
25.0 High/Low Voltage Detect (HLVD)............................................................................................................................................. 391
26.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 397
27.0 Special Features of the CPU.................................................................................................................................................... 415
28.0 Instruction Set Summary.......................................................................................................................................................... 433
29.0 Development Support............................................................................................................................................................... 483
Appendix B: Migration From PIC18F46J11 to PIC18F47J13............................................................................................................. 541
The Microchip Web Site..................................................................................................................................................................... 555
Customer Change Notification Service .............................................................................................................................................. 555
Customer Support .............................................................................................................................................................................. 555
DS39974A-page 8Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. We
welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DS39974A-page 10Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
1.0DEVICE OVERVIEW
This document contains device-specific information for
the following devices:
• P IC 18 F2 6J1 3 • PIC1 8LF 26J 13
• PIC18F27J13• PIC18LF27J13
• PIC18F46J13• PIC18LF46J13
• PIC18F47J13• PIC18LF47J13
1.1Core Features
1.1.1nanoWatt XLP TECHNOLOGY
All of the devices in the PIC18F47J13 family incorporate a range of features that can significantly reduce
power consumption during operation. Key features are:
• Alternate Run Modes: By clocking the controller
from the Timer1 source or the internal RC
oscillator, power consumption during code
execution can be reduced by as much as 90%.
• Multiple Idle Modes: The controller can also run
with its CPU core disabled but the peripherals still
active. In these states, power consumption can be
reduced even further, to as little as 4% of normal
operational requirements.
• On-the-Fly Mode Switching: The
power-managed modes are invoked by user code
during operation, allowing the users to incorporate
power-saving ideas into their application’s
software design.
• Deep Sleep: The 2.5V internal core voltage regu-
lator on F parts can be shutdown to cut power
consumption to as low as 15 nA (typical). Certain
features can remain operating during Deep Sleep,
such as the Real-Time Clock Calendar.
• Ultra Low Power Wake-Up: Waking from Sleep
or Deep Sleep modes after a period of time can
be done without an oscillator/clock source, saving
power for applications requiring periodic activity.
1.1.2OSCILLATOR OPTIONS AND
FEATURES
All of the devices in the PIC18F47J13 family offer five
different oscillator options, allowing users a range of
choices in developing application hardware. These
include:
• Two Crystal modes, using crystals or ceramic
resonators.
• Two External Clock modes, offering the option of
a divide-by-4 clock output.
• An internal oscillator block, which provides an
8 MHz clock and an INTRC source (approximately 31 kHz, stable over temperature and V
as well as a range of six user selectable clock
frequencies, between 125 kHz to 4 MHz, for a
total of eight clock frequencies. This option frees
an oscillator pin for use as an additional general
purpose I/O.
• A Phase Lock Loop (PLL) frequency multiplier
available to the high-speed crystal, and external
and internal oscillators, providing a clock speed
up to 48 MHz.
The internal oscillator block provides a stable reference
source that gives the PIC18F47J13 family additional
features for robust operation:
• Fail-Safe Clock Monitor: This option constantly
monitors the main clock source against a reference
signal provided by the internal oscillator. If a clock
failure occurs, the controller is switched to the
internal oscillator, allowing for continued low-speed
operation or a safe application shutdown.
• Two-Speed S tart-up: This option allows the
internal oscillator to serve as the clock source
from Power-on Reset (POR), or wake-up from
Sleep mode, until the primary clock source is
available.
The PIC18F47J13 family provides ample room for
application code, from 64 Kbytes to 128 Kbytes of code
space. The Flash cells for program memory are rated
to last in excess of 10000 erase/write cycles. Data
retention without refresh is conservatively estimated to
be greater than 20 years.
The Flash program memory is readable and writable
during normal operation. The PIC18F47J13 family also
provides plenty of room for dynamic application data
with up to 3.8 Kbytes of data RAM.
1.1.4EXTENDED INSTRUCTION SET
The PIC18F47J13 family implements the optional
extension to the PIC18 instruction set, adding eight
new instructions and an Indexed Addressing mode.
Enabled as a device configuration option, the extension
has been specifically designed to optimize re-entrant
application code originally developed in high-level
languages, such as C.
1.1.5EASY MIGRATION
Regardless of the memory size, all devices share the
same rich set of peripherals, allowing for a smooth
migration path as applications grow and evolve.
The consistent pinout scheme used throughout the entire
family also aids in migrating to the next larger device.
The PIC18F47J13 family is also pin compatible with
other PIC18 families, such as the PIC18F4550,
PIC18F2450 and PIC18F46J50. This allows a new
dimension to the evolution of applications, allowing
developers to select different price points within
Microchip’s PIC18 portfolio, while maintaining the
same feature set.
1.2Other Special Features
• Communications: The PIC18F47J13 family
incorporates a range of serial and parallel communication peripherals. This device includes two
independent Enhanced USARTs and two Master
Synchronous Serial Port (MSSP) modules,
capable of both Serial Peripheral Interface (SPI)
2
C™ (Master and Slave) modes of opera-
and I
tion. The device also has a parallel port and can
be configured to serve as either a Parallel Master
Port (PMP) or as a Parallel Slave Port (PSP).
• CCP/ECCP Modules: All devices in the family
incorporate seven Capture/Compare/PWM (CCP)
modules and three Enhanced Capture/Compare/PWM (ECCP) modules to maximize flexibility
in control applications. ECCPs offer up to four
PWM output signals each. The ECCPs also offer
many beneficial features, including polarity
selection, programmable dead time,
auto-shutdown and restart and Half-Bridge and
Full-Bridge Output modes.
• 10/12-Bit A/D Converter: This module incorpo-
rates programmable acquisition time, allowing for
a channel to be selected and a conversion to be
initiated without waiting for a sampling period, and
thus, reducing code overhead.
• Extended Watchdog Timer (WDT): This
enhanced version incorporates a 16-bit prescaler,
allowing an extended time-out range that is stable
across operating voltage and temperature. See
Section 30.0 “Electrical Characteristics” for
time-out periods.
1.3Details on Individual Family
Devices
Devices in the PIC18F47J13 family are available in
28-pin and 44-pin packages. Block diagrams for the
two groups are shown in Figure 1-1 and Figure 1-2.
The devices are differentiated from each other in
two ways:
• Flash program memory (two sizes: 64 Kbytes for
the PIC18FX6J13 and 128 Kbytes for
PIC18FX7J13)
• I/O ports (three bidirectional ports on 28-pin
devices, five bidirectional ports on 44-pin devices)
All other features for devices in this family are identical.
These are summarized in Table 1-1 and Table 1-2.
The pinouts for the PIC18F2XJ13 devices are listed in
Table 1-3. The pinouts for the PIC18F4XJ13 devices
are shown in Table 1-4.
The PIC18F47J13 family of devices provides an
on-chip voltage regulator to supply the correct voltage
levels to the core. Parts designated with an “F” part
number (such as PIC18F47J13) have the voltage
regulator enabled.
These parts can run from 2.15V-3.6V on V
have the V
low-ESR capacitor. Parts designated with an “LF” part
number (such as PIC18LF47J13) do not enable the volt-
age regulator nor support Deep Sleep mode. For “LF”
parts, an external supply of 2.0V-2.7V has to be supplied
to the V
DD(VDDCOREshould never exceed VDD).
V
For more details about the internal voltage regulator,
see Section 27.3 “On-Chip Voltage Regulator”.
DDCORE pin connected to VSSthrough a
DDCOREpin while 2.0V-3.6V can be supplied to
DD, but should
DS39974A-page 12Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
TABLE 1-1:DEVICE FEATURES FOR THE PIC18F2XJ13 (28-PIN DEVICES)
FeaturesPIC18F26J13PIC18F27J13
Operating FrequencyDC – 48 MHzDC – 48 MHz
Program Memory (Kbytes)64128
Program Memory (Instructions)32,76865,536
Data Memory (Kbytes)3.83.8
Interrupt Sources30
I/O PortsPorts A, B, C
Timers8
Enhanced Capture/Compare/PWM Modules3 ECCP and 7 CCP
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
(1)
OSC2
CLKO
(1)
RA6
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
2: 5.5V tolerant.
28-SPDIP/
SSOP/
SOIC
1
28-QFN
(2)
96
107
26
(2)
ISTMaster Clear (Reset) input. This pin is an
Type
I
I
I/O
O
O
I/O
Buffer
Type
ST
CMOS
TTL/DIG
—
DIG
TTL/DIG
Description
active-low Reset to the device.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source
input. ST buffer when configured in RC mode;
CMOS otherwise. Main oscillator input
connection.
External clock source input; always associated
with pin function, OSC1 (see related
OSC1/CLKI pins).
Digital I/O.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
Main oscillator feedback output connection.
In RC mode, OSC2 pin outputs CLKO, which
has 1/4 the frequency of OSC1 and denotes
the instruction cycle rate.
Digital I/O.
2
C™= Open-Drain, I2C specific
DD)
DS39974A-page 16Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
T ABLE 1-3:PIC18F2XJ13 PINOUT I/O DESCRIPTIONS (CONTINUED)
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: 5.5V tolerant.
Type
I/O
I
I
I
I/O
I/O
O
I
O
I
I/O
I/O
I
I
I
I
O
I
I/O
I
I
I
I/O
I
I
I
I
I/O
Buffer
Type
TTL/DIG
Analog
Analog
Analog
ST/DIG
TTL/DIG
Analog
Analog
Analog
ST
ST/DIG
TTL/DIG
Analog
Analog
Analog
Analog
Analog
Analog
TTL/DIG
Analog
Analog
Analog
TTL/DIG
Analog
Analog
TTL
Analog
ST/DIG
Description
PORTA is a bidirectional I/O port.
Digital I/O.
Analog Input 0.
Comparator 1 Input A.
Ultra low-power wake-up input.
Remappable Peripheral Pin 0 input/output.
Digital I/O.
Analog Input 1.
Comparator 2 Input A.
Band Gap Reference Voltage (V
CTMU pulse delay input.
Remappable Peripheral Pin 1 input/output.
Digital I/O.
Analog Input 2.
Comparator 2 Input B.
Comparator 1 Input D.
Comparator 3 Input B.
A/D reference voltage (low) input.
Comparator reference voltage output.
Digital I/O.
Analog Input 3.
Comparator 1 Input B.
A/D reference voltage (high) input.
Digital I/O.
Analog Input 4.
Comparator 1 Input C.
SPI slave select input.
High/Low-Voltage Detect input.
Remappable Peripheral Pin 2 input/output.
See the OSC2/CLKO/RA6 pin.
See the OSC1/CLKI/RA7 pin.
Digital I/O.
Analog Input 11.
Comparator 2 Input D.
CTMU pulse generator output.
Remappable Peripheral Pin 13 input/output.
Digital I/O.
SPI clock input/output.
2
C clock input/output.
I
Remappable Peripheral Pin 14 input/output.
Digital I/O.
SPI data input.
2
C data input/output.
I
Remappable Peripheral Pin 15 input/output.
Digital I/O.
SPI data output.
Remappable Peripheral Pin 16 input/output.
Digital I/O.
Capture/Compare/PWM input/output.
EUSART1 asynchronous transmit.
EUSART1 synchronous clock (see related
RX1/DT1).
Remappable Peripheral Pin 17 input/output.
Digital I/O.
Capture/Compare/PWM input/output.
Asynchronous serial receive data input.
Synchronous serial data output/input.
Remappable Peripheral Pin 18 input/output.
2
C™= Open-Drain, I2C specific
DD)
DS39974A-page 20Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
T ABLE 1-3:PIC18F2XJ13 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Number
Pin
Pin Name
VSS185P—Ground reference for logic and I/O pins.
SS21916——
V
VDD2017P—Positive supply for peripheral digital logic and I/O
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: Available only on 44-pin devices (PIC18F46J13, PIC18F47J13, PIC18LF46J13 and PIC18LF47J13).
3: 5.5V tolerant.
44-
QFN
(3)
18
3230
3331
TQFP
Pin
Type
I
I
I/O
O
O
I/O
Buffer
Type
ST
CMOS
TTL/DIG
—
—
TTL/DIG
Reset to the device.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source
input. ST buffer when configured in RC mode;
otherwise CMOS. Main oscillator input
connection.
External clock source input; always associated
with pin function, OSC1 (see related OSC1/CLKI
pins).
Digital I/O.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
Main oscillator feedback output connection
in RC mode, OSC2 pin outputs CLKO, which
has 1/4 the frequency of OSC1 and denotes the
instruction cycle rate.
Digital I/O.
2
C™= Open-Drain, I2C specific
44-
18ISTMaster Clear (Reset) input; this is an active-low
Description
DD)
DS39974A-page 22Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
T ABLE 1-4:PIC18F4XJ13 PINOUT I/O DESCRIPTIONS (CONTINUED)
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to VDD)
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: Available only on 44-pin devices (PIC18F46J13, PIC18F47J13, PIC18LF46J13 and PIC18LF47J13).
3: 5.5V tolerant.
44-
Pin
Type
I/O
I
I
I
I/O
I/O
I/O
O
I
O
I
I/O
I/O
I/O
I
I
I
I
I
I
I/O
I
I
I
I/O
I
I
I
I
I/O
Buffer
Type
TTL/DIG
Analog
Analog
Analog
ST/TTL/
DIG
ST/DIG
TTL/DIG
Analog
Analog
Analog
ST
ST/TTL/
DIG
ST/DIG
TTL/DIG
Analog
Analog
Analog
Analog
Analog
Analog
TTL/DIG
Analog
Analog
Analog
TTL/DIG
Analog
Analog
TTL
Analog
ST/DIG
Description
PORTA is a bidirectional I/O port.
Digital I/O.
Analog Input 0.
Comparator 1 Input A.
Ultra low-power wake-up input.
Parallel Master Port digital I/O.
Remappable Peripheral Pin 0 input/output.
Digital I/O.
Analog Input 1.
Comparator 2 Input A.
Band Gap Reference Voltage (V
BG) output.
CTMU pulse delay input.
Parallel Master Port digital I/O.
Remappable Peripheral Pin 1 input/output.
Digital I/O.
Analog Input 2.
Comparator 2 Input B.
Comparator 1 Input D.
Comparator 3 Input B.
A/D reference voltage (low) input.
Comparator reference voltage output.
Digital I/O.
Analog Input 3.
Comparator 1 Input B.
A/D reference voltage (high) input.
Digital I/O.
Analog Input 4.
SPI slave select input.
Comparator 1 Input C.
High/Low-Voltage Detect input.
Remappable Peripheral Pin 2 input/output.
See the OSC2/CLKO/RA6 pin.
See the OSC1/CLKI/RA7 pin.
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
(2)
(2)
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
2: Available only on 44-pin devices (PIC18F46J13, PIC18F47J13, PIC18LF46J13 and PIC18LF47J13).
3: 5.5V tolerant.
44-
QFN
TQFP
98
109
1110
1211
44-
Pin
Type
I/O
I
I
I
I/O
I/O
I
I
O
O
I/O
I/O
I
I
I
O
O
I/O
I/O
I
I
I
O
I/O
Buffer
Type
TTL/DIG
Analog
Analog
ST
ST/DIG
TTL/DIG
Analog
Analog
DIG
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
ST/DIG
Description
PORTB is a bidirectional I/O port. PORTB can be
software programmed for internal weak pull-ups on
all inputs.
Digital I/O.
Analog Input 12.
Comparator 3 Input D.
External Interrupt 0.
Remappable Peripheral Pin 3 input/output.
Digital I/O.
Analog Input 10.
Comparator 3 Input C.
Parallel Master Port byte enable.
Asynchronous serial transmit data output.
Remappable Peripheral Pin 4 input/output.
Digital I/O.
Analog Input 8.
Comparator 2 Input C.
CTMU Edge 1 input.
Parallel Master Port address.
Reference output clock.
Remappable Peripheral Pin 5 input/output.
Digital I/O.
Analog Input 9.
Comparator 3 Input A.
CTMU Edge 2 input.
Parallel Master Port address.
Remappable Peripheral Pin 6 input/output.
2
C™= Open-Drain, I2C specific
DD)
DS39974A-page 24Preliminary 2010 Microchip Technology Inc.
PIC18F47J13 FAMILY
T ABLE 1-4:PIC18F4XJ13 PINOUT I/O DESCRIPTIONS (CONTINUED)