Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.

Slides:



Advertisements
Similar presentations
Parul Polytechnic Institute
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 4.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessor and Microcontroller
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Computer Organization and Assembly language
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
E0001 Computers in Engineering1 The System Unit & Memory.
created by :Gaurav Shrivastava
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Dr. Rabie A. Ramadan Al-Azhar University Lecture 1
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
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.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Computer Engineering Rabie A. Ramadan Lecture 1. 2 Welcome Back.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Organization & Assembly Language © by DR. M. Amer.
Input-Output Organization
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Overview von Neumann Architecture Computer component Computer function
The Computer System.
IT3002 Computer Architecture
Computer operation is of how the different parts of a computer system work together to perform a task.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
I/O Organization Competency – C6. Important facts to remember when I/O devices are to be connected to CPU There is a vast variety of I/O devices. Some.
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.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Unit Microprocessor.
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
Control Unit Lecture 6.
UNIT – Microcontroller.
Dr. Michael Nasief Lecture 2
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
The Von Neumann Machine
Presentation transcript:

Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2

Input / Output Input Devices Switches, Keyboard, …. Output Devices: Seven Segments (LEDs), printer, Monitor,.. The processor reads the instructions from the memory, data from the input devices, processes them, produces the output 2

Microprocessor as CPU 3 -The CPU includes ALU, control Units, and Various Registers -Known as Microprocessor

The Von Neumann Model It uses von Neumann execution cycle (also called the fetch- decode-execute cycle)

The Von Neumann Model (Cont.) A cycle could be as follows: 1. The control unit fetches the next program instruction from the memory, using the program counter to determine where the instruction is located. 2. The instruction is decoded into a language the ALU can understand. 3. Any data operands required to execute the instruction are fetched from memory and placed into registers within the CPU. 4. The ALU executes the instruction and places the results in registers or memory.

Instruction Processing Von Neumann execution cycle Decode instruction Evaluate address Fetch operands from memory Execute operation Store result Fetch instruction from memory

The Modified Von Neumann Model The data bus: Moves data from main memory to the CPU registers (and vice versa). The address bus: Holds the address of the data that the data bus is currently accessing. The control bus: Carries the necessary control signals that specify how the information transfer is to take place.

Advances in Semiconductor Technology IC- Integrated Circuits  few transistors and diodes on one chip SSI –small scale Integration  few gates on one chip MSI- Medium scale Integration- 100 gates on a chip LSI – Large Scale Integration – 1000 gates on a chip VLSI – Very large scale Integration SLSI – Super Large Scale Integration Borders between VLSI and SLSI are not strict. 8

Microprocessor Programming Machine language Instruction written in binary format Assembly language Text based format  Add A, B High level Language 9 Source Code Compiler / Interpreter Object Code

Z80 Instructions and Alphanumeric Codes 8-bit word length 158 instructions ASCII – American Standard Code for Information Interchange. Each character has its equivalent binary format in a 7-bit code EBCDIC – Extended Binary Coded Decimal Interchange Code – 8-bit code 10

Reading Assignment Please read Chapter 1 in the textbook 11

12 Microprocessor-Based System 12

Microprocessor-Based System 13 Microprocessor Memory I/O

Microprocessor Unit Programmable logic unit with a designed set of instructions What it does: Fetches the instructions from the memory, one by one Reads the input data from the input units Performs the data manipulation specified by the instruction Writes the data to the output devices 14

Microprocessor Unit MPU frequently communicates with the memory, I/O devices Fetch, Decode, and Execute operations Can it be interrupted ? Program initiated operation – interrupt done by a program. Peripheral initiated operation – interrupt done by external devices E.g. important data on the input during writing to the printer 15

What does it needs to do so.. Group of logic circuits Set of signal to transfer information Control signals for timing Clock circuits 16

Program-initiated operations and Buses Microprocessor and Memory Operations Memory Read Reads instructions or data from the memory Memory Write Writes instructions and data into memory I/O Read Accepts data from input devices I/O Write Writes data to output devices 17

Program-initiated operations and Buses From where to read or to write? We need an address! Right? How the input/output will know about the operation? We need a control signal to tell them MPU Operations Steps: Identify the address Send synchronization SIGNAL– control signal Transfer the binary data So, how many buses do we need? 18

Buses Address Bus Identify the memory locations Data Bus Holds the data during transfer operation Control Lines For timing signal 19

Buses Address Bus Size - bits Depends on the number of memory locations that can be accessed Z80 has 16 address lines to address 2 16 locations Data Bus Size - bits Depends on the data to be transferred Z80 has 8 bits data bus What is the maximum memory size Z80 can use? 20

Externally Initiated operation Interruptions categories : Reset – e.g. timer to reset everything in the MPU Interrupt – stop temporarily and do something, then come back. Wait: the memory can not handle the MPU request, wait signal must be generated. Bus Request: sometimes the processor is too slow to hand a request that can be handled faster by another device. E.g transfer large amount of data through the DMA could be faster than using the MPU 21

Memory Memory Cell 22 DQ(t+1) 00Reset 11Set

Memory Continue 4-bit Register 23

4 X 8 bit register 24 Input Buffer 2-to-4 Decoder Register 3 Register 2 Register 0 Output Buffer WR A1 A0 RD Memory Unit Input Output

How the MPU Writes into the Memory? MPU places the 16 bit address on the address bus Memory interfacing circuits will decode address to specify the target register MPU Places a byte on the data bus MPU sends a control signal (Memory Write) to the memory to write 25

How the MPU reads from the Memory? MPU places the 16 bit address on the address bus Memory interfacing circuits will decode address to specify the target register MPU sends a control signal (Memory Read) to the memory to enable the output buffer The memory puts the data on the data bus and the processor will read it 26

Reading Assignments Plead read chapter 2 See you on Tuesday 27