Yea, I was looking at flip flops just as I was reading your post. I cant find one with a low enough pin count (<= eight), I dont mind the money, but space is kind of an issue.
Yea, I was looking at flip flops just as I was reading your post. I cant find one with a low enough pin count (<= eight), I dont mind the money, but space is kind of an issue.
Oh no no, I already am using a pic. I just didn't know if I should 'waste' my interupt pin on a feature that is far less important then the rest of the pic is doing.
I just didn't know if there was a trick way to do this. Like some sort of momentary switch lamp driver ic thing.
The push pull just doesnt appeal to me because i need to add two new part numbers that look identical. I really would have thought someone would have a need for a specialized pushpull single package transistor
Oh no no, I already am using a pic. I just didn't know if I should 'waste' my interupt pin on a feature that is far less important then the rest of the pic is doing.
All you need is the switch and a pullup resistor (or not even the resistor, if you use the pullups on portb feature). There's no requirement to 'waste' an interrupt on the switch, simply poll it occasionally - this also helps with the debouncing required - PIC's are so fast (compared to button presses) polling is usally plenty fast enough. Even if you use interrupts, the interrupt routine usually just sets a flag, and the main program polls the flag - so why not just poll the switch?.
You can feed a 12V signal into a PIC pin with a simple series resistor, the protection diodes in the PIC clip it to 5V - the resistor stops the diodes passing too much current, the spec for the diodes is in the datasheet. You don't need as high a resistor as 500K - a 68K would only pass 100uA through the diode.