Yes, it's work now !
@ DEVICE PIC12F675, intrc_osc_noclkout, wdt_ON, pwrt_on, mclr_off, bod_off
...
@ Sleep
...
GPIF=0
...
Thanks again to all for help ! @ Cheers!
Yes, it's work now !
@ DEVICE PIC12F675, intrc_osc_noclkout, wdt_ON, pwrt_on, mclr_off, bod_off
...
@ Sleep
...
GPIF=0
...
Thanks again to all for help ! @ Cheers!
Works...but don't sleep ! I measure the current and it is all the time about 3.5 mA. Based on "PICadilly 12F675", writen by Ian Burn, I try to re-re-redefine the code. But...even I made like in book, the current consumption it's 3.5 mA !
" @ DEVICE PIC12F675, intrc_osc_noclkout, wdt_OFF, pwrt_on, mclr_off, bod_off
....
IOCB= %00001100
INTCON.3=1
OPTIONS_REG.6=1
....
main:
...
INTCON.0=0
Pause 100
@SLEEP
Pause100
... "
I don't understand why do not work ! I remove the PIC from schematic, and the current consumption is about 2.5 mA; so, the 12F675 consume about 1 mA, all the time and never go to sleep with "less than 1 microamp" !
Hi fratello,
Well you have taken this thread every which away, instead of making new threads for different projects, so we do not really know which schematic and code you are asking about, so only "General" statements can be applied here. First, you are chasing 1 ma out of 3.5 ma, is there any way to kill the 2.5 since it is the bigger portion? Secondly, I do not think you will ever see 1µA, maybe wrong just my opinion. Just before @ SLEEP, I would try tristating the GPIO by TRISIO = 255, disable WPU and in your configs, shut off WDT, and disable MCLRE, you might switch to LP_OSC, to further reduce power. Read this thread, different chip but useful maybe:
http://www.picbasic.co.uk/forum/showthread.php?t=11325
Last edited by Archangel; - 7th August 2009 at 17:18.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks for reply ! I use the schematic from post #1 and the code continuous improved in this thread. I made this changes on the last code posted by Mr.Darell. I say that I use this schematic on automobile ; I think every way to reduce the consumption it's necessary...or maybe the battery of my car give enough current, even I don't start the engine for a long period...It is not a verry big problem, but I want to understand the "mechanism" of the sleep procedure, and I am dissatisfied because, even I try all the variants, the obvious results are not present ! Just I try to make this project almost perfect and I really appreciate the support of all. Sorry if I disturb somebody...or if I became boring...
fratello,
Have you changed anything?
I see you put the WDT back to OFF ... good.
Here's a picture of my breadoard of your circuit, in case you see something different.
Obviously, I'm using LED's instead of relays, but the rest should be the same.
When in SLEEP mode, I measure about 8 µA on my cheap DVM.
The only time it's not in sleep mode, an LED(relay) is ON, so that current is about 7 mA.
Here's the program I'm currently using.
DT
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
This is schematic I use. With my FUKE DT-830B I measure 3.5 mA -all the time- with no button push (so both relay OFF) and about 37 mA with one relay ON (without motor, of course). I remove the PIC and the current consumption is 2.5 mA (the two transistors ?) .
I use the same code ; I compile him after copy/paste of Yours ! Maybe it's because of my multimeter ? Anyway, thank You all so much for support !
Hi fratello, You could play with some resistors to bias those transistors so the base is more negative than the emitter to cause them to turn off more, do not tristate the outputs, drive them low, they will stay that way in sleep ( if I understand the data sheet that is ) . Try measuring the current with the relays out, betcha you get a low reading like Darrel did, MeThinks the logic zero on the port is still above zero volts (maybe due to internal leakage collector to base) giving the transistor some drive to increase the drain, try putting some emitter resistors in and see if it changes anything.
Last edited by Archangel; - 8th August 2009 at 07:38.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks