Instructions Involve a Segment Register (SR-field)

Similar documents
Chapter 8 Summary: The 8086 Microprocessor and its Memory and Input/Output Interface

Pin Description, Status & Control Signals of 8085 Microprocessor

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

Chapter 1: Basics of Microprocessor [08 M]

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

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

8086 Hardware Specification

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

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

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

Chapter 13 Direct Memory Access and DMA-Controlled I/O

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

9/25/ Software & Hardware Architecture

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

1. Internal Architecture of 8085 Microprocessor

Introduction to Microprocessor

UNIT 1. Introduction to microprocessor. Block diagram of simple computer or microcomputer.

Microprocessor Architecture

Overview of Intel 80x86 µp

Types of Interrupts:

Lecture Note On Microprocessor and Microcontroller Theory and Applications

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

The 8237 DMA Controller: -

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016


3. The MC6802 MICROPROCESSOR

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

Microcomputer System Design

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

Basics of Microprocessor

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY,VIRUDHUNAGAR

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

Program controlled semiconductor device (IC) which fetches (from memory), decodes and executes instructions.

History and Basic Processor Architecture

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

These three counters can be programmed for either binary or BCD count.

Architecture of 8085 microprocessor

Topic 2 :16 Bit Microprocessor: 8086 (24 Marks)

MICROPROCESSOR BASICS AND RELATED TERMS

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

Week 11 Programmable Interrupt Controller

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Interrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:

INTERFACING THE ISCC TO THE AND 8086

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

Intel 8086 MICROPROCESSOR ARCHITECTURE

1. Internal Architecture of 8085 Microprocessor

For more notes of DAE

Unit I Introduction. Department of Electronics and Communication Engineering VARDHAMAN COLLEGE OF ENGINEERING Shamshabad, Hyderabad , India.

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

8085 Interrupts. Lecturer, CSE, AUST

Internal architecture of 8086

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013)

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

4- MACHINE LANGUAGE CODING 4-1THE INSTRUCTION SET:

MICROPROCESSOR MCQs. 1) What does the microprocessor comprise of? a. Register section b. One or more ALU c. Control unit d.

Department of Computer Science and Engineering

UNIT-1. It is a 16-bit Microprocessor (μp).it s ALU, internal registers works with 16bit binary word.

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

MICROPROCESSOR TECHNOLOGY

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

EC6504 MICROPROCESSOR AND MICROCONTROLLER

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

Topics. Interfacing chips

Sample Copy. Not For Distribution.

INTRODUCTION TO MICROPROCESSORS

The 8086 Microprocessor

It is a program controlled semiconductor device (IC}, which fetches, decode and executes instructions.

1. Internal Architecture of 8085 Microprocessor

Architecture of 8086 Microprocessor


Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers.

Write A General Form Of The Assembly

UNIT - II PERIPHERAL INTERFACING WITH 8085

FIFTH SEMESTER B.TECH DEGREE EXAMINATION MODEL TEST QUESTION PAPER, NOVEMBER CS 305: Microprocessor and Microcontrollers PART A

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

Lecture-9 Intel 8085 Microprocessor It is a 40-pin DIP(Dual in package) chip, base on NMOS technology, on a single chip of silicon.

PESIT Bangalore South Campus

MACHINE CONTROL INSTRUCTIONS: 1. EI

Sample Copy. Not For Distribution.

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

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad


Sunday, April 25, 2010

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

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

Basic characteristics & features of 8086 Microprocessor Dr. M. Hebaishy

Segment A Programmable Peripheral Interface (PPI)

UMBC. 80C86/80C88: CMOS version draws 10mA with temp spec -40 to 225degF. 450mV while input max can be no higher than 800mV). 0 0.

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

8086 Interrupts and Interrupt Responses:

8086 INTERNAL ARCHITECTURE

Data Acquisition Using INS8048


Lecture-15 W-Z: Increment-Decrement Address Latch:

Transcription:

BYTE 1 = 11000111 2 = C7 16 BYTE 2 = (MOD)000(R/M) = 100000112 = 83 16 BYTE 3 = 34 16 and BYTE 4 = 12 16 BYTE 5 = CD 16 and BYTE 6 = AB 16 The machine code for the instruction is: MOV [BP+DI+1234H], 0ABCDH = C7833412CDAB 16 Instructions Involve a Segment Register (SR-field) Instructions that involve a segment register need a 2-bit field to encode which register is to be affected, this field is called the SR field. The four segment registers are encoded as shown in the following table. Segment Register SR ES 00 CS 01 SS 10 DS 11 Ex: Encode the above instruction in machine code: MOV [BP+DI+1234H], DS Ans. This example does not follow the general format. The OPCODE of MOV (Seg. Reg. to memory) is 10001100 2, and the instruction is: 10001100(MOD)0(SR)(R/M)(DISP) Then we find that for DS, the SR = 11 therefore, the instruction is coded as: MOV [BP+DI+1234H], DS =10001100100110110011010000010010 2 =8C9B3412 16 Encoding a Complete Program in Machine Code The following steps have to be followed in encoding a complete assembly program: Identify the general machine code format. Evaluate the bit fields. Express the binary-code instruction in hexadecimal form To execute the program, the machine code of the program must be stored in the code segment of memory. The first byte of the program is stored at the lowest address. 58

Ex: Encode the block move program and show how it would be stored in memory starting at address 20016. Ans. MOV AX, 2000H MOV DS, AX MOV SI, 100H MOV DI, 120H MOV CX, 10H NXTPT: MOV AH, [SI] MOV [DI], AH INC SI INC DI DEC CX JNZ NXTPT HLT 50

