I need to communicate with a program I created a long time ago and I can not change the can initialization.
Is it possible to find the communication speed from the CAN initialization sequence?
mcu frequency 20mzh
pic18 with internal can
const SJW = 1;
const BRP = 3;
const PHSEG1 = 3;
const PHSEG2 = 3;
const PROPSEG = 1;
const CAN_CONFIG_FLAGS := _CAN_CONFIG_SAMPLE_THRICE and // form value to be used
_CAN_CONFIG_PHSEG2_PRG_ON and // with CANInit
CANInitialize(SJW, BRP, PHSEG1, PHSEG2, PROPSEG, CAN_CONFIG_FLAGS);