Being the the example is using PORTB...
http://www.picbasic.co.uk/forum/show...77&postcount=3
Being the the example is using PORTB...
http://www.picbasic.co.uk/forum/show...77&postcount=3
Dave
Always wear safety glasses while programming.
I saw that post earlier, not having much if any knowledge on Assembly, I wasn't quite sure what was going on. I tried it out, added a while;wend with an led flashing when it arrived at that point and then after added @sleep @no. I believe that the NOP clears the GIE bit according to the '628 datasheet but noticed that the example on this forum showed it added twice. Anyhow I powered the '628 with a 78L05 regulator with a 9V battery without using the @SLEEP and I am drawing 12mA measuring from battery into the regulator. With the @SLEEP command I am still drawing 12mA so believing that the regulator is the cause. The Quiescent Current on the 78L05 is 3 min. 5mA max and on the LP2950CZ-5.0 it is 75uA. I have ordered a LP2950CZ-5.0 regulator. Perhaps this will cure my project's hunger for batteries.
Thanks for your help, '73
Last edited by tazntex; - 19th November 2008 at 13:50.
Bookmarks