Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User8320
Level 1
Level 1
Hi.

I'm looking for low speed can setting.

But it does not work well.

The settings are as follows.

low CAN / 100kbps ->

const CAN001_HandleType CAN001_Handle2 =
{
.BaudRate = {0xe, /* Baud rate Prescaler value */
0x1, /* Synchronization Jump Width */
0x3, /* Time segment 1 */
0x2, /* Time segment 2 */
1, /* Divide prescaler by 8 */
},
}

The calculation results are as follows.

fcan = 120MHz
Baud Rate = 100kbps
BRP = 0xe
Tq = 0.000001
Tsync = 1
Tseg1 = 3
Tseg2 = 2
Divide prescaler by8 = 1
Sampling point = 60% ??

I do not know why it does not work here.

What should I do?
0 Likes
0 Replies