View previous topic :: View next topic |
Author |
Message |
whazzzupp
Joined: 23 Aug 2010 Posts: 11
|
CANBUS Example set MCP250xx |
Posted: Sat Aug 28, 2010 11:03 am |
|
|
I try to set MCP250xx with MCP250XX Programming Software V1.1.0 from Microchip but it not work.
I want an example to set ID , baud rate, port of MCP250xx |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Aug 28, 2010 11:34 am |
|
|
Quote: | I want an example to set ID , baud rate, port of MCP250xx |
Look at the can_set_baud() function in the can-18xxx8.c driver file.
The comments in that file say:
Quote: |
// Current defaults are set to work with Microchip's MCP250xxx CAN
|
The #define statements for the constants used in that function are
in the can-18xxx8.h file. File locations:
Quote: |
c:\program files\picc\drivers\can-18xxx8.c
c:\program files\picc\drivers\can-18xxx8.h
|
For an example of how to talk to an MCP250xx with the above driver,
look in this file:
Quote: | c:\program files\picc\examples\ex_can_ccs_b.c |
It says:
Quote: |
// Example of CCS's MCP2510 CAN library. This example was tested
// using MCP250xxx CCS's CAN Prototype boards.
// This example provides the firmware for the B node in CCS's
// CAN prototyping boards.
|
If you're not using an 18F458, etc., then CCS has CAN bus drivers for
several other types of PICs. Choose the one that is the closest match
to the PIC that you are using:
Quote: | c:\program files\picc\drivers\can-18f4580.c
c:\program files\picc\drivers\can-pic24.c
c:\program files\picc\drivers\can-dspic30.c
|
How did I find this information ? By running a text search program on
the CCS drivers and examples directories. The program is Examine32.
I searched for: MCP250 |
|
|
whazzzupp
Joined: 23 Aug 2010 Posts: 11
|
|
Posted: Sat Aug 28, 2010 11:46 am |
|
|
Thank you very much for your suggest.
I will try again with Example from you. |
|
|
whazzzupp
Joined: 23 Aug 2010 Posts: 11
|
|
Posted: Sat Aug 28, 2010 11:53 am |
|
|
I don't have a MCP250xxx CCS's CAN Prototype boards .
I test with my boards. mcp250xx doesn't have an ID to test. |
|
|
MikeW
Joined: 15 Sep 2003 Posts: 184 Location: Warrington UK
|
|
Posted: Sun Aug 29, 2010 12:33 am |
|
|
the facts seem to be :-
1. you dont have the CCS CANbus dev system with pre-programmed MCP250xx on board
2. you cant program MCP250xx ( presumably because you dont have the Microchip MCP250xx dev kit)
you presumably have a few blank MCP250xx devices.
we responded to your previous thread, which is clearly the same topic.
http://www.ccsinfo.com/forum/viewtopic.php?t=43357
the solution - buy one of the two dev kits.
I think you have had all the answers you are going to get !!!! |
|
|
|