Electronic – How a Cmos not gate works

cmos

This is a very newbie question, but i don't understand it well, and i'm studying a lot! =(

I have a Cmos not gate, and I don't understand well how it works.

Dividing in cases:

case X = 0V: the nMos if off and from pMos to Z arrives High Voltage. Ok.

case X = 5V: here is the problem. pMos is off, and nMos is on. If nMos is on, it should arrive to Z high voltage because it is on!

enter image description here

But this is my mistake, i know.
Can someone please, patiently, explain me this?

Thanks a lot.

Best Answer

No, if the nMos is on, that means it conducts. If it conducts, it is a low resistance (ideally zero). That creates a conductive path to ground, bringing the output to that potential.

Think of the two devices as being resistors controlled by voltage. If the upper resistor is shorted, the output is 5V. If the lower one shorted, the output is at ground.