Question about MCU and MOSFET

Discussion in 'General Electronics Chat' started by buzaiandras, Feb 25, 2012.

  1. buzaiandras

    Thread Starter Member

    Jul 18, 2011
    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,
  2. Markd77

    Senior Member

    Sep 7, 2009