Skip to content

Commit 7fe8285

Browse files
authored
[mcp2515] add section about limitations (#5319)
1 parent c4512fb commit 7fe8285

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

content/components/canbus/esp32_can.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ params:
77
image: canbus.svg
88
---
99

10+
{{< anchor "esp32-can" >}}
11+
1012
The ESP32 has an integrated CAN controller and therefore doesn't necessarily need an external controller.
1113
You only need to specify the RX and TX pins. Any GPIO will work.
1214

content/components/canbus/mcp2515.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ canbus:
3333
brightness: !lambda "return (x.size() > 0) ? (float) x[0]/255 : 0;"
3434
```
3535
36+
{{< note >}}
37+
The MCP2515 only provides two receive buffers which are read once per loop cycle.
38+
This means, if more than two CAN frames arrive within a loop cycle (typically 16ms, possibly longer), frames are dropped.
39+
40+
This limitation makes the MCP2515 unsuitable for moderate- to high-speed CAN buses, especially automotive ones.
41+
Use the [esp32_can](#esp32-can) component where possible.
42+
{{< /note >}}
43+
3644
## Configuration variables
3745
3846
- **cs_pin** (**Required**, [Pin Schema](#config-pin_schema)): Is used to signal to a SPI device when it should

0 commit comments

Comments
 (0)