KEA128 CAN bitrate is not fix to 250kbps

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KEA128 CAN bitrate is not fix to 250kbps

Jump to solution
3,591 Views
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.

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
3,552 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
3 Replies
3,586 Views
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 Kudos
Reply
3,580 Views
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 Kudos
Reply
3,553 Views
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 Kudos
Reply