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 support@ccsinfo.com

CAN help

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







CAN help
PostPosted: Tue May 03, 2005 4:39 am     Reply with quote

hi... im pretty new in this pic world... but im having trouble with can bus,,..
i have the examples that ccs provide but im not sure on how to use them. i mean, the mcp2515 needs to be programmed... how do i program it? with them can-mcp2510.c???? i know this is a stupid question but o hwell
and then, i have to program the pic, i guess using the ex_can_ccs_b.c?
please if someone can help me i need this asap..
thnx in advance
JPA
Guest







CAN
PostPosted: Tue May 03, 2005 5:57 am     Reply with quote

Hello,

The MCP2515 or MCP2510 configuration is done with the SPI interface bus; it is not really 'programming' since it has to be done after each power on.

I suppose you can do it with the supplied CCS libraries, I never tested them (I rewrote my own lib, to fit in PIC16F84 memory...)
avigar
Guest







PostPosted: Tue May 03, 2005 7:35 am     Reply with quote

so u just program then pic and thats it??? using the mcp library and thats all?
JPA
Guest







CAN Help
PostPosted: Wed May 04, 2005 7:54 am     Reply with quote

Yes, but you should read the library because it defines some settings you will have to change (PIN connection betwen PIC and MCP, MCP baud rate generating bit setting to define CAN BUS speed...)
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