Question about MCU and MOSFET

Thread Starter

buzaiandras

Joined Jul 18, 2011
54
Hi,
I have a circuit with a microcontroller powered from an ATX PC power supply.
Using the microcontroller I needed to detect when the power supply is turned on or off so for this I used the PWR_OK line from the ATX supply.
I connected the PWR_OK line to the gate of a MOSFET so when the PWR_OK is high the MOSFET will turn on and will set to low a pin of the MCU (MCU pin is connected through a pull-up resistor to +5v) .
My question is: is there any better way to accomplish this, other than a MOSFET? To verify with a MCU when the PS is on or off?
Thank you,
Buzai
 
Top