Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's "««"** ***** ** various

Similar documents
8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

Microcomputer Architecture and Programming

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Microprocessor Architecture

8085 INSTRUCTION SET INSTRUCTION DETAILS

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

ELECTRICAL ENGINEERING

Architecture of 8085 microprocessor

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:


(2) Explain the addressing mode of OR What do you mean by addressing mode? Explain diff. addressing mode for 8085 with examples.

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

Assembly Language Programming of 8085

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

Chapter 1: Basics of Microprocessor [08 M]

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

8086 INTERNAL ARCHITECTURE

1. Internal Architecture of 8085 Microprocessor

INSTRUCTION SET OF 8085

The functional block diagram of 8085A is shown in fig.4.1.

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

8051 Overview and Instruction Set

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

icroprocessor istory of Microprocessor ntel 8086:

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

Intel 8086 MICROPROCESSOR. By Y V S Murthy

History and Basic Processor Architecture

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

Basics of Microprocessor

Intel 8086 MICROPROCESSOR ARCHITECTURE

9/25/ Software & Hardware Architecture

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

8051 microcontrollers

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

8051 Microcontroller

UNIT 2 PROCESSORS ORGANIZATION CONT.

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

Fundamentals of Digital Computers The mechanical computer age began with the advent of the abacus in 500 B.C by Babylonians. The abacus, which was

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

Assembly Language Programming of 8085

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER


MICROPROCESSOR BASICS AND RELATED TERMS

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

ELEG3924 Microprocessor

8051 Microcontrollers

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

Three criteria in Choosing a Microcontroller

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

Introduction to Microprocessor

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

Subject Code: Model Answer Page No: /25

A Presentation created By Ramesh.K Press Ctrl+l for full screen view

8051 Microcontroller

CC411: Introduction To Microprocessors

INTEL Architectures GOPALAKRISHNAN IYER FALL 2009 ELEC : Computer Architecture and Design

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

SYSC3601 Microprocessor Systems. Unit 2: The Intel 8086 Architecture and Programming Model

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

1. Internal Architecture of 8085 Microprocessor

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.

ELEG3923 Microprocessor Ch.2 Assembly Language Programming

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

1. Internal Architecture of 8085 Microprocessor

UNIT-I. 1.Draw and explain the Architecture of a 8085 Microprocessor?


Chapter 2 COMPUTER SYSTEM HARDWARE

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

Micro Processor & Micro Controllers

Chapter 3. Z80 Instructions & Assembly Language. Von Neumann Architecture. Memory. instructions. program. data

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

Internal architecture of 8086

Question Bank Microprocessor and Microcontroller

EC-333 Microprocessor and Interfacing Techniques

SAMPLE STUDY MATERIAL

Computer Organization

ENE 334 Microprocessors

Four Categories Of 8085 Instructions That >>>CLICK HERE<<<

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

8051 Microcontroller

Lecture 15 Intel Manual, Vol. 1, Chapter 3. Fri, Mar 6, Hampden-Sydney College. The x86 Architecture. Robb T. Koether. Overview of the x86

1-Operand instruction types 1 INC/ DEC/ NOT/NEG R/M. 2 PUSH/ POP R16/M16/SR/F 2 x ( ) = 74 opcodes 3 MUL/ IMUL/ DIV/ DIV R/M

EXPERIMENT WRITE UP. LEARNING OBJECTIVES: 1. Get hands on experience with Assembly Language Programming 2. Write and debug programs in TASM/MASM

G. Pullaiah College of Engineering and Technology: Kurnool Department Of Electronics and Communication Engineering

Code segment Stack segment

Digital IP Cell 8-bit Microcontroller PE80

ET2640 Microprocessors

Figure Programming model

E3940 Microprocessor Systems Laboratory. Introduction to the Z80

Transcription:

72 Introduction Chapter 1 a) Address translation b) Protection c) Program relocation Chapter 2 type's "««"** ***** ** various 1.17 Discuss the main features' of typical coprocessors. o ' rhc diffcrcncc be bre *P ">t and hardware 1-19 Discuss the basic features of microcomputer development systems.

