Help!
I am in a panic. I have a project that, when in 'sleep' mode, it MUST use very low current e.g. a few uA (without underclocking).
What am i doing wrong? The lowest current that I am getting in the 'sleep' loop is 640uA
Here is my 'hardware' setup:
I have a 28X2 (3volt version) running at 3v (2 x AA batteries)
My reset button (pin-1) is tied high via a 4K7 resistors
A0,1,2,3 (pins 2-5) are tied low with 10k resistors
I am using the standard USB-cable circuit for serial in/out
C0-C7 (pins 11-18) have 150R resistors going to LEDs that go to +V.
B0 (pin 21) has a 100K resistor going to +v (I will be using this to detect a 'low' interrupt)
B1-B6 (pins 22-27) have 150R resistors going to LEDs that go to +V.
B7 has a piezo-sounder
Here is my 'test' program:
#picaxe 28x2
high C.0, C.1, C.2, C.3, C.4, C.5, C.6, C.7
high B.0, B.1, B.2, B.3, B.4, B.5, B.6, B.7
disablebod
main:
disablebod
sleep 5
SOUND B.7,(80,10) 'give me a bleep
low C.0 'flash test LED
pause 2000 'pause to display LED
high C.0 'switch off LED
goto main 'loop
(My only thoughts are that I am driving all the LEDs with one side to the +v and the other via a resistor to the 28X2 pins - possible, I should be running them from 0V - would be a real 'pain' if I have to change this...)
(Also, could turning off the four ADC's help - if yes, please can someone tell me how - I don't know what/where to poke to do this)
Help greatly appreciated.
Thanks
Mik
I am in a panic. I have a project that, when in 'sleep' mode, it MUST use very low current e.g. a few uA (without underclocking).
What am i doing wrong? The lowest current that I am getting in the 'sleep' loop is 640uA
Here is my 'hardware' setup:
I have a 28X2 (3volt version) running at 3v (2 x AA batteries)
My reset button (pin-1) is tied high via a 4K7 resistors
A0,1,2,3 (pins 2-5) are tied low with 10k resistors
I am using the standard USB-cable circuit for serial in/out
C0-C7 (pins 11-18) have 150R resistors going to LEDs that go to +V.
B0 (pin 21) has a 100K resistor going to +v (I will be using this to detect a 'low' interrupt)
B1-B6 (pins 22-27) have 150R resistors going to LEDs that go to +V.
B7 has a piezo-sounder
Here is my 'test' program:
#picaxe 28x2
high C.0, C.1, C.2, C.3, C.4, C.5, C.6, C.7
high B.0, B.1, B.2, B.3, B.4, B.5, B.6, B.7
disablebod
main:
disablebod
sleep 5
SOUND B.7,(80,10) 'give me a bleep
low C.0 'flash test LED
pause 2000 'pause to display LED
high C.0 'switch off LED
goto main 'loop
(My only thoughts are that I am driving all the LEDs with one side to the +v and the other via a resistor to the 28X2 pins - possible, I should be running them from 0V - would be a real 'pain' if I have to change this...)
(Also, could turning off the four ADC's help - if yes, please can someone tell me how - I don't know what/where to poke to do this)
Help greatly appreciated.
Thanks
Mik