Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use CAN in PIC microcontrollers

Status
Not open for further replies.

swapgo

Full Member level 2
Full Member level 2
Joined
Jun 24, 2004
Messages
128
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Location
India
Activity points
1,244
Hi
Has anybody worked with CAN?
I want to use CAN in PIC microcontrollers.
I want some suggestions

Regards
Gopi
 

pic18f458 source code

Search with google !
 

pic18f458 how to connect

There are many aplication notes in microchip site!!
 

simple can using pic, and pca82c250

The dsPic series have CAN. The pic30 compiler library has CAN routines.
dsPic are 16bit proccessors that can clock up to 120MHz. Well worth a look.
 

cantx canrx

hi

I mean to ask which transevers for CAN?
I am using PIC18f458.
I want a simple CAN transever .
Any suggestions please

regards
Gopi
 

Re: PIC with CAN

PIC18F458 already has a built-in CAN transceiver. If you are asking for dedicated CAN transceivers, just get anyone that is more readily available, since CAN is a universal specification. Microchip has their own range of dedicated CAN transceivers too. IMO, it's way cheaper and more efficient to use integrated transceivers.
 

Re: PIC with CAN

Hi Checkmate

You mean to say that I can connect PIC18F458 to another PIC18F458 directly witout any CAN transevever.

So can I connect CANTX CANRX of one Controller to CANTX CANRX of other Controller?
Please Clarify
Regards
Gopi
 

PIC with CAN

No, you need a can transeiver, Microchip do one that is pin compatable with the TJA1050.
 

Re: PIC with CAN

PIC18F548 to CAN bus
 

Re: PIC with CAN

Hi all

can I use CAN for longer length wire ie for 1000 meters.

because its mentioned not more than 300meters

Regasrds
Gopi

Added after 2 minutes:

Hi

I have one more question
IS CAN is superior or RS-485 is superior

Regards
Gopi
 

Re: PIC with CAN

Hello!

You should read notes about CAN. Generaly you can go over 1km length but then speed is droping with distance.

CAN is defenitly supirior over RS485 with some built in lower layers of protocol.

Regards!
 

Re: PIC with CAN

RS-485 is just a physical layer specification - it does not specify a
protocol. You can invent a protocol of your own or use some that
is readily available. Even maybe the CAN protocol, if you wish.

Here are some cable length/speed numbers for CAN:

100 meters (330 ft) at 500 kbit/s
200 meters (650 ft) at 250 kbit/s
500 meters (1600 ft) at 125 kbit/s
6 kilometers (20000 ft) at 10 kbit/s

Read more here: https://www.kvaser.com/index.htm

/Rambo
 

Re: PIC with CAN

Hi all

Great help frm you all.
Now I have framed the design.
I am using PIC18F458 with PCA82c250 CAN transever which is availabe here.
I will upload my schematics and my source code after completion

Regards

Gopi
 

PIC with CAN

hi guys,
some body have some firmware for CAN protocol in pic18f258, i have some problems for develop a project, ahhh i need the firmware in assembler
thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top