Hi
Is there a best practice approach for a single picaxe (no other supporting circuitry) to run a bit of code once a day whilst minimising battery usage? Timing accuracy within 2-3 minutes per day would be fine.
The code could easily be run on a 08M(2) but if one of the bigger chips would make life easier that would be fine.
My current thought would be to use a 20X2 (happen to have some spare) running at "setfreq k31", then I would use "settimer" to wake up occasionally from a "doze 0" and also use "disablebod" and "disconnect" to further reduce power usage
If my calcs are correct, a minor tick on a 20X2 at K31 occurs every 0.007813 seconds (1/clock freq/256) and therefore if I settimer with 65536-(300/0.007813)=27136 I should wake up from my doze every five minutes - confirmation appreciated
Any better ideas with lower power usage appreciated
Thanks
Peter
Is there a best practice approach for a single picaxe (no other supporting circuitry) to run a bit of code once a day whilst minimising battery usage? Timing accuracy within 2-3 minutes per day would be fine.
The code could easily be run on a 08M(2) but if one of the bigger chips would make life easier that would be fine.
My current thought would be to use a 20X2 (happen to have some spare) running at "setfreq k31", then I would use "settimer" to wake up occasionally from a "doze 0" and also use "disablebod" and "disconnect" to further reduce power usage
If my calcs are correct, a minor tick on a 20X2 at K31 occurs every 0.007813 seconds (1/clock freq/256) and therefore if I settimer with 65536-(300/0.007813)=27136 I should wake up from my doze every five minutes - confirmation appreciated
Any better ideas with lower power usage appreciated
Thanks
Peter