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

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

I/O Organization popo.
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
ARITHMETIC LOGIC SHIFT UNIT
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
The 8085 Microprocessor Architecture
Introduction to Microprocessors (CS 45) Session Microprocessor - 2.
Timing Diagram is a graphical representation
Microprocessor and Microcontroller
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
Processor System Architecture
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
Design and Synthesis of a RISC Stored-Program Machine
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Computer Science 210 Computer Organization The Instruction Execution Cycle.
Introduction to Computing: Lecture 4
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Computer Architecture
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 7.
Input-Output Organization
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.
Microprocessor Microprocessor (cont..) It is a 16 bit μp has a 20 bit address bus can access upto 220 memory locations ( 1 MB). It can support.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Computer Architecture Lecture 6 by Engineer A. Lecturer Aymen Hasan AlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Computer Architecture Lecture 5 by Engineer A. Lecturer Aymen Hasan AlAwady 25/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
MACHINE CYCLE AND T-STATE
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.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 Microprocessor: Architecture & Support Components.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Central Processing Unit Decode Cycle. Central Processing Unit Current Instruction Register (CIR) I1 The fetch cycle has transferred an instruction from.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
8085 Microprocessor Architecture
TIMING DIAGRAM OF 8085 By Sadhish Prabhu.
The 8085 Microprocessor Architecture
Instruction format Instruction is a command to microprocessor to perform a given task on specified data. Each instruction has two parts: One is the task.
CPU Organisation & Operation
The 8085 Microprocessor Architecture
Assembly Language for Intel-Based Computers, 5th Edition
Dr. Rabie A. Ramadan Al-Azhar University Lecture 5
Dr. Michael Nasief Lecture 2
8085 microprocessor.
8085 Microprocessor Architecture
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Architecture of Microprocessor (Intel 8085) Unit-I
Instruction Formats Each instruction consists of two parts:
The fetch-execute cycle
Interfacing Memory Interfacing.
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Architecture & Support Components
8085 Microprocessor Architecture
8085 MICROPROCESSOR 8085 CPU Registers and Status Flags S Z AC P C A B
The 8085 Microprocessor Architecture
8085 Microprocessor Architecture
Program Execution.
The Von Neumann Machine
Information Representation: Machine Instructions
Computer Operation 6/22/2019.
COMPUTER ARCHITECTURE
Presentation transcript:

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

Machine Cycles and Bus Timings Microprocessor includes 158 different instruction types. Each instruction has two parts: Operation code (known as opcode) and operand. 2 OUT(10H), A Opcode to output data Operand to specify that the byte should be sent from the accumulator to port 10H

Machine Cycles and Bus Timings Assume that the instruction is stored in 2 Bytes The Z80 has to perform three operations: Read Byte 1 from the first memory location Read Byte 2 from the next memory location Send Data to port 10H 3 OUT(10H), A Opcode to output data Operand to specify that the byte should be sent from the accumulator to port 10H

Machine Cycles and Bus Timings Instruction the time required to complete the execution of an instruction. The Z80 instruction cycle consists of one to six machine cycles or one to six operations. Machine Cycle The time required to complete one operation of accessing memory, accessing I/O, or acknowledging an external request. This cycle may consist of three to six T-states. T-state One subdivision of operation performed in one clock period. These subdivisions are internal states synchronized with the system clock and each T-state is equal to one clock period. 4

Opcode Fetch Machine Cycle (M1) AddressMachine CodeInstructionComment  (47H) LD B, ACopy A into B 5

Opcode Fetch Machine Cycle (M1) 6

7

The Timing of the opcode Fetch Machine 8

9

10 The Timing of the opcode Fetch Machine

11 The Timing of the opcode Fetch Machine

Memory Read Machine Cycle The instruction consists of two bytes; Opcode and Data byte. The Z80 must first read these bytes from memory Requires at least two machine cycles. The machine cycle is opcode fetch, and the second machine cycle is Memory Read 12

13

14

15

Memory Write Cycle This is a one-byte instruction with two machine cycles: Opcode Fetch and Memory Write. Z80 fetches the code (77H) and it copies the byte 9FH from the accumulator into the memory location 2350H. 16

17

18

19

Memory Interfacing 20

Interfacing Memory An address should be placed on the address lines. The low-order address lines are decoded by the internal decoder of the memory chip, and the addressed register is identified. The high-order address should be decoded to generate a Chip Select signal, and the memory chip is selected by asserting the Chip Select low. 21

Interfacing Memory To read from the addressed register, the should be asserted low to enable the output buffer, and then the data byte from the register will be placed on the I/O lines. To write into the addressed register, the should be asserted low to enable the input buffer, and then data bits from the data lines are stored into the register. 22

How does the Z80 Read from or Write into Memory? 23

Basic Concepts in Memory Interfacing Interface Function: Be able to select the chip Identify the register Enable the appropriate buffer. 24

Read from the Memory 25

Write into memory register 26

Address Decoding 3 input lines A0-A2 (Memory Select Buffer (MSB)) A3 – A7 are control lines since the address starts at F0H to F7H 3 lines enable only one o/p line 27 A7A6A5A4A3A2A1A = F7H

Example 1: Interfacing the 2764 EPROM Used in industry to develop microprocessor-based products. 8k (8192  8) memory chip with 8 data lines Housed in a 28-pin package. 28

Chip Configuration 29

What is the Memory Addresses Range? 30 A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A H  1FFF H

Interfacing CMOS 6116 Static R/W Memory This is a 2k static memory chip organized as 2048 x 8 format. It has 11 address lines (A10-A0), 8 data lines 3 control signals: 31

Chip Configuration 32

Memory Interface What is the addresses range? Assume A12 and A11 are do not care. 33 A15A14A13A12A11A10A9A8A7A6A5A4A3A2A1A0 100XX XX  87FF -- Address ranges may differ due to the do not care at A12 and A11

Reading Assignment Please Read Chapter 3 Chapter 4 34