View previous topic :: View next topic |
Author |
Message |
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
CAN bus support |
Posted: Fri Apr 29, 2005 3:30 am |
|
|
Folks,
I'm lookig for a bus, which could tie 12 PICs and a PC/104 together. So far the CAN bus looks most lucrative. My question is: does CCS compiler has canned (no pun intended) functions for thr PICs with built-in CAN transceiver (e.g. 18F458)?
THanks,
Nick |
|
|
Douglas Richard
Joined: 08 Sep 2003 Posts: 49 Location: Concord NH
|
CAN support |
Posted: Fri Apr 29, 2005 6:42 am |
|
|
Yes. |
|
|
kender
Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
|
|
Posted: Fri Apr 29, 2005 2:03 pm |
|
|
Douglas,
Could you point me to the sample code for the CAN bus?
Thanks,
Nick |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Apr 29, 2005 4:06 pm |
|
|
Those files come with the compiler and CCS doesn't want us to
post them on this board.
If you do a search with Google for two of the function names in
those files, you get two hits. Search for this: can_getd can_putd
Neither article is in English but the code is, so you might still get
some idea of how to use the CCS routines.
You could also look at the source code for Microchip's AN738.
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011822
The CCS routines appear to be roughly based on the AN738 code,
though there are a lot of differences in terms of coding style. |
|
|
|