Apr 18, 2017
06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 18, 2017
06:48 AM
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?
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 Replies