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

CANBUS

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sraiderk



Joined: 09 Feb 2005
Posts: 48

View user's profile Send private message

CANBUS
PostPosted: Mon Feb 21, 2005 8:35 am     Reply with quote

Hi, everybody

I am trying to comunicate two 16f877 using 2510 with help of canbus driven by mcp2551. I use the driver can-mcp2510.c. But, My pics don't make the can_init(); operation. This line never finished by pics. What can be wrong.
sraiderk



Joined: 09 Feb 2005
Posts: 48

View user's profile Send private message

PostPosted: Mon Feb 21, 2005 9:25 am     Reply with quote

lcd_init();
can_init();
printf(lcd_putc,"I AM MASTER");

I never see the I AM MASTER on lcd but if I write like that

lcd_init();
printf(lcd_putc,"I AM MASTER");
can_init();
I see the I AM MASTER on lcd.

16F877 and MCP2510 There is a 4 connection pins. I never use the int pin of the mcp2510. sck,so,si,cs. I changed the CS pin from the file can-mcp2510.c . The others remain constant. Xtal:4mhz used for mcp2510.
help me please!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group