Introduction to Microprocessor Systems ECE511: Microprocessor & Digital System.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

The Central Processing Unit: What Goes on Inside the Computer.
The Central Processing Unit: What Goes on Inside the Computer.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
INTRODUCTION OF COMPUTER
CENTRAL PROCESSING UNIT
Introduction to Information Technology: Your Digital World © 2013 The McGraw-Hill Companies, Inc. All rights reserved.Using Information Technology, 10e©
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Chapter 0 Introduction to Computing
GCSE Computing - The CPU
1 Introduction to Computers Day 6. 2 Main Circuit Board of a PC The main circuit board (motherboard or system board) is the central nervous system of.
1 Chapter 4 The Central Processing Unit and Memory.
Microcontroller based system design
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
COMPONENTS OF THE SYSTEM UNIT
The Microcomputer System In this presentation you will: Investigate the microprocessor Title Page.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Lesson 3 — How a Computer Processes Data
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
CPU MEMORY Powered by DeSiaMore1. CPU Its manage everything held in memory so that the machine keeps track of what is stored, where it is and what type.
B.A. (Mahayana Studies) Introduction to Computer Science November March The Motherboard A look at the brains of the computer, the.
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
created by :Gaurav Shrivastava
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
How a Computer Processes Data Computer Fundamentals.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
An overview of Computer System
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
CIM101 : Introduction to computer Lecture 3 Memory.
Microprocessor & Interfacing Techniques. HISTORY OF MICROPROCESSORS  Computers are accessible to ever-increasing sectors of the world's population. 
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
General Concepts of Computer Organization Overview of Microcomputer.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Calculators are used to increase speed and accuracy of numerical computations The abacus has roots dating back over 5,000 years Mechanical calculators.
Introduction to Microprocessors
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Academic PowerPoint Computer System – Architecture.
Lecture on Central Process Unit (CPU)
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
The Computer System.
Computer operation is of how the different parts of a computer system work together to perform a task.
Chapter 2.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Introduction :: Computer Organization and Architecture Computer.
Sistem Mikroprosesor 1. Blok Diagram Minimum System(CPU,ROM,RAM)
Computer Hardware – System Unit
The Central Processing Unit
Introduction of microprocessor
Microcomputer Architecture
Introduction to Microprocessors and Microcontrollers
Chapter 5: Computer Systems Organization
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
Presentation transcript:

Introduction to Microprocessor Systems ECE511: Microprocessor & Digital System

What we are going to learn in this session: What is a microprocessor system. History of microprocessors. Components inside the microprocessor system:  Component description.  Function.  Arrangement. The CPU execution cycle.  What is it.  How the cycle works.

Introduction µP is a complex, powerful device:  Able to process huge amounts of data.  Built using transistors on silicon die.  Needs external components to support operation. Used in wide variety of applications.  Take advantage of processing power. Microcomputer system – support µP operations.

History of Computers

Has undergone significant improvements:  4 generations until now.  Tied to development of electronics, semiconductors. What’s next?  Conventional computing: Advancements in semiconductor technology. Smaller, faster, less power.  Unconventional computing: Quantum computer. Chemical computer. Molecular computer.

History of Computers Vacuum Tube TransistorICBetter IC technology G1G2G3G4

History of Computers First Generation ( ):  Vacuum Tubes as switches.  Magnetic drums as memory.  Very big, unreliable, slow.  ENIAC (Electronic Numerical Integrator And Computer ), UNIVAC (UNIVersal Automatic Computer ).

First Generation Computers Electronic Numerical Integrator and Computer (ENIAC) Vacuum Tubes

History of Computers Second Generation ( ):  After invention of transistors.  Smaller, faster, cheaper.  Limited to military and business use.

Second Generation Computers Transistor circuit Vacuum tube circuit

History of Microprocessors Third Generation ( ):  After invention of Integrated Circuits (IC). Many transistors can be packed into IC.  Intel 8008, Intel  Medium Scale Integration (MSI) and Large Scale Integration (LSI).

Early Intel Microprocessors

Third Generation Computers Laptop PC

History of Computers Fourth Generation (1971-now):  Improvements in IC technology, µP design.  More transistors  more processing power.  Very Large Scale Integration (VLSI). Intel Montecito Itanium: 1 bln. transistors.  Reduced Instruction Set Computers (RISC).  64-Bit microprocessors.

