Professional Documents
Culture Documents
and Introduction to
Microprocessor
Dr. Hesham H. Aly
Lecture: 1
1
Course Content
• Introduction to digital concepts.
• Number systems, operations, and codes.
• Logic gates.
• Boolean algebra and logic simplification
• Functions of combinational logic.
• Decoders, encoders, MUX, DMUX
• Flip-Flops and related devices / applications
• Counters.
• Shift registers.
• Introduction to Microprocessor
2
Grading System
• 7th week:
• 15 marks: Assignments and exams for Lectures
• 8 marks: Assignments for Tutorial
• 7 marks: Assignments for Lab
• 12th week:
• 10 marks: Assignments and exams for Lectures
• 5 marks: Assignments for Tutorial
• 5 marks: Assignments for Lab
• Pre-Final: 10 Marks – Project
• Final: 40 Marks for Exam
3
References for Students
• Floyd, Thomas L. Digital fundamentals: A systems approach. Pearson
Education Limited, 2014.
• Lectures and Tutorial Notes
• Internet
4
Software/Programing Languages required for
this course
• C Language
• Arduino Language (C/C++)
• Multisim live or Multisim Student version (Pspice_Circuit Simulator)
or LTSpice
5
Content
• Introduction
6
Introduction
7
Introduction
• Electric/Electronic circuits components and structure
• We can consider that circuit design is like the LEGO game. Each Brick is a
device or component. We use them to design a system to do a function. It is
fun.
8
Introduction
9
Introduction
10
Introduction
• Mohamed Mohamed Atalla (August 4, 1924 – December 30,
2009). He was a semiconductor pioneer who made important
contributions to modern electronics. His invention of the
MOSFET (metal–oxide–semiconductor field-effect
transistor, or MOS transistor) in 1959, along with his earlier
surface passivation and thermal oxidation processes,
revolutionized the electronics industry.
• He is also known as the founder of the data security
company Atalla Corporation (now Utimaco Atalla), founded
in 1972.
• He received the Stuart Ballantine Medal (now the Benjamin
Franklin Medal in physics)
Source (Wikipedia)
11
Introduction
• Semiconductor fabrication revolution (IC fabrication)
12
Introduction
• Semiconductor fabrication revolution (IC fabrication)
13
Introduction
• Semiconductor fabrication revolution (IC fabrication)
14
Introduction
• Semiconductors and the new
applications
• Examples:
• Audio Amplifier (Analog)
15
Introduction
• Most natural quantities that we see Temperature
(°F)
point
16
Introduction
• Digital Signal Processor
• Logic Gates
• Microcontroller
• Field Programmable Gate Array (FPGA)
• Digital Signal Processor (DSPP)
• Microprocessor
• …………………………..
17
Introduction
18
Introduction
• Analog and Digital systems
CD drive
19
Introduction
• Binary Digits and Logic Levels
Digital electronics uses circuits that have two states, which
are represented by two different voltage levels called HIGH
and LOW. The voltages represent numbers in the binary
system.
VH(max)
In binary, a single number is HIGH
called a bit (for binary digit). A VH(min)
20
Introduction
• Digital Waveforms
• Waveform: is a graph that present a signal in time domain.
HIGH HIGH
Rising or Falling or Falling or Rising or
leading edge trailing edge leading edge trailing edge
LOW LOW
t0 t1 t0 t1
21
Introduction
• Digital Waveform
Overshoot
Ringing
Droop
90%
Amplitude tW
50%
Pulse width
10%
Ringing
22
Introduction
• Digital Waveform
23
Introduction
• Digital Waveform
Periodic pulse waveforms are composed of pulses that repeats
in a fixed interval called the period. The frequency is the rate
it repeats and is measured in hertz.
1
f T
1
T f
25
Introduction
• Timing Diagram
• A timing diagram is used to show the relationship between two or more
digital waveforms
Clock
26
Number system
27
Number System
• Decimal Numbers
• The position of each digit in a weighted number system is assigned a weight
based on the base or radix of the system. The radix of decimal numbers is ten,
because only ten symbols (0 through 9) are used to represent any number.
28
Number System
30
Number System
• Binary Numbers
• For digital systems, the binary number system is used. Binary has a radix of
two and uses the digits 0 and 1 to represent quantities.
31
Decimal Binary
Number Number
Binary Numbers 0 0000
1 0001
A binary counting sequence for numbers from zero to 2 0010
fifteen is shown. 3 0011
4 0100
Notice the pattern of zeros and ones in each 5 0101
column.
6 0110
Digital counters frequently have this same pattern of 7 0111
digits: 8 1000
9 1001
Counter 0 1 0 1 0 1 0 1 0 1 Decoder
10 1010
0 0 1 1 0 0 1 1 0 0
11 1011
12 1100
0 0 0 0 1 1 1 1 0 0
13 1101
0 0 0 0 0 0 0 0 1 1
14 1110
15 1111
Floyd, Digital Fundamentals, 10th ed © 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Number System
• Binary Conversion
• Binary to Decimal:
• The decimal equivalent of a binary number can be determined by adding the column
values of all of the bits that are 1 and discarding all of the bits that are 0.
Solution: Start by writing the column weights; then add the weights
that correspond to each 1 in the number.
26 25 24 23 22 21 20.
64 32 16 8 4 2 1.
0 1 1 0 0 0 1.
34
Number System
• Binary Conversion
• From Decimal to Binary
You can convert a decimal fraction to binary by repeatedly multiplying the fractional results of successive
multiplications by 2. The carries form the binary number.
Example: Convert the decimal fraction 0.188 to binary by repeatedly multiplying the fractional
results by 2.
0.188 x 2 = 0.376 carry = 0 MSB
0.376 x 2 = 0.752 carry = 0
0.752 x 2 = 1.504 carry = 1
0.504 x 2 = 1.008 carry = 1
0.008 x 2 = 0.016 carry = 0
Answer = .00110 (for five significant digits)
35
Number System
• Binary Conversion
• From Decimal to Binary
• Method 3:
• You can convert decimal to any other base by repeatedly dividing by the base.
Answer: 1 1 0 0 0 1 remainder
0 1 3 6 12 24 49 2
Continue until the Decimal
Quotient base
last quotient is 0 number
36
Assignment
• Write a program in C language to convert binary to decimal and the
opposite by using several methods as shown in this lecture.
37
38
Reference
• Floyd, Thomas L. Digital fundamentals: A systems approach. Pearson
Education Limited, 2014.
• Lectures Slides for Floyd, Thomas L. Digital fundamentals: A systems
approach. Pearson Education Limited, 2014.
39