Introduction - If you have any usage issues, please Google them yourself
pic18 series of microcontrollers, CAN configuration template.// Set the configuration of the CAN /* baud rate settings**************************************///Set CAN baud rate of 1Mbps, when the Fosc = 32MHz, Tbit = 0.125us, assuming BRP = 01H// if Tq = [2* (1+ BRP)]/Fosc = 2* (1+1)/(32MHz) = 0.125us// normal bit rate = 8Tq, SJW = 00, Sync_Seg = 1Tq, Prog_Seg = 1Tq, Phase_Seg1 = 3Tq, Phase_Seg2 = 3Tq