76 Intel 8085 Chapter 2 2.3 Memory Addressing 77 transfer takes place between a memory location and the only 8085 register, the accumulator. The instruction LDAX B is a typical example. Registers B, C, D, and E are secondary accumulators or data counters. There are a number of instructions to move data between any two registers. There are also a few instructions that combine registers B and C or D and E, as a 16-bit data counter with high byte of a pair contained in the first register and low byte in the second. These instructions typically include LDAX B, LDAX D, STAX B, and STAX D, which transfer data between memory and the accumulator. Each of these 8-bit registers can be incremented and decremented by a single byte instruction. There are a number of instructions which combine two of these 8-bit registers to form 16-bit register pairs as follows: A B D H and and and and PSW C E L The sign status flag (S) is set to the value of the most significant bit of the result in the accumulator after an arithmetic or logic operation. This provides a range of-128 10 to +127 10 (with 0 being considered positive) as the 8085's data-handling capacity. The 8085 does not have any overflow flag. Note that execution of arithmetic or logic instructions in the 8085 affects the flags. All conditional instructions in the 8085 instruction set use one of the status flags as the required condition. The stack pointer (SP) is 16 bits long. All stack operations with the 8085 use 16-bit register pairs. The stack pointer contains the address of the last data byte written into the stack. It is decremented by 2 each time 2 bytes of data are written or pushed onto the stack and is incremented by 2 each time 2 bytes of data are read from or pulled (popped) off the stack, that is, the top of the stack has the lowest address in the stack that grows downward. high-order byte low-order byte The 16-bit register pair obtained by combining the accumulator and the program status word (PSW) is used only for stack operations. Arithmetic operations use B and C, D and E, or H and L as 16-bit data registers. The program status word consists of five status flags. These are described below. The carry flag (Cy) reflects the final cam' out of the most significant bit of any arithmetic operation. Any logic instruction resets or clears the carry flag. This flag is also used by the shift and rotate instructions. The 8085 does not have any CLEAR CARRY instruction. One way of clearing the carry will be by ORing or ANDing the accumulator with itself The parity status flag (P) is set to 1 if an arithmetic or logic instruction generates an answer with even parity, that is, containing an even number of 1 bits. This flag is 0 if the arithmetic or logic instruction generates an answer with odd parity, that is, containing an odd number of Is. The auxiliary carry flag (Ac) reflects any carry from bit 3 to bit 4 (assuming 8-bit data with bit 0 as the least significant bit and bit 7 as the most significant bit) due to an arithmetic operation. This flag is useful for BCD operations. The zero flag (Z) is set to 1 whenever an arithmetic or logic operation produces a result of 0. The zero flag is cleared to zero for a nonzero result due to arithmetic or logic operation.

78 Intel 8085 Chapter 2 a 2-byte address. This address specifies the memory location to which the program would branch. 2.4 8085 ADDRESSING MODES

80

114 Intel 8085 Chapter 2 TABLE 2.10 Time Intervals along with Initial Counts 3-MHz clock milliseconds 1/3 1 2 10 100 Initial count (hexadecimal) 0028 007C OOF9 04E1 30D3 The following program produces a delay of 10 ms: LXI SP, 5000H LXI D, 04E1H

116 Intel

118 Intel 8085 Chapter 2 latches with ALE as input along with multiplexed address (low byte) and data lines, ADO to ADZ. Therefore, as shown in Figure 2.9b, external latches are not required. IO/M 5 RD -t AH A8-A10 ADO-AD7 8085 ALE

Intel 8085 Chapter 2 A parallel-resonant LC circuit, shown in Figure 2.11, can also be used as the frequency source for the 8085. The values of L ext and C ext can be chosen using the formula: To minimize variations in frequency it is recommended that a value for C ext should be chosen which is twice that C nt, or 30 pf. The use of LC circuit is not recommended for external frequencies higher than approximately 5 MHz. 8085A 21 X7 FIGURE 2.11

122 Intel 8085 Chapter 2

8085 Instruction Timing and Execution 125 I/O) write operation. In this case, SI = 0 and SO = 1 indicate a memory write operation when IO/M = 0 and an I/O write operation when IO/ M= 1. 2.8.2 8085 MEMORY^READ (IO/M = 0, RD = 0) AND I/O READ (IO/M = I, ED * 0) Figure 2.17a shows an 8085A clock timing diagram. The machine cycle of Ml of Figure 2.16 shows a memoty READ timing diagram. The purpose of the memory READ is to read the contents of a memory location addressed by a register pair, such as the accumulator. Let us explain the 8085 memory READ'timing diagram of Figure 2.17b along with the READ timing signals of Figure 2.16: 1. The 8085 uses machine cycle Ml to fetch and decode the instruction. It then performs the memory READ ^peration in M2..2. The 8085 continues to maintain IO/M at LOW in M2 indicating a memory READ operation (or IO/M - 1 for I/O READ). 3. The 8085 puts SO = 0, SI = 1, indicating a READ operation. 4. The 8085 places the contents of the high byte of the memory address register, such as the contents of the H register, on lines A8 to A15. 5. The 8085 places the contents of the low byte of the memory address register, such as the contents'of the L register, in lines ADO to AD7. 6. The 8085 sets ALE to high, indicating the beginning of Ml, As soon as ALE goes to low, the memory chip must latch the low byte of the address lines, since the same lines are going to be used as data lines. 7. The 8085 puts the RD signal to LOW, indicating a READ operation. 8. The 8085 gets the data from the memory location addressed by the memory-address register, such as the H,L pair, and places the data into a register such as the accumulator. In case of I/O, the 8085 inputs data from the I/O port into the accumulator.

126 Intel 8085 Chapter 2 The WRITE timing diagram of Figure 2.16 can be explained as follows: 1. The 8085 uses machine cycle Ml to fetch and decode the instruction. It then executes the memory WRITEinstruction in M3. 2. The 8085 continuesto maintain IO/M at LOW, indicating a memory operation (or IO/M - 1 for I/O WRITE). 3. The 8085 puts SI 0, SI =* 1, indicating a WRITE operation. 4. The 8085 places the Memory Address Register high byte, such as the contents of the H register, on lines A8 to A15 5. The 8085 places the Memory Address Register low byte, such as the contents of L register, on lines ADO to AD7. 6.