PIC18CXX2
High-Performance Microcontrollers with 10-Bit A/D
High Performance RISC CPU:
Pin Diagrams
DIP, Windowed CERDIP
• C-compiler optimized architecture/instruction set
RB7
RB6
RB5
RB4
RB3/CCP2*
RB2/INT2
1
2
3
4
5
6
7
8
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
MCLR/VPP
RA0/AN0
-
Source code compatible with the PIC16CXX
instruction set
RA1/AN1
RA2/AN2/VREF-
RA3/AN3/VREF+
RA4/T0CKI
RA5/AN4/SS/LVDIN
• Linear program memory addressing to 2M bytes
• Linear data memory addressing to 4K bytes
*
*
On-Chip Program Memory
RB1/INT1
RB0/INT0
VDD
On-Chip
RAM
(bytes)
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
VSS
OSC1/CLKI
Device
EPROM # Single Word
9
(bytes)
Instructions
VSS
10
11
12
13
14
15
16
17
18
19
20
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
PIC18C242
PIC18C252
PIC18C442
PIC18C452
16K
32K
16K
32K
8192
16384
8192
512
1536
512
OSC2/CLKO/RA6
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2*
RC2/CCP1
16384
1536
• Up to 10 MIPs operation:
-
-
RC4/SDI/SDA
RD3/PSP3
RC3/SCK/SCL
RD0/PSP0
*
*
DC - 40 MHz osc./clock input
4 MHz - 10 MHz osc./clock input with PLL active
RD2/PSP2
RD1/PSP1
* RB3 is the alternate pin for the CCP2 pin multiplexing.
• 16-bit wide instructions, 8-bit wide data path
• Priority levels for interrupts
NOTE: Pin compatible with 40-pin PIC16C7X devices
• 8 x 8 Single Cycle Hardware Multiplier
Analog Features:
Peripheral Features:
• 10-bit Analog-to-Digital Converter module (A/D)
with:
• High current sink/source 25 mA/25 mA
• Three external interrupt pins
-
-
-
Fast sampling rate
Conversion available during sleep
DNL = ±1 LSb, INL = ±1 LSb
• Timer0 module: 8-bit/16-bit timer/counter with
8-bit programmable prescaler
• Programmable Low-Voltage Detection (LVD)
module
• Timer1 module: 16-bit timer/counter
• Timer2 module: 8-bit timer/counter with 8-bit
period register (time-base for PWM)
-
Supports interrupt on low voltage detection
• Programmable Brown-out Reset (BOR)
• Timer3 module: 16-bit timer/counter
*
Special Microcontroller Features:
• Secondary oscillator clock option - Timer1/Timer3
• Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Two Capture/Compare/PWM (CCP) modules. CCP
pins that can be configured as:
-
Capture input: capture is 16-bit,
max. resolution 6.25 ns (TCY/16)
• Programmable code-protection
• Power saving SLEEP mode
• Selectable oscillator options including:
-
-
Compare is 16-bit, max. resolution 100 ns (TCY)
PWM output: PWM resolution is 1- to 10-bit.
Max. PWM freq. @:8-bit resolution = 156 kHz
10-bit resolution= 39 kHz
-
-
4X Phase Lock Loop (of primary oscillator)
Secondary Oscillator (32 kHz) clock input
• Master Synchronous Serial Port (MSSP) module.
Two modes of operation:
• In-Circuit Serial Programming (ICSP™) via two pins
- 3-wire SPI™ (supports all 4 SPI modes)
- I2C™ master and slave mode
CMOS Technology:
• Low-power, high-speed EPROM technology
• Fully static design
• Wide operating voltage range (2.5V to 5.5V)
• Industrial and Extended temperature ranges
• Low-power consumption
• Addressable USART module:
- Supports interrupt on Address bit
• Parallel Slave Port (PSP) module
7/99 Microchip Technology Inc.
Preliminary
DS39026B-page 1