5.6.5 Controller Area Network (CAN)

Some AVR and PIC32CM MCUs offer integrated CAN controllers, enabling connection to CAN networks for automotive and industrial applications. These CAN peripherals support standard CAN 2.0 A/B protocols, provide message filtering, and include error handling and interrupt capabilities. They are designed to offload CAN protocol management from the CPU, improving real-time communication performance. Both variants require an external CAN transceiver for physical layer connectivity.

Table 5-25 shows a comparison of features between AVR and PIC32CM.

Table 5-25. AVR® and PIC32CM CAN Features
FeatureAVR® CANPIC32CM CAN
Protocol SupportCAN 2.0A/B

CAN 2.0A/B

CAN-FD (ISO 11898-1:2015)

Max Data Rate1 Mb/s

1 Mb/s (CAN 2.0)

10 Mb/s (CAN-FD)

Message Objects/BuffersUp to 15 MOb (Message Objects)

Up to 64 RX and 32 TX dedicated buffers

Two RX FIFOs

Data Buffer SizeEight bytes per Message Object (static allocation)Up to 64 bytes per CAN-FD frame
Acceptance Filtering15 identifier tags/masks (11/29 bits)

Up to 128 configurable filter elements

J1939 filter

Time StampingTime Trigger Communication (TTC) Timer

CiA 603 hardware timestamping

External Timestamping Unit (TSU)

Loopback/Test ModeListening modeProgrammable loopback test mode
Error HandlingStandard CAN error handling

CAN error logging

Advanced error signaling

AUTOSAR/J1939 OptimizationN/ASupported
Number of CAN ChannelsOneUp to two
Power-Down/Debug SupportN/A

Power-down

Debug on CAN support

Host Memory AccessInternal static allocationUses system RAM via AHB (flexible allocation)