Tool/software:
Hello,
Please help me to understand CAN module clock. Is it always (SYSCLKOUT/2) or is it equal to LSPCLK?
I am using Example_2803xECanBack2Back example, In comment its mentioned 30MHz CAN module clock. How its derived?
//
// The following block is only for 60 MHz SYSCLKOUT.
// (30 MHz CAN module clock Bit rate = 1 Mbps)
// See Note at end of file.
//
ECanaShadow.CANBTC.bit.BRPREG = 2;
ECanaShadow.CANBTC.bit.TSEG2REG = 1;
ECanaShadow.CANBTC.bit.TSEG1REG = 6;
Peripheral clock is configured as:
SysCtrlRegs.LOSPCP.all = 0x0002;
SysCtrlRegs.XCLK.bit.XCLKOUTDIV=2;
so, LSPCLK is (SYSCLKOUT/4), i.e 15MHz
Thank You
