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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
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.
logo, REAL ICE, rfLAB,
Select Mode, Total Endurance, TSHARC, 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.
3.0Special Features of the CPU........................... .............. .............................. .............. ................................................................. 37
Appendix D: Migration From Baseline to Enhanced Devices .............................................................................................................. 46
Index .................................................................................................................................................................................................... 47
The Microchip Web Site.............. ............... ............... .............. ............... ............... .............. ................................................................. 49
Customer Change Notification Service ................................................................................................................................................ 49
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 c omm ents r egarding t his publication, p lease c ontact the M arket ing 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.
This document cont a ins dev ice -specific information for
the following devices:
• PIC18F66J93• PIC18F67J93
• PIC18F86J93• PIC18F87J93
Note: This data sheet documents only the devices’
features and specific ations that are in addi tion
to the features and specifications of the
PIC18F87J90 family devices. For information
on the features and specifications shared by
the PIC18F87J93 family and PIC18F87J90
family devices, see the “PIC18F87J90 FamilyData Sheet” (DS39933).
The PIC18F87J93 family of devices offers the
advantages of all PIC18 microcontrollers – high computatio n al pe r fo rm a nc e, a rich fea ture set an d econ omica l
price – with the addition of a versatile, on-chip LCD
driver . These feat ures ma ke the PIC18 F87 J93 famil y a
logical choice for many high-performance applications
where price is a primary consideration.
1.1Special Features
• 12-Bit A/D Converter: The PIC18F87J93 family
implements a 12-bit A/D converter. A/D converters
in both families incorporate programmable acquisition time. This allows for a channel to be selected
and a conversion to be initiated, without waiting for
a sampling period and thus, reducing code
overhead.
• Data RAM: The PIC18F87J93 family devices have
3,923 bytes of RAM.
1.2Details on Individual Family
Members
Devices in the PIC18F87J93 family are available in
64-pin and 80-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 the
following ways:
• Flash Program Memory (64 Kbytes for
PIC18FX6J93 devices and 128 Kbytes for
PIC18FX7J93).
• LCD Pixels:
- 64-pin devices – 132 pixels
(33 SEGs x 4 COMs)
- 80-pin devices – 192 pixels
(48 SEGs x 4 COMs)
• I/O Ports (seven bidirectional ports on
PIC18F6XJ93 devices and nine bidirection al ports
on PIC18F8XJ93 devices).
All other features for devic es in this fam il y ar e id enti ca l
and are summarized in Table 1-1 and Table 1-2.
The devices’ block diagrams are given in Figure 1-1
and Figure 1-2.
The pinouts for all devices are listed in Table 1-3 and
Table 1-4.
TABLE 1-1:DEVICE FEATURES FOR THE PIC18F6XJ93 (64-PIN DEVICES)
FeaturesPIC18F66J93PIC18F67J93
Operating FrequencyDC – 48 MHz
Program Memory (Bytes)64K128K
Program Memory (Instructions)32,76865,536
Data Memory (Bytes)3,9233,923
Interrupt Sources29
I/O PortsPorts A, B, C, D , E, F, G
LCD Driver (available pixels to drive)132 (33 SEGs x 4 COMs)
Timers4
Comparators2
CTMUYes
RTCCY es
Capture/Compare/PWM Modules2
Serial CommunicationsMSSP, Addressable USART, Enhanced USART
12-Bit Analog-to-Digital Module12 Input Channels
Resets (and Delays)POR, BOR, RESET Instruction, Stack Full, Stack Underflow , MCLR
(PWRT, OST)
Instruction Set75 Instructions, 83 with Extended Instruction Set Enabled
Packages64-Pin TQFP
, WDT
TABLE 1-2:DEVICE FEATURES FOR THE PIC18F8XJ93 (80-PIN DEVICES)
FeaturesPIC18F86J93PIC18F87J93
Operating FrequencyDC – 48 MHz
Program Memory (Bytes)64K128K
Prog r a m M e m o r y ( I n s t r u c t i on s )32,76865,536
Data Memory (Bytes)3,9233,923
Interrupt Sources29
I/O PortsPorts A, B, C , D, E, F, G, H, J
LCD Driver (available pixels to drive)192 (48 SEGs x 4 COMs)
Timers4
Comparators2
CTMUYes
RTCCY es
Capture/Compare/PWM Modules2
Serial CommunicationsMSSP, Addressable USART, Enhanced USART
12-Bit Analog-to-Digital Module12 Input Channels
Resets (and Delays)POR, BOR, RESET Instruction, Stack Full, Stack Underflow , MCLR
(PWRT, OST)
Instruction Set75 Instructions, 83 with Extended Instruction Set Enabled
Packages80-Pin TQFP
Note 1: See Table 1-3 for I/O port pin descriptions.
2: RA6 and RA7 are only available as digital I/Os in select oscillator modes.
3: Brown-out Reset and Low-Voltage Detect functions are provided when the on-board voltage regulator is enabled.
Note 1: See Table1-3 for I/O port pin descriptions.
2: RA6 and RA7 are only available as digital I/Os in select oscillator modes.
3: Brown-out Reset and Low-Voltage Detect functions are provided when the on-board voltage regulator is enabled.
T ABLE 1-3:PIC18F6XJ93 (64-PIN DEVICE) PINOUT I/O DESCRIPTIONS
Pin Name
Pin Number
TQFP
Pin
Type
Buffer
Type
Description
MCLR
OSC1/CLKI/RA7
OSC1
CLKI
RA7
OSC2/CLKO/RA6
OSC2
CLKO
RA6
RA0/AN0
RA0
AN0
RA1/AN1/SEG18
RA1
AN1
SEG18
RA2/AN2/V
RA2
AN2
V
REF-
REF-
7ISTMaster Clear (input) or programming voltage (input). This
pin is an active-low Reset to the device.
39
40
24
23
22
I
CMOS
I
CMOS
I/O
O
O
I/O
I/OITTL
Analog
I/O
I
Analog
O
Analog
I/O
I
Analog
I
Analog
Oscillator crystal or external clock input.
Oscillator cryst al inp ut.
External clock source input. Always associated
with pin function OSC1. (See related OSC1/CLKI,
OSC2/CLKO pins.)
TTL
—
—
TTL
TTL
TTL
General purpose I/O pin.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Osc ill ato r mode .
In EC modes, OSC2 pin outputs CLKO, which has
1/4 the frequency of OSC1 and denotes the
instruction cycle rate.
General purpose I/O pin.
PORTA is a bidirectional I/O port.
Digital I/O.
Analog In put 0.
Digital I/O.
Analog In put 1.
SEG18 output for LCD.
Digital I/O.
Analog In put 2.
A/D reference voltage (l ow) input.
RA3/AN3/V
RA3
AN3
V
RA4/T0CKI/SEG14
RA4
T0CKI
SEG14
RA5/AN4/SEG15
RA5
AN4
SEG15
RA6See the OSC2/CLKO/RA6 pin.
RA7See the OSC1/CLKI/RA7 pin.