I must detect CAN ransceiver A82C251?

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

I must detect CAN ransceiver A82C251?

1,453 次查看
100asong
Contributor I

Hi,Dear

    

      If I don't mount CAN ransceiver A82C251 in my circuit board,my CAN initlization code will stop at

      while(!(CAN0CTL0_SYNCH)); // Wait for CAN synchronization.

 

      How to detect whether my circuit board has CAN ransceiver A82C251?

      Whether I must detect it,and then call CAN init function?

      And how to detect it?

 

      Thanks.

标签 (1)
0 项奖励
回复
2 回复数

774 次查看
kef
Specialist I

Try pulling RXCAN pin high. Internal pull up should suffice. Also you may detect presence of transceiver pulling RXCAN high and low and checking if pin follows pullup direction. But don't get fooled with activity on CAN bus. You should sample RXCAN many times in both pull up states before deciding it is really not driven by transceiver.

 

It is not a good idea to wait forewer for SYNCH. What will happen if CAN bus is shorted and forewer dominant?

 

0 项奖励
回复

774 次查看
100asong
Contributor I

Sorry for replying so later, I will have a try.

0 项奖励
回复