This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28035-EP: Clarification needed on CAN module clock

Part Number: TMS320F28035-EP


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