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 Previous  1, 2
 
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: 185
Location: Warrington UK

View user's profile Send private message

got the dll
PostPosted: Mon Nov 07, 2005 12:02 pm     Reply with quote

Darren, the max7219 link worked.

I can now run the mcp program, and mess about with the registers etc.

all I need now is the schematic, and the ICDU supporting the algorithm

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 1:20 pm     Reply with quote

ICDU already supports it....
MikeW



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

View user's profile Send private message

nearly there now
PostPosted: Mon Nov 07, 2005 1:26 pm     Reply with quote

so, two down, one to go.

I am perfectly capable of designing a 13.5Volt 2Amp supply :-)

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 3:31 pm     Reply with quote

Basically, just have a little adapter with it's own power supply (get 5V somehow). Use your own power supply to power the chip. Then use the power supply on the collector of the transistor, and put the base on the ICD pin, and the emitter on the pin on the chip (do this for the clock and data lines, so you need two transistors). That should work.
MikeW



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

View user's profile Send private message

lets get down to the hardware level
PostPosted: Tue Nov 08, 2005 2:38 am     Reply with quote

Darren,

I like to understand things before I use a solution.

Having checked out the programming spec for MCP250XX versus the PIC18Fxx family DS20072B vs DS3962FF

i get the following



Vdd supply voltage MCP = 4.75-5.25V ...... PIC18F = 3.0-5.5V

Vdd supply current MCP = 20mA ...... PIC18F = 10mA

VPP programming voltage MCP = 12.75-13.25V ...... PIC18F = 9-12.5V

Ipp programming current MCP = 50mA ...... PIC18F = 300uA

I am assuming that the programming algorithm is OK.

so the problem is the Vdd supply current up from 10mA to 20mA, which I would have thought the ICDU-40 could supply.

The big one is the Ipp current from 0.3mA up to 50mA.

Also, the Vpp is lower.

Have I got the problem ?, is it just the Vpp supply voltage ( a diode drop would fix that ), and the vast increase in Ipp programming current ?



Mike
Darren Rook



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

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

PostPosted: Tue Nov 08, 2005 8:20 am     Reply with quote

I think their spec is wrong, I think it takes more than 20mA.

Either way, it appears to be more current than the current revision Mach X or ICD can handle - hence the adapter or modifications.
MikeW



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

View user's profile Send private message

PostPosted: Tue Nov 08, 2005 11:54 am     Reply with quote

Darren,

I hope you arent getting bored with this thread yet.

I have no problem with an external +5 volt supply, or a beefier Vpp.

why do we need to buffer clock and data ?


If I design a circuit with an external +5V Vdd able to supply say 100mA, and a buffered Vpp of +13Vable to supply say 100mA, can I just used the ICDU-40 pins straight through to the chip ?



Mike
ratgod



Joined: 27 Jan 2006
Posts: 69
Location: Manchester, England

View user's profile Send private message

PostPosted: Sat Jan 26, 2008 6:13 pm     Reply with quote

Mike, Did you get it going in the end? if so, was it just Vpp and Vdd that needed a little boost? or did you have to boost the PGC and PCD pins?

I currently have a little adaptor that sits between my ICD and targets as the ICDU I am using hasn't got the Vdd enabled (you can select it with a jumper inside the unit but I think that some of my circuits may draw too much current from my USB so I prefere not to)

I could just do a simple mod to this and add a Vdd buffer boost to it.
MikeW



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

View user's profile Send private message

PostPosted: Sun Jan 27, 2008 2:07 am     Reply with quote

Sorry,

I never needed to do it, the project never got finished

Mike
ratgod



Joined: 27 Jan 2006
Posts: 69
Location: Manchester, England

View user's profile Send private message

PostPosted: Tue May 06, 2008 5:33 pm     Reply with quote

I found an adaptor schematic and description in the CCS FAQ:
http://www.ccsinfo.com/faq.php?page=mcp250xx

I hope this helps someone
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 Previous  1, 2
Page 2 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