[SOLVED] Need help for CAN communication using LPC2364

Status
Not open for further replies.

shanmukh_mb

Newbie level 1
Joined
May 7, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
30
Can anyone explain how to communicate between two lpc2364 using CAN protocol. I read the user manual but confused. plz help..
 

as Arm processor you are talking about having built in CAN controller so u just need to interface CAN transceiver.
Means first can controller to can transceiver then to bus.
there are so many can transceiver and one of them is MCP2551 which is mostly used.
 
hi.interfacing CAN requires both Hardware and Firmware design. for hardware , MCP2551 is perfect.but for firmware you can use some sample codes instead of reading the datasheet(re inventing the wheel).
nxp has some sample codes : "Sample Code Bundle for LPC23xx". google it.

tnx
 
Hi,
Thank you for the suggestion.

Is it mandatory to use the transceiver ?
Can't we communicate without using the transceiver, just by connecting the two CAN Tx & Rx pins ?
 

hi
it is necessary to use transceiver because it changes the signal levels.
in any communication you have different layers.
in CAN there are 4 layersaccording to wikipedia)
1:Application layer
2:Object layer
3:Transfer layer
4hysical layer

the transceiver IC, only receives data from Transfer layer and converts the data to physical signal
 
Hi,
Thanks for the reply.
Will check using the transceiver IC.
 

Actually it is possible to implement a CAN bus without transceivers, however the length of the bus is severely limited, significantly less than one meter, and protective measures must be take.

The technique is primarily used to quickly test a configuration or when both CAN controllers are in close proximity, such as located on the same PCB.

Beware, it is NOT as simple as crossing TX and RX lines and if implemented incorrectly you could permanently damage your microcontrollers.

The following appnote outlines the method:

AP2921 On-Board Communication via CAN without Transceiver


Also, if you do utilize transceivers, be aware both ends of the CAN bus should be terminated with a 120Ω resistor.

The following docs might be of interest, they discuss both the physical layer and protocol:

AN228 A CAN Physical Layer Discussion

AN713 Controller Area Network (CAN) Basics

Introduction to the Controller Area Network (CAN)


BigDog
 
Hi,

Implemented the logic without using transceiver.

Thank you everybody for replying.
 

is CAN controller without transceiver will work in noisy environment??
Will it work for permanent solution for on Board CAN??
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…