In this code example, ECAN module in PIC18F46K80 is been configured in mode 1. Device communicates with (Microchip) CAN BUS Analyzer at 1Mbps.The ECAN module is been set in loopback mode and listen only mode.
Connections:
ECAN/LIN Daughterboard CAN BUS Analyzer(Microchip) PC
CANH <-------------------------> CANH
P1 DB9 DB9 USB <-------------------------> USB
CANL <-------------------------> CANL
Download code:ECAN Listen Only Loopback
Source Code:http://www.microchip.com