Hi Everyone,
I have just discovered something very odd and maybe someone could enlighten me to what could be happening?
Some may know that I have had some issues with trying to get the little PIC sleep current down close to specs for my LED project, as the 0.260mA at 3V was just to much, and also rising to 0.640mA at 5V! Initially I had about 5 chips sourced from Maplin as it was local (bought at different times over 3 months), and I have had the issue with all of them.
I have been trying many of the suggestions, different pull downs, sinking high and low and different code etc. but with no joy.
Today I took delivery of some more PIC12F675's but this time from Farnell and I just flashed one with the exact same code with the exact same Pickit3 and used it on the exact same breadboard, but this time the chip is shutting down and the drain is so low I cant even register it on my bench meter on micro amps.
Out of interest, I tried a few more, still good, went back to the orginals, still bad. Any ideas?
Cheers
Bill
Power Consumption on PIC12F675
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Power Consumption on PIC12F675
Hi Bill,
As your programming with the PICkit, you can see the revision of the various chips.
For example.
http://ww1.microchip.com/downloads/en/D ... 80125H.pdf
As your programming with the PICkit, you can see the revision of the various chips.
For example.
It might be worth looking at the microchip page for the device, scroll to the bottom of the page and expand the documentation section and there should be an Errata document that details all the various changes between revisions.Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.50.04
Firmware type..............PIC18F
Programmer to target power is enabled - VDD = 5.000000 volts.
Target device PIC18F4585 found.
Device ID Revision = 7
http://ww1.microchip.com/downloads/en/D ... 80125H.pdf
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Power Consumption on PIC12F675
Many thanks Benj, I will check this outBenj wrote:Hi Bill,
As your programming with the PICkit, you can see the revision of the various chips.
For example.
It might be worth looking at the microchip page for the device, scroll to the bottom of the page and expand the documentation section and there should be an Errata document that details all the various changes between revisions.Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.50.04
Firmware type..............PIC18F
Programmer to target power is enabled - VDD = 5.000000 volts.
Target device PIC18F4585 found.
Device ID Revision = 7
http://ww1.microchip.com/downloads/en/D ... 80125H.pdf
- QMESAR
- Valued Contributor
- Posts: 1287
- Joined: Sun Oct 05, 2014 3:20 pm
- Location: Russia
- Has thanked: 384 times
- Been thanked: 614 times
- Contact:
Re: Power Consumption on PIC12F675
You originals is most likely not original Microchips but some china made chip with Microchip details printed on it We had that issue a few timesBilloo wrote: Out of interest, I tried a few more, still good, went back to the orginals, still bad. Any ideas?
when a PIC does not run on its spec take the pint numbers on it and ask Microchip to track the manufacturing batch ,and 100% of time they inform you that it is not a Microchip batch number be careful where you by any mcu's not only PIc there many Chinese clowns floating on the market
Farnell,Mousers and Digikey are some people you can be sure it is a PIC and not a Chinese PIC
In 15 years I never saw a real PIC not running on spec or at least have the issue documented in the Errata with a fix.
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
- faveremario
- Posts: 28
- Joined: Sat Jun 02, 2012 6:08 pm
- Has thanked: 8 times
- Been thanked: 13 times
- Contact:
Re: Power Consumption on PIC12F675
Hi Billoo, Hi all
I just finished some hobby-tests on a 18F4455 (lots of pins) on high-current-consumption when the PIC is went to sleep. Mine consumed over 40µA after the sleep-command. Not really good according to the specs that µchip is giving us.
First of all consider all things you already did : taking care of floating inputs.
* The long-term impact of floating inputs for all ports is about 2µA (depending on the environment).
* However, the desktop Fluke45 learned me a lot about the time-lapse to get the current down to 2µA. It took 10+ seconds for the current to fall-back to 2µAmps. During this lapse the battery is drained. So for energy consumption's sake, it is a huge harvesting if you can get the current to drop as fast as possible.
Second thing : do not underestimate the consumption of hardware components.
* It is quite useful to consider disabling all things you don't need, but that are enabled by default. And that is not only for the A/D module that flowcode enables by default. Take a look on the generated C-program & check the data-sheets.
* I found out, for example, that the Brown-out detector is standard enabled, but consumes a HUGE amount of current: 39µA !!! Disabling it in the configuration panel makes the consumption in sleep-mode dropping from 39µA to quasi 0.000mA. Unfortunately I did not have the financial possibility to buy a more convenient desktop-meter. So there was ending my quest for better battery-life... unless KeySight wants a place of honour in my book giving me their entry-level DMM ... not? Oh well I tried.
Hope it helped...
Greetz.
I just finished some hobby-tests on a 18F4455 (lots of pins) on high-current-consumption when the PIC is went to sleep. Mine consumed over 40µA after the sleep-command. Not really good according to the specs that µchip is giving us.
First of all consider all things you already did : taking care of floating inputs.
* The long-term impact of floating inputs for all ports is about 2µA (depending on the environment).
* However, the desktop Fluke45 learned me a lot about the time-lapse to get the current down to 2µA. It took 10+ seconds for the current to fall-back to 2µAmps. During this lapse the battery is drained. So for energy consumption's sake, it is a huge harvesting if you can get the current to drop as fast as possible.
Second thing : do not underestimate the consumption of hardware components.
* It is quite useful to consider disabling all things you don't need, but that are enabled by default. And that is not only for the A/D module that flowcode enables by default. Take a look on the generated C-program & check the data-sheets.
* I found out, for example, that the Brown-out detector is standard enabled, but consumes a HUGE amount of current: 39µA !!! Disabling it in the configuration panel makes the consumption in sleep-mode dropping from 39µA to quasi 0.000mA. Unfortunately I did not have the financial possibility to buy a more convenient desktop-meter. So there was ending my quest for better battery-life... unless KeySight wants a place of honour in my book giving me their entry-level DMM ... not? Oh well I tried.
Hope it helped...
Greetz.
- Steve001
- Valued Contributor
- Posts: 1189
- Joined: Wed Dec 31, 2008 3:37 pm
- Has thanked: 460 times
- Been thanked: 523 times
- Contact:
Re: Power Consumption on PIC12F675
Hi
You can measure the current with a muiltimeter but It all depends what accuracy are you looking for? Some muiltermeters have uA range but the burden voltage of the meter is high this affects the accuracy of your reading. You can solve this easily using an external circuit. All you need is a resistor and an precision opamp.
Dave Jones from the EEVBlog designed this circuit that lets you use your muiltimeter in DC Volts mode to measure precisely nA, uA and mA with good resolution. You can find the schematic and pcbs designs files in
http://www.eevblog.com/projects/ucurrent/
Hope this helps
Steve
You can measure the current with a muiltimeter but It all depends what accuracy are you looking for? Some muiltermeters have uA range but the burden voltage of the meter is high this affects the accuracy of your reading. You can solve this easily using an external circuit. All you need is a resistor and an precision opamp.
Dave Jones from the EEVBlog designed this circuit that lets you use your muiltimeter in DC Volts mode to measure precisely nA, uA and mA with good resolution. You can find the schematic and pcbs designs files in
http://www.eevblog.com/projects/ucurrent/
Hope this helps
Steve
Success always occurs in private and failure in full view.
-
- Posts: 315
- Joined: Sun Jun 23, 2013 1:29 pm
- Has thanked: 28 times
- Been thanked: 61 times
- Contact:
Re: Power Consumption on PIC12F675
On no it didnt. The Fluke45 did not "learned" you a lot" the Fluke34 taught you a lotfaveremario wrote:
However, the desktop Fluke45 learned me a lot about the time-lapse to get the current down to 2µA.
Just saying ......
- faveremario
- Posts: 28
- Joined: Sat Jun 02, 2012 6:08 pm
- Has thanked: 8 times
- Been thanked: 13 times
- Contact:
- faveremario
- Posts: 28
- Joined: Sat Jun 02, 2012 6:08 pm
- Has thanked: 8 times
- Been thanked: 13 times
- Contact:
Re: Power Consumption on PIC12F675
Datasheets are always wright
OK i'm just proud to show-off my brand new Rigol DMM
I know EEV would be a good deal... but hell, we don't live to work, but work to live!
I also know this thing will teach me a lot of things
OK i'm just proud to show-off my brand new Rigol DMM
I know EEV would be a good deal... but hell, we don't live to work, but work to live!
I also know this thing will teach me a lot of things
- Attachments
-
- IMG_20180315_205019.jpg (141.48 KiB) Viewed 7254 times