KEA128 CAN bitrate is not fix to 250kbps

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KEA128 CAN bitrate is not fix to 250kbps

跳至解决方案
3,614 次查看
rohit_rawat
Contributor I

Dear Sir,

 

I am using kea128z using codewarrior Processor expert. When l configure the CAN bus bit rate to 250kbps, it automatically configured to 241.633kbps. But i want to run the CAN bus with 250kbps.

It might be happening due to Clock section, Please review the clock section also.

Please find the attachment of Processor expert generated code. This code is in running state with Tx_interrupt.

 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
3,575 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi rohit_rawat,

Sorry for my last reply.
I forgot to configure 250 kbit/s with 8MHz crystal oscillator as an example.
You can use CAN timing calculator to achieve it.

CAN timing calculator.pngCAN timing calculator 250k.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,609 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi rohit_rawat,

Please select MSCANExtCLK(8MHz crystal) as clock source of MSCAN instead of MSCANBusClk(37.5kHz IRC).

Clock Source selection.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
3,603 次查看
rohit_rawat
Contributor I

Dear sir,

 

After selecting MSCANExtCLK(8MHz crystal) as clock source of MSCAN, i am not able to set 250kbps bitrate for CAN. It shows "Timing setting failed - it is impossible to set the following items: selected value" error. 

Please find the attachment.

 

 
 
 
 
 
 

 

 

 

0 项奖励
回复
3,576 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi rohit_rawat,

Sorry for my last reply.
I forgot to configure 250 kbit/s with 8MHz crystal oscillator as an example.
You can use CAN timing calculator to achieve it.

CAN timing calculator.pngCAN timing calculator 250k.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复