Author |
Message |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 5:51 pm Subject: ex_can.c does not work |
No, I'm not using MCLR. |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 4:52 pm Subject: ex_can.c does not work |
link to my schematic hardware.
https://www.dropbox.com/s/q47e25oyit4ne2l/Monitor%20CAN.bmp?dl=0 |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 10:27 am Subject: ex_can.c does not work |
I use Pic18f2580 with MCP2551.
#use delay (clock = 20000000)
#use RS232 (baud = 9600, xmit = PIN C6, C7 VN = PIN)
#include "can-18xxx8.c"
set_tris_b ((* & 0xF93 0xFB) | 0x08); // B3 ... |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 9:05 am Subject: ex_can.c does not work |
It did not work yet!
Is it possible you have something working for me to learn?
If possible of course! |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 7:57 am Subject: ex_can.c does not work |
So how do to set the speed and the ID you need or how it could do a test only with a 18F2580 and MCP2551 to see examples working? |
Topic: ex_can.c does not work |
rafaluc2001
Replies: 11
Views: 17715
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 5:18 am Subject: ex_can.c does not work |
Could someone please show what is missing to make the example ex_can.c work? |
Topic: Warning 240 |
rafaluc2001
Replies: 6
Views: 11523
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2016 2:27 pm Subject: Warning 240 |
It worked, no more warnings
Thank you for your help! |
Topic: Warning 240 |
rafaluc2001
Replies: 6
Views: 11523
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2016 1:09 pm Subject: Warning 240 |
I do not know where to start, could you show a working example? |
Topic: Warning 240 |
rafaluc2001
Replies: 6
Views: 11523
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2016 10:15 am Subject: Warning 240 |
Sorry, error copy of the translator.
the right is.
can_set_id (RX0FILTER0, 0, CAN_USE_EXTENDED_ID); // SET FILTER 0 of 0 mask |
Topic: Warning 240 |
rafaluc2001
Replies: 6
Views: 11523
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2016 9:37 am Subject: Warning 240 |
Good afternoon,
I wonder what's going to appear this warning?
I'm using PCWHD 5,056.
>>> Warning 240 "C: \ Program Files \ PICC \ Drivers \ can-18xxx8.c" Line 112 (22 ... |
|