CHAPTER 1 - Basic
CHAPTER 1 - Basic
2
Bridging the Digital Device
1623 ANALOG TO DIGITAL
3 21 935 3 16 63
6 935272
CONVERSION
534 7 75 935 93 5
275
1 534
23412 37
45 1 13
7 2
145
34
0
1 1 01 00
0 0
100111
0 01
0
1 010
0100
1
01
1101
010 101 10 0
0010
1 1001 10
0
1 1 10
01 00
111
0010
1101 0 010 011 101
1 011011
011 11 0010110010
DIGITAL TO ANALOG 0 011
CONVERSION 011 01
1 0 1
01 0 1 10 1
0 1 1
1
10 0001 10
0
1 00 1 0
0 1 01 1
0 1 01 10 11 01011
1 1011 00 0
00 1 00
3
Numbering System
4
Decimal Conversion
Decimal
Binary Hexadecimal
Octal
Technique
- Divide by base, keep track of the remainder
- Bottom top answer
5
Example
12510 = ?2 2 125
62 1
2
2 31 0
15 1
2
7 1
2
2 3 1
2 1 1
0 1
12510 = 11111012
6
Example
123410 = ?8
8 1234
154 2
8
19 2
8
2 3
8
0 2
123410 = 23228
7
Example
123410 = ?16
16 1234
16 77 2
16 4 13 = D
0 4
123410 = 4D216
8
Binary Conversion
Binary
1
2 3
Decimal Hexadecimal
Octal
9
Binary Conversion
• Technique 1
Sum of Power of 2 ^N-1
• Technique 2
Group in 3 bit starting from the most right (LSB)
• Technique 3
Group in 4 bit starting from the most right (LSB)
Example
10110101112 = ?10
11
Example
10110101112 = ?8
1 3 2 7
10110101112 = 13278
12
Example
10110101112 = ?16
10 1101 0111
2 13 7
10110101112 = 1D716
13
Fractions
• Binary to decimal
10.1011 => 1 x 2-4 = 0.0625
1 x 2-3 = 0.125
0 x 2-2 = 0.0
1 x 2-1 = 0.5
0 x 20 = 0.0
1 x 21 = 2.0
2.6875
14
Fractions
• Decimal to binary x
.14579
2
3.14579 0.29158
x 2
0.58316
x 2
1.16632
x 2
0.33264
x 2
0.66528
x 2
1.33056
11.001001... etc.
15
Logic Gate
• A Logic Gate is an electronic circuit capable of making logical
decisions.
• A basic building of a digital system
• It has one output and one or more inputs.
• 0 and 1.
• Divided into 2 groups:
1. Fundamental Gates to perform basic mathematical operation ( x, +,
invert)
2. Derived Gates to perform more complicated logic operation
The OR Gate Y=A+B
05/17/2025 60
Designing Combinational Logic Circuits
Design a logic circuit that has three inputs, A, B, and C,
whose output will be HIGH only when a majority of the
inputs are HIGH.
05/17/2025 61
Step 1: Problem Statement
• Understand what is the design requirements
• Identify the inputs and the outputs
05/17/2025 62
Step 2: Truth Table Construction
• Define the logic combination
logic combination = 2 POWER OF N
where N = no of input
Here;
N=3
logic combination = 2 POWER OF 3
=8
05/17/2025 63
05/17/2025 64
Step 3: Switching Equations
• Consider only for the HIGH output
• Based on the INPUT
When 0 = bar / NOT
When 1 = normal
05/17/2025 65
Step 4: Equation Simplification
• To minimize the equation (reduce the no of
gate) and maximize its performance.
• Using graphical approach (Karnaugh Map @ K-
Map method)
-- Mapping
-- Looping
05/17/2025 66
Step 5: Logic Circuit Drawn
• Based on the simplest equation obtain from
Step 4
05/17/2025 67
Step 6: Circuit Built
• Construct the circuit based on Step 4 on the
breadboard
• Used suitable gate and proper practical approach
• Prepare the data sheet for each gate used to ensure
the pin configuration (input, output,Vcc and GND)
Ex:
7404 – AND gate
7408 – NOT gate
7432 – OR gate
05/17/2025 68
Wiring Diagram
VDD
7404
7408 7432
A
B
C F
05/17/2025 69
Step 7: Circuit Testing
• Check and verify the truth table
• Does the practical output match with the
theoretical as in Step 2
05/17/2025 70
Example (revision)
• Proof that by using Truth Table
UNIVERSAL GATE