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

CANBUS Example set MCP250xx

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



Joined: 23 Aug 2010
Posts: 11

View user's profile Send private message Send e-mail

CANBUS Example set MCP250xx
PostPosted: Sat Aug 28, 2010 11:03 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Aug 28, 2010 11:34 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Sat Aug 28, 2010 11:46 am     Reply with quote

Thank you very much for your suggest.
I will try again with Example from you.
whazzzupp



Joined: 23 Aug 2010
Posts: 11

View user's profile Send private message Send e-mail

PostPosted: Sat Aug 28, 2010 11:53 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Aug 29, 2010 12:33 am     Reply with quote

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 !!!!
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