How to change baud rate in FlexCAN of S32K144?

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

How to change baud rate in FlexCAN of S32K144?

1,712 Views
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 Kudos
2 Replies

1,408 Views
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,408 Views
pritampatil
Contributor III

It worked well.

Thanks a lot.. :smileyhappy:

Pritam Patil

0 Kudos