0% found this document useful (0 votes)
57 views5 pages

Activity - 1 - DECODER, DEMULTIPLEXER AND MULTIPLEXER

The document contains worksheets on logic gates, binary to denary conversions, denary to binary conversions, and binary addition. It provides explanations, examples, and exercises for each topic, including truth tables for logic gates and methods for converting between binary and denary systems. Additionally, it covers binary addition rules and encourages practice with various exercises.

Uploaded by

Adrian Luna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views5 pages

Activity - 1 - DECODER, DEMULTIPLEXER AND MULTIPLEXER

The document contains worksheets on logic gates, binary to denary conversions, denary to binary conversions, and binary addition. It provides explanations, examples, and exercises for each topic, including truth tables for logic gates and methods for converting between binary and denary systems. Additionally, it covers binary addition rules and encourages practice with various exercises.

Uploaded by

Adrian Luna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

ROLAND JAY FONTANILLA

Logic Gates Worksheet – Truth Tables


Label these basic logic gates and fill in their truth tables.

OR gate AND gate NOT gate

This gate takes two inputs This gate takes takes two This gate takes one input
and gives an output if either inputs and gives an output and gives an output that is
one input or the other input only if both inputs are true the opposite value to the
or both inputs are true input

Input A Input B Output Input A Input B Output Input Output

0 0 0 0 0 0 0 1
0 1 1 0 1 0 1 0
1 0 1
1 1 1

For this combination of two logic gates, fill in the truth table. Point C is used to helpyou
work out the output.

Output
A C

Input A Input B C Output


B
0 0 1 0
0 1 1 1
1 0 0 0
1 1 0 0
Draw your own combination of two logic gates and a completed truth table. Use thelogic
lab at https://circuitverse.org/simulator to test your predictions.

A OUTPUT

B
C Input A Input B C Output

0 0 1 0
0 1 0 0
1 0 1 1
1 1 0 0

Draw your own combination of logic gates that will give this truth table output. Usethe
logic lab at https://circuitverse.org/simulator to test your predictions.

OUTPUT

Input A Input B C Output

0 0 1 1
0 1 0 1
1 0 1 1
1 1 0 0
Binary → Denary Conversions Worksheet
● To convert from binary to denary we just need to be able to add....
● Start by writing the column names above the binary digits remembering they startat
one on the right hand side and double as you move to the left.
● Then add up the values of the columns with a 1.
64
For example: 32
8
128 64 32 16 8 4 2 1 4
0 1 1 0 1 1 0 1 +1
109
Now it's your turn:

128 64 32 16 8 4 2 1
198
1 1 0 0 0 1 1 0

128 64 32 16 8 4 2 1
58
0 0 1 1 1 0 1 0

128 64 32 16 8 4 2 1
1 0 0 1 1 0 1 1 155

128 64 32 16 8 4 2 1
182
1 0 1 1 0 1 1 0

128 64 32 16 8 4 2 1
37
0 0 1 0 0 1 0 1
Denary → Binary Conversions Worksheet
● To convert from denary to binary we just need to be able to subtract....
● Start by writing the column names above where your binary digits will go,
remembering they start at one on the right hand side and double as you move to
the left.
● Then start from the left and see if you can take the value above the column away
from your denary number. If you can, enter a 1 in that column and move right.

For example: Starting with a denary value of 209

128 64 32 16 8 4 2 1
1 1 0 1 0 0 0 1
209 81 17 1
-128 -64 -16 -1
81 17 1 0
Now it's your turn: Convert 164 to binary
128 64 32 16 8 4 2 1
1 0 1 0 0 1 0 0
Convert 243 to binary

128 64 32 16 8 4 2 1
1 1 1 1 0 0 1 1
Convert 71 to binary

128 64 32 16 8 4 2 1
0 1 0 0 0 1 1 1
Convert 255 to binary

128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1
Binary Addition Worksheet

● To add binary we just need to remember a few rules:


● 0+0=0
● 0 + 1 = 1 or 1 + 0 = 1
● 1 + 1 = 10 (0 carry 1 left) 1 + 1 + 1 = 11 (1 and carry 1 left)

For example:

00 01 01 01 0001 0101
+01 +00 +01 +10 +0101 +0111
01 01 10 11 0110 1100
1 1 1 1 1
Now it's your turn (don't forget, you can check by converting to denary):

10 01 0101 1001 1101


+01 +10 +0101 +0110 +0001
00 00 1010 1111 1 110
1 1 1
In computing we are often interested in 8 bit numbers – we call these a byte

10010010 10010011 10000010


+01100010 +01100010 +01110110
1 1 1 1 01 00 111101 01 1 1 1 11 000
1 1 1 1
Now try these. What do you notice?

11010011 10100010
+01100010 +01110110
10 0 1 1 0 1 01 100011000
1 1 1 1 1 1 1 1

The problem above is called an Addition of binary . It means that there are

more Bit than can be stored in a byte, or eight bit number.

You might also like