PIC18CXX8
High-Performance Microcontrollers with CAN Module
High Performance RISC CPU: Advanced Analog Features:
C-compiler optimized architecture instruction set 10-bit Analog-to-Digital Converter module (A/D)
with:
Linear program memory addressing to 32 Kbytes
- Fast sampling rate
Linear data memory addressing to 4 Kbytes
- Conversion available during SLEEP
Program Memory
- DNL = 1 LSb, INL = 1 LSb
- Up to 16 channels available
On-Chip Off-Chip On-Chip
Device RAM
Analog Comparator Module:
# Single Maximum
EPROM (bytes)
- 2 Comparators
Word Addressing
(bytes)
- Programmable input and output multiplexing
Instructions (bytes)
Comparator Voltage Reference Module
PIC18C658 32 K 16384 N/A 1536
Programmable Low Voltage Detection (LVD)
PIC18C858 32 K 16384 N/A 1536
module
Up to 10 MIPS operation:
- Supports interrupt on low voltage detection
- DC - 40 MHz clock input
Programmable Brown-out Reset (BOR)
- 4 MHz - 10 MHz osc./clock input with PLL active
CAN BUS Module Features:
16-bit wide instructions, 8-bit wide data path
Message bit rates up to 1 Mbps
Priority levels for interrupts
Conforms to CAN 2.0B ACTIVE Spec with:
8 x 8 Single Cycle Hardware Multiplier
- 29-bit Identifier Fields
Peripheral Features:
- 8 byte message length
High current sink/source 25 mA/25 mA 3 Transmit Message Buffers with prioritization
Up to 76 I/O with individual direction control 2 Receive Message Buffers
Four external interrupt pins 6 full 29-bit Acceptance Filters
Timer0 module: 8-bit/16-bit timer/counter with Prioritization of Acceptance Filters
8-bit programmable prescaler
Multiple Receive Buffers for High Priority
Timer1 module: 16-bit timer/counter Messages to prevent loss due to overflow
Timer2 module: 8-bit timer/counter with 8-bit Advanced Error Management Features
period register (time base for PWM)
Special Microcontroller Features:
Timer3 module: 16-bit timer/counter
Power-on Reset (POR), Power-up Timer (PWRT),
Secondary oscillator clock option - Timer1/Timer3
and Oscillator Start-up Timer (OST)
Two Capture/Compare/PWM (CCP) modules
Watchdog Timer (WDT) with its own on-chip RC
CCP pins can be configured as:
oscillator
- Capture input: 16-bit, max resolution 6.25 ns
Programmable code protection
- Compare is 16-bit, max resolution 100 ns (TCY)
Power saving SLEEP mode
- PWM output: PWM resolution is 1- to 10-bit.
Selectable oscillator options, including:
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) with two
modes of operation: In-Circuit Serial Programming (ICSP) via two pins
- 3-wire SPI (Supports all 4 SPI modes)
CMOS Technology:
2
-I C Master and Slave mode
Low power, high speed EPROM technology
Addressable USART module: Supports Interrupt
Fully static design
on Address bit
Wide operating voltage range (2.5V to 5.5V)
Industrial and Extended temperature ranges
Low power consumption
2000 Microchip Technology Inc. Advanced Information DS30475A-page 1PIC18CXX8
Pin Diagrams
64-Pin TQFP
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
1 48 RB0/INT0
RE1/WR
2 47
RE0/RD RB1/INT1
3
RG0/CANTX1 46 RB2/INT2
4
RG1/CANTX2 45
RB3/INT3
5 44
RG2/CANRX RB4
6
RG3 43 RB5
7
42
MCLR/VPP RB6
RG4 8 41
PIC18C658 VSS
9 40
VSS OSC2/CLKO/RA6
10
VDD 39 OSC1/CLKI
11
38
RF7 VDD
12 37
RF6/AN11 RB7
13 36
RF5/AN10/CVREF RC5/SDO
14
RF4/AN9 35 RC4/SDI/SDA
15
34
RF3/AN8 RC3/SCK/SCL
16 33
RF2/AN7/C1OUT RC2/CCP1
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
DS30475A-page 2 Advanced Information 2000 Microchip Technology Inc.
RF1/AN6/C2OUT RE2/CS
RE3
RF0/AN5
RE4
AVDD
RE5
AVSS
RE6
RA3/AN3/VREF+
RE7/CCP2
RA2/AN2/VREF-
RD0/PSP0
RA1/AN1
VDD
RA0/AN0
VSS
VSS
RD1/PSP1
VDD
RA5/SS/AN4/LVDIN RD2/PSP2
RD3/PSP3
RA4/T0CKI
RD4/PSP4
RC1/T1OSI
RD5/PSP5
RC0/T1OSO/T13CKI
RD6/PSP6
RC6/TX/CK
RC7/RX/DT RD7/PSP7