Basic CAN and Full CAN: How Message Queues and Mailboxes Differ

Key takeaways

  • Full CAN does not implement more of the CAN protocol than Basic CAN.
  • Basic CAN queues all messages in a FIFO, while Full CAN assigns buffers by message type.
  • Most CAN controllers today implement both approaches.
Red and white light trails on a curving highway at night with the words CAN Basic & Full CAN
Light trails on a highway at night. Image: Techqio

Basic CAN and Full CAN trace back to the first two CAN controller chips. Intel delivered the first CAN controller, the 82526, in mid-1987, and Philips followed shortly after with the 82C200. Intel’s design became known as Full CAN and Philips’s as Basic CAN.

The names mislead. Full CAN sounds as if it implements more of the CAN bus protocol than Basic CAN, and it doesn’t. The two differ only in how the controller operates.

Basic CAN puts every message in one queue

Basic CAN uses a message queue. Incoming messages share that first-in, first-out (FIFO) queue whatever their type, and they are read in the order they arrived.

Full CAN gives each message type its own buffer

Full CAN uses message buffers, also called message objects or mailboxes. You choose how many to use and how large they are, and each incoming message goes to the buffer assigned to its type.

Diagram comparing Basic CAN's one shared FIFO queue with Full CAN's dedicated buffer per message
Diagram of a shared FIFO queue and dedicated buffers. Image: Techqio

A message only ever lands in its own buffer, even when other buffers sit empty. If another message of the same type arrives before software handles the first, it can overwrite that data. To keep unread data from being overwritten, move it out of the buffer promptly.

How Basic CAN and Full CAN controllers divide the work

The split comes down to hardware structure, and most CAN controllers today implement both approaches. Microchip’s PIC32CM JH family, for example, can route an accepted frame to an Rx FIFO or a dedicated Rx buffer.

Basic CAN controller

A Basic CAN controller implements only basic protocol functions, such as generating and checking the bit stream. The microcontroller (MCU) and its software must decide whether to accept each message, a step called acceptance filtering, and then process it. That extra message handling raises the system load.

Layer diagram with MCU software handling filtering above a CAN controller handling the bit stream
Layer diagram of MCU software above a CAN controller. Image: Techqio

Full CAN controller

A Full CAN controller holds the identifier, the data direction (receive or transmit) and the message objects that handle received messages. With those, its hardware can manage the entire bus protocol, including acceptance filtering and received-message processing.

Layer diagram with the CAN controller handling filtering, message objects and the bus protocol below MCU software
Layer diagram of MCU software and a CAN controller. Image: Techqio

It can handle more messages at high baud rates while reducing both system and bus load. The first chips made different trade-offs. Intel’s part could receive only a limited number of frames, while Philips’s simpler part used less silicon.

FeatureBasic CANFull CAN
Receive storageOne FIFO queueMessage buffers by type
Acceptance filteringMCU softwareController hardware
System loadHigherLower

What the two names mean on a chip today

The Basic CAN and Full CAN labels describe the first two controller designs, so they say little about a part you pick now. Read the receive path in the datasheet instead, because how much filtering and buffering the hardware takes on decides how much work is left for the MCU.

Sources

Share this article

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *