0% found this document useful (0 votes)
6 views44 pages

Ch1 Introduction

Uploaded by

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

Ch1 Introduction

Uploaded by

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

Ch

College of Electronic Technology


Tripoli

CE223:
CE223:Microcomputer
MicrocomputerSystems
Systems
Fall 2016 Fall 2023/2024

Spring 2023 Abdulbaset Ashour P1


Ch
General Guidelines
 Lecturer: Eng. Abdulbaset M. Ashour
 M.Sc. Robotics.
 Telegram Groups:
 CE223-Fall2024 Control G1
 CE223-Fall 2024 Communications G1
 CE223-Fall 2024 Communications G2
 Course period: 14 weeks.
 Schedule:
 Time: Sun 10:00 am – 01:00 pm / 02:00 pm – 05:00pm .
 Room: 322 / ‫معمل الشبكات‬

 Time: Tue 08:00 am – 11:00 am .
 Room: 322 / E1

 Time: Wed 11:00 am – 05:00 pm .


 Room: 220

Spring 2023 Abdulbaset Ashour P2


Ch
General Guidelines

 Assessment:
 40% course work.
 20% practical exam.
 40% final exam.
 Course work:
 Attendance.
 Class activities.
 Assignments, quiz's.
 Labs and Midterm project.
 Midterm test(s).

Spring 2023 Abdulbaset Ashour P3


Ch
General Guidelines

 Text Books:
1. Microprocessors and Interfacing: Programming and
Hardware. Douglas V. Hall, 2nd edition 1991.
2. The Intel Microprocessors Architecture, Programming
and Interfacing. Barry B. Brey, 8 th edition 2009.

Spring 2023 Abdulbaset Ashour P4


Ch
Course Objectives

 To introduce students to the low level applications of computer


systems.

 To familiarize students with assembly programming language.

 To gain the knowledge of microprocessors technology.

 To Familiarize students with CPU interfaces.

Spring 2023 Abdulbaset Ashour P5


Ch
Course Outline

 Chapter 1: Introduction to Microprocessors.


 Chapter 2: 8086 Microprocessor architecture.
 Chapter 3: Introduction to Assembly language.
 Chapter 4: 8086 System timing.
 Chapter 5: Memory address decoding and interfacing.
 Chapter 6: Input /Output systems interface:.
 Chapter 7: I/O port addresses decoding.
 Chapter 8: Programmable Peripheral Interface chip (PPI) 8255.
 Chapter 9: Programmable Communication Interface chip 8251.
 Chapter 10: System interrupts handling.
 Chapter 11: Programmable Interrupt controller chip (PIC) 8259.

Spring 2023 Abdulbaset Ashour P6


Ch

Chapter 1

Introduction to Microprocessors

Spring 2023 Abdulbaset Ashour P7


Ch
Chapter layout

 Microprocessor system concept.

 Historical background .

Spring 2023 Abdulbaset Ashour P8


Ch
Being inside the computer

Spring 2023 Abdulbaset Ashour P9


Ch
Introduction to Microcomputers

 Microprocessor system concept.

 Microprocessor vs. Microcontroller.

 Historical background.

Spring 2023 Abdulbaset Ashour P 10


Ch
What is a computer?

 A computer is a programmable machine that receives


input, stores and manipulates data/information, and
provides output in a useful format.

 During the processing the computer has to perform


various functions like:
 Receives data (input).
 Processes data (process).
 Produces information (output).
 Stores results (storage).

Spring 2023 Abdulbaset Ashour P 11


Ch
Characteristics of Computers

 Speed:
 The computer is able to process the data and gives the
output in fractions of seconds, such that required
information is given to the user on time enabling the user to
take right decisions on right time. Computer is capable of
executing about 3 million calculations per second.
 Accuracy:
 The accuracy of computers is consistently high enough
which avoids any errors. If it all there are errors, they are
due to errors in instructions given by the programmer.

Spring 2023 Abdulbaset Ashour P 12


Ch
Characteristics of Computers
 Reliable (trusted):
 The output generated by the computer is very reliable, but it
is reliable only when the data, which is passing as input to
the computer and the program are correct and reliable.

 Versatile (multi task/function):


 Computers are capable of performing almost any task
provided. The task can be reduced to a series of logical
steps (different task needs just different program not
different machine).

Spring 2023 Abdulbaset Ashour P 13


Ch
What is a microprocessor?

 The microprocessor is a single chip


programmable device that takes in numbers,
performs on them arithmetic or logical
instructions (operations) according to the
program stored in memory and then produces
other numbers as a result.
 The microprocessor can be programmed to
perform functions on given data by writing
specific instructions into its memory.
 The microprocessor reads one instruction at a time,
matches it with its instruction set, and performs the
data manipulation specified.
 The result is either stored back into memory or
displayed on an output device.

Spring 2023 Abdulbaset Ashour P 14


Ch
What is a microcomputer system?

 Block diagram of a digital computer

Memory

Input Port Microprocessor Output Port


(CPU)

Spring 2023 Abdulbaset Ashour P 15


Ch
Microcontrollers

 Microcontroller (MCU)
Integrated electronic computing device that
includes three major components on a single
chip
Microprocessor (MPU)
Memory
I/O (Input/Output) ports

Spring 2023 Abdulbaset Ashour P 16


Ch
Microcontrollers

 Support Devices
Timers
A/D converter
Serial I/O
 Common communication lines
System Bus

Spring 2023 Abdulbaset Ashour P 17


Ch
Block Diagram

Spring 2023 Abdulbaset Ashour P 18


Ch
Microprocessor (MPU)

 MPU (CPU)
 Read instructions
 Process binary data

Spring 2023 Abdulbaset Ashour P 19


Ch
Memory

 Storage Device
 Addresses
 Registers
 Major Categories
Read/Write Memory
(R/W)
Read-only-Memory
(ROM)

Spring 2023 Abdulbaset Ashour P 20


Ch
Input/Output (I/O)

 Input Devices
Switches and Keypads
Provide binary information to the MPU
 Output devices
LEDs and LCDs
Receive binary information from the MPU

Spring 2023 Abdulbaset Ashour P 21


Ch
Microprocessor-Based Systems

Spring 2023 Abdulbaset Ashour P 22


Ch
Microprocessor Architecture

 MPU communicates with Memory and I/O


using the System Bus
Address bus
Unidirectional
Memory and I/O Addresses
Data bus
Bidirectional
Transfers Binary Data and Instructions
Control lines
Read and Write timing signals

Spring 2023 Abdulbaset Ashour P 23


Ch
Microprocessor-Based System

Spring 2023 Abdulbaset Ashour P 24


Ch
MPU-Based Systems

 System hardware
Discrete components
Microprocessor, Memory, and I/O
Components connected by buses
Address, Data, and Control
 System software
Group of programs that monitors the functions
of the entire system

Spring 2023 Abdulbaset Ashour P 25


Ch
MPU-Based System

Spring 2023 Abdulbaset Ashour P 26


Ch
MCU-Based Systems

 Microprocessor, memory, I/O ports, and


support devices on a single chip
 Buses generally not available to a system
designer
 I/O ports generally multiplexed and can be
programmed to perform different functions

Spring 2023 Abdulbaset Ashour P 27


Ch
MCU-Based System

Spring 2023 Abdulbaset Ashour P 28


Ch
Microprocessors vs. Microcontrollers

 A microcontroller (sometimes abbreviated µC or


MCU) is a small computer on a single integrated
circuit containing a processor core, memory, and
programmable input/output peripherals.

 A microprocessor (sometimes abbreviated µP or MP)


incorporates the functions of a computer’s central
processing unit (CPU) on a single integrated circuit
(IC, or microchip).

Spring 2023 Abdulbaset Ashour P 29


Ch
Microprocessors vs. Microcontrollers

 Well, confused?
 In simple words, microcontroller is a full fledged
computer in a single chip.
 On the other hand, microprocessor is the CPU of the
computer in a single chip.
 In simplest terms:
 MPU = CPU
 MCU = MPU + Peripherals + Memory

 Peripherals = Ports + Clock + Timers + UART/USART +


ADC + DAC + LCD Drivers + Other Stuffs Memory =
Flash + SRAM + EPROM + EEPROM

Spring 2023 Abdulbaset Ashour P 30


Ch
Microprocessors vs. Microcontrollers

Spring 2023 Abdulbaset Ashour P 31


Ch
Applications of Microprocessors

 Microprocessors are everywhere!


 Electric consumer devices.

 Office equipment.

 Modern communication devices.

 Automobile.

 Industrial Automation.

 PC and PLC.

P 32
Ch
How does a Microprocessors work?

 The microprocessor follows a sequence: Fetch, Decode, Execute, and then


Write.
1. The microprocessor fetches next instruction from the memory (instruction
queue).
2. The instruction is decoded and the data path control signals prepared for the
next cycle.
3. The operands are read from the register bank, shifted, combined in the ALU.
4. Outputs the result in binary to the memory/output port.
Microprocessor

Read only Random Access Input Device Output Device


Memory Memory
(ROM) (RAM) Keyboard Printer

P 33
Ch
How does a Microprocessors work?

 Dividing the processing task into stages, which are executed in parallel.
 Fetching the next instruction while the current instruction executes is called
pipelining.
 Makes a microprocessor faster.

P 34
Ch
Historical background

 Intel 4004
 1971, 4-bit
 Intel 8008
 1972, 8-bit
 Originally designed for Datapoint Corp. as a CRT display
controller
 Intel 8080
 1974, April - Altair 8800, 1975, MITS( 256 bytes of Mem,
$395)
 Apple II -- Steve Jobs and Steve Wozniak 1976, Apple
 Bill Gates and a fellow student : BASIC, 1975 --> Microsoft
 Intel 8086/8088
 1978, 16 bit: 8088, 1979, 8-bit external bus

Spring 2023 Abdulbaset Ashour P 35


Ch
Historical background

 IBM PC ; 1981
 29,000 Transistor.
 Intel 80286
 1982, 16-bit architecture.
 24-bit addressing, memory protection and virtual memory.
 16 MB of physical MEM and 1 GB of virtual memory.
 130,000 Transistor onto a single chip.
 IBM PC/AT in 1984, IBM PS/2 Model 50 and 60.
 Intel 80386
 1985, 32 bits.
 3~5 MIPS (7 MIPS on the 25 MHz chip).
 memory paging and enhanced I/O permission features.

Spring 2023 Abdulbaset Ashour P 36


Ch
Historical background

 Intel 80486
 1989 Spring COMDEX show -> 1990 June actual
release.
 1,200,000 Transistor.
 386+387+8K data and instruction cache.
 Pentium
 1993.
 110 MIPS on 66 MHz Chip.
 16 KB on-chip cache and 64 bit data bus.
 superscalar technology (two instructions/clock).
 3.1 million transistors.

Spring 2023 Abdulbaset Ashour P 37


Ch
Historical background

 Pentium Pro
 1995.
 5.5 million transistor in the CPU core + 15.5 million transistor
in the secondary cache 8K data, 8K instruction cache.
 256 KB SRAM secondary cache.
 Pentium II
 Pentium Pro + MMX, 1997.
 233, 266, up to 450 MHz .
 7.5 million transistor in CPU.
 512KB in secondary cache.

Spring 2023 Abdulbaset Ashour P 38


Ch
Historical background

 Pentium III
 1999
 Pentium Pro + MMX + Internet Streaming.
 0.25 micron, 9.5 million transistor.
 600 MHz, 550 MHz
 32 K(16K/16K) non-blocking level 1 cache.

Spring 2023 Abdulbaset Ashour P 39


Ch
Historical background

Spring 2023 Abdulbaset Ashour P 40


Ch
Historical background

To review the Intel microprocessors list use the link:


https://en.wikipedia.org/wiki/List_of_Intel_microprocessors

Spring 2023 Abdulbaset Ashour P 41


Ch
Evolution of Microprocessor

Moore’s Law (1965)


"The number of transistors incorporated in a chip will
approximately double every 24 months“

Spring 2023 Abdulbaset Ashour P 42


Ch
References

 References:
 Text Books.
 Microprocessors lecture slides from Eng. Jalal Miladi.

 Readings:
 Douglas Hall, Ch2, pp 19-27.
 Barry Brey, Ch1, pp 1-11.

Spring 2023 Abdulbaset Ashour P 43


Ch

Spring 2023 Abdulbaset Ashour P 44

You might also like