View previous topic :: View next topic |
Author |
Message |
PICman
Joined: 02 Nov 2007 Posts: 26
|
...MCLR, ICSP and RC time constants. |
Posted: Tue Jan 13, 2009 4:57 pm |
|
|
Hi...
I've been doing PIC programming for a while (began with PIC12C508 and PIC16F84) but never tried In Circuit Serial Programming (ICSP) until now.
On most of my projects, i use an RC time constant with a 1N4148 across the resistor on the /MCLR pin to delay the PIC startup and enable the Master Clear (#fuses MCLR) . i use a 1k resistor between the /MCLR pin and the capacitor.
Now that i want to use ICSP, i find that 1k is fairly low (it will draw 8mA from the Vpp source and will "dump" this 8mA into the Vdd circuit, which i DON'T like !!!). But using a higher value resistor between the RC and /MCLR will render my RC useless since the /MCLR weak pullup (400uA) will put the /MCLR pin HI immediately, regardless of the RC condition.
My question: Is it better to simply remove the RC time constant, use NOMCLR in my code, use a high value (e.g. 100k) resistor between the /MCLR/Vpp pin and either Vdd or Vss and get sure that BROWNOUT is active ?
I've been using the /MCLR RC time constant with the older F84 / C508, but today, i use the newer PIC12F683 and PIC16F88 which have brownout detect circuitry. Are the /MCLR RC time constants "obsolete" ?
Thanks for your help... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
PICman
Joined: 02 Nov 2007 Posts: 26
|
|
Posted: Thu Jan 15, 2009 5:51 pm |
|
|
Thanks a lot!
I finally removed my RC time-constant and put-in a 47k resistor between MCLR and Vdd instead. ...Brownout set and functioning (resets the F683 at 2.1 VDC)...
...and as you do, i added a local 78L05 regulator for the PIC. |
|
|
|