The Enhanced Controller Area Network (ECAN) module, offered by many of the PIC18F family of PICmicro microcontrollers, is the latest enhancement to the existing legacy CAN module. Devices such as the
PIC18C658/858 and PIC18F248/258/448/458 use the
legacy CAN module.

ECAN offers many enhancements over the legacy CAN module in terms of more transmit/receive buffers, acceptance filters, and hardware FIFO operation. At the same time, the ECAN module is fully backward compatible with the legacy CAN module.

This application note describes the implementation of ‘C’ routines to access all features of the ECAN module.