Connect MCLR to +5v
![william chan](https://forums.parallax.com/uploads/userpics/RBTCEMRWP85K/nQFR9OII9OM33.jpg)
Hi,
Is it dangerous to connect the MCLR pin directly to +5v without the usual 10k resistor?
This resistor seems to be unnecessary, but I could be wrong.....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Is it dangerous to connect the MCLR pin directly to +5v without the usual 10k resistor?
This resistor seems to be unnecessary, but I could be wrong.....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Comments
If somebody decided to "manually" reset the SX by taking the pin Low without there being a pull-up·resistor ("Yeah, Dick, just short /MCLR to ground..." --Pop!--), then he'd short supply to Ground.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?
www.iElectronicDesigns.com
·
I had never known that Bean; ... any idea where to find info on that??
Cheers,
Peter, (pjv)
Is it possible that there could be a special condition where the MCLR would drain a lot of current from the +5v connection?
PJ,
The resistor may only cost USD 2 cent, but the insertion cost during assembly is higher than 2 cent.
Sometimes, the board just ran out of space to add the luxury of a 10k resistor.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Post Edited (william chan) : 5/8/2008 2:26:52 AM GMT
I cannot take seriously·the argument that a·10K resistor is a luxury, takes up too much board space, and·its placement·makes the project "unprofitable."
No, I'm not arguing that including the resistor is an issue... I was only interested in whatever info Bean had read on it. In a present ultra low power project I'm trying to raise the value as high as possible without causing problems. At one megohm it seems too big, and at 100 K things appear to be stable..... more testing to be done, especially at low and high temperature extremes.
Mike, I don't believe the MCLR is used for Vpp; one of the OSC pins does that.... at least in the case of serial programming. I don't know about anyone proramming SXs in parallel, and I can't recall any data on that.
Here's to MCLR series resistors!
Cheers,
Peter (pjv)
I think that raising the MCLR resistor will not make any significant impact on total current consumption of your project.
This is because the input impedance of the MCLR pin is much higher than 100k and would dominate that pin's current drain.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Input leakage current on all pins is spec'd at 1uA max, so the pullup value is virtually irrelevant to the overall power consumption.
-Phil
Under the optimum connections, including a high impedance on MCLR, and programming all port bits (including the upper 4 RA on my SX48) as outputs, the sleep current is ZERO microamps. In my case this is an important capability of the SX48. It seems the reason a 1 Meg pullup is too large is that it comes out of reset too slow, and may not start up reliably. More testing to be done here!
Occasionally I use 33 to 100K, and have not experienced any errant resets.
Cheers,
Peter (pjv)
The noise immunity issue I posited has nothing to do with the leakage current. They are separate issues. Even with zero leakage current, noise immunity is a valid reason for favoring lower-valued pullup resistors. Obviously, in a benign, noiseless environment with zero input leakage, even a 10M resistor would be adequate to hold the SX out of reset. I've yet to experience such an environment in real life, though. Besides, with zero leakage, the pullup value isn't "virtually irrelevant" to to power consumption, as I pointed out above; it's completely irrelevant. As such, I'm hard-pressed to think of a valid reason to use more than 10K, unless some capacitance is added to the /MCLR pin, which will also improve noise immunity. (There isn't a spec for maximum /MCLR rise time, BTW — only for Vdd rise time.)
-Phil
In case you want to implement an external reset function, you will need this resitor as a pull-up anyway because you may not leave /MCLR floating.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G