Hi,
Thanks for the advice, here is my reasoning, please correct my ignorance.
1. R9, 10 and 11 are used as pull low resistors for the transistors, otherwise the transistor acts as a linear device, turning neather on nor off becuase the base is floating, right?
2. Hi, the darlington is simply by mistake, i chose a 2A power transistor and thats what the symbol looked like in the schmatic program.
3. I read the datasheet, over and over just to make sure that the device can opperate down to the required voltage. It browns-out at 2.1V so 3V-0.33V(max drop on the diode) = 2.67V which should be ok. The device can opperate upto 4MHz at 2V (but uses lots of current!)
4. Then the detect circuit ( Mains / Batt Detect ) is not pulling GP0 to ground, the device will turn off all the leds, and enter a low power state until GP0 returns high. The GP0 pin is internally pulled high.
In this condition, the only curtrent in the circuit should be that used by the PIC, which is max. 28uA at 3V/Fosc=32k.
I've checked the datasheet for leakage current, but it is not mentioned? What am i looking for?
[edit]
The reverse current is 0.5uA at 25 degsC, which should be ok, right?