CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 11 matches
CCS Forum Index
Author Message
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Tue Oct 28, 2008 9:06 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Ok, it works perfectly!!! Very Happy


With the two files on the post above you will get the following output, that is what i understand you wanted.

OUTPUT:

Rede CAN

Rede criada e iniciada.. ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Tue Oct 28, 2008 6:27 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Hi, Ambrogio.

Do you think I could use the same 20 MHz oscillator for both PICs?

A

I'm not sure if that is possible! Confused

http://en.wikipedia.org/wiki/Crystal_oscillator
http://www ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Mon Oct 27, 2008 8:30 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Hi, Ambrogio.


Have you tried to make it work with the PICs internal oscillator?

No, I didn't. I have used an external oscillator 20 MHz.

I'll try to make your SW objective work.

If I was ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Mon Oct 27, 2008 1:13 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Hi, Ambrogio.


I think you should not use the led on RX CAN that way, because MCP 2551 RX pin or RX CAN pin from PIC will absorb the current from the led. I know that is only 1 mA by the resistor ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Sun Oct 26, 2008 11:46 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Ok, I got it work.

I used the CCS EX_CAN.C example and it works fine for me.

I can communicate between two boards (18F4580 or 18F4480 + MCP 2551) over the CAN Bus.

I think your problem is on ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Thu Oct 02, 2008 9:31 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
The bootloader was to program the PIC over the board, so I don't have to take it off and use a PIC flash.

Anyway I already got it to work with Tiny PIC Bootloader.

Make some changes on *asm file ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Wed Oct 01, 2008 2:11 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Hi ambrojohn.


Do you have a bootloader for your PIC?


I tried the microchip AP the bootloader they provide it's for older models.



Thank you.
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Mon Sep 29, 2008 5:33 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Thank you ambrojohn!!

Now I can compile the examples.

I'll try the example on loopback mode, then I'll try something like you, connect two boards with PIC 18F4580 + MCP2551.

Two more days and ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Mon Sep 29, 2008 11:18 am   Subject: [CANbus] communication between two nodes with PIC18F2580


Here is the output I get on the PC via rs232:

===========================================
Comunication Test with a CAN message
from NODE_1 to NODE_2 and back to NODE_1
================== ...
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Mon Sep 29, 2008 11:06 am   Subject: [CANbus] communication between two nodes with PIC18F2580
Hi ambrojohn, thank you for your quick response.


My PCWDH version is the following:

http://b.imagehost.org/0644/PCWHD.jpg


I'll try your suggestion.


Thank you again.


Martinez_pt
  Topic: [CANbus] communication between two nodes with PIC18F2580
Martinez_pt

Replies: 33
Views: 46413

PostForum: General CCS C Discussion   Posted: Sun Sep 28, 2008 10:31 pm   Subject: [CANbus] communication between two nodes with PIC18F2580
Hello everyone.

I'm also trying to connect two boards using CANBUS.

Hardware: PIC 18F4580 + MCP2551.

Software: i'm using MPLAB and CCS.

My problem is i can't compile any one of the example ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group