How to communicate correctly between lpc540xxx Can1 and can0

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

How to communicate correctly between lpc540xxx Can1 and can0

730 Views
afzhang
Contributor I

The CANL of CAN0 in the attachment below is connected with the CANL of CAN1, and the CANH of CAN1 is connected with the CANH of CAN1. CAN1 sends data to CAN0.But CAN0 cannot accept the data sent by CAN1 correctly.Do you have a reference code for CAN1 and CAN0 communication!Or the precautions for CAN1 and CAN0 configuration can be provided! Thanks!

Labels (4)
0 Kudos
2 Replies

619 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, 爱飞,

I have checked your CAN transceiver, I think there is not problem. But you have to make sure the control signals are correct.

For TJA1042 transceiver, the VIO pin should be connected to 3.3V, the STB pin should be connected to GND so that the chip work normally, the MOS control pin must turn on the 5V power supply.

For the code of CAN bus of LPC540xx family,I do not know if you use SDK, anyway, you have to power up the CAN module, enable the CAN gated clock, set the CAN TX/RX pin as CAN pins, initialize the CAN module correctly.

Hope it can help you

BR

XiangJun Rong

0 Kudos

619 Views
afzhang
Contributor I

Hi XiangJun Rong:

I have solved the problem. Thanks!

BR

Aifei Zhang

发件人: xiangjun.rong

发送时间: 2019年12月19日 14:47

收件人: Aifei Zhang

主题: Re: - Re: How to communicate correctly between lpc540xxx Can1 and can0

NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>

Re: How to communicate correctly between lpc540xxx Can1 and can0

reply from xiangjun.rong <https://community.nxp.com/people/xiangjun.rong?et=watches.email.thread> in LPC Microcontrollers - View the full discussion <https://community.nxp.com/message/1247630?commentID=1247630&et=watches.email.thread#comment-1247630>

0 Kudos