In this code example, ECAN module in PIC18F46K80 is been configured in mode 0. Device communicates with (Microchip) CAN BUS Analyzer at 100Kbps or 125Kbps or 500Kbps or 1Mbps.
Connections:
ECAN/LIN Daughterboard CAN BUS Analyzer(Microchip) PC
CANH <-------------------------> CANH
P1 DB9 DB9 USB <-------------------------> USB
CANL <-------------------------> CANL
Download code:ECAN Mode 0 with Baud
Source Code:http://www.microchip.com