Skip to content

Arduino library for available MCP2515 standalone CAN controller modules.

Notifications You must be signed in to change notification settings

dlkeng/Arduino_DLK_MCP2515

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino DLK_MCP2515 Library

Arduino library for available MCP2515 standalone CAN controller modules.

MCP2515 Module

MCP2515 Module Schematic

DLK_MCP2515(spi_speed, cs_pin, hw_cs_pin = false, which_spi = SPI0_NUM);

SPIs Ints SW_CS HW_CS
2 4 many 2 (1-each SPI port, Pi Pico only)

AVR Nano

  • 1 SPI port with SW CS only
  • 2 INT interrupt pins

Scenarios:

  • up to 2 SPI devices with interrupts (limited by INT pins)
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

AVR Nano Every

  • 1 SPI port with SW CS only
  • many GPIO interrupt pins

Scenarios:

  • up to 4 SPI devices with interrupts (total limited by DLK_MCP2515 Library)
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

Pi Pico

  • 2 SPI ports optionally supporting HW CS or SW CS
  • many GPIO interrupt pins

Scenarios:

SPI0:

  • up to 4 SPI devices with interrupts (total limited by DLK_MCP2515 Library)
  • 1 SPI device only with HW CS
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

SPI1:

  • up to 4 SPI devices with interrupts (total limited by DLK_MCP2515 Library)
  • 1 SPI device only with HW CS
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

Teensy 3.1

  • 1 SPI port with SW CS only
  • many GPIO interrupt pins

Scenarios:

  • up to 4 SPI devices with interrupts (total limited by DLK_MCP2515 Library)
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

ESP8266

  • 1 SPI port with SW CS only
  • NO GPIO interrupt pins

Scenarios:

  • No SPI devices with interrupts
  • 1 SPI device without interrupts (limited by GPIO pins for SW CS)

ESP32

  • 2 SPI ports with SW CS only
  • NO GPIO interrupt pins

Scenarios:

  • No SPI devices with interrupts
  • many SPI devices without interrupts (limited by GPIO pins for SW CS)

About

Arduino library for available MCP2515 standalone CAN controller modules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published