I am trying to implement Can bus protocol using PIC16F877a.here am attaching the schematic and board file.can anyone check my circuit and tell me whether its right or not.I'm using 20Mhz crystal for both PIC and MCP2515.Also can anyone send me a code for implementing single PIC TO PIC CAN bus protocol(Single master and single slave) and also single master PIC and two slave PIC using CAN BUS protocol?
guys,i finally got it working.there were some problems.i connected the reset pin of mcp2515 to5v through 10k.i changed it and connected it to pinc1 of pic.then the main problem was configuration of cnf1,cnf2 and cnf3 registers.i had to configure it for 20mhz crystal.i will attach my final code here.