This article is part of CAN Bus Embedded Development, my growing online book about practical CAN Bus hardware, software, and embedded system development.
View the complete Table of Contents →
An SPI port gives you a straightforward way to add CAN capability to a microcontroller. You can use it to add CAN to a processor that lacks an internal CAN controller, add another independent CAN channel, or add CAN FD to a processor whose internal controller supports only Classical CAN.
The original ESP32 is a good example. Its built-in Two-Wire Automotive Interface (TWAI) controller supports Classical CAN. To transmit and receive CAN FD frames with that chip, you need an external CAN FD controller. The distinction matters because ESP32 is also a family name. The ESP32-C5, for example, has built-in CAN FD support. Check the exact chip before deciding what hardware you need.




