Skip to datasheet
Stand-alone CAN controller with SPI

MCP2515 Reference Tables

Search the MCP2515 pin reference and manufacturer-referenced specification tables.

Package view
Selected packagePDIP-18MCP2515-I/P
Physical connections18 pinsPackage-specific numbering
Reference collection8 tables53 parameters & pin functions

Pin reference

Signal names, electrical functions and connection guidance

PDIP-18
Physical pin numbers18 pins

Scroll within the table to see all columns and rows.

MCP2515 pin functions and connections
PinSignalTypeFunction & connection
TXCANLogic transmit outputSends the CAN protocol engine’s dominant/recessive logic to a transceiver.
Connection guidance

Connect to MCP2562 TXD pin 1.

This is not CANH or CANL; never connect directly to the cable.

RXCANLogic receive inputReceives the bus state from the external transceiver.
Connection guidance

Connect to MCP2562 RXD pin 4.

CLKOUT/SOFClock or start-of-frame outputOutputs a divided oscillator clock or a selected start-of-frame indication.
Connection guidance

Leave open when unused.

After reset the enabled clock defaults to FOSC / 8.

TX0RTS̅Request-to-send inputActive-LOW request for transmit buffer 0, or a general-purpose input according to TXRTSCTRL.
Connection guidance

Leave unconnected when unused; its internal pull-up holds it HIGH.

Approximately 100 kΩ internal pull-up to VDD.

TX1RTS̅Request-to-send inputActive-LOW request for transmit buffer 1, or a general-purpose input according to TXRTSCTRL.
Connection guidance

Leave unconnected when unused; its internal pull-up holds it HIGH.

Approximately 100 kΩ internal pull-up to VDD.

TX2RTS̅Request-to-send inputActive-LOW request for transmit buffer 2, or a general-purpose input according to TXRTSCTRL.
Connection guidance

Leave unconnected when unused; its internal pull-up holds it HIGH.

Approximately 100 kΩ internal pull-up to VDD.

OSC2Oscillator outputFeedback terminal for crystal/resonator operation.
Connection guidance

Leave open in the external-clock example.

OSC1Oscillator / clock inputAccepts the clock used for CAN bit timing and internal operation.
Connection guidance

Apply a 20 MHz, 0–5 V oscillator output with 45–55% duty cycle.

VSSGround returnGround for logic, clock and I/O.
Connection guidance

Join the controller, oscillator and transceiver reference.

RX1BF̅Receive-buffer 1 flagConfigurable buffer-full indication or general-purpose output.
Connection guidance

Leave open when using INT alone.

RX0BF̅Receive-buffer 0 flagConfigurable buffer-full indication or general-purpose output.
Connection guidance

Leave open when using INT alone.

INT̅Active-LOW interruptSignals enabled interrupt conditions; software must inspect and service their flags.
Connection guidance

Connect to a compatible controller interrupt input.

SCKSPI clock inputClocks commands and register data; SPI modes 0 and 3 are supported.
Connection guidance

Connect controller SCK; use 1 MHz for the example.

SISPI data inputReceives instruction, address and data from the controller.
Connection guidance

Connect MOSI.

SOSPI data outputReturns register and buffer data; high impedance when CS is HIGH.
Connection guidance

Connect MISO.

CS̅Active-LOW chip selectLOW starts an SPI instruction; return HIGH before the next instruction.
Connection guidance

Connect a dedicated controller select and 10 kΩ pull-up to +5 V.

RESET̅Active-LOW resetInitializes registers and enters Configuration mode.
Connection guidance

Use a 10 kΩ pull-up and controller reset output; hold LOW at least 2 µs.

Allow oscillator startup before SPI access.

VDDPositive supplyPowers the CAN controller and its I/O.
Connection guidance

Use +5 V with 100 nF directly to VSS9.

Operating range 2.7–5.5 V; logic thresholds scale with supply.

PDIP-18 · Top view · Select a pin number to open its interactive pinout.

Protocol and storage

Classical CAN 2.0B

Manufacturer-referenced values7 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Bus rateUp to 1 Mbit/sSubject to oscillator and network timing
Identifiers11-bit standard / 29-bit extendedData and remote frames
Data field0–8 bytesNo CAN FD or bit-rate switching
Transmit storageThree prioritized buffersAbort and one-shot options
Receive storageTwo buffersPriority and optional rollover
AcceptanceSix filters and two masksConfigure before Normal mode
External line interfaceRequired CAN transceiverTXCAN / RXCAN are logic signals

A controller and a transceiver solve different parts of the CAN interface.

Useful SPI instructions

Most significant bit first · separate CS cycle per command

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
RESET0xC0Initialize and enter Configuration mode
READ0x03, address, dummy clocksConsecutive register bytes may follow
WRITE0x02, address, data…Sequential register write
BIT MODIFY0x05, address, mask, dataOnly supported registers; mask 1 permits change
READ STATUS0xA0Frequently used RX/TX status
RX STATUS0xB0Received-frame type and matching filter
RTS buffer 00x81Request already-loaded TXB0 transmission
SPI timing10 MHz maximum; 50 ns CS setup/holdModes 0 and 3

