CAN-BUS communication

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

CAN-BUS communication

1,960 次查看
935512732
Contributor I
  • The file include the simplified SCH of CAN-BUS module and the official routine of CAN-BUS module.And my problem is that Tx can not transmit any @signal,also the Rx can not receive any signal.Can you help me?Thank you!
标记 (1)
0 项奖励
回复
1 回复

1,831 次查看
PetrS
NXP TechSupport
NXP TechSupport

The code looks normal. What looks wrong is the connection you have.  There are swapped RX and TX pins between MCU and PHY. But maybe it is just mistake on the SCH.

If the connection is correct, means PB0/PC10 to TXD and PB1/PC3 to RXD then you can try this:

- set weak pull ups on RX pins

  SIU.PCR[35].R = 0x0103;

  SIU.PCR[17].R = 0x0103;

- look at ECR and ESR registers to know if there is any error

BR.

Petr

0 项奖励
回复