Hi all,
I'm making a project using a PIC18f2523, I would like to be able to turn it, on/off and control it use a single switch. Up to now when using a PIC I have allways either used the weak pull ups in the pic or put external pullups on and used any control switch to ground the pin. Is there a good reason not to use a pull down resistor? I could then use a single pole push switch and a power tranistor 'held' open by the pic. After a long press the pic could turn everything off? My push button could then via a diode be used to turn the transitor on until the pic holds the transistor when its running? Is this the best way to go about it?
Thanks Geoff
I'm making a project using a PIC18f2523, I would like to be able to turn it, on/off and control it use a single switch. Up to now when using a PIC I have allways either used the weak pull ups in the pic or put external pullups on and used any control switch to ground the pin. Is there a good reason not to use a pull down resistor? I could then use a single pole push switch and a power tranistor 'held' open by the pic. After a long press the pic could turn everything off? My push button could then via a diode be used to turn the transitor on until the pic holds the transistor when its running? Is this the best way to go about it?
Thanks Geoff