Hi
all,
I had a
battery powered project running on the 16F628 programmed in asm... in sleep
mode I had 0.35 mA. Giving more than 30 days of autonomy in sleep mode with a
standard PP3 battery.. That was cool, but...
For complexity
reasons I switched to the CCS compiler, and doing "the same" things I get 1.3mA
which is a lot too much for my application... Reducing the autonomy to a poor
little week...
My prog, is
INT0 driven. The Wake up is done by the int. I have a nop just after the
"sleep()" command...
I have check
that the sleep in working properly. The board behave as needed, only the
consuption during sleep is too large...
Any pointers,
on some code to be used or some register configs that has to be set
properly to avoid this problem, would be great !!!
Thanks a lot
for any helping hand !!
Vincent