PIC microconroller ICD interface - diyAudio
Go Back   Home > Forums > Design & Build > Parts

Parts Where to get, and how to make the best bits. PCB's, caps, transformers, etc.

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 24th June 2007, 11:42 AM   #1
zilog is offline zilog  Sweden
diyAudio Member
 
Join Date: Oct 2005
Default PIC microconroller ICD interface

I am laying the design for a PIC18F-based system, and need to know a few things before I finish up.

I use the Microchip ICD2 programmer/debugger to interface to the chip, but one question remains - is it ok to attach an external open-drain reset source to the /MCLR pin? (pulling actively low) I am afraid that the ICD2 will become unhappy if this occurs, as it pushes 13V at some unspecified current into this pin.

Could someone please enlighten me on this matter?
  Reply With Quote
Old 24th June 2007, 12:21 PM   #2
BWRX is offline BWRX  United States
diyAudio Moderator Emeritus
 
Join Date: Jan 2005
Location: Pennsylvania
I would not connect it directly to the pin. I would use something like an RCR filter to the MCLR pin and then you can put the fet in parallel with the cap. That provides some filtering and current limiting, which are both good things.
__________________
Brian
  Reply With Quote
Old 24th June 2007, 12:31 PM   #3
wa4swj is offline wa4swj  United States
diyAudio Member
 
Join Date: Jul 2005
Location: Belleview, FL
Hi Zilog,

You typically don't need a reset source. Just tie a 10k ohm resistor from MCLR to Vcc. If you want to use a reset supervisor then here's an app note:

http://ww1.microchip.com/downloads/e...tes/00820a.pdf

Hope this helps. I use an ICD2 successfully all the time with just the 10k pull up resistor.

Best of luck.

Regards,
__________________
------------
Ed Long
  Reply With Quote
Old 24th June 2007, 12:35 PM   #4
zilog is offline zilog  Sweden
diyAudio Member
 
Join Date: Oct 2005
Quote:
Originally posted by wa4swj
Hi Zilog,

You typically don't need a reset source. Just tie a 10k ohm resistor from MCLR to Vcc. If you want to use a reset supervisor then here's an app note:

http://ww1.microchip.com/downloads/e...tes/00820a.pdf

Hope this helps. I use an ICD2 successfully all the time with just the 10k pull up resistor.

Best of luck.

Regards,
The external reset comes from the PSU, and is to disable startup in case of bad power. So the problem of using /MCLR still remains.
  Reply With Quote
Old 24th June 2007, 12:39 PM   #5
wa4swj is offline wa4swj  United States
diyAudio Member
 
Join Date: Jul 2005
Location: Belleview, FL
I don't know your application, but once software development is complete you won't be programming it that much, if ever. Why not mount a small switch on the board to select the programming mode when needed?

Just an idea.
__________________
------------
Ed Long
  Reply With Quote
Old 25th June 2007, 04:38 AM   #6
diyAudio Member
 
ralphs99's Avatar
 
Join Date: Jul 2006
Hi Zilog,

I don't see any problems. The FET can only be an issue if switched on whilst the ICD2 is connected. The bad power output from your PSU has no software function, and so can be disconnected during program development. (Similar to Ed's suggestion) Just make sure the FET is located near the /MCLR input on the chip to reduce capacitive loading and reduce the likelyhood of noise being picked up. And heavily filter the FET gate.

Cheers, Ralph
__________________
Aeronet research pages
Acoustic, Electronic & Speaker Design
  Reply With Quote
Old 3rd July 2007, 02:26 PM   #7
TJNII is offline TJNII  United States
diyAudio Member
 
Join Date: Jul 2007
The datasheet for the ICD programmer talks about this very problem. Since it needs to be pulled high, the safest is a pull down resistor direct to the pin, and a diode between the external pull-up and the pin. Then when the ICD pulls the pin to +13 it is blocked by the diode. I believe that is what Microchip recommends, but I haven't read the datasheet in a couple months.
__________________
This space intentionally left blank
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface : USB or NOT renaudagnes Digital Source 40 9th December 2009 06:13 PM
Which cap to buy for DAW interface mod? chriswww Parts 1 24th February 2009 02:30 PM
HDD to I2s interface elnec Digital Line Level 6 15th September 2008 08:43 PM
USB interface NOS DAC?? sbrtoy Digital Source 25 7th May 2007 05:14 PM


New To Site? Need Help?

All times are GMT. The time now is 12:13 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2