It's a pretty simple circuit. I'm measuring a voltage with an ADC, which has a max input of 5V. The signal I'm measuring goes to the drain of a F12N10L MOSFET. The MOSFET's source is connected to ground, and it's gate to the output of the comparator.
The comparator will have the reference voltage (5V from a regulator) and the signal I'm measuring as inputs. The idea is, than when that when the signal is bigger than the reference voltage, the MOSFET turns on and the ADC will read ground.
The MOSFET works fine with 5V on gate (10V max limit). My supply on the whole circuit will be 9V, which is why I think I should use a comparator with 5V output. Since I am a newbie, I don't know if there is such a thing (comparator that is powered by 9V but has 5V output).
The question is, what comparator should I use? What is commonly used? Are there any problems with my circuit?