Author |
Message |
Topic: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
shashank27187
Replies: 35
Views: 80580
|
Forum: General CCS C Discussion Posted: Tue Sep 22, 2009 5:50 am Subject: SAME HERE :) |
actually.... i am also having the same problem...
I am using PIC 18f2585 for the two CAN nodes..
i have used pull ups and the termination resistors as well in the boards..
I used prototyping boar ... |
Topic: Help with RS485_get_message |
shashank27187
Replies: 13
Views: 36470
|
Forum: General CCS C Discussion Posted: Tue Sep 01, 2009 3:55 am Subject: Help with RS485_get_message |
As said above to check whether data is received or not using the code:
while(true)
{
if(rs485_get_message(msg, FALSE))
printf(lcd_putc, "%d ... |
Topic: Receiver problem in RS 485 communication |
shashank27187
Replies: 2
Views: 8135
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2009 10:40 pm Subject: Receiver problem in RS 485 communication |
The problem I have is similar to the one posted in the topic
http://www.ccsinfo.com/forum/viewtopic.php?t=39964 |
Topic: Receiver problem in RS 485 communication |
shashank27187
Replies: 2
Views: 8135
|
Forum: General CCS C Discussion Posted: Wed Aug 26, 2009 10:29 pm Subject: Receiver problem in RS 485 communication |
Code for transmitter:
/// code for the master PIC or the node A
#include <16F887.h>
#fuses HS, NOWDT, NOLVP, NOPROTECT
#use delay(clock=20000000)
#define RS485_RX_PIN P ... |
Topic: kbhit never get hit |
shashank27187
Replies: 4
Views: 5447
|
Forum: General CCS C Discussion Posted: Wed Aug 12, 2009 6:03 am Subject: kbhit never get hit |
instead of putc(c)
you should try with " fputc(c,RS485)"
as the syntax says:
fputc(variable,stream) |
Topic: kbhit never get hit |
shashank27187
Replies: 4
Views: 5447
|
Forum: General CCS C Discussion Posted: Wed Aug 12, 2009 5:47 am Subject: kbhit never get hit |
i think u have used RS485 in configuring the rs232 serial in the code while defining the stream...
that would be the problem |
Topic: loopback not working |
shashank27187
Replies: 4
Views: 6255
|
Forum: General CCS C Discussion Posted: Wed Aug 12, 2009 2:39 am Subject: loopback not working |
The working in the loop back mode got stopped..... it happened just once and is not repeating at all.
I'm implementing one node for the time being.
actually, i referred to the topics and discussi ... |
Topic: loopback not working |
shashank27187
Replies: 4
Views: 6255
|
Forum: General CCS C Discussion Posted: Fri Aug 07, 2009 4:26 am Subject: loopback not working |
Thanks..PCM I got the code working... there was some flaw in the hardware.
Ok. i have one more problem..
The micro needs to be reset some 5-6 times before it starts working.. could anybody tell me ... |
Topic: [CANbus] communication between two nodes with PIC18F2580 |
shashank27187
Replies: 33
Views: 50298
|
Forum: General CCS C Discussion Posted: Thu Aug 06, 2009 2:38 am Subject: [CANbus] communication between two nodes with PIC18F2580 |
could you pls tell me whether i need can-18f2580.c for implementing can using pic 18f2585..
as i am using can-18f4580.c as the can driver file in my program, but i have'nt got results for the same ... |
Topic: loopback not working |
shashank27187
Replies: 4
Views: 6255
|
Forum: General CCS C Discussion Posted: Wed Aug 05, 2009 12:54 am Subject: loopback not working |
i have tried various programs to make the CAN node work but it is not working
here is the loop back code i've used:
#include <18F2585.h>
#fuses HS, NOWDT, NOPROTECT, NOLVP
#use delay& ... |
Topic: CAN preprocessor directive... |
shashank27187
Replies: 1
Views: 3447
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2009 4:18 am Subject: CAN preprocessor directive... |
Hey.... I'm using PIC 18f2585 in order to implement a CAN node.
As you know this device has got an in built CAN.
Could you tell me whether this device will support the defined header file 18xxx8.c ... |
Topic: Help.. serial monitor problem in CCS C window |
shashank27187
Replies: 2
Views: 4338
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2009 3:19 am Subject: Help.. serial monitor problem in CCS C window |
Thank You.. |
Topic: Help.. serial monitor problem in CCS C window |
shashank27187
Replies: 2
Views: 4338
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2009 1:09 am Subject: Help.. serial monitor problem in CCS C window |
Hey...
I'm using 18f2585.
After programming the micro controller I've put it in the circuit as per the design to read it.
The code used is:
#include <18f2585.h>
#fuses HS,NOPROTECT,NO ... |
|