View previous topic :: View next topic |
Author |
Message |
MikeW
Joined: 15 Sep 2003 Posts: 184 Location: Warrington UK
|
OT : ICDU-40 ICSP for CAN MCP250XX controllers |
Posted: Mon Nov 07, 2005 6:22 am |
|
|
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
|
Re: OT : ICDU-40 ICSP for CAN MCP250XX controllers |
Posted: Mon Nov 07, 2005 7:17 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 7:29 am |
|
|
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: 1933 Location: Norman, OK
|
|
Posted: Mon Nov 07, 2005 7:32 am |
|
|
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... |
|
|
MikeW
Joined: 15 Sep 2003 Posts: 184 Location: Warrington UK
|
|
Posted: Mon Nov 07, 2005 7:49 am |
|
|
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: 1933 Location: Norman, OK
|
|
Posted: Mon Nov 07, 2005 8:32 am |
|
|
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: 1933 Location: Norman, OK
|
|
Posted: Mon Nov 07, 2005 8:32 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 9:53 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 10:08 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 10:37 am |
|
|
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
|
nearly there |
Posted: Mon Nov 07, 2005 10:44 am |
|
|
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
|
|
|
MikeW
Joined: 15 Sep 2003 Posts: 184 Location: Warrington UK
|
|
Posted: Mon Nov 07, 2005 11:39 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 11:43 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 11:53 am |
|
|
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 |
|
|
|