What happens if the switch(sw440) bounces for 20-50 milliseconds? Is that going to cause a problem?Thank you for reply~
My intended sequence of actions is as follows:
1. Push the button (SW440) for a while
2. The Gate of P-CH FET goes Low, SYS_PWR_EN goes High
3. PS_HOLD goes High by MCU
4. SYS_PWR_EN remains High when the switch(sw440) is released.
after that,
I want the MCU to be able to detect when a switch(sw440) is pressed, through the PWR_KEY_DET
If the purpose is to power OFF with a second push of the switch you will need to program a delay on this action when first powered ON.after that,
I want the MCU to be able to detect when a switch(sw440) is pressed, through the PWR_KEY_DET