gnupic: Re: [gnupic] in-circuit debugger
Subject:
Re: [gnupic] in-circuit debugger
From:
Robert Pearce ####@####.####
Date:
6 Feb 2007 08:34:20 +0000
Message-Id: <20070206083352.8effe749.rob@bdt-home.demon.co.uk>
On Mon, 5 Feb 2007 16:33:37 -0700 (MST) Greg wrote:
> I might as well chime in on the topic too. :-) I actually make a routine
> habit of always connecting mechanical buttons on interrupt lines. I
> suppose virtually all battery-operated devices do this; it allows one to
> put the processor into low-power sleep mode with no timer or other
> provision to ever wake it up. The thing stays asleep until somebody
> pushes the button, maximizing battery life.
Yes, indeed, but that's not the scenario I was thinking of. In effect, what you have here is a button that is "normally" _not_ connected to an interrupt pin, and you make it an interrupt pin when you sleep. For that case, a bit of glitching won't cause a problem because the very first thing you do in response to the interrupt is to disable further interrupts.
There are exceptions to every rule :)