Depending on model pic and number of led used.My requirement is to power it from 9V so any battery composition will effect switching regulator operation or not?
use a linear regulator mcp1705 series 3,3V or 5V out 400mA qs 10 micro Amp approx.
put your cpu clock as low as possible e.q. 32Khz .
Adjust leds to 10mA max and use PWM to obtain max light at lowest PWM signal.
However all other in circuit resistors and will consume power.
@ pic's set unused port high no external resistor at unused ports.
A schematic of your design will allow us to evaluate currents.
Using fet's (voltage driven) in stead or transistors( current driven) could also save current. (could depending on circuit used)
Pic 18F8722 / mcp1705-3 / 32Khz @9V power takes in sleep mode 10 micro amp approx.
Awake 3mA approx (depending on configuration).
assume 10 leds @ 5mA = 50mA + 3mA cpu = 53mA permanent operational for 400/53 = 7Hrs approx.
Don't forget to send your schematic.
Picbuster