Fourth Generation Computers

Comparison ComputerSpeedMemoryCost UNIVAC (1 st Gen.) Pentium III (4 th Gen.) DEC PDP-8 (3 nd Gen.) 1.3 kHz 1 MHz 500 MHz 1MB 6 kB 128 MB $1.6 million $20,000 $700 $47, kB IBM 1401 (2 nd Gen.) 2.2 kHz

Microprocessor Systems

Complete system built around microprocessor.  CPU.  Memory.  I/O: disk drives, keyboard, mouse.  System Bus.  Supporting circuitry. CPU as the “brain” – controls actions of all components.

Microprocessor System - PC ROM KeyboardMouseHDD FloppyRAM CD-ROM Supporting Circuitry CPU

Microprocessor System - Calculator Keypad Memory Power SupplyLCD Display CPU

Computer Interface

A µP-based system consists of many components:  CPU.  Memory.  I/O: disk drives, keyboard, mouse.  System Bus.  Supporting circuitry. All components communicate using System Bus.

Block Diagram Parallel I/OSerial I/O Interrupt Circuit TimingCPUMemory System Bus

The CPU “Master” of all components. Job:  Get instructions from memory.  Execute instructions.  Perform calculations (Co-processor).  Control bus operations. CPU

The CPU CPU consists of:  ALU (Arithmetic/Logic Unit): Performs arithmetic/ logic computations.  CU (Control Unit): Responsible to retrieve instructions, analyze, then execute.  Registers: Fast internal storage Used to temporarily store addresses, data, processor status.

System Bus Communication “highway” for all components. Contains:  Data lines.  Address lines.  Control lines: regulate information transfer, interrupts, error signals.

Memory Stores instructions and data for CPU. Each memory location given unique address.  CPU refers to address to access. Types:  Read-Only Memory (ROM).  Random-Access Memory (RAM).  Non-Volatile Memory (NVM). Memory

RAM, ROM and NVM Memory NVM RAM ROM Stores start-up instructions and critical system data and variables. Stores general data and applications

ROM Read-Only Memory:  Data can be read, but cannot be written (read-only).  Contents stay without power (non-volatile).  Usually contains basic start-up instructions, data.  Contents hard-wired during manufacturing.  Newer versions can be reprogrammed: PROM: Fuse & anti-fuse. EPROM: UV light. EEPROM: Electrical current.

ROM Examples Quartz Window EEPROM Programmer EPROM

NVM Non-Volatile Memory Contents can be read and written. Contents stay without power (non-volatile). Advantages:  Keeps memory even with no power.  Data is protected against blackouts.  Rewriteable. Disadvantages:  Slower than RAM.

RAM Random Access Memory. Contents can be read and written. Loses data without electrical power (volatile). Advantages:  Programs can be loaded and reloaded.  Larger capacity. Disadvantages:  Requires power, refresh cycles.

RAM vs. ROM Computer is turned on CPU looks for instructions from memory RAM is still empty because the computer has just been started. CPU loads instructions from ROM.

RAM vs. ROM ROM only has basic functions to start the computer. RAM loads more advanced functions, such as the OS.

Timing Circuit Timing Synchronizes all components in the system.  All components refer to the clock timing for operations. Generates square waves at constant intervals. Crystal oscillator + timing circuitry. Higher clock speed allow computers to function faster.

Crystal Oscillator Symbol Equivalent Circuit Sample

Clock Signal TT T

Clock Signal vs. Processing Speed Instruction CLR.W D7 takes 4 cycles to complete. time Slow clock speed Fast clock speed

I/O Input/Output. Connects µP with external devices:  Add functionality to µP. Interfaces with µP using ports. Examples:  Keyboard.  Mouse.  Display monitor.

How do ports connect to system bus? Built into board Using card slots.

Serial I/O Sends/receives data sequentially across 2 channels.  One for receive, one for transmit. Connects using serial ports. Advantages:  Less crosstalk. Disadvantages:  Slow.  Needs special circuit to convert back to parallel (UART – Universal Asynchronous Receiver/Transmitter). Serial I/O

Serial Port

