gauravkothari23
Advanced Member level 2
Hi all...
i have a small issue, have attached a circuit diagram.
in my circuit diagram, i have attached an MOSFET to turn on and off the 89S52 controller.
as per the circuit, when i press the button the MOSFET gets on and supplies the current to the controller and as the controller gets on, on the very first line of the my code, i have pulled the pin P1.0 high, which will keep the MOSFET on.
i have also tried using the hardware, but what happen is, untill and unless and i keep the button pressed the controller stays ON, and as soon as i release the button the controller gets OFF...
i have attached a LED to one of my pin to check the status of my controller.
can anybody please explain, can this of circuit be used to on and off the controller.
i cant use any rocker or a toggle switch to make the controller ON and OFF....
i want the controller to get auto OFF, so when i want my controller to get OFF, i just pull down the pin.
can anybody please help me to make this thing possible, if possible.
i have a small issue, have attached a circuit diagram.
in my circuit diagram, i have attached an MOSFET to turn on and off the 89S52 controller.
as per the circuit, when i press the button the MOSFET gets on and supplies the current to the controller and as the controller gets on, on the very first line of the my code, i have pulled the pin P1.0 high, which will keep the MOSFET on.
i have also tried using the hardware, but what happen is, untill and unless and i keep the button pressed the controller stays ON, and as soon as i release the button the controller gets OFF...
i have attached a LED to one of my pin to check the status of my controller.
can anybody please explain, can this of circuit be used to on and off the controller.
i cant use any rocker or a toggle switch to make the controller ON and OFF....
i want the controller to get auto OFF, so when i want my controller to get OFF, i just pull down the pin.
can anybody please help me to make this thing possible, if possible.