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 CCS Technical Support

OT : ICDU-40 ICSP for CAN MCP250XX controllers
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

OT : ICDU-40 ICSP for CAN MCP250XX controllers
PostPosted: Mon Nov 07, 2005 6:22 am     Reply with quote

does anyone know wheteher the ICDU-40 will program the CAN controllers MCP25050 etc ?

I have the CCS CAN development system, and need to re-program the MCP's for a different data rate.

i also have an ICD2 somewhere about the place

Mike
adrian



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

Re: OT : ICDU-40 ICSP for CAN MCP250XX controllers
PostPosted: Mon Nov 07, 2005 7:17 am     Reply with quote

MikeW wrote:
does anyone know wheteher the ICDU-40 will program the CAN controllers MCP25050 etc ?

I have the CCS CAN development system, and need to re-program the MCP's for a different data rate.

i also have an ICD2 somewhere about the place

Mike


I am really interested in the outcome of this, as there is a possibility that I may be using this device in the future.

It looks as if an ICD2 cannot programme these devices. If you boot up MPLab and go to configure->select devices; you will find an option for the MCP25020/25/50/55 devices - but it requires MPLab PM3 programmer. A bit of an overkill if you ask me! Microchip also do a CAN I/O developers kit, which has a programmer built into it. The manual for this includes a circuit diagram for the programmer (parallel port). The software for the programmer is also available on the web site.
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 7:29 am     Reply with quote

It looks like the melabs EPIC programmer supports the MCP family, but their site seems to be down today.

I really dont want to have to go and buy the microchip CAN demo kit just to get the programmer.

I already have a collection of about 6 PIC programmers.

I am a little surprised that CCS ICDU-40 doesnt supprt the MCP.

I hope they are working on it


Mike
dyeatman



Joined: 06 Sep 2003
Posts: 1939
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 7:32 am     Reply with quote

The CCS MACHX supports the MCPxxxx series.

Interestingly, their CAN development kit just says "In-Circuit Debugger/Programmer". It doesn't say which one is provided but with the "hardware only (no compiler)" kit being $149 it wouldn't seem that the $199 MACHX would be included however the ICDU-40 is only $75.

Maybe Darren can jump in here and clear this up... Question
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 7:49 am     Reply with quote

the ICDU-40 is supplied with the CAN dev kit.

I know, I have one

its good to know that the machx supports the MCPxxxx.

it should be easy for them to give support in the ICDU-40 ( marketing reasones excepted)

Mike
dyeatman



Joined: 06 Sep 2003
Posts: 1939
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 8:32 am     Reply with quote

From your initial statement I wasn't sure if you got the ICDU-40 wit the CAN kit or separately. It really seems strange that the ICDU-40 is provided in the CAN kit but cannot program the MCP25050 which is a key device.... I would have assumed it would.... That's what I get for assuming!
dyeatman



Joined: 06 Sep 2003
Posts: 1939
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 8:32 am     Reply with quote

From your initial statement I wasn't sure if you got the ICDU-40 wit the CAN kit or separately. It really seems strange that the ICDU-40 is provided in the CAN kit but cannot program the MCP25050 which is a key device.... I would have assumed it would.... That's what I get for assuming!
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Nov 07, 2005 9:53 am     Reply with quote

Mach X and the ICD can program the MCP with the help of this little adapater board that we have made, but unfortunately we don't sell it and we don't have a schematic readily available. Hopefully in the next few days we will get one and we will post it here.

Mach X can be modified to so it has support for the MCP chips, you will have to ask CCS for help about that.

The next revision of Mach X (which will be available in a few weeks) will fully support the MCP chips without an adapter or modification. There probably will be an anouncement on the news page when the next revision is available.
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 10:08 am     Reply with quote

Darren,

I am slightly confused.

are you saying that the ICDU-40 WILL support the MCPxxx ?

hardware wise, I can wire up an adapter in a blink of the eye.

since the ICSP uses the same signals as a PIC, I assume its only the incorporation of the programming algorithm and defining the register values in a gui into the software

please ask CCS to implement it.

Mike
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Nov 07, 2005 10:37 am     Reply with quote

From what I understand, the ICD can't drive enough current to program the device - hence the adapter with it's own power supply.

The code is already in the ICD and Mach X, hence why it works in a modified Mach X.

I don't have a schematic right now, though.
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

nearly there
PostPosted: Mon Nov 07, 2005 10:44 am     Reply with quote

I can comprehend the hardware issue now.

I look forward to a schematic, and how to formulate the hex file.

Mike
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Nov 07, 2005 10:49 am     Reply with quote

To formulate a HEX file, you either have to do it by hand or download a special tool from Microchip. I believe this is the URL to download the tool:
http://ww1.microchip.com/downloads/en/DeviceDoc/mcp250xx110.zip
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 11:39 am     Reply with quote

Darren,

many thanks for the download link.

I have downloaded it, and tried to run it.

on my XP machine I get a " run-time error 53"

" file not found :dlportio.dll"

I am googling as I write.

I know its not in any way your issue, I am just posting this to inform others.

whatever did we do before microsoft invented dll's ?

Mike
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

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

PostPosted: Mon Nov 07, 2005 11:43 am     Reply with quote

You need to install some special parallel port drivers, it is documented in their help file or readme file.
MikeW



Joined: 15 Sep 2003
Posts: 184
Location: Warrington UK

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 11:53 am     Reply with quote

Darren, i know its not your issue, as i have said.

the downloaded exe file has no readme's or help files.

on running the exe, i just get a loading screen saying " MCP250xx programmer", then a press continue. after that, the erro popus up.

I am in no way asking you to help on this, but i do appreciate the time

I found a link to the maxim dallas MAX7219 which also uses that DLL.

i am working on it, but if you do have a link to the required dll it would help

Mike
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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