# Logic gates: NOT gate

nGX
From what I learned at school today..
Afaik NOT gate acts as an inverter, right?
Which means if input is 0, output will be 1 and vice versa.
My question is, if input is 0 then output will be 1. From where does the gate gets its current flow? Since input is 0.
Or, it cannot be used like that? That is must be connected with AND or OR gate.

Btw, just registered. Hope to learn a lot from here.

Last edited:

## Answers and Replies

DragonPetter
Afaik NOT gate acts as an inverter, right?
Which means if input is 0, output will be 1 and vice versa.
My question is, if input is 0 then output will be 1. From where does the gate gets its current flow? Since input is 0.
Or, it cannot be used like that? That is must be connected with AND or OR gate.

Btw, just registered. Hope to learn a lot from here.

The absence of current can be assigned the 0 meaning. 1 and 0 are mathematical abstracts, and the physical distinction between the 2 can manifest in many ways such as voltage, frequency, phase, current, position, etc.

The specific answer to your question depends on the technology and components used. Usually logic gates, including inverters, have an independent power source, and the current comes from that power source. The high and low can be given the distinction as "signals" that draw their current or voltage from a power source.

voko
Welcome to PhF!

Every kind of gate has power input in addition to the signal input. Even AND gates, which one might think could just forward their input signals. This is done because the energy loss in modern devices at their operating frequencies is enormous.

nGX
The absence of current can be assigned the 0 meaning. 1 and 0 are mathematical abstracts, and the physical distinction between the 2 can manifest in many ways such as voltage, frequency, phase, current, position, etc.

The specific answer to your question depends on the technology and components used. Usually logic gates, including inverters, have an independent power source, and the current comes from that power source. The high and low can be given the distinction as "signals" that draw their current or voltage from a power source.

Thanks for the reply. I still don't get it. Ok, let's say I'm using logic gates. What is the independent power source? A capacitor? Uh, I'm really slow. Maybe you can explain in diagrams. I'm sorry for asking too much but I really want to know.

voko
Every gate has a power line leading to the system's power supply.

DragonPetter
Thanks for the reply. I still don't get it. Ok, let's say I'm using logic gates. What is the independent power source? A capacitor? Uh, I'm really slow. Maybe you can explain in diagrams. I'm sorry for asking too much but I really want to know.

The independent power source could be a battery or voltage from a regulator. The power supply in a PC provides a constant set of DC voltages that power all the logic in your computer.

I attached one of the most simple ways to make an inverter. The inside of an inverter gate might look like this, but this is more simplified.

V2 is the independent voltage source. It is a constant 15V and can provide as much current as the circuit tries to pull from it.

The input is a digital pulse high-low-high-low-etc. and because the switch is a MOSFET, it requires little charge to turn on (so no current goes into it). When the MOSFET is off, the current through the resistor R1 has no where to go, and so it has no voltage drop across it, so the V2 voltage will be present at VOUT. When the switch is turned on, current can flow through R1 to ground, and so the voltage is dropped across R1, and VOUT is switched to ground.

#### Attachments

• inverter.png
13.2 KB · Views: 521
Mentor
A power supply, connected to the NOT gate. A real NOT gate has 4 connections:

2 you care about in circuit designs:
- data input
- data output

And 2 you need for operation:
- "plus" and "minus", connected to a power supply

Here is an example. A and Q are the input/output, and Vdd and Vss are powering the thing.

nGX
The independent power source could be a battery or voltage from a regulator. The power supply in a PC provides a constant set of DC voltages that power all the logic in your computer.

I attached one of the most simple ways to make an inverter. The inside of an inverter gate might look like this, but this is more simplified.

V2 is the independent voltage source. It is a constant 15V and can provide as much current as the circuit tries to pull from it.

The input is a digital pulse high-low-high-low-etc. and because the switch is a MOSFET, it requires little charge to turn on (so no current goes into it). When the MOSFET is off, the current through the resistor R1 has no where to go, and so it has no voltage drop across it, so the V2 voltage will be present at VOUT. When the switch is turned on, current can flow through R1 to ground, and so the voltage is dropped across R1, and VOUT is switched to ground.
I think I got it or maybe not. The diagrams we learn in school are too simple. We don't have any power source connected to the gates(except for the input) maybe that's what made me thought of this at the first place. But looking at the diagram have made that realize that it is more than just what we learn in school, far more complex but.. somewhat interesting. It's kinda late now and I'm tired. I'll try to understand again tomorrow. But so far, I think I got an idea on how it works. (I guess)

Edit:

Here's a diagram:

#### Attachments

• Simple NOT gate.png
4.8 KB · Views: 538
Last edited:
DragonPetter
I think I got it or maybe not. The diagrams we learn in school are too simple. We don't have any power source connected to the gates(except for the input) maybe that's what made me thought of this at the first place. But looking at the diagram have made that realize that it is more than just what we learn in school, far more complex but.. somewhat interesting. It's kinda late now and I'm tired. I'll try to understand again tomorrow. But so far, I think I got an idea on how it works. (I guess)

Edit:

Here's a diagram:

That is a more abstracted drawing that you attached. It is not the detailed hardware implementation, but rather a logic schematic. Similar to drawing a voltage source without showing how that voltage source really works.

nGX
That is a more abstracted drawing that you attached. It is not the detailed hardware implementation, but rather a logic schematic. Similar to drawing a voltage source without showing how that voltage source really works.
Heh. I guess I have not reach that level yet. But anyway, thanks so much for your replies and patience with my questions and requests. Thanks. Things work more complicated than I ever thought of.

salzrah
nGX , when you take your first computer engineering class you will learn that many schematics theoretically work but cannot be implemented in real life situations. You are correct, this type of inverter is not normally used in circuits but rather an input of 1 and output of 0 inverters are used because they are more practical. The opposite situation would require the inverter to have its own independent power supply or be connected to one connected to the whole which isn't really practical.

Mentor
@salzrah: Inverters with 0 as the only possible output look a bit... impractical. They are not inverters, they are just constant 0.

nGX
nGX , when you take your first computer engineering class you will learn that many schematics theoretically work but cannot be implemented in real life situations. You are correct, this type of inverter is not normally used in circuits but rather an input of 1 and output of 0 inverters are used because they are more practical. The opposite situation would require the inverter to have its own independent power supply or be connected to one connected to the whole which isn't really practical.

Actually I'm still in high school and I'm not taking computer engineering or electronics engineering courses in the future but looking forward to software engineering. Not really interested in Physics but this topic got me a bit interested into it. Well, this and few other topics such as light, waves, radioactivity, forces (these are one of the of the chapters we learn in high school).

And, thanks for the replies. Everyone is being so friendly and informative so far. Thanks!

Staff Emeritus