Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
PIC18F87K22 FAMILY
DS39960D-page 10
 2009-2011 Microchip Technology Inc.
1.1.6
EASY MIGRATION
All devices share the same rich set of peripherals
except that the devices with 32 Kbytes of program
memory (PIC18F65K22 and PIC18F85K22) have two
less CCPs and three less timers. This provides a
smooth migration path within the device family as
applications evolve and grow.
The consistent pinout scheme, used throughout the
entire family, also aids in migrating to the next larger
device. This is true when moving between the 64-pin
members, between the 80-pin members, or even
jumping from 64-pin to 80-pin devices.
All of the devices in the family share the same rich set
of peripherals, except for those with 32 Kbytes of
program memory (PIC18F65K22 and PIC18F85K22).
Those devices have two less CCPs and three less
timers.
The PIC18F87K22 family is also largely pin compatible
with other PIC18 families, such as the PIC18F8720 and
PIC18F8722 and the PIC18F85J11. This allows a new
dimension to the evolution of applications, allowing
developers to select different price points within
Microchip’s PIC18 portfolio, while maintaining a similar
feature set. 
1.2
Other Special Features
• Communications: The PIC18F87K22 family 
incorporates a range of serial communication 
peripherals, including two Enhanced USARTs 
(EUSART) that support LIN/J2602, and two 
Master SSP modules, capable of both SPI and 
I
2
C™ (Master and Slave) modes of operation.
• CCP Modules: PIC18F87K22 family devices 
incorporate up to seven Capture/Compare/PWM 
(CCP) modules. Up to six different time bases can 
be used to perform several different operations at 
once.
• ECCP Modules: The PIC18F87K22 family has 
three Enhanced CCP (ECCP) modules to 
maximize flexibility in control applications:
- Up to eight different time bases for 
performing several different operations 
at once
- Up to four PWM outputs for each module, for 
a total of 12 PWMs
- Other beneficial features, such as polarity 
selection, programmable dead time, 
auto-shutdown and restart, and Half-Bridge 
and Full-Bridge Output modes
• 12-Bit A/D Converter: The PIC18F87K22 family 
has differential ADC. It incorporates program-
mable 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.
• Charge Time Measurement Unit (CTMU): The 
CTMU is a flexible analog module that provides 
accurate differential time measurement between 
pulse sources, as well as asynchronous pulse 
generation.
• Together with other on-chip analog modules, the 
CTMU can precisely measure time, measure 
capacitance or relative changes in capacitance, or 
generate output pulses that are independent of 
the system clock.
• LP Watchdog Timer (WDT): This enhanced 
version incorporates a 22-bit prescaler, allowing 
an extended time-out range that is stable across 
operating voltage and temperature. See 
 for 
time-out periods.
• Real-Time Clock and Calendar Module 
(RTCC):
 The RTCC module is intended for appli-
cations requiring that accurate time be maintained 
for extended periods of time with minimum to no 
intervention from the CPU.
• The module is a 100-year clock and calendar with 
automatic leap year detection. The range of the 
clock is from 00:00:00 (midnight) on January 1, 
2000 to 23:59:59 on December 31, 2099.