Google+

# What is digital logic and what is a digital AND gate?

Maybe you wonder what is digital logic or a digital AND gate. Another name for digital logic is binary or boolean logic. A digital AND gate is a digital circuit performing a simple electronic function.

Most electronic devices like a calculator, television, a computer or mp3-player contain chips (also called integrated circuits or i.c.). In these chips fundamental digital elements (like AND-, NAND- and OR-gates) work together in order to accomplish certain functions, like calculating a multiplication, changing a television channel, etc. These gates are made of silicium. Silicium is a commonly used semi-conductor for making chips.

The way that certain digital elements work is descibed as digital logic. A digital AND gate works differently from a digital NAND gate for example. Digital logic is based on two states: 0 and 1. The 0-state is also referred as the 'off-state' and the 1-state is also referred as the 'on-state'. Normally, the 0-state corresponds to a signal of 0 volts and the 1-state commonly corresponds to a signal of 5 volts.

Digital electronic devices make use of the binary number system, because these devices can't work with decimal numbers like humans do.

In the picture below you see the symbols and names of the most common digital gates. All gates in this example (except the buffer- and not-gates) have two inputs on the left and one output at the right of the symbol. The buffer- and not-gates only have one input and one output. How the output of the gates respond to the signals at its inputs is written below the picture.

By the way, also gates exists with more than two inputs.

For example, both inputs of the digital AND gate must have a 1 at both of its inputs and only then the output will become 1. In all other cases the output of the digital AND gate remains 0.

A BUFFER-gate only amplifies its input signal, so when there's a 0 on its input, it's output also remains 0, likewise when there's a 1 at its input it remains 1 at its output. The NOT-gate inverts the signal at its input, so a 0 on its input becomes a 1 on its output and a 1 on its input becomes a 0 on its output.

AND-gate
Input1 Input2 Output
0 0 0
0 1 0
1 0 0
1 1 1
NAND-gate
Input1 Input2 Output
0 0 1
0 1 1
1 0 1
1 1 0
OR-gate
Input1 Input2 Output
0 0 0
0 1 1
1 0 1
1 1 1
NOR-gate
Input1 Input2 Output
0 0 1
0 1 0
1 0 0
1 1 0
XOR-gate
Input1 Input2 Output
0 0 0
0 1 1
1 0 1
1 1 0
XNOR-gate
Input1 Input2 Output
0 0 1
0 1 0
1 0 0
1 1 1

By the way, in case you like to make electronic circuit drawings you can install TinyCAD on your computer. This is an open source (free) circuit drawing tool. Above picture was also made using this tool.

In case you want to learn about digital logic for your study or for fun, it's a great way to get started with this simulator or read this tutorial.

The simulator can be downloaded from the following site:

In the next video you learn how to build, simulate and test your first digital logic circuit using Logisim. In the video is talked about a truth-table. This is simply a table in which is defined what the states (or voltage) of the inputs is and how the circuit responds to these input signal by setting the output on the desired state.

In the video an example is given for a circuit with 3 input signals and 1 output signal.

Let's make a binary adder

Now that you know some more, we can make a simple binary adder. In the picture below you see how this is accomplished in Logisim. We have put an XOR-gate (exclusive or) and a AND gate and created two inputs and two outputs. Probably by now you already know that an XOR-gate produces a 1 at it's output when only one of the inputs is 1, in all other cases it's output is 0. The AND-gate only produces a 1 at it's output when all it's inputs are 1.

Adding two single digit binary numbers is a very simple arithmetic operation:

0 + 0 → 0
0 + 1 → 1
1 + 0 → 1
1 + 1 → 0 and a carry bit of 1. In fact the result of this addition is 10 in the binary number system.

By the way, binary 10 is also the same as the number 2 in our decimal number system.

When you run the simulation by pressing the finger symbol in Logisim, you will see that when you click on the inputs of the adder that the sum and carry outputs change. When both inputs are 1, you will see that the sum output is 0 and the carry output is 1. In case you don't understand what a carry bit is or want to know more about binary numbers, you will learn more here.

Please refer to the help of Logisim for more information about using Logisim and understanding digital logic. Digital logic is fun. Once you understand the basics you are well on your way making your first real electronic digital device without using this simulator. It's not that hard once you know the basics. Off course then you need to have the right power supply, the right chips, a soldering station, a circuit board and maybe some LED's (light emitting diodes), so you can test your device.

# MMLogic

Our daugther recently started learning digital logic at school making use of a digital logic learning tool called MMLogic (Multimedia Logic). This is also a great tool to start learning how digital logic works. Below video's explain how you can get started with it.

 YouTubeGet With YouTubeGet you can easily download YouTube videos and convert them to MP3, 3GP, MP4, AVI, WMV, MOV, etc. A Most Easy-to-use software designed to make quick and easy work of downloading and converting videos from YouTube. Offering a multitude of methods to acquire the videos, this application has all the power you need while still remaining small and easy to use. After downloading videos it will auto convert FLV files to MP3, MP4, 3GP, AVI, WMV, MOV etc. Soon, you can see Youtube videos on your iPod, iPhone, PSP or mobile phone! Click on the image on the right for a free trial.

In case you have questions about what is digital logic or processor programming with assembly language or using the simulators or compiler, please contact me.

What is digital logic • Digital AND gate