The Enhanced Controller Area Network (ECAN) mod-
ule, offered by many of the PIC18F family of PICmicro
®
microcontrollers, is the latest enhancement to the exist-
ing 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.
ECAN provides three modes of operation – Mode 0,
Mode 1 and Mode 2. Mode 0 is fully backward compat-
ible with the legacy CAN module. Applications devel-
oped for the legacy CAN module would continue to
work without any change using ECAN. Mode 1 is the
Enhanced Legacy mode with increased buffers and fil-
ters. Mode 2 has the same resources as Mode 1, but
with a hardware managed receive FIFO. Given its fea-
tures and flexibility, ECAN would prove useful to many
CAN-based applications.
This application note implements ‘C’ routines to access
all features of the ECAN module. This document does
not describe ECAN and the related PIC18F family in
detail. Readers are encouraged to read the
PIC18F6585/6680/8585/8680 device data sheet
(DS30491) for more information. AN878
PIC18C ECAN ‘C’ Routines
Authors: Caio Gübel and Nilesh Rajbharti OVERVIEW OF ECAN MODULE
Microchip Technology, Inc. Following are the main features of the ECAN module:
Fully backward compatible with the legacy CAN
INTRODUCTION module
Three functional modes:
The Enhanced Controller Area Network (ECAN) mod- - Mode 0 ……