Module 5
Module 5
1
Digital Electronics Fundamentals
2
INTRODUCTION
Analog systems process time-varying signals that can take on any value across a
continuous range of voltages (in electrical/electronics systems).
Digital systems process time-varying signals that can take on only one of two
discrete values of voltages (in electrical/electronics systems).
Discrete values are called 1 and 0 (ON and OFF, HIGH and LOW, TRUE and
FALSE, etc.)
3
INTRODUCTION
4
Switching and Logic Levels
S L
OPEN OFF
CLOSED ON
S L
0 0
1 1
A simple binary arrangement
A truth table
5
Common Number systems
6
Common Number systems
Hexa-
Decimal Binary Octal decimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
7
Common Number systems
Hexa-
Decimal Binary Octal decimal
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
8
Conversion Among Bases
• The possibilities:
Decimal Octal
Binary Hexadecimal
9
Example
Base
10
Decimal to Binary
• Technique
– Divide by two, keep track of the remainder
– First remainder is bit 0 (LSB, least-significant bit)
– Second remainder is bit 1 etc
11
Example
12510 = ?2 2 125
2 62 1
2 31 0
15 1
2
7 1
2
2 3 1
2 1 1
0 1
12510 = 11111012
12
Binary to Decimal
Decimal Octal
Hexadecimal Binary
13
Binary to Decimal
By adding together ALL the decimal number values from right to left at the
positions that are represented by a “1” gives
us: (256) + (64) + (32) + (4) + (1) = 35710 or three hundred and fifty seven
as a decimal number.
Then, we can convert binary to decimal by finding the decimal equivalent
of the binary array of digits 1011001012 and expanding the binary digits
into a series with a base of 2giving an equivalent of 357 10 in decimal
14
Hexadecimal to Decimal
Decimal Octal
Binary Hexadecimal
15
Hexadecimal to Decimal
• Technique
– Multiply each bit by 16n, where n is the “weight” of the bit
– The weight is the position of the bit, starting from 0 on the right
– Add the results
16
Example
17
Decimal to Hexadecimal
Decimal Octal
Binary Hexadecimal
18
Decimal to Hexadecimal
• Technique
– Divide by 16
– Keep track of the remainder
19
Example
123410 = ?16
16 1234
16 77 2
16 4 13 = D
0 4
123410 = 4D216
20
3.2 BooleBoolean Algebraan Algebra
21
3.2 Boolean Algebra
22
3.2 Boolean Algebra
23
3.2 Boolean Algebra
24
3.2 Boolean Algebra
25
3.2 Boolean Algebra
• As with common
arithmetic, Boolean
operations have rules of
precedence.
• The NOT operator has
highest priority, followed
by AND and then OR.
• This is how we chose the
(shaded) function
subparts in our table.
26
3.2 Boolean Algebra
27
3.2 Boolean Algebra
28
3.2 Boolean Algebra
29
3.2 Boolean Algebra
30
3.2 Boolean Algebra
31
3.2 Boolean Algebra
32
3.2 Boolean Algebra
33
3.2 Boolean Algebra
34
3.2 Boolean Algebra
35
3.2 Boolean Algebra
36
Truth Tables
37
AND
In order for current to flow, both switches must
be closed
– Logic notation AB = C
(Sometimes AB = C)
A B C
0 0 0
0 1 0
1 0 0
1 1 1
38
OR
Current flows if either switch is closed
– Logic notation A + B = C
A B C
0 0 0
0 1 1
1 0 1
1 1 1
39
Properties of AND and OR
• Commutation
oA+B=B+A
oAB=BA
Same as
Same as
40
Exclusive OR (XOR)
41
NAND (NOT AND)
A B Q
Q A B 0 0 1
0 1 1
1 0 1
1 1 0
42
NOR (NOT OR)
A B Q
Q A B 0 0 1
0 1 0
1 0 0
1 1 0
43
Exclusive NOR
A B Q
Q A B 0 0 1
0 1 0
Equality Detector 1 0 0
1 1 1
44
Full Adder Circuit
45
8:1 MULTIPLEXER
46
3:8 Decoder
• A decoder is a combinational
circuit which is used to change the
code into a set of signals.
• A decoder circuit takes multiple
inputs and gives multiple outputs.
• A decoder circuit takes binary data
of ‘n’ inputs into ‘2^n’ unique
output. In addition to input pins, the
decoder has a enable pin. This
enables the pin when negated,
makes the circuit inactive
47
Clocked SR Flipflop
48
JK Flip flop
49
Shift registers
Serial Input Serial output Shift Register
• 4 bit register
• It needs 4 clock pulses to store 4 bits
Example: Show the states of the 5-bit shift register for the specified
data input and clock waveforms. The registered is initially cleared.
Shift Register
SISO ,SIPO, PISO, PIPO four types of Registers
52
Counters
• Binary Counters are widely used in all digital circuits
• Counter is a circuit that counts the number of occurrence's of binary input(in terms of
positive or negative edge transitions in the case of binary input.
• What is state of counter ?
• Primarily constituted of flip flops which along with combinational elements are used for
generation of control signals.
• Two major categories 1.Asynchronous(Ripple)counters 2. Synchronous counters.
• What do we mean by Asynchronous and Synchronous?
53
Asynchronous Counter
3-bit Asynchronous counter (UP COUNTER)
54
Introduction: Counters
Counters are circuits that cycle through a specified
number of states.
Two types of counters:
synchronous (parallel) counters
asynchronous (ripple) counters
T Q0 T Q1
CLK C C
Q0
FF0 FF1
CLK 1 2 3 4
Q0 Timing diagram
00 01 10 11 00 ...
Q0 0 1 0 1 0
Q1 0 0 1 1 0
T Q0 T Q1 T Q2
CLK C Q0 C Q1 C
CLK 1 2 3 4 5 6 7 8
Q0 0 1 0 1 0 1 0 1 0
Q1 0 0 1 1 0 0 1 1 0
Q2 0 0 0 0 1 1 1 1 0
Recycles back to 0
59
Principle of Mobile communication
• Cellular /Mobile system provides standard telephone operation by full-duplex
Radio
• Provides a wireless connection to Public Switched Telephone Network.
• Basic concept is to divide the given geographical location into small areas known
as CELLS as shown in figure.
• Typical CELL covers several kms and contains a low power transmitter and its own
receiver.
• It is ideally HEXAGON.
• Cellular system consists of 1) mobile stations 2) base stations 3)Mobile Switching
center (MSC) also known as Mobile switching Telephone Office(MTSO)
60
Block Diagram of Cellular Mobile Radio Unit
61
Useful Resources
https://www.youtube.com/watch?v=M0mx8S05v60&list=PLBlnK6fEyqRjMH3mWf6kwqiTbT798eAOm
62