Eln PPT Module 1
Eln PPT Module 1
OF
ELECTRONICS & COMMUNICATION ENGINEERING
BASIC ELECTRONICS
4
Base-N Number System
• Base N
• N Digits: 0, 1, 2, 3, 4, 5, …, N-1
• Example: 1045N
• Positional Number System
n 1 4 3 2 1 0
• N N N N N N
d n 1 d 4 d3 d 2 d1 d 0
• Digit do is the least significant digit (LSD).
• Digit dn-1 is the most significant digit (MSD).
5
Decimal Number System
• Base 10
• Ten Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
• Example: 104510
• Positional Number System
n 1 4 3 2 1 0
10 10 10 10 10 10
d n 1 d 4 d3 d 2 d1 d 0
• Digit d0 is the least significant digit (LSD).
• Digit dn-1 is the most significant digit (MSD). 6
Binary Number System
• Base 2
• Two Digits: 0, 1
• Example: 10101102
• Positional Number System
n 1 4 3 2 1 0
2 2 2 2 2 2
bn 1 b4 b3 b2 b1 b0
Base
(1 0 0 1 1)
OFF
OFF
ON
ON/OFF
ON
ON
2
Exponent: 24 23 22 21 20
n:
16 0 0 2 1
Calculatio + + + + =
(19)10
10
Hexadecimal system
• Each digit appearing to the left of the decimal point represents a value
between zero and nine times power of ten represented by its position in
the number.
• Digits appearing to the right of the decimal point represent a value
between zero and nine times an increasing negative power of ten.
• Example: the value 725.194 is represented in expansion form as follows:
• 7 * 10^2 + 2 * 10^1 + 5 * 10^0 + 1 * 10^-1 + 9 * 10^-2 + 4 * 10^-3
• =7 * 100 + 2 * 10 + 5 * 1 + 1 * 0.1 + 9 * 0.01 + 4 * 0.001
• =700 + 20 + 5 + 0.1 + 0.09 + 0.004
• =725.194
12
The Binary Number Base Systems
• Most modern computer system using binary logic. The
computer represents values(0,1) using two voltage levels
(usually 0V for logic 0 and either +3.3 V or +5V for logic
1).
• The Binary Number System uses base 2 includes only the
digits 0 and 1
• The weighted values for each position are :
Base
32 16 8 4 2 1 0.5 0.25
13
Number Base Conversion
• Binary to Decimal: multiply each digit by its weighted
position, and add each of the weighted values together
or use expansion formdirectly.
• Example: the binary value 1100 1010 represents :
• 1*2^7 + 1*2^6 + 0*2^5 + 0*2^4 + 1*2^3 + 0*2^2 +
1*2^1 + 0*2^0
• =1 * 128 + 1 * 64 + 0 * 32 + 0 * 16 + 1 * 8 + 0 * 4 + 1 *
2+0*1
• =128 + 64 + 0 + 0 + 8 + 0 + 2 + 0 =
• =202
14
Binary → hex/decimal/octal conversion
–3 1110 0001 +2
• Number wheel –4
1101 0010
+3
1100 0011
Only one zero!
– 5 1011 0100 + 4
MSB is the sign 1010 0101
digit –6 1001 0110 +5
0 ≡ positive –7 1000 0111 +6
1 ≡ negative –8 +7
Twos-complement (con’t)
• Complementing a complement the original
number
• Arithmetic is easy
• Subtraction = negation and addition
• Easy to implement in hardware
Preamble-Logic gates
NOT gate
Preamble-Boolean Algebra
A B A +B AB
0 0 1 1
0 1 0 0
1 0 0 0
1 1 0 0
Universality of NAND and NOR
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Full Adder
• It is a combinational circuit that performs the addition of three bits
(two significant bits and previous carry).
• It consists of three inputs and two outputs, two inputs are the bits to be added, the
third input represents the carry form the previous position.
Truth table for the full adder
Inputs Outputs
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
FULL ADDER USING 2 HALF ADDER
Inputs Outputs
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1