Skip to Content
Circuitera

MCP2515 SPI CAN controller

Understand the MCP2515’s SPI interface, oscillator settings and requirement for a separate physical-layer CAN transceiver.

MCP2515 controller and MCP2551 transceiver mounted on a breadboard
Microchip MCP2515 (Controller) and MCP2551 (Transceiver).jpg by SimonWaldherr · CC BY-SA 3.0. Resized and encoded as WebP without cropping.

Controller and transceiver

The MCP2515 handles CAN framing, filters and message buffers and exchanges data with the MCU over SPI. A separate transceiver connects its transmit and receive signals to the differential bus. The photo shows both controller and transceiver.

Source: Microchip

Oscillator configuration

Select timing parameters for the oscillator on the module and the network bitrate. Firmware configured for a different oscillator frequency can appear to work over SPI while sending undecodable frames on the bus.

Source: Microchip

Bus wiring

Use an electrically suitable transceiver and follow the physical-layer guidance for bus wiring and termination. Check the module for an already fitted termination resistor before adding one.

Source: Microchip

Specifications

ParameterValue or conditionSource
CAN supportClassical CAN 2.0B, up to 1 Mb/sMicrochip
Host busSPI, plus interrupt and optional control signalsMicrochip

Compatibility and practice

Verify MCU logic compatibility, oscillator frequency and bus transceiver supply on breakout boards.

Sources and datasheets