Parallel I/O Sends/receives data across multiple lines at one time. Connects using parallel ports. Advantages:  Faster than serial.  Simpler circuits – doesn’t need UART. Disadvantages:  Crosstalk. Parallel I/O

Parallel Port

Parallel vs. Serial I/O Serial Port Parallel Port Receive Transmit.... Receive/Transmit

UART UART To System BusFrom Device From System BusTo Device

Interrupt Circuit Allows other components to “interrupt” normal CPU operation:  Prioritize CPU tasks.  Error detection mechanism.  Accept inputs from devices – keystroke, mouse press. Depends on task importance:  Important tasks given higher interrupts.  Less important tasks queued.  CPU keeps track of current interrupt level. Interrupt Circuit

How Interrupts Work CPU Device 1.CPU is performing tasks normally. 2. Device has more important task that requires immediate attention. 3. Device requests interrupt from CPU. 4. CPU saves its current task so that it can return to it when the interrupt completes. 5. CPU services the interrupt. 6. CPU reloads saved task, and resumes normally.

Watchdog Monitor Watchdog monitor:  Special circuit - monitors the system for errors.  Informs the CPU.  CPU takes appropriate actions – reset system, halt processor. May work in two ways:  Constantly monitor the system, and sends signal if error detected.  Continuously sending signal to CPU after certain interval: If CPU receives signal, continues processing. If CPU doesn’t receive signal, something’s wrong.

How Watchdogs Work CPU Watchdog 1.CPU is performing tasks normally. 1. Watchdog monitors bus for errors. 2. If error detected, inform CPU. 3. CPU saves its current task so that it can return to it when error is resolved. 4. CPU fixes the error. 5. CPU reloads saved task, and resumes normally. 5. If error is too serious, CPU may reset/halt system.

CPU Execution Cycle

CPU executes instructions in endless fetch, decode, execute cycles. It only knows how to do three things:  Fetch instructions from somewhere.  Analyze instruction, get more data if necessary.  Execute instruction. Keeps track of instruction using Program Counter (PC):  Tells CPU location of next instruction.

Fetch, Decode, Execute Reset Fetch Decode Execute

Fetch – Step 1 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1000 Control CPUMemory Instruction Register Data Registers CPU gets instruction address from PC

Fetch – Step 2 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1000 Control CPUMemory Instruction Register Data Registers CPU outputs instruction address through Address Bus $1000 Address Bus

Fetch – Step 3 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1000 Control CPUMemory Instruction Register Data Registers Memory gets the instruction and sends in to CPU using Data Bus. Instruction #1 Data Bus

Fetch – Step 4 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1000 Control CPUMemory Instruction #1 Instruction Register Data Registers CPU stores instruction in Instruction Register

Fetch – Step 5 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Instruction Register Data Registers After instruction has been loaded, CPU updates Program Counter.

Decode – Step 1 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Instruction Register Data Registers CPU analyzes instructions before executing it. Type of instruction. Does the instruction require any data to perform calculations? Where are the data located?

Execute – Step 1 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Instruction Register Data Registers If instruction requires data from memory, data address is placed on address bus. $1007 Address Bus

Execute – Step 2 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Instruction Register Data Registers Memory gets the instruction and sends in to CPU using Data Bus. Data #1 Data Bus

Execute – Step 3 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Data #1 Instruction Register Data Registers CPU puts data inside internal data registers and execute instructions.

Execute – Step 4 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Data #1 Result #1 Instruction Register Data Registers If instruction wants to write data to memory, CPU puts its data and address on the bus. $1005 Address Bus Result #1 Data Bus

Execute – Step 5 Program Counter Instruction #1 $1001 $1009 $1008 $1007 $1006 $1005 $1004 $1003 $1002 $1000 Instruction #1 Instruction #2 Empty Result #1 Empty Data #1 Data #2 Data #3 $1002 Control CPUMemory Instruction #1 Data #1 Result #1 Instruction Register Data Registers Memory receives instructions and puts data in the location.

Conclusion

µP is a complex, powerful device:  Able to process huge amounts of data. µP-based systems provide supporting circuitry to support µP functions. Long history, advancements along with technology. Executes instructions from memory in endless loop.

The End Please read: Antonakos, pg. 2 – 10. Gilmore, pg. 1 – 5.