Add Favorite Set Homepage
Position:Home >> News >> Electron

Products Category

Products Tags

Fmuser Sites

PMOS and NMOS Transistors

Date:2022/1/6 18:23:14 Hits:

Microprocessors are built of transistors. In particular, they are constructed out of MOS transistors. MOS is an acronym for Metal-Oxide Semiconductor. There are two types of MOS transistors: pMOS (positive-MOS) and nMOS (negative-MOS). Every pMOS and nMOS comes equipped with three main components: the gate, the source, and the drain.

To properly understand how a pMOS and an nMOS operate, it is important to first define some terms:

closed-circuit: This means that the electricity is flowing from the gate to the source.

open-circuit: This means the electricity is not flowing from the gate to the source; but rather, electricity is flowing from the gate to the drain.

When an nMOS transistor receives a non-negligible voltage, the connection from the source to the drain acts as a wire. Electricity will flow from the source to the drain uninhibited — this is referred to as a closed-circuit. On the other hand, when an nMOS transistor receives a voltage at around 0 volts, the connection from the source to the drain will be broken and this is referred to as an open-circuit.

Example of an nMOS transistor

The p-type transistor works exactly counter to the n-type transistor. Whereas the nMOS will form a closed-circuit with the source when the voltage is non-negligible, the pMOS will form an open-circuit with the source when the voltage is non-negligible.

Example of a pMOS transistor

As you can see in the image of the pMOS transistor shown above, the only difference between a pMOS transistor and an nMOS transistor is the little circle between the gate and the first bar. This circle inverts the value from the voltage; so, if the gate sends a voltage representative of a value of 1, then the inverter will change the 1 to a 0 and cause the circuit to function accordingly.

Since pMOS and nMOS function in an opposite manner — in a complementary manner — when we combine the both of them into one giant MOS circuit, it is called a cMOS circuit, which stands for complementary metal-oxide semiconductor.

Utilizing the MOS Circuits

We can combine pMOS and nMOS circuits in order to build more complex structures called GATES, more specifically: logic gates. We have already introduced the concept of these logical functions and their associated truth tables in the previous blog, which you can find by clicking here.

We can attach a pMOS transistor that connects to the source and an nMOS transistor that connects to the ground. This will be our first example of a cMOS transistor.

Example of a NOT gate

This cMOS transistor acts in a manner similar to the NOT logical function.

Let’s take a look at the NOT truth table:

NOT truth table

In the NOT truth table, every input value: A is inverted. What happens with the circuit above?

Well, let’s imagine the input is a 0.

The 0 comes in and goes both up and down the wire to both the pMOS (top) and the nMOS (bottom). When the value 0 reaches the pMOS, it gets inverted to a 1; so, the connection to the source is closed. This will produce a logical value of 1 so long as the connection to the ground (drain) is not also closed. Well, since the transistors are complementary, we know that the nMOS transistor won’t invert the value; so, it takes the value 0 as is and will — therefore — create an open circuit to the ground (drain). Thus, a logical value of 1 is produced for the gate.

An IN value of 0 produces an OUT value of 1

What happens if a 1 is the IN value? Well, following the same steps as above, the value 1 gets sent to both the pMOS and the nMOS. When the value is received by the pMOS, the value gets inverted to a 0; thus, the connection to the SOURCE is open. When the value is received by the nMOS, the value does not get inverted; thus, the value remains a 1. When a value of 1 is received by the nMOS, the connection is closed; so, the connection to the ground is closed. This will produce a logical value of 0.

An IN value of 1 produces an OUT value of 0.

Putting the two sets of input/output together yields:

The Truth Table for a NOT gate.

It is quite easy to see that this truth table is the exact same as that which the logical function NOT produces. Thus, this is known as a NOT gate.

Can we use these two simple transistors to make more complicated structures? Absolutely! Next, we will build a NOR gate and an OR gate.

An example of a NOR gate

This circuit uses two pMOS transistors at the top and two nMOS transistors at the bottom. Again, let’s look at the input to the gate to see how it behaves.

When A is 0 and B is 0, this gate will invert both the values to a 1 when they reach the pMOS transistors; however, the nMOS transistors will both maintain the value of 0. This will lead the gate to produce a value of 1.

When A is 0 and B is 1, this gate will invert both the values when they reach the pMOS transistors; so, A will change to 1 and B will change to 0. This will not lead to the source; since both of the transistors require a closed-circuit in order to connect the input to the source. The nMOS transistors do not invert the values; so, the nMOS associated with A will produce a 0, and the nMOS associated with B will produce a 1; thus, the nMOS associated with B will produce a closed circuit to the ground. This will lead the gate to produce a value of 0.

When A is 1 and B is 0, this gate will invert both the values when they reach the pMOS transistors; so, A will change to 0and B will change to 1. This will not lead to the source; since both of the transistors require a closed-circuit in order to connect the input to the source. The nMOS transistors do not invert the values; so, the nMOS associated with A will produce a 1, and the nMOS associated with B will produce a 0; thus, the nMOS associated with Awill produce a closed circuit to the ground. This will lead the gate to produce a value of 0.

When A is 1 and B is 1, this gate will invert both the values when they reach the pMOS transistors; so, A will change to 0 and B will change to 0. This will not lead to source; since both of the transistors require a closed-circuit in order to connect the input to the source. The nMOS transistors do not invert the values; so, the nMOS associated with A will produce a 1, and the nMOS associated with B will produce a 1; thus, the nMOS associated with A and the nMOS associated with B will produce a closed circuit to the ground. This will lead the gate to produce a value of 0.

Thus, the gate’s truth table is as follows:

The output of the NOR gate.

Meanwhile, the NOR logical function’s truth table is as follows:

The output of the NOR Logical Function.

Thus, we have confirmed that this gate is a NOR gate because it shares its truth table with the NOR logical function.

Now, we will put both of the gates, that we have created thus far, together in order to produce an OR gate. Remember, NOR stands for NOT OR; so, if we invert an already inverted gate, we will get back the original. Let’s put this to the test in order to see it in action.

Example of an OR gate

What we have done here is we’ve taken the NOR gate from before and applied a NOT gate to the output. As we have shown above, the NOT gate will take a value of 1 and output a 0, and the NOT gate will take a value of 0 and output a 1.

This will take the values of the NOR gate and convert all of the 0s to 1s and 1s to 0s. Thus, the truth table will be as follows:

Truth Table of a NOR gate and an OR gate

If you would like more practice testing these gates, feel free to try out the above values for yourself and see that the gate produces equivalent results!

Example of a NAND gate

I claim this is a NAND gate, but let’s test this gate’s truth table to determine if it really is a NAND gate.

When A is 0 and B is 0, A’s pMOS will produce a 1, and A’s nMOS will produce a 0; thus, this gate will produce a logical 1 since it is connected to the source with a closed circuit and disconnected from the ground with an open circuit.

When A is 0 and B is 1, A’s pMOS will produce a 1, and A’s nMOS will produce a 0; thus, this gate will produce a logical 1 since it is connected to the source with a closed circuit and disconnected from the ground with an open circuit.

When A is 1 and B is 0, B’s pMOS will produce a 1, and B’s nMOS will produce a 0; thus, this gate will produce a logical 1 since it is connected to the source with a closed circuit and disconnected from the ground with an open circuit.

When A is 1 and B is 1, A’s pMOS will produce a 0, and A’s nMOS will produce a 1; so, we must check B’s pMOS and nMOS, as well. B’s pMOS will produce a 0, and B’s nMOS will produce a 1; thus, this gate will produce a logical 0 since it is disconnected from the source with an open circuit and connected to the ground with a closed circuit.

The truth table is as follows:

The above gate’s truth table.

Meanwhile, the NAND logical function’s truth table is as follows:

Thus, we have verified that this is, indeed, a NAND gate.

Now, how do we build an AND gate? Well, we will build an AND gate the exact same way we built an OR gate from a NOR gate! We will attach an inverter!

Example of an AND gate

Since all we have done is applied a NOT function to a NAND gate’s output, the truth table will look like this:

Complete Truth Table of AND and NAND

Again, please verify to make sure that what I am telling you is the truth.

Today, we have covered what are pMOS and nMOS transistors as well as how to use them to build more complex structures! I hope you found this blog informative. If you would like to read my previous blogs, you will find the list below.

Leave a message 

Name *
Email *
Phone
Address
Code See the verification code? Click refresh!
Message
 

Message List

Comments Loading...
Home| About Us| Products| News| Download| Support| Feedback| Contact Us| Service

Contact: Zoey Zhang    Web: www.fmuser.net

Whatsapp/Wechat: +86 183 1924 4009

Skype: tomleequan     Email: [email protected] 

Facebook: FMUSERBROADCAST     Youtube: FMUSER ZOEY

Address in English: Room305, HuiLanGe, No.273 HuangPu Road West, TianHe District., GuangZhou, China, 510620    Address in Chinese: 广州市天河区黄埔大道西273号惠兰阁305(3E)