![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
Hey Guys. I had a question that I couldnt work out using the datasheet. Im currently designing something with the 16f630. If I hold it in reset by pulling MCLR to ground, is the power consumption reduced like its in sleep mode? If so, I could save a pin and a little code on my design which would be really handy. Cheers John
__________________ The first rule of mstechca club is do not talk about mstechca club. http://www.electro-tech-online.com/s...induser&u=1245 Last edited by 2camjohn; 30th October 2009 at 09:40 PM. | |
| |
| | #2 |
|
No reset is not the same as sleep mode, not sure what the energy usage in reset is cause you're not really supposed to do that.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | #3 |
|
I believe it's very similar to sleep mode. The oscillator shuts down, the PORT pins go high impedance etc. The power consumption *should* be very similar to sleep mode. A quick test with a multimeter set to microamps would give a better answer... | |
| |
| | #4 |
|
You can always program the MCLR pin to be an input with wake-on-pin change and implement the sleep in your code. Then you know the chip is actually "asleep" when you pull the pin low.
| |
| |
| | #5 |
|
If you do that you can't use ICSP can you?
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | #6 |
| Yes you can... even if the pin is programmed as an input instead of MCLR it still works as the Vpp pin (high voltage on it puts the chip into programming mode). You just have to make sure not to put more than Vdd on it when used as an input, or the chip will enter programming mode in your application. Last edited by kpatz; 1st November 2009 at 02:02 AM. | |
| |
| | #7 |
|
High voltage programming is not ICSP programming. Especially not if that high voltage fries the sensor you were attaching to that input...
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | #8 | |
| Quote:
As with any ICSP design you need to design it properly, so that the programming system doesn't affect anything else. | ||
| |
|
| Tags |
| chip, consumption, pic, power, reset |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| IGBT power consumption | Electronics4you | General Electronics Chat | 8 | 24th April 2007 07:30 PM |
| Power Consumption | Badar | General Electronics Chat | 8 | 14th March 2007 07:30 PM |
| Power consumption | Dr.EM | Electronic Projects Design/Ideas/Reviews | 4 | 18th March 2005 12:33 PM |
| Power-On Reset & Brown-Out Reset | hantto | Micro Controllers | 5 | 31st August 2004 12:14 PM |
| PIC power consumption with internal rc | DaKandEKid | Electronic Projects Design/Ideas/Reviews | 0 | 2nd September 2003 02:50 AM |