The controller expects an instruction immediately after CS falls. Raise CS before issuing another instruction.

Operating modes

Request via CANCTRL; confirm via CANSTAT

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
ConfigurationREQOP 100Required for bit timing, filters, masks and TXRTSCTRL
NormalREQOP 000Transmit, receive and acknowledge CAN frames
SleepREQOP 001Oscillator stopped; wake-up conditions apply
LoopbackREQOP 010Internal communications test without bus transmission
Listen-onlyREQOP 011Observe bus without transmitting or acknowledging
Mode confirmationRead OPMOD bitsA request may wait for pending transmissions

Listen-only nodes do not supply the acknowledgment required for a transmitting node’s normal successful frame.

125 kbit/s configuration example

20 MHz external clock · single sample

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Oscillator period50 ns1 / 20 MHz
BRP register field4TQ = 2 × (BRP + 1) / FOSC
Time quantum500 nsPrescaler division by 10
SegmentsSync 1; Prop 2; PS1 7; PS2 616 TQ per bit
Sample point(1 + 2 + 7) / 16 = 62.5%At the end of Phase Segment 1
Synchronization jump width1 TQMust not exceed PS2
CNF1 / CNF2 / CNF30x04 / 0xB1 / 0x05BTLMODE=1, SAM=0; wake filter/SOF disabled
Result16 × 500 ns = 8 µs per bit125000 bits/s

This is the manufacturer’s illustrative timing split, not a universal network prescription. Review propagation, oscillator tolerance and the other nodes.

Supply, clock and logic

MCP2515-I/P and MCP2515-I/SO

Manufacturer-referenced values10 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Operating supply / temperature2.7–5.5 V / −40 to +85°CI grade
SPI input HIGH≥ 0.7 × VDDSCK, SI and CS
SPI input LOW≤ 0.4 × VDDSCK, SI and CS
RXCAN HIGH / LOW≥ 2.0 V / ≤ 0.15 × VDDDifferent input thresholds from SPI
Reset HIGH / LOW≥ 0.85 × VDD / ≤ 0.15 × VDDSchmitt reset input
External clock range1–25 MHz over 2.7–5.5 VUp to 40 MHz at 4.5–5.5 V
Clock duty cycle45–55%External clock input
Active current10 mA maximum5.5 V, oscillator25 MHz, SPI1 MHz, SO open
Sleep current, I grade5 µA maximumDefined inputs and CS / TXnRTS HIGH
Hardware reset LOW2 µs minimumThen allow 128 oscillator cycles for startup

At 5 V, a 3.3 V HIGH does not meet the SPI 0.7 VDD threshold. Use compatible levels or translation.

Controller-to-CAN connection

5 V logic · 20 MHz · 125 kbit/s

Manufacturer-referenced values8 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
Host SPISCK13, MOSI→SI14, SO15→MISO, CS16Start with mode0 at1 MHz
Host controlINT12→interrupt; RESET17→reset output10 kΩ pull-ups on CS and RESET
External oscillator20 MHz output→OSC1 pin8OSC2 pin7 open; oscillator bypass per its data
CAN controller/transceiverTXCAN1→MCP2562 TXD1; RXD4→RXCAN2Logic connections, not bus pins
MCP2562 suppliesVDD3 and VIO5 to5 V; VSS2 GND100 nF local supply bypass; STBY8 LOW
BusMCP2562 CANH7 and CANL6Twisted pair; two120 Ω end terminators
Unused outputsCLKOUT3, RX1BF10, RX0BF11 openUnused TXnRTS inputs have internal pull-ups
FirmwareReset, configure timing and filters, enter Normal modeAnother matching normal node must acknowledge

All ground references are common in this teaching circuit. Protection, isolation and cable length require a system-specific design.

Packages and stress limits

MCP2515-I/P · PDIP-18

Manufacturer-referenced values6 parameters

Scroll within the table to see all columns and rows.

ParameterValueConditions / notes
PDIP-18 P2.54 mm pitch; 7.62 mm rowsNarrow through-hole package
SOIC-18 SO1.27 mm pitch; 7.50 mm body widthWide SOIC, not a narrow 3.9 mm body
Other packages20-lead TSSOP / QFNDifferent contact maps; not interchangeable with18-pin views
Supply absolute maximum7.0 VNormal operation ends at5.5 V
I/O absolute range−0.6 to VDD + 1.0 VStress limits, not recommended input levels
Storage temperature−65 to +150°CUnpowered

Review the exact orderable and fabrication allowances before using the downloadable original footprints.

Read each value with its conditions

Typical values describe the stated test conditions. Absolute maximum ratings are stress limits, not operating targets.

Microchip Technology · DS20001801K · 2021
Official PDF datasheet

Component view