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.

Controller not responding to CAN

Status
Not open for further replies.

Arrested_Mechanics

Newbie level 2
Joined
Dec 22, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Hello!

I am writing code for a PIC18f2580 that interfaces with an already present CAN bus. To begin, I desire the controller to light an LED when a specific address is read. When I can prove to myself that this works, the data will be sent over USART.

I have been unsuccessful with this, and have boiled the code down to lighting an LED when the receive buffer is full. However, I cannot get this to work either.

I have been working on this for months with little progress, so any help will be greatly appreciated. Attached is my source code (CANplusLED.txt) as well as the Can.txt file that Application Maestro generated.

Best,
JB

View attachment CANplusLED.txtView attachment Can.txt
 

I'm not sure what you are asking, but my PIC does not have an address. It is simply listening to the line only.

I'm starting to wonder if it would be easier to write the code from scratch... The ECAN module doesn't look that hard to configure, or at least looks easier than configuring what Application Maestro gave me.

On a side note, I do note have a CANalyzer. I have been using an oscilloscope to count the bits in transmissions and decode them by hand. :grin:

---------- Post added at 01:38 ---------- Previous post was at 01:34 ----------

Horace, I have not tried that... I'll get back to you on that.
 

as you have an oscilloscope it would be a good idea to check the Canbus baud rate both from your device and the PIC.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top