The 8086/8088Microprocessor Architecture and Pin-configuration The 8086µP, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation. The 8086 µp is internally a 16-bit µp and externally it has a 16-bit data bus. The 8086 µp is internally a 16-bit µp and externally it has a 8-bit data bus. It has the ability to address up to 1 Mbyte of memory via its 20-bit address bus. In addition, it can address up to 64K of byte-wide input/output ports. It is manufactured using high-performance metal-oxide semiconductor (HMOS) technology, and the circuitry on its chip is equivalent to approximately 29000 transistors. The 8086µP is housed in a 40-pin dual in-line package. The signals pinned out to each lead are shown in Figure below. The address bus lines A 0 through A 15 and data bus lines D 0 through D 15 are multiplexed. For this reason, they are labeled AD 0 through AD 15. By multiplexed we mean that the same physical pin carries an address bit at one time and the data bit at another time. 59

Minimum-Mode and Maximum-Mode System The 8086µP and 8088µP microprocessors can be configured to work in either of two modes: 1. Minimum Mode: The 8086µP operates in minimum mode by connecting its pin to Vcc. ( ). In this mode, all the control signals are given out by the microprocessor chip. It is typically used for single microprocessor systems. 2. Maximum Mode: The 8086µP operates in minimum mode by connecting its pin to ground. ( ). In this mode, the processor derives the status signal S2, S1, S0 by another chip called bus controller. In the maximum mode, there may be more than one microprocessor in the system configuration. Minimum-Mode Interface Signals The minimum-mode signals can be divided into the following basic groups: Address/Data bus Status signals Control signals Interrupt signals Interface Signals 68

Address/Data Bus: The address bus is 20 bits long and consists of signal lines A 0 (LSB) through A 19 (MSB). However, only address lines A 0 through A 15 are used when accessing I/O. The data bus lines are multiplexed with address lines. For this reason, they are denoted as AD 0 through AD 15. Data line D 0 is the LSB. Status Signals: The four most significant address lines A 16 through A 19 of the 8086µP are multiplexed with status signals S 3 through S 6. These status bits are output on the bus at the same time that data are transferred over the other bus lines. Bit S4 and S3 together from a 2 bit binary code that identifies which of the 8086 internal segment registers are used to generate the physical address as shown in the table below. Status line S5 reflects the status of the IF. The last status bit S6 is always at the logic 0 level. Control Signals: When Address latch enable (ALE) is logic 1 it signals that a valid address is on the bus. This address can be latched in external circuitry on the 1-to-0 edge of the pulse at ALE. (memory/io) tells external circuitry whether a memory or I/O transfer is taking place over the bus. Logic 1 signals a memory operation and logic 0 signals an I/O operation. (data transmit/receive) signals the direction of data transfer over the bus. Logic 1 indicates that the bus is in the transmit mode (i.e., data are either written into memory or to an I/O device). Logic 0 signals that 61

the bus is in the receive mode (i.e., reading data from memory or from an input port). The bank high enable ( ) signal is used as a memory enable signal for the most significant byte half of the data bus, D 8 through D 15. (write) is switched to logic 0 to signal external devices that valid output data are on the bus. (read) indicates that the MPU is performing a read of data off the bus. During read operations, one other control signal, (data enable), is also supplied. It enables external devices to supply data to the microprocessor. The READY signal can be used to insert wait states into the bus cycle so that it is extended by a number of clock periods. This signal is supplied by a slow memory or I/O subsystem to signal the MPU when it is ready to permit the data transfer to be completed. Interrupt Signals: Interrupt request (INTR) is an input to the 8086µP that can be used by an external device to signal that it needs to be serviced. Logic 1 at INTR represents an active interrupt request. When the MPU recognizes an interrupt request, it indicates this fact to external circuits with logic 0 at the interrupt acknowledge (INTA) output. On the 0-to-1 transition of non-maskable interrupt (NMI), control is passed to a non-maskable interrupt service routine at completion of execution of the current instruction. NMI is the interrupt request with highest priority and cannot be masked by software. The RESET input is used to provide a hardware reset for the MPU. Switching RESET to logic 0 initializes the internal registers of the MPU and initiates a reset service routine. DMA Interface Signals: The Direct Memory Access (DMA) interface of the 8086 minimum mode consist of the HOLD and HLDA signals. When an external device wants to take control of the system bus, it signals the MPU by switching HOLD to the logic level 1. When in the hold state, lines AD0 through AD15, A16/S3 through A19/S6, are all put in the high-z state. The MPU signals external devices that it is in this state by switching HLDA to 1. 62

Maximum-Mode Interface The maximum-mode configuration is mainly used for implementing a multiprocessor/coprocessor system environment which means that multiple processor exist in the system and each processor execute its own program. 8086µP does not directly provide all the signals that are required to control the memory, I/O and interrupt interfaces. are input to the external bus controller device (8288 Bus Controller), the bus controller generates the timed command and control signals. 63

System Clock To synchronize the internal and external operations of the microprocessor a clock (CLK) input signal is used. The CLK can be generated by the 8284 clock generator IC. The 8086µP is manufactured in three speeds: 5 MHz, 8 MHz and 10 MHz For 8086µP, we connect either a 15-, 24- or 30-MHz crystal between inputs X1 and X2 inputs of the clock chip (see Fig. 8-11). The fundamental crystal frequency is divided by 3 within the 8284 to give either a 5-, 8- or 10-MHz clock signal, which is directly connected to the CLK input of the 8086µP. Bus Cycle and Time States A bus cycle defines the sequence of events when the MPU communicates with an external device, which starts with an address being output on the system bus followed by a read or write data transfer. Types of bus cycles: Memory Read Bus Cycle Memory Write Bus Cycle Input / Output Read Bus Cycle Input / Output Write Bus Cycle The bus cycle of the 8086µP microprocessor consists of at least four clock periods. These four time states are called T 1, T 2, T 3 and T 4. 64