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.

CAN protocol on PIC18F458 help!

Status
Not open for further replies.

chip_123

Newbie level 2
Joined
Apr 4, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,299
b

Hi

I am trying to work on Can bus project with PIC 18F458 and MCP2551.
I have done loopback mode successfully on pic demo board .

I have mounted CAN bus ckt with MCP2551 on bread board.

Now my CAN bus transmission is not working.
it got stuck in while(TXB0REQ);

i think my CAN bus is not working or not properly mounted????


Is any one has breadboard implementation of CAN BUS???
Any pic?:roll:

help me.
 

One popular mistake when getting started with CAN is to try to run it with only one node on the bus. You need at least two nodes.

I'm no fan of Microchip but I think you will find answers to most of your questions in their documentation.
 

here is the thing.

I hav two PIC18F458 IC with two transreceivers MCP2551.

My aim is to transfer data from one pic to another using CAN.

I hav config one pic for transmission and another for reception. between two there is can bus.

my prog works fine in loopback mode.

but when tried in normal mode transmission it gets stuck for transmission request. i.e. while(TXB0REQ);
i.e . Bus is not available for transmission.

I checked all voltages and found to be correct.
CANH=CANL=2.5v
resistance betn CANH and CANL is 60 ohm.

i don't understand where the prob is?
 

OK, at least you haven't made the mistake to have only one node.

I'm sorry, but I don't think I can help any more since I have no experience with CAN + Microchip.
My only advice is to read the documentation from Microchip. And check for silly errors :eek:)
 
have you done this??then help me i want to do the same project
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top