View previous topic :: View next topic |
Author |
Message |
avigar Guest
|
CAN help |
Posted: Tue May 03, 2005 4:39 am |
|
|
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 |
Posted: Tue May 03, 2005 5:57 am |
|
|
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
|
|
Posted: Tue May 03, 2005 7:35 am |
|
|
so u just program then pic and thats it??? using the mcp library and thats all? |
|
|
JPA Guest
|
CAN Help |
Posted: Wed May 04, 2005 7:54 am |
|
|
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...) |
|
|
|