Hi,
If I could refer to your schematic, I guess you have a stable 12v supply so the divider formed by the resistor before the switch and the pull down, coupled with a 1v drop across the diode mean when the switch is pressed 5v is applied to the pic and the reg. Have I got that right? If I overdrive my pic, when the switch is pressed, as well as more than 5v on the I/O which is configured as a input, there would also be more than 5v on the I/O which is configured as a output. (The one holding up the enable of the reg) Would I need to put a doide there to prevent the pic doing anything unexpected? Or does the fact its configured as a output mean its already protected? I couldn't see in the data sheet anything about the max voltage on the enable pin either. Think I will get one and see what happens.
Thanks again for your help. Geoff
If I could refer to your schematic, I guess you have a stable 12v supply so the divider formed by the resistor before the switch and the pull down, coupled with a 1v drop across the diode mean when the switch is pressed 5v is applied to the pic and the reg. Have I got that right? If I overdrive my pic, when the switch is pressed, as well as more than 5v on the I/O which is configured as a input, there would also be more than 5v on the I/O which is configured as a output. (The one holding up the enable of the reg) Would I need to put a doide there to prevent the pic doing anything unexpected? Or does the fact its configured as a output mean its already protected? I couldn't see in the data sheet anything about the max voltage on the enable pin either. Think I will get one and see what happens.
Thanks again for your help. Geoff