Would a pushbutton toggle switch be too easy? Digi-key sells them. ---------- > From: Dave Johnson > To: PICLIST@MITVMA.MIT.EDU > Subject: [OT] Pushbutton toggle > Date: Wednesday, October 28, 1998 9:06 AM > > Brace yourself for a newbie electronics question: > > I need to make a push button "toggle": push goes high, next push goes > low, and so on. In effect I need to "store" button presses: the PIC will > be polling for them, but I can't use interrupts and can't guarantee the > polling frequency. The button is a N.O. one, SPST. I also need to > debounce, of course. > > I know I can get this with some cross-coupled gates (for debounce) and a > flip flop (divide by two, basically) but I'm hoping there's a simpler > (read: fewer components) way to do this. Are there ICs with this sort of > function? Or some other cool way to pull (push?) this off? > > Thanks, > > Dave Johnson