Doubt with LPC1752 CAN peripheral interface

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

Doubt with LPC1752 CAN peripheral interface

813 Views
gaoqiang
Contributor III

I recently got a board of LPC1752FBD80. I checked the circuit diagram. The CAN transceiver used is TJA1040. The TXD and RXD of the transceiver are connected to The pin P2[0] and P2[1]. Checked the datasheet of LPC1752, the two pin multiplexing functions are TXD1 and RXD1 of the serial USART1, not the designated pins of the CAN peripheral;
I want to know how to config to achieve the CAN communication function of P2[0] and P2[1], thank you very much!

can.jpg

Labels (1)
Tags (3)
0 Kudos
4 Replies

696 Views
soledad
NXP Employee
NXP Employee

Hi, 

In my opinion, there is something wrong with the schematic file. The CAN-controller of the microcontroller should be connected to the transceiver via TXD and RXD. Pin STB is connected to an I/O pin of the host microcontroller for operation mode control. For this MCU the pins should be P0.0 and P0.1 according to the reference manual. 

pastedImage_2.png

Please check the following example circuit diagram. 

pastedImage_1.png

I hope this helps, have a nice day!

Regards

Soledad

0 Kudos

696 Views
gaoqiang
Contributor III

Today, when I checked the reference manual of the LPC1752, I found that the UART1 has this feature: RS-485 support. Is it use the 485 function of the UART1 through the TJA1040?

USART1.JPG

have a nice day!

Regards

gao

0 Kudos

696 Views
soledad
NXP Employee
NXP Employee

Hi, 

Unfortunately, I cannot determinate why these pins are connected to P2[0] and P2[1]. 

Please check the AN10211 application note, this appnote presents a typical application example for the TJA1040 and application hints dealing with the split termination concept and required external circuitry.

 https://www.nxp.com/docs/en/application-note/AN10211.pdf 

You can use it as a reference. 

Have a nice day!

Regards

Sol 

0 Kudos

696 Views
gaoqiang
Contributor III

Thank you very much for your reply!
This board is at my fingertips. I have confirmed it several times, but he did connect P2.0 and P2.1 to TJA1040's TXD and RXD. I am also very confused, his P0.0 and P0.1 connected to another CAN communication chip. Is the engineer who designed this circuit use ordinary IO port to simulate CAN communication? In that case, it is too difficult.

LPC1752.jpg

have a nice day!

Regards

gao

0 Kudos