How to change baud rate in FlexCAN of S32K144?

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

How to change baud rate in FlexCAN of S32K144?

1,863 次查看
pritampatil
Contributor III

I have attached the sample code.

current baud rate is 500kbps. 

i want to change baud rate to 250kbps.

which bit should i configure for that?

0 项奖励
回复
2 回复数

1,559 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello, 

Bit timing is configured in CAN0->CTRL1 (look at the description in your code). 

Did you try to set the bit PRESDIV = 1?

For further information see chapter 53.4.2.3 Control 1 register (CTRL1) in the reference manual.

I hope it helps you.

Best regards,

Diana

1,559 次查看
pritampatil
Contributor III

It worked well.

Thanks a lot.. :smileyhappy:

Pritam Patil

0 项奖励
回复