S12X CAN bus timing

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

S12X CAN bus timing

Jump to solution
1,220 Views
Pascalfm
Contributor II

Hi,

 

I'm currently setting up the CANbus on a S12XEP100. I've use the code coming with the dev board to start with and see how everything work. i'm using a kvaser CanKing as logger. I achieve to get clear data at 125 kb/s and 250 kb/s but when i tried to increase the speed I only get error frame...

 

For 125 kb/s I used those value :

BTR0=0x07

BTR1=0x3a

 

For 250kb/s I used those value :

BTR0=0x03

BTR1=0x3a

 

i tried 500 kb/s with those value

 

BTR0=0x01

BTR1=0x3a

 

 

i also tried the using the setting from the device inituialization tools but get the same problem.

Labels (1)
0 Kudos
Reply
1 Solution
675 Views
kef
Specialist I

Maybe your bus driver is too slow for 500kbps, or maybe bus is not properly terminated?

View solution in original post

0 Kudos
Reply
2 Replies
676 Views
kef
Specialist I

Maybe your bus driver is too slow for 500kbps, or maybe bus is not properly terminated?

0 Kudos
Reply
675 Views
Pascalfm
Contributor II

you are right, it's the transceiver speed I totally forgot about that one

 

I change the chip and everything is right now

 

thanks

0 Kudos
Reply