Acidmods

AcidMods Resources ----- ( These are helpful tools for modding ) => Electronics Projects => General modding and electronics => Topic started by: frenulem - No.5417 on November 27, 2010, 02:20:12 PM

Title: The Universal Logic Gate
Post by: frenulem - No.5417 on November 27, 2010, 02:20:12 PM
 Logic Gates, Please read before continuing! (https://www.acidmods.com/forum/index.php/topic,37985.0.html)

NANDLogic gates are known widely known as the universal building block or universal logic gate, this is because you can build every type of logic gate with just this one gate wired in different ways.

The advantages of using the NAND gate is that logic gates come in chips, generally 4 gates to a chip and all containing the same gate. so using NAND gives you these advantages:
            1. Less cost
            2. Smaller PCB
            3. No need to keep as many chips
            4. Less soldering

The disadvantage of not using NAND is that you have to many free spaces for example 4 chips each having 4 gates to only use one of each gate in a chip, so using 4 Gates out of a possible 16 this means:
            1.Costs are grater than need be
            2.Your PCB Layout will be more complicated and large
            3.Spend more time than needed designing your PCB


Not to much info on the gates themselves because that's all explained in the link at the top of the post.

NAND Truth table and symbol
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNAND.png&hash=9dc96aaba590b2c121568c38a1750adb83f20c13)

 The NAND truth table
A   B | Q
0   0 | 1
0   1 | 1
1   0 | 1
1   1 | 0


The six possible gates to make are:

            1. NOT
            2. AND
            3. OR
            4. NOR
            5. XOR or  EXCLUSIVE OR
            6. XNOR or EXCLUSIVE NOR

NOT
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDNOT.jpg&hash=f026598ebfd3842817caf9112f4ba54d56cd9ba7)

Truth table
A | Q
0 | 1
1 | 0

Simple NOT gate, inverts the input, made by joining the inputs together



AND
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDAND.jpg&hash=ef3a331fb174b162987fc77ffc7e789fd47d0984)
Truth Table
A   B   C | Q
0   0   1 | 0
0   1   1 | 0
1   0   1 | 0
1   1   0 | 1

A NAND and an NOT linked together, easy.



OR
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDOR.jpg&hash=74fda600db3226517d797ea93a2bec93237e30a8)

Truth tables
A   B  C    D | Q
0   0   1    1 | 0
0   1   1    0 | 1
1   0   0    1 | 1
1   1   0    0 | 1
A NAND and a NOT gate joined together like ebony and ivory.



NOR
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDNOR.jpg&hash=c5d852d31c8ca6f258109b03530c845521d319a9)

Truth table
A   B   C  D   E | Q
0   0   1   1   0 | 1
0   1   1   0   1 | 0
1   0   0   1   1 | 0
1   1   0   0   1 | 0




XOR or EXCLUSIVE OR
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDXOR.jpg&hash=f2bf47f13ac58c931bdbc6c750900adcb173bd1e)

Truth table
A   B   C  D   E | Q
0   0   1   1   1 | 0
0   1   1   0   0 | 1
1   0   0   1   1 | 1
1   1   0   0   1 | 0



XNOR or EXCLUSIVE NOR
(https://acidmods.com/forum/proxy.php?request=http%3A%2F%2Fi1203.photobucket.com%2Falbums%2Fbb384%2FRyan_Mangan%2FNANDXNOR.jpg&hash=77cc0cb533795c837853515e7299ba67c7962d9d)
Truth table
A   B   C  D   E  F | Q
0   0   1   1   1  0 | 1
0   1   1   1   1  0 | 0
1   0   1   1   1  0 | 0
1   1   0   0   0  1 | 1


Images to come as soon as I can get mahself a Nand chip :)
Title: Re: NAND Logic
Post by: HiddenVenom on December 06, 2010, 04:33:52 AM
Yeah, the XNOR works.
SimplePortal 2.3.5 © 2008-2012, SimplePortal