Site icon 14core.com

Wiring the MCP2515 Stand-alone CAN Controller with SPI

This is an illustration how CAN (Controller Area Network) protocol interface works with Microcontroller. CAN protocol is methodology of communication between electronics devices, commonly found in Automotive, these device is the responsible for the car engine management system, Gear Control, Active Suspension, ABS, Lightning and Control, Air Condition, Air Bags, Security System, Central Locking, ETC. As you can see below diagram its uses 2 microcontroller and 2 CAN module here you will see how microcontroller interface with CAN (MCP2515) and drive as 2 wire RX/TX base data communication.

The MCP2515 is a stand-alone CAN Controller Area Network that implements the CAN specification v2.0B. These device is capable of transmitting and receiving both standard and extended data/remote frames and it has standard SPI (Serial Peripheral Interface). MCP2515 has 2 acceptance mask and 6 acceptance filters that are used to filter out unwanted messages, reducing the host MCU overhead.

Required Component

Wiring Diagram




Importing the required code libraries

Test Code / Test Sketch Code




[crayon-6741a2d234a61628870563/]
Downloads

Wiring the MCP2515 Stand-alone CAN Controller with SPI
Exit mobile version