Hi guys,
Need a simple (really simple) sanity check for my design. I want to design a push button switch that will turn on my application ON after the switch has been pressed for 5 seconds. I thought that this would be easiest with a microprocessor.
I chose an ultra low power PIC, the PIC16F1827. Once a battery is connected to my device, the microprocessor will go through its hardware initialization (setting frequency registers, interrupt registers, etc) and immediately go into sleep mode. When the end user does press the button, the microprocessor will receive an active low signal and immediately wake up. From there, the microprocessor will go into its main routine and start a timer as long as the button is pressed.
Once the timer counts up to 5 seconds (meaning the user held the button for that long), I will send a signal to my devices main microprocessor do fully turn on the device.
A schematic has been attached for review. I know this is a really simple design, but I always learn something new from other peoples viewpoints. Maybe I am making it too complicated? I am mainly looking for suggestions.
Thank you!
Need a simple (really simple) sanity check for my design. I want to design a push button switch that will turn on my application ON after the switch has been pressed for 5 seconds. I thought that this would be easiest with a microprocessor.
I chose an ultra low power PIC, the PIC16F1827. Once a battery is connected to my device, the microprocessor will go through its hardware initialization (setting frequency registers, interrupt registers, etc) and immediately go into sleep mode. When the end user does press the button, the microprocessor will receive an active low signal and immediately wake up. From there, the microprocessor will go into its main routine and start a timer as long as the button is pressed.
Once the timer counts up to 5 seconds (meaning the user held the button for that long), I will send a signal to my devices main microprocessor do fully turn on the device.
A schematic has been attached for review. I know this is a really simple design, but I always learn something new from other peoples viewpoints. Maybe I am making it too complicated? I am mainly looking for suggestions.
Thank you!
Attachments
-
70.2 KB Views: 82