8086 PIN Diagram Signals with common functions in both Modes: The following signal description is common for both the minimum and maximum modes.

Size: px
Start display at page:

Download "8086 PIN Diagram Signals with common functions in both Modes: The following signal description is common for both the minimum and maximum modes."

Transcription

1 UNIT II SYSTEM BUS STRUCTURE 8086 signals Basic configurations System bus timing System design using 8086 IO programming Introduction to Multiprogramming System Bus Structure Multiprocessor configurations Coprocessor, Closely coupled and loosely Coupled configurations Introduction to advanced processors signals The 8086 Microprocessor operates in single processor or multiprocessor configurations (System contains two or more components that can execute instructions independently, then the system is called multiprocessor system) to achieve high performance. The pin configuration is as shown in fig1. Some of the pins serve a particular function in minimum mode (single processor mode) and others function in maximum mode (multiprocessor mode) configuration. The 8086 signals can be categorized in three groups. The first are the signals having common functions in minimum as well as maximum mode, the second are the signals which have special functions in minimum mode and third are the signals having special functions for maximum mode PIN Diagram Signals with common functions in both Modes: The following signal description is common for both the minimum and maximum modes.

2 AD 0 -AD 15 : These line are multiplexed bidirectional address/data bus. During T 1 they carry lower order address bus. In the remaining clock cycles, they carry 16 bit data. AD 0 -AD 7 carry lower order byte of data. AD 0 -AD 15 carry higher order byte of data. A19/S6, A18/S5, A17/S4, A16/S3: During the first part of the machine cycle these are used to output upper 4-bits of address. During remaining part of the machine cycles these are used to output status, which indicates the type of operation to be performed in that cycle. S 3 and S 4 indicates the segment register being used and S 5 gives status of interrupt flag and S 6 is always zero. S 4 S 3 Register 0 0 ES 0 1 SS 1 0 CS or None 1 1 DS BHE*/S 7 : It stands for BUS HIGH ENABLE. It is used to indicate the transfer of data over higher order data bus (D 8 -D 15 ) if it is low. Otherwise the transfer is made on lower order byte AD 7 -AD 0. BHE A 0 Data Access 0 0 Word 0 1 Upper byte from odd address 1 0 Lower byte from even address 1 1 None NMI It is a non maskable interrupt. It is an active high and an edge triggered interrupt. INTR It is a level triggered interrupt signal. It is active high CLK The clock input provides the basic timing for processor operation. Clock frequency depends on the version of Processor Required Clock Signal Mhz Mhz Mhz RESET It is a system reset and an active high signal. When its high, microprocessor enters into reset states and terminates the current activity. It must be active for atleast four clock cycles to reset the microprocessor.

3 READY: This is an acknowledge signal from slower I/O devices or memory. It is an active high signal. When high, it indicates that the device is ready to transfer data. When low, then microprocessor is in wait state. TEST: This input is examined by a 'WAIT' instruction. If the TEST input goes low, execution will continue, else, the processor remains in an idle state. The input is synchronized internally during each clock cycle on leading edge of clock. RD (Read ) : If it is low then 8086 reads data from memory or an I/O device. MN/MX: 8080 works in two modes namely Minimum mode and Maximum mode. If it is high, it works in minimum mode. If it is low it works in maximum mode. PIN description / Signals in Minimum Mode: ( 24 to 31) INTA: This is an interrupt acknowledge signal. When microprocessor receives INTR signal, acknowledges the interrupt by generation this signal. It is an active low signal. ALE: This is an address latch enable signal. It indicates that valid address is available on bus AD 0 -AD 15. It is an active high signal and remains high during T 1 state. DEN-Data Enable: This signal indicates the availability of valid data over the address/data lines. It is used to enable the transceivers (bidirectional buffers) to separate the data from the multiplexed address/data signal. DT/R: This is a Data Transmit/Receive signal. It decides the direction of data flow through the transceiver. When it is high, data is transmitted out. When it is low, data is received in. M/IO: This signal is issued by the microprocessor to distinguish memory access from I/O access. When it is high, memory is accessed. When it is low, I/O devices are accessed. WR: It is a write signal. It is used to write data in memory or output device. It is an active low signal. HOLD and HLDA: A high on HOLD pin indicates that another master (DMA) is requesting to take over the system bus. On receiving HOLD signal processor outputs HLDA signal HIGH as an acknowledgement. PIN description or signals for Maximum Mode: QS 1 and QS 0 : These pins provide the status of instruction queue. QS 0 QS 1 Status 0 0 No operation

4 0 1 1 st byte of opcode from queue 1 0 Empty queue 1 1 Subsequent byte from queue S 0, S 1, S 2 : These status signals indicate the operation being done by the microprocessor. This information is required by the Bus controller Bus controller 8288 generates all memory and I/O control signals. S 2 S 1 S 0 Status Interrupt acknowledge I/O read I/O write Halt Opcode fetch Memory read Memory write Inactive-passive LOCK: This signal indicates that other processors should not ask CPU to relinquish the system bus. When it goes low, all interrupts are masked and HOLD request is not granted. RQ/GT 1 and RQ/GT 0. : These are request/ grant pins. Other processors request the CPU through these lines to release the system bus. After receiving the request CPU Sends acknowledge signal on the same lines.rq/gt 0 has higher priority than RQ/GT 1. *****

5 Basic configurations General Bus Operation: The 8086 has a combined address and data bus commonly referred as a time multiplexed address and data bus. The main reason behind multiplexing address and data over the same pins is the maximum utilization of processor pins and it facilitates the use of 40 pin standard DIP package. The bus can be demultiplexed using a few latches and transceivers, whenever required. Basically, all the processor bus cycles consist of at least four clock cycles. These are referred to as T1, T2, T3, T4. The address is transmitted by the processor during T1, It is present on the bus only for one cycle. The negative edge of this ALE pulse is used to separate the address and the data or status information. The ALE signal is used activate latches and thus to latch the address. The data transfer occurs on the bus during T3and T4. The time interval T2 is used for changing the direction of the bus during read operations. Ready signal is sampled during T 3. The slower peripheral devices use this signal to indicate that the device is not ready to send the desired data within specified time. Not ready indication is given by the slower peripheral device. Wait state TW is inserted in between T2 and T3 to give enough access time for the slower peripheral devices. Each wait state is of the same as a clock cycle. During this wait state, the signals on the buses remain the same as they were at the start of the WAIT state. During WAIT state, if the Ready signal input is high then after the 8086 will go on with the regular T4 of the machine cycle.

6 If the Ready input is low at the end of a WAIT state, then 8086 insert another WAIT state until the Ready input is made high again. In maximum mode, the status lines S0, S1 and S2 are used to indicate the type of operation. Status bits S3 to S7 are multiplexed with higher order address bits and the BHE signal. Address is valid during T1 while status bits S3 to S7 are valid during T2 through T4. Minimum Mode 8086 System System design using 8086 In a minimum mode 8086 system, the microprocessor 8086 is operated in minimum mode by strapping its MN/MX* pin to logic1. In this mode, all the control signals are given out by the microprocessor chip itself. There is a single microprocessor in the minimum mode system. The remaining components in the system are latches, transceivers, clock generator, memory and I/O devices. The figure shows the typical minimum mode 8086 system. Interacting of memory and I/O devices are shown with the basic minimum mode 8086 configuration. Odd and even memory banks are needed to interface with This is implemented using two EPROM and two RAMs. Data lines D 15 -D 8 are connected to odd bank of EPROM and RAM, and data lines D7-D0 are connected to even bank of EPROM and RAM. Address lines are connected to EPROM and RAM. RD* signal is connected to the output enable (OE*) signals of EPROMs and RAMs. WR* signal is connected to WR* signal of RAMs. Two separate decoders are used to generate chip select signals for memory and I/O devices. These chip select signals are logically ORed with either BHE* or A 0 to generate final chip select signals. For generating final chip select signal for odd bank decoder outputs are logically ORed with BHE* signal and for even bank decoder outputs are logically ORed with A0 signal. The 16-bit I/O interface RD* and WR* signals are connected to the RD* and WR* signals of I/O devics. Data lines D15-D0 are connected to the data lines of I/O device. The chip select signal for I/O device is generated using separate decoder whose output is enabled, when M/IO* signal is low.

7 Bus Timing for Minimum Mode- Read operation Read cycle timing diagram for minimum mode Figure shows the read cycle timing diagram. The read cycle begins in T1 with the assertion of the address latch enable (ALE) signal and also M/IO* signal.

8 During the negative going edge of this signal, the valid address is latched on the local bus. The BHE* and A0 signals address low, high or both bytes. From Tl to T4, the M/IO* signal indicates a memory or I/O operation. At T2 the address is removed from the local bus and is sent to the output. The bus is then tristated. The read (RD*) control signal is also activated in T2. The read (RD) signal causes the addressed device to enable its data bus drivers. After RD* goes low, the valid data is available on the data bus. The addressed device will drive the READY line high, when the processor returns the read signal to high level, the addressed device will again tristate its bus drivers. Bus Timing for Minimum Mode- Write operation Write cycle timing diagram for minimum mode Figure shows the write cycle timing diagram. The write cycle begins in T1 with the assertion of the address latch enable (ALE) signal and also M/IO* signal. In T2 after sending the address in T l the processor sends the data to be written to the addressed location. The data remains on the bus until middle of T4 state. The WR* becomes active at the beginning of T2 The BHE* and A0 signals are used to select the proper byte or bytes of memory or I/O word to be read or written. The M/IO*, RD* and WR* signals indicate the types of data transfer as specified in table.

9 HOLD Response System The figure shows the HOLD and HLDA signal timings in minimum mode system. The HOLD pin is sampled at leading edge of each clock pulse. If it is sampled by the 8086 before T4 of the previous cycle or during T1 of the current cycle, the 8086 activates HLDA in the next clock cycle. It relinquishes the control of all buses and theand it is handed over to the requesting master. The control of the bus is not regained by the 8086 until the requesting master does not inactivate the HOLD pin. After that 8086 regains the control of buses and inactivate the HLDA signal. Maximum mode 8086 system In the maximum mode, the 8086 is operated by strapping the MN/MX* pin to ground. In this mode, the processor derives the status signals S2*, S1* and S0*. In this mode, additional circuitry is required to translate the control signals. Th e additional circuitry is required to converts the status signal into the I/0 and memory transfer signals. The bus controller chip has input lines S2*, S1* and S0* and CLK. The basic functions of the bus controller chip IC8288, is to derive control signals like RD* and WR* (for memory and I/O devices), DEN*, DT/R*, ALE, etc. using the information made available by the processor on the status lines. These inputs to 8288 are driven by the CPU. It derives the outputs ALE, DEN*, DT/R*, MWTC*, AMWC*, IORC*, IOWC* and AIOWC*.

10 MRDC*: Memory read command it instructs the memory to put the contents of the address location on the data bus. MWTC*: Memory Write Command It instructs the memory accepts the data on the data bus and load the data into the addressed memory location. IORC*: I/0 Read Command it instructs an I/O device to put the data contained in the addressed port on the data bus. IOWC*- I/O Write Command It instructs an I/O device to accept the data on the data bus and load the data into the addressed port. MCE/PDEN*: Master Cascade Enable/ Peripheral Data Enable It controls the mode of operation of 8259 ( Interrupt controller). It selects cascade operation of interrupt controller and I/O bus transceiver. AIOWC*/AMWC*: Advance I/O Write Command/Advance Memory Write Command These signals are similar IOWC and MWTC. They will be activated one clock pulse earlier. Its useful for the slow interfaces to prepare the input data. The maximum mode system timing diagrams are also divided in two portions as read (input) and write (output) timing diagrams. The address/data and address/status timings are similar to the minimum mode. ALE is asserted in T1, just like minimum mode. The only difference lies in the status signals used and the available control and advanced command signals. The figures show the maximum mode timings for the read operation and for the write operation.

11 Memory Read cycle Memory Write Cycle

12 Multiprocessor Systems Multiprocessor Systems refer to the use of multiple processors that execute instructions simultaneously and communicate. Maximum mode of 8086 is designed to implement 3 basic multiprocessor configurations: 1. Coprocessor (8087) 2. Closely coupled (dedicated I/O processor: 8089) 3. Loosely coupled (Multi bus) Coprocessor configurations The numeric processor 8087 is coprocessor which has been specially designed to work under the control of the processor 8086 and to support additional numeric processing capabilities. FEATURES: It can operate on data of the integer, decimal and real types with length ranging from 2 to 10 bytes. Its instruction includes some useful functions like square root, exponential and tangent. It is high performance numeric data processor. It can multiply two 64-bit real numbers. Pin Diagram of 8087

13 8087 PIN Diagram The address/data, status ready, reset, clock and ground pins of the NDP ae similar to the 8086 pins. The other pins are as follows: BUSY*: Busy signal from the 8087 is connected to the TEST* input of the If the 8086 needs the results of some computation, then the 8087 helps using this pin. RQ*/GT 0 * : This request / grant signal from the 8087 is usually connected to the request/ grant pin of the INT: The 8087 can interrupt the 8086 through this pin. S 2 *- S 0 *: S2* S1* S0* Status 0 X X Unused Unused Read memory Write memory Passive QS 0 -QS 1 : These signals give the information about the queue status. QS 1 QS 0 Operation 0 1 No operation

14 0 1 First byte of opcode from queue 1 0 Queue empty 1 1 Subsequent bytes from the queue Interconnection of 8086 and 8087 MN/MX* pin of the 8086 is grounded, so the 8086 is operating in its maximum mode sends signal on the status pins and queue status lines. Bus controller 8288 decodes these status signals to produce the control signals. The address lines A16-A9 is connected directly from 8086 to The 8087 receives the same clock and reset signals. The bus request/grant signal from 8087 is connected to the request/grant of The BUSY* signal from 8087 is connected to the TEST* input of Instructions of 8087 are inserted in the 8086 programs as needed fetches instruction bytes from memory and puts them in its internal queue, and 8087 also reads these instruction bytes and puts them in its internal queue.

15 8087 decodes each instruction from its queue and if it finds that it is an 8086 instruction, then the 8087 treats the instructions as NOP. Similarly, 8086 decodes each instruction from its queue and if it finds that it is an 8087 instruction, then the 8086 treats the instructions as NOP. The instructions are differentiated by code The 8087instruction code has as the most significant bits of their code byte. Interaction between 8086 and 8087 An instruction to be executed by 8087 is indicated by and ESC instruction. The 8087 monitors the S2* to S0 * and AD0- AD15 of The 8087 tracks status of QSO to QS1, if it is 00, 8087 does nothing. If it is 01, five MSB bits with If there is match 8087 will perform the indicated operation. Otherwise the byte is ignored and deleted from the queue. If an error occurs during an ESC instruction, 8087 sends an interrupt request.

16 8087 Architecture Instruction Queue: it maintain a 6 byte instruction queue and tracks an execution sequence of the host. If the current instruction is an ESC instruction, the 8087 decodes the external opcode to perform the specified operation. Data Register: It has 8 data registers. Each register is 80- bit and it is accessed as a stack. A push and pop operation loads and retrieve the data from stack. The top stack element is pointed by ST bits ( 11,12,13 bits of the status register) Status Register: The status register is 16-bit register. If indicates the overall state of 8087.

17 B-Busy bit indicates that coprocessor is busy executing a task. Busy can be tested by examining the status or by using the FWAIT instruction. C3-C0 Condition code bits indicates conditions about the coprocessor. TOP- Top of the stack (ST) bit indicates the current register address as the top of the stack. ES-Error summary bit is set if any unmasked error bit (PE, UE, OE, ZE, DE, or IE) is set. In the 8087 the error summary is also caused a coprocessor interrupt. PE- Precision error indicates that the result or operand executes selected precision. UE-Under flow error indicates the result is too large to be represent with the current precision selected by the control word. OE-Over flow error indicates a result that is too large to be represented. If this error is masked, the coprocessor generates infinity for an overflow error. ZE-A Zero error indicates the divisor was zero while the dividend is a non-infinity or non-zero number. DE- Denormalized error indicates at least one of the operand is denormalized. IE-Invalid error indicates a stack overflow or underflow. This flag indicates error such as those produced by taking the square root of a negative number. Control Register: It is used to mask the error types individually. IC Infinity control RC Rounding control PC Precision control

18 PM Precision control UM Underflow mask OM Overflow mask ZM Division by zero mask DM Denormalized operand mask IM Invalid operand mask Stacks in 8087: 8087 has 3-bit stack pointer which holds the number of the register which is the current top- of stack. When it is initialized, the 3-bit stack pointer in the 8087 is loaded with 000 that indicates register 0 is a top of stack. When you decrement by one, then register 7 is the top of stack (111). The register which is top of stack is referred as ST(0), and the register next to it is referred as ST(1) Data types: The 8087 recognizes three real data types: Short real Long real Temporary real INSTRUCTION SET The 8087 instruction mnemonics begins with the letter F which stands for Floating point and distinguishes from Types Data transfer instructions. Arithmetic instructions. Compare instructions. Transcendental instructions Data transfer instructions: 1) Real Transfers FLD Source - Decrements the stack pointer by one and copies a real number from a stack element or memory location to the new ST. Example: FLD ST(2) Copies ST (2) to ST. FST Destination C opies ST to a specified stack pointer or to a specified memory location. Example: FST ST(3) Copy ST to ST(3) FSTP destination Copies ST to a specified stack element or memory location and increments the stack pointer by one to point to the next element on the stack. FXCH destination Exchange the contents of ST with the contents of a specified stack element. If destination is not specified then ST(1) is used. Example: FXCH ST(4) Swap ST and ST(4). 2) Integer Transfer

19 FILD source Convert integer number from memory to temporary-real format and load the converted number on stack. FIST destination Convert number From ST to integer form and copies to memory. FISTP destination Similar to FIST but increment one after copy. Arithmetic Instructions: Addition FADD destination, source Add the real number in source and destination. Source can be stack elemnt or memory location and the destination should be stack. Example: FADD ST(2), ST Add ST to ST(2) and the result in ST(2) Subtraction FSUB destination, Source Subtracts the real number at the specified source from the real number at the specified destination and stores the result in the specified destination. Example: FSUB ST(3), ST Subtract ST from ST(3) and store the result in ST(3). Multipliation FMUL destination, source Multiply real number from source by real number from specified destination and store the result in specified location. Example: FMUL ST(2), ST - Multiply ST(2) and ST and result in ST(2). Division FDIV destination, source Divide destination real number by source real and stores the result in destination. Example: FDIV ST(2),ST- Divide ST by ST(2) and stores the result in ST. COMPARE INSTRUCTIONS Compare the contents of ST with contents of specified or default source The source may be another stack element or real number in memory. Examples: FCOM source Compare ST with real number in another stack element or memory. FCOM ST(4) Compare ST with ST(4). TRANSCENDENTAL INSTRUCTIONS FPTAN - Compute the values for a ration of Y/X for an angle in ST. The angle must be expressed in radians. F2XM1 Compute the function Y=2 x 1 for an X value in ST. Result will be stored in ST by replacing X value. CONSTANT INSTRUCTIONS

20 Load Constant Instruction These instructions are used to push the indicated constant value onto the stack. FLDZ - Load +0.0 FLDI - Load+1.0 FLDPI - Load π FLDL2T - Load log 2 10 FLDL2E - Load log 2 e FLDLG2 - Load log 10 2 Closely Coupled System using 8086 In CCS the processors or supporting processors share clock generators, bus control logic, entire memory and I/O system. These systems communicate through a shard main memory. The figure shows the simplest form of closely coupled configuration. In this c8086 (CPU) is the master and the supporting proessor is the slave. The CPU provides bus control logic. The bus request signal from the supporting processor is connected to the CPU. In a closely coupled system no special instruction such as WAIT or Esc is used. The communication between processor and independent processor is done through memory space. The host wake up independent processor by sending command to one of its port by setting message in host memory. The independent processor access the memory to execute the task in parallel with the host. The completion of work is indicated by interrupt request or status bit of independent processor to the host processor.

21 LOOSELY COUPLED MUTIPROCESSOR In loosely coupled multiprocessor systems, each processor has a set of input-output devices and a large local memory and CAS (used to interface to the other module). The processor, its memory and its input-output interfaces are together called Computer Module. Different modules communicate each other by exchanging message through a Message Transfer System (MTS). If more than one request comes, the channel and arbiter switch is responsible for choosing one. It s also responsible for delaying other requests until the servicing of the selected request is completed.

22 The channel within the CAS consists of a high speed communication memory which is used for buffering block transfers of messages. The message-transfer systems for a LCS are divided into two categories: 1. Simple time shared bus Common communication path connecting all functional units. Performance is based on the arrival rate of message on the bus, message length and bus capacity ( in bits/sec ). 2. Shared memory system it consists of a set of memory modules and a processormemory interconnection network or a multiport memory. Here the performance is affected by memory conflict problem due to the processor memory interconnection network. Advantages of Loosely Coupled System

23 1.High system throughput can be achieved by having more than one CPU. 2. The system can be expanded in a modular form. Each bus master module is an independent unit and normally resides on a separate PC board. Therefore, a bus master module can be added or removed without affecting the other modules in the system. 3. A failure in one module normally does not cause a breakdown of the entire system and the faulty module can be easily detected and replaced. 4. Each bus master may have a local bus to access dedicated memory or I/O devices so that a greater degree of parallel processing can be achieved. More than one bus master module may have access to the shared system bus Bus Arbitration: The mechanism which decided the selection of current master to access bus is known as Bus arbitration. Three mechanisms are normally used: 1. Daisy chaining. 2. Polling. 3. Independent requesting Daisy Chaining: All the masters uses the same line for bus request. Bus controller sends a bus grant if the bus is free. The bus grant signal serially propagates through each master until it encounters the one which requesting the access to the bus. Then the master blocks the propagation of the bus grant signal, activates the busy line and gains the control of the bus. After that no other module will not receive the grant signal and hence cannot get the bus access. Advantages:

24 It is a simple and cheaper method It requires least number of lines and it is independent of the number of masters in the system. Disadvantages: The propagation delay of bus grant signal is proportional to the number of masters in the system. Priority is fixed by the physical location of the system. Failure of any one master causes the whole system to fail. Polling Method: In this method controller generates the address for the master needs bus access. Number of address lines required depends on the number of masters connected in the system. ( 2 address lines are needed to recognize 4 masters ). In response to a bus request controller generates a sequence of master addresses. When the requesting master recognizes its address, it activates the busy line and begins to use the bus. Advantages: If the one system fails, entire system does not affected. Priority can be changed by altering the polling sequence stored in the controller. Independent Priority: In this scheme each master has a separate pair of bus request and bus grant lines and each pair has a priority assigned to it. The built in priority decoder within the controller selects the highest priority request and assigns the corresponding bus grant signal.

25 Advantages: Bus arbitration is fast and it is independent of the number of masters in the system. Disadvantages: It requires more bus request and grant signals. Introduction to Advanced Processors The is the first member of the family of advanced microprocessors with memory management and protection abilities. The CPU, with its 24-bit address bus is able to address 16 Mbytes of physical memory. Various versions of are available that runs on 12.5 MHz, 10 MHz and 8 MHz clock frequencies is upwardly compatible with 8086 in terms of instruction set has two operating modes namely real address mode and virtual address mode. In real address mode, the can address upto 1Mb of physical memory address like In virtual address mode, it can address up to 16 Mb of physical memory address space and 1 Gb of virtual memory address space. The instruction set of includes the instructions of 8086 and has some extra instructions to support operating system and memory management. In real address mode, the is object code compatible with In protected virtual address mode, it is source code compatible with The performance of is five times faster than the standard 8086.

26 Need for Memory Management The part of main memory in which the operating system and other system programs are stored is not accessible to the users. In view of this, an appropriate management of the memory system is required to ensure the smooth execution of the running process and also to ensure their protection. The memory management which is an important task of the operating system is supported by a hardware unit called memory management unit. Swapping in of the Program Fetching of the application program from the secondary memory and placing it in the physical memory for execution by the CPU. Swapping out of the executable Program Saving a portion of the program or important results required for further execution back to the secondary memory to make the program memory free for further execution of another required portion of the program. Concept of Virtual Memory Large application programs requiring memory much more than the physically available 16 Mbytes of memory, may be executed by diving it into smaller segments. Thus for the user, there exists a very large logical memory space which is not actually available. Thus there exists a virtual memory which does not exist physically in a system. This complete process of virtual memory management is taken care of by the CPU and the supporting operating system. Internal Architecture of Register Organization of The CPU contains almost the same set of registers, as in 8086, namely 1. Eight 16-bit general purpose registers 2. Four 16-bit segment registers 3. Status and control registers 4. Instruction Pointer

27 The flag register reflects the results of logical and arithmetic instructions. D2, D4, D6, D7 and D11 are called as status flag bits. The bits D8 (TF) and D9 (IF) are used for controlling machine operation and thus they are called control flags. The additional fields available in flag registers are: 1. IOPL - I/O Privilege Field (bits D12 and D13) 2. NT - Nested Task flag (bit D14) 3. PE - Protection Enable (bit D16) 4. MP - Monitor Processor Extension (bit D17) 5. EM - Processor Extension Emulator (bit D18) 6. TS Task Switch (bit D19) Protection Enable flag places the in protected mode, if set. This can only be cleared by resetting the CPU. If the Monitor Processor Extension flag is set, allows WAIT instruction to generate a processor extension not present exception. Processor Extension Emulator flag if set, causes a processor extension absent exception and permits the emulation of processor extension by the CPU. Task Switch flag if set, indicates the next instruction using extension will generate exception 7, permitting the CPU to test whether the current processor extension is for the current task. Machine Status Word (MSW) The machine status word consists of four flags PE, MO, EM and TS of the four lower order bits D19 to D16 of the upper word of the flag register. The LMSW and SMSW instructions are available in the instruction set of to write and read the MSW in real address mode. Internal Block Diagram of 80286

28 The CPU contain four functional blocks 1. Address Unit (AU) 2. Bus Init (BU) 3. Instruction Unit (IU) 4. Execution Unit (EU) The address unit is responsible for calculating the physical address of instructions and data that the CPU wants to access. Also the address lines derived by this unit may be used to address different peripherals. The physical address computed by the address unit is handed over to the bus unit (BU) of the CPU. Major function of the bus unit is to fetch instruction bytes from the memory. Instructions are fetched in advance and stored in a queue to enable faster execution of the instructions. The bus unit also contains a bus control module that controls the prefetcher module. These prefetched instructions are arranged in a 6-byte instructions queue. The 6-byte prefetch queue forwards the instructions arranged in it to the instruction unit (IU). The instruction unit accepts instructions from the prefetch queue and an instruction decoder decodes them one by one. The decoded instructions are latched onto a decoded instruction queue. The output of the decoding circuit drives a control circuit in the execution unit, which is responsible for executing the instructions received from decoded instruction queue. The decoded instruction queue sends the data part of the instruction over the data bus. The EU contains the register bank used for storing the data as scratch pad, or used as special purpose registers. The ALU, the heart of the EU, carries out all the arithmetic and logical operations and sends the results over the data bus or back to the register bank.

29 Interrupts of The Interrupts of may be divided into three categories, 1. External or hardware interrupts 2. INT instruction or software interrupts 3. Interrupts generated internally by exceptions While executing an instruction, the CPU may sometimes be confronted with a special situation because of which further execution is not permitted. While trying to execute a divide by zero instruction, the CPU detects a major error and stops further execution. In this case, we say that an exception has been generated. In other words, an instruction exception is an unusual situation encountered during execution of an instruction that stops further execution. The return address from an exception, in most of the cases, points to the instruction that caused the exception. As in the case of 8086, the interrupt vector table of requires 1Kbytes of space for storing 256, four-byte pointers to point to the corresponding 256 interrupt service routines (lsr). Each pointer contains a 16-bit offset followed by a 16-bit segment selector to point to a particular ISR. The calculation of vector pointer address in the interrupt vector table from the (8-bit) INT type is exactly similar to Like 8086, the supports the software interrupts of type 0 (INT 00) to type FFH (INT FFH). Maskable Interrupt INTR : This is a maskable interrupt input pin of which the INT type is to be provided by an external circuit like an interrupt controller. The other functional details of this interrupt pin are exactly similar to the INTR input of Non-Maskable Interrupt NMI : It has higher priority than the INTR interrupt. Whenever this interrupt is received, a vector value of 02 is supplied internally to calculate the pointer to the interrupt vector table. Once the CPU responds to a NMI request, it does not serve any other interrupt request (including NMI). Further it does not serve the processor extension (coprocessor) segment overrun interrupt, till either it executes IRET or it is reset. To start with, this clears the IF flag which is set again with the execution of IRET, i.e. return from interrupt. Single Step Interrupt As in 8086, this is an internal interrupt that comes into action, if trap flag (TF) of is set. The CPU stops the execution after each instruction cycle so that the register contents (including flag register), the program status word and memory, etc. may be examined at the end of each instruction execution. This interrupt is useful for troubleshooting the software. An interrupt vector type 01 is reserved for this interrupt. Interrupt Priorities: If more than one interrupt signals occur simultaneously, they are processed according to their priorities as shown below : Order Interrupt 1 Interrupt exception 2 Single step 3 NMI

30 4 Processor extension segment overrun 5 INTR 6 INT instruction FUNCTION Interrupt Number Divide error exception 0 Single step interrupt 1 NMI interrupt 2 Breakpoint interrupt 3 INTO detected overflow exception 4 BOUND range exceeded exception 5 Invalid opcode exception 6 Processor extension not available exception 7 Intel reserved, do not use 8-15 Processor extension error interrupt 16 Intel reserved, do not use User defined Signal Description of CLK: This is the system clock input pin. The clock frequency applied at this pin is divided by two internally and is used for deriving fundamental timings for basic operations of the circuit. The clock is generated using 8284 clock generator. D15-D0 : These are sixteen bidirectional data bus lines. A23-A0 : These are the physical address output lines used to address memory or I/O devices. The address lines A23 - A16 are zero during I/O transfers. BHE : This output signal, as in 8086, indicates that there is a transfer on the higher byte of the data bus (D15 D8). S1, S0 : These are the active-low status output signals which indicate initiation of a bus cycle and with M/IO and COD/INTA, they define the type of the bus cycle. M/ IO : This output line differentiates memory operations from I/O operations. If this signal is it 0 indicates that an I/O cycle or INTA cycle is in process and if it is 1 it indicates that a memory or a HALT cycle is in progress. COD/ INTA : This output signal, in combination with M/ IO signal and S1, S0 distinguishes different memory, I/O and INTA cycles. LOCK : This active-low output pin is used to prevent the other masters from gaining the control of the bus for the current and the following bus cycles. This pin is activated by a "LOCK" instruction prefix, or automatically by hardware during XCHG, interrupt acknowledge or descriptor table access

31

32 READY This active-low input pin is used to insert wait states in a bus cycle, for interfacing low speed peripherals. This signal is neglected during HLDA cycle. HOLD and HLDA This pair of pins is used by external bus masters to request for the control of the system bus (HOLD) and to check whether the main processor has granted the control (HLDA) or not, in the same way as it was in INTR : Through this active high input, an external device requests to suspend the current instruction execution and serve the interrupt request. Its function is exactly similar to that of INTR pin of NMI : The Non-Maskable Interrupt request is an active-high, edge-triggered input that is equivalent to an INTR signal of type 2. No acknowledge cycles are needed to be carried out. PEREG and PEACK (Processor Extension Request and Acknowledgement) Processor extension refers to coprocessor (80287 in case of CPU). This pair of pins extends the memory management and protection capabilities of to the processor extension The PEREQ input requests the to perform a data operand transfer for a processor extension. The PEACK active-low output indicates to the processor extension that the requested operand is being transferred. BUSY and ERROR : Processor extension BUSY and ERROR active-low input signals indicate the operating conditions of a processor extension to The BUSY goes low, indicating to suspend the execution and wait until the BUSY become inactive. In this duration, the

33 processor extension is busy with its allotted job. Once the job is completed the processor extension drives the BUSY input high indicating to continue with the program execution. An active ERROR signal causes the to perform the processor extension interrupt while executing the WAIT and ESC instructions. The active ERROR signal indicates to that the processor extension has committed a mistake and hence it is reactivating the processor extension interrupt. CAP : A μf, 12V capacitor must be connected between this input pin and ground to filter the output of the internal substrate bias generator. For correct operation of the capacitor must be charged to its operating voltage. Till this capacitor charges to its full capacity, the may be kept stuck to reset to avoid any spurious activity. Vss : This pin is a system ground pin of Vcc : This pin is used to apply +5V power supply voltage to the internal circuit of RESET The active-high RESET input clears the internal logic of 80286, and reinitializes RESET The active-high reset input pulse width should be at least 16 clock cycles. The requires at least 38 clock cycles after the trailing edge of the RESET input signal, before it makes the first opcode fetch cycle. Real Address Mode Act as a fast 8086 Instruction set is upwardly compatible It address only 1 M byte of physical memory using A0-A19. In real addressing mode of operation of 80286, it just acts as a fast The instruction set is upward compatible with that of The addresses only 1Mbytes of physical memory using A0- A19. The lines A20-A23 are not used by the internal circuit of in this mode. In real address mode, while addressing the physical memory, the uses BHE along with A0- A19. The 20-bit physical address is again formed in the same way as that in The contents of segment registers are used as segment base addresses. The other registers, depending upon the addressing mode, contain the offset addresses. Because of extra pipelining and other circuit level improvements, in real address mode also, the operates at a much faster rate than 8086, although functionally they work in an identical fashion. As in 8086, the physical memory is organized in terms of segments of 64Kbyte maximum size. An exception is generated, if the segment size limit is exceeded by the instruction or the data. The overlapping of physical memory segments is allowed to minimize the memory requirements for a task. The reserves two fixed areas of physical memory for system initialization and

34 interrupt vector table. In the real mode the first 1Kbyte of memory starting from address 0000H to 003FFH is reserved for interrupt vector table. Also the addresses from FFFF0H to FFFFFH are reserved for system initialization. The program execution starts from FFFFH after reset and initialization. The interrupt vector table of is organized in the same way as that of Some of the interrupt types are reserved for exceptions, single-stepping and processor extension segment overrun, etc. When the is reset, it always starts the execution in real address mode. In real address mode, it performs the following functions: it initializes the IP and other registers of 80286, it prepares for entering the protected virtual address mode.

35 PROTECTED VIRTUAL ADDRESS MODE (PVAM) is the first processor to support the concepts of virtual memory and memory management. The virtual memory does not exist physically it still appears to be available within the system. The concept of VM is implemented using Physical memory that the CPU can directly access and secondary memory that is used as storage for data and program, which are stored in secondary memory initially. The Segment of the program or data required for actual execution at that instant, is fetched from the secondary memory into physical memory. After the execution of this fetched segment, the next segment required for further execution is again fetched from the secondary memory, while the results of the executed segment are stored back into the secondary memory for further references. This continues till the complete program is executed. During the execution the partial results of the previously executed portions are again fetched into the physical memory, if required for further execution. The procedure of fetching the chosen program segments or data from the secondary storage into physical memory is called swapping. The procedure of storing back the partial results or data back on the secondary storage is called unswapping. The virtual memory is allotted per task. The is able to address 1 G byte (230 bytes) of virtual memory per task. The complete virtual memory is mapped on to the 16Mbyte physical memory. If a program larger than 16Mbyte is stored on the hard disk and is to be executed, if it is fetched in terms of data or program segments of less than 16Mbyte in size into the program memory by swapping sequentially as per sequence of execution. Whenever the portion of a program is required for execution by the CPU, it is fetched from the secondary memory and placed in the physical memory is called swapping in of the program. A portion of the program or important partial results required for further execution, may be saved back on secondary storage to make the PM free for further execution of another required portion of the program is called swapping out of the executable program uses the 16-bit content of a segment register as a selector to address a descriptor stored in the physical memory. The descriptor is a block of contiguous memory locations containing information of a segment, like segment base address, segment limit, segment type, privilege level, segment availability in physical memory, descriptor type and segment use another task.

36

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure EC 6504 Microprocessor and Microcontroller Unit II 8086 System Bus Structure Syllabus: 8086 Signals Basic Configurations System bus timing System Design using 8086 IO Programming Introduction to multiprogramming

More information

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

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors OVERVIEW UNIT II Introduction to 8086 microprocessors Architecture of 8086 processors Register Organization of 8086 Memory Segmentation of 8086 Pin Diagram of 8086 Timing Diagrams for 8086 Interrupts of

More information

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY,VIRUDHUNAGAR

SRI VIDYA COLLEGE OF ENGINEERING AND TECHNOLOGY,VIRUDHUNAGAR Year/sem: 02/04 Academic Year: 2014-2015 (even) UNIT II THE 8086 SYSTEM BUS STRUCTURE PART A 1. What are the three groups of signals in 8086? The 8086 signals are categorized in three groups. They are:

More information

EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronicsand Communication Engineering Fifth Semester UNIT-1I Part A 1. Definemachinecycle.

EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronicsand Communication Engineering Fifth Semester UNIT-1I Part A 1. Definemachinecycle. EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronicsand Communication Engineering Fifth Semester UNIT-1I Part A 1. Definemachinecycle. [N/D 16] Machine cycle is defined as the time required to complete

More information

The Purpose of Interrupt

The Purpose of Interrupt Interrupts 3 Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is a hardware-initiated

More information

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.

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. 8086/88 Device Specifications Both are packaged in DIP (Dual In-Line Packages). 8086: 16-bit microprocessor with a 16-bit data bus 8088: 16-bit microprocessor with an 8-bit data bus. Both are 5V parts:

More information

UNIT II SYSTEM BUS STRUCTURE 1. Differentiate between minimum and maximum mode 2. Give any four pin definitions for the minimum mode. 3. What are the pins that are used to indicate the type of transfer

More information

8086 Hardware Specification

8086 Hardware Specification Content: Segment 5 8086 Hardware Specification 8086 Modes of operation. Pin diagram and pin function of 8086. 8284A Clock generator operation and pin functions. Prepared By: Mohammed Abdul Kader Lecturer,

More information

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE 1 CHAPTER 6 HARDWARE ARCHITECTURE OF 8086 8086 Architecture: 6.1 8086 Pin diagram 8086 is a 40 pin DIP using CHMOS technology. It has 2 GND s as circuit complexity demands a large amount of current flowing

More information

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

UNIT-1. It is a 16-bit Microprocessor (μp).it s ALU, internal registers works with 16bit binary word. UNIT-1 Introduction to 8086: 8086 Microprocessor is an enhanced version of 8085Microprocessor that was designed by Intel in 1976. It is a 16-bit Microprocessor having 20 address lines and16 data lines

More information

Overview. M. Krishna Kumar MM/M4/LU10/V1/2004 1

Overview. M. Krishna Kumar MM/M4/LU10/V1/2004 1 Overview Each processor in the 80x86 family has a corresponding coprocessor with which it is compatible Math Coprocessor is known as NPX,NDP,FUP. Numeric processor extension (NPX), Numeric data processor

More information

MICROPROCESSOR QUESTION BANK. Unit 1

MICROPROCESSOR QUESTION BANK. Unit 1 QUESTION BANK Unit 1 1. Explain the term Microprocessor. ( CO1-K2) A microprocessor is a multipurpose, programmable logic device that receives binary instructions from a storage device called memory accepts

More information

1. state the priority of interrupts of Draw and explain MSW format of List salient features of

1. state the priority of interrupts of Draw and explain MSW format of List salient features of Q.1) 1. state the priority of interrupts of 80286. Ans- 1. Instruction exceptions 2. Single step 3. NMI 4. Processor extension segment overrun 5. INTR 6. INT 2. Draw and explain MSW format of 80286. Ans-

More information

MATH CO-PROCESSOR Rajiv R Bhandari

MATH CO-PROCESSOR Rajiv R Bhandari MATH CO-PROCESSOR 8087 1 Rajiv R Bhandari Compatible Processor and Coprocessor Processors 1. 8086 & 8088 2. 80286 3. 80386DX 4. 80386SX 5. 80486DX 6. 80486SX Coprocessors 1. 8087 2. 80287,80287XL 3. 80287,80387DX

More information

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

PIN DIAGRAM. Richa Upadhyay Prabhu. NMIMS s MPSTME January 19, 2016 PIN DIAGRAM Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu January 19, 2016 Richa Upadhyay Prabhu (MPSTME) 8080 Microprocessor January 19, 2016 1 / 51 Pin Diagram of 8086 Richa Upadhyay

More information

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

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

More information

Overview of Intel 80x86 µp

Overview of Intel 80x86 µp CE444 ١ ٢ 8088/808 µp and Supporting Chips Overview of Intel 80x8 µp ٢ ١ 8088/808 µp ٣ Both are mostly the same with small differences. Both are of bit internal Data bus Both have 0 bit address bus Capable

More information

MICROPROCESSOR TECHNOLOGY

MICROPROCESSOR TECHNOLOGY MICROPROCESSOR TECHNOLOGY Assis. Prof. Hossam El-Din Moustafa Lecture 12 Ch.5 8086/8088 Hardware Specifications 22-Mar-15 1 The Buffered System If more than 10 unit loads are attached to any bus pin, the

More information

9/25/ Software & Hardware Architecture

9/25/ Software & Hardware Architecture 8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

Chapter 12: INTERRUPTS

Chapter 12: INTERRUPTS Chapter 12: INTERRUPTS 12 1 BASIC INTERRUPT PROCESSING This section discusses the function of an interrupt in a microprocessor-based system. Structure and features of interrupts available to Intel microprocessors.

More information

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

UNIT-I. 1.Draw and explain the Architecture of a 8085 Microprocessor? UNIT-I INTRODUCTION TO MICROPROCESSOR A common way of categorizing microprocessors is by the no. of bits that their ALU can work with at a time. (i) The first commercially available microprocessor was

More information

Overview of architecture Interfacing with Data types, instructions. Programming.

Overview of architecture Interfacing with Data types, instructions. Programming. Overview of architecture 8087. Interfacing with 8086. Data types, instructions. Programming. Module 4 learning unit 10: Contents Architecture of 8087 Data types Interfacing Instructions and programming

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

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

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly. Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

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

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

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

These three counters can be programmed for either binary or BCD count. S5 KTU 1 PROGRAMMABLE TIMER 8254/8253 The Intel 8253 and 8254 are Programmable Interval Timers (PTIs) designed for microprocessors to perform timing and counting functions using three 16-bit registers.

More information

LECTURE NOTES MICROPROCESSORS AND INTERFACING DEVICES

LECTURE NOTES MICROPROCESSORS AND INTERFACING DEVICES LECTURE NOTES ON MICROPROCESSORS AND INTERFACING DEVICES III B. Tech II semester (JNTUH-R15) Mr.R Mahendhar Reddy, Associate Professor, ECE ELECTRICAL AND ELECTRONICS ENGINEERING INSTITUTE OF AERONAUTICAL

More information

8086 Interrupts and Interrupt Responses:

8086 Interrupts and Interrupt Responses: UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller

More information

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

UNIT 1. Introduction to microprocessor. Block diagram of simple computer or microcomputer. UNIT 1 Unit 1 contents at a glance: 1. Architecture of 8086 microprocessor, 2. Register organization, 3. 8086 flag register and its functions, 4. addressing modes of 8086, 5. Pin diagram of 8086, 6. Minimum

More information

MICROPROCESSOR ALL IN ONE. Prof. P. C. Patil UOP S.E.COMP (SEM-II)

MICROPROCESSOR ALL IN ONE. Prof. P. C. Patil UOP S.E.COMP (SEM-II) MICROPROCESSOR UOP S.E.COMP (SEM-II) 80386 ALL IN ONE Prof. P. C. Patil Department of Computer Engg Sandip Institute of Engineering & Management Nashik pc.patil@siem.org.in 1 Architecture of 80386 2 ARCHITECTURE

More information

Microprocessor Architecture

Microprocessor Architecture Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration

More information

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING

7/19/2013. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to: Chapter Objectives 12 1 BASIC INTERRUPT PROCESSING Chapter 12: Interrupts Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is

More information

Chapter 12: Interrupts

Chapter 12: Interrupts Chapter 12: Interrupts Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is

More information

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

Topic 2 :16 Bit Microprocessor: 8086 (24 Marks) Topic 2 :16 Bit Microprocessor: 8086 (24 Marks) Features of 8086 8086 is a 16 bit processor. It s ALU, internal registers works with 16bit binary word 8086 has a 16bit data bus. It can read or write data

More information

MATH CO-PROCESSOR 8087

MATH CO-PROCESSOR 8087 MATH CO-PROCESSOR 8087 1 Gursharan Singh Tatla professorgstatla@gmail.com INTRODUCTION 8087 was the first math coprocessor for 16-bit processors designed by Intel. It was built to pair with 8086 and 8088.

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT III MULTIPROCESSOR CONFIGURATIONS PART A (2 Marks)

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT III MULTIPROCESSOR CONFIGURATIONS PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT III MULTIPROCESSOR CONFIGURATIONS PART A (2 Marks) 1. What are tightly coupled systems or closely coupled systems? In a tightly coupled systems

More information

BASIC INTERRUPT PROCESSING

BASIC INTERRUPT PROCESSING Interrupts BASIC INTERRUPT PROCESSING This section discusses the function of an interrupt in a microprocessor-based system. Structure and features of interrupts available to Intel microprocessors. The

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

Pin Description, Status & Control Signals of 8085 Microprocessor

Pin Description, Status & Control Signals of 8085 Microprocessor Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing

More information

MICROPROCESSOR TECHNOLOGY

MICROPROCESSOR TECHNOLOGY MICROPROCESSOR TECHNOLOGY Assis. Prof. Hossam El-Din Moustafa Lecture 13 Ch.6 The 80186, 80188, and 80286 Microprocessors 21-Apr-15 1 Chapter Objectives Describe the hardware and software enhancements

More information

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

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

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

Chapter 13 Direct Memory Access and DMA-Controlled I/O Chapter 13 Direct Memory Access and DMA-Controlled I/O The DMA I/O technique provides direct access to the memory while the microprocessor is temporarily disabled This allows data to be transferred between

More information

Introduction to Microprocessor

Introduction to Microprocessor Introduction to Microprocessor The microprocessor is a general purpose programmable logic device. It is the brain of the computer and it performs all the computational tasks, calculations data processing

More information

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

Chapter 8 Summary: The 8086 Microprocessor and its Memory and Input/Output Interface Chapter 8 Summary: The 8086 Microprocessor and its Memory and Input/Output Interface Figure 1-5 Intel Corporation s 8086 Microprocessor. The 8086, announced in 1978, was the first 16-bit microprocessor

More information

Architecture of 8086 Microprocessor

Architecture of 8086 Microprocessor MCQ on Microprocessor and Interfacing Technique S.E.Compure (Sem-II) UNIT 1 Architecture of 8086 Microprocessor 1 marks Questions 1. Which is first microprocessor? (a) 8008 (b) 8085 (c) 8086 (d) 4004 2.

More information

EC6504 MICROPROCESSOR AND MICROCONTROLLER

EC6504 MICROPROCESSOR AND MICROCONTROLLER UNIT I THE 8086 MICROPROCESSOR 1. What do you mean by Addressing modes? (May/June 2014) The different ways that a microprocessor can access data are referred to as addressing modes. 2. What is meant by

More information

Overview of Computer Architecture & Organization. Co Attained : CO1 Hours required : 07 Self study : 10 hrs

Overview of Computer Architecture & Organization. Co Attained : CO1 Hours required : 07 Self study : 10 hrs Overview of Computer Architecture & Organization Co Attained : CO1 Hours required : 07 Self study : 10 hrs Syllabus 1. Introduction of Computer Organization and Architecture. 2. Basic organization of computer

More information

Architecture of 8085 microprocessor

Architecture of 8085 microprocessor Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 11: I/O transfer with x86 I/O Transfer I/O Instructions We discussed IN, OUT, INS and OUTS as instructions for the transfer of

More information

Northern India Engineering College, Delhi (GGSIP University) PAPER I

Northern India Engineering College, Delhi (GGSIP University) PAPER I PAPER I Q1.Explain IVT? ANS. interrupt vector table is a memory space for storing starting addresses of all the interrupt service routine. It stores CS:IP PAIR corresponding to each ISR. An interrupt vector

More information

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

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1 Module 3 Embedded Systems I/O Version 2 EE IIT, Kharagpur 1 Lesson 15 Interrupts Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would learn Interrupts

More information

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks) MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI-621213. UNIT I THE 8085 & 8086 MICROPROCESSORS PART A (2 Marks) 1. Give the significance of SIM and RIM instruction available in 8085. [NOV/DEC 2006] Instruction

More information

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

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

ELE 3230 Microprocessors and Computer Systems

ELE 3230 Microprocessors and Computer Systems ELE 3230 Microprocessors and Computer Systems Chapter 4 8088 System Architecture (*Hall:ch2; Brey:ch1; Triebel:ch2) ELE 3230 - Chapter 4 1 Historical Background 1969/70 Intel 4004, first Microprocessor

More information

The 8086 Microprocessor

The 8086 Microprocessor The 8086 Microprocessor 1. Draw the pin diagram of 8086. Ans. There would be two pin diagrams one for MIN mode and the other for MAX mode of 8086, shown in Figs. 11.1 and 11.2 respectively. The pins that

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

eaymanelshenawy.wordpress.com

eaymanelshenawy.wordpress.com Lectures on Memory Interface Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. Al-Azhar University Email : eaymanelshenawy@yahoo.com eaymanelshenawy.wordpress.com Chapter

More information

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Intel 8086 MICROPROCESSOR. By Y V S Murthy Intel 8086 MICROPROCESSOR By Y V S Murthy 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14,

More information

INTERFACING THE ISCC TO THE AND 8086

INTERFACING THE ISCC TO THE AND 8086 APPLICATION NOTE INTERFACING THE ISCC TO THE 68 AND 886 INTRODUCTION The ISCC uses its flexible bus to interface with a variety of microprocessors and microcontrollers; included are the 68 and 886. The

More information

An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal)

An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from the execution of an instruction or by some other internal

More information

Darshan Institute of Engineering & Technology

Darshan Institute of Engineering & Technology 1. Explain 80286 architecture. OR List the four major processing units in an 80286 microprocessor and briefly describe the function of each. Ans - The 80286 was designed for multi-user systems with multitasking

More information

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Lecture Note On Microprocessor and Microcontroller Theory and Applications Lecture Note On Microprocessor and Microcontroller Theory and Applications MODULE: 1 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip

More information

32- bit Microprocessor-Intel 80386

32- bit Microprocessor-Intel 80386 32- bit Microprocessor-Intel 80386 30 Marks Course Outcome: Explain memory management and concept of pipelining. Describe the concept of paging and addressing. Signal Description of 80386 Signal Descriptions

More information

Lecture 6: memory structure 8086 Outline: 1.introduction 2.memory reserve 3.bus operation

Lecture 6: memory structure 8086 Outline: 1.introduction 2.memory reserve 3.bus operation Lecture 6: memory structure 8086 Outline: 1.introduction 2.memory reserve 3.bus operation 1 1.INRTODUCTION The 8086 memory is a sequence of up to 1 million 8-bit bytes, a considerable increase over the

More information

Topics. Interfacing chips

Topics. Interfacing chips 8086 Interfacing ICs 2 Topics Interfacing chips Programmable Communication Interface PCI (8251) Programmable Interval Timer (8253) Programmable Peripheral Interfacing - PPI (8255) Programmable DMA controller

More information

MICROPROCESSOR TECHNOLOGY

MICROPROCESSOR TECHNOLOGY MICROPROCESSOR TECHNOLOGY Assis. Prof. Hossam El-Din Moustafa Lecture 15 Ch.7 The 80386 and 80486 Microprocessors 21-Apr-15 1 Chapter Objectives Contrast the 80386 and 80486 microprocessors with earlier

More information

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

Unit I Introduction. Department of Electronics and Communication Engineering VARDHAMAN COLLEGE OF ENGINEERING Shamshabad, Hyderabad , India. Unit I Introduction Department of Electronics and Communication Engineering VARDHAMAN COLLEGE OF ENGINEERING Shamshabad, Hyderabad 501218, India. Pre-requisites Digital Logic Design (A1404) Computer Architecture

More information

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

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

Instructions Involve a Segment Register (SR-field)

Instructions Involve a Segment Register (SR-field) 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

More information

2.5 Address Space. The IBM 6x86 CPU can directly address 64 KBytes of I/O space and 4 GBytes of physical memory (Figure 2-24).

2.5 Address Space. The IBM 6x86 CPU can directly address 64 KBytes of I/O space and 4 GBytes of physical memory (Figure 2-24). Address Space 2.5 Address Space The IBM 6x86 CPU can directly address 64 KBytes of I/O space and 4 GBytes of physical memory (Figure 2-24). Memory Address Space. Access can be made to memory addresses

More information

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

Lecture 5: Computer Organization Instruction Execution. Computer Organization Block Diagram. Components. General Purpose Registers. Lecture 5: Computer Organization Instruction Execution Computer Organization Addressing Buses Fetch-Execute Cycle Computer Organization CPU Control Unit U Input Output Memory Components Control Unit fetches

More information

Internal architecture of 8086

Internal architecture of 8086 Case Study: Intel Processors Internal architecture of 8086 Slide 1 Case Study: Intel Processors FEATURES OF 8086 It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 220 memory locations (1

More information

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

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output 8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Unit DMA CONTROLLER 8257

Unit DMA CONTROLLER 8257 DMA CONTROLLER 8257 In microprocessor based system, data transfer can be controlled by either software or hardware. To transfer data microprocessor has to do the following tasks: Fetch the instruction

More information

Intel 8086 MICROPROCESSOR ARCHITECTURE

Intel 8086 MICROPROCESSOR ARCHITECTURE Intel 8086 MICROPROCESSOR ARCHITECTURE 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14, 16

More information

WINTER 12 EXAMINATION Subject Code : Model Answer Page No : / N. a) Describe the function of SID and SOD pins of 8085 microprocessor

WINTER 12 EXAMINATION Subject Code : Model Answer Page No : / N. a) Describe the function of SID and SOD pins of 8085 microprocessor Subject Code : Model Answer Page No : / N Q.1) SOLVE ANY FIVE : (20 MARKS) a) Describe the function of SID and SOD pins of 8085 microprocessor Ans: - SID: - (2 Mark) Serial Input Data SID pin is used to

More information

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. 1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals. A typical communication link between the processor and

More information

icroprocessor istory of Microprocessor ntel 8086:

icroprocessor istory of Microprocessor ntel 8086: Microprocessor A microprocessor is an electronic device which computes on the given input similar to CPU of a computer. It is made by fabricating millions (or billions) of transistors on a single chip.

More information

8086 INTERNAL ARCHITECTURE

8086 INTERNAL ARCHITECTURE 8086 INTERNAL ARCHITECTURE Segment 2 Intel 8086 Microprocessor The 8086 CPU is divided into two independent functional parts: a) The Bus interface unit (BIU) b) Execution Unit (EU) Dividing the work between

More information

History of the Computers. Types of a computers, microcontrollers, microprocessors. Difference between microprocessors, microcontrollers &

History of the Computers. Types of a computers, microcontrollers, microprocessors. Difference between microprocessors, microcontrollers & History of the Computers. Types of a computers, microcontrollers, microprocessors. Difference between microprocessors, microcontrollers & DigitalSignalProcessors. Introduction to 8 bit Microprocessors

More information

UNIT 2 PROCESSORS ORGANIZATION CONT.

UNIT 2 PROCESSORS ORGANIZATION CONT. UNIT 2 PROCESSORS ORGANIZATION CONT. Types of Operand Addresses Numbers Integer/floating point Characters ASCII etc. Logical Data Bits or flags x86 Data Types Operands in 8 bit -Byte 16 bit- word 32 bit-

More information

An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal)

An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from the execution of an instruction or by some other internal

More information

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN

MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN ROAD MAP SDK-86 Intel 8086 Features 8086 Block Diagram 8086 Architecture Bus Interface Unit Execution Unit 8086 Architecture 8086 Programmer s Model Flag Register

More information

History and Basic Processor Architecture

History and Basic Processor Architecture History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can

More information

Chapter 4 : Microprocessor System

Chapter 4 : Microprocessor System Chapter-4 Microprocessor System A microcomputer consists of a set of components or modules of three basic types CPU memory and I/O units which communicate with each other. PIN Configuration of 8085 Fig

More information

EASWARI ENGINEERING COLLEGE DEPARTMENT OF ELECTRONICS AND COMMUNICATION QUESTION BANK - V SEMESTER ECE EC2304 MICROPROCESSORS AND MICROCONTROLLERS UNIT I 1. When the 8086 processor is in minimum mode and

More information

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

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1 Module 2 Embedded Processors and Memory Version 2 EE IIT, Kharagpur 1 Lesson 11 Embedded Processors - II Version 2 EE IIT, Kharagpur 2 Signals of a Typical Microcontroller In this lesson the student will

More information

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

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085 BLOCK DIAGRAM OF INTEL 8085 GURSHARAN SINGH TATLA Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device. It contains 6200 transistors

More information

Computer Organization. Submitted By: Dalvir Hooda

Computer Organization. Submitted By: Dalvir Hooda Computer Organization Submitted By: Dalvir Hooda 3 Fundamental Components of Computer The CPU (ALU, Control Unit, Registers) The Memory Subsystem (Stored Data) The I/O subsystem (I/O devices) CPU Address

More information

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

SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) SRI VENKATESWARA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF ECE EC6504 MICROPROCESSOR AND MICROCONTROLLER (REGULATION 2013) UNIT I THE 8086 MICROPROCESSOR PART A (2 MARKS) 1. What are the functional

More information

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

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors. About the Tutorial A microprocessor is a controlling unit of a micro-computer, fabricated on a small chip capable of performing Arithmetic Logical Unit (ALU) operations and communicating with the other

More information

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

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085 mailme@gursharansingh.in BLOCK DIAGRAM OF INTEL 8085 mailme@maninderkaur.in Introduction to 8085 It was introduced in 1977. It is 8-bit microprocessor. Its actual name is 8085 A. It is single NMOS device.

More information

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

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Module 5 - CPU Design

Module 5 - CPU Design Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction

More information

Vidyalankar. Vidyalankar T.E. Sem. V [CMPN] Microprocessors Prelim Question Paper Solution. 1. (a)

Vidyalankar. Vidyalankar T.E. Sem. V [CMPN] Microprocessors Prelim Question Paper Solution. 1. (a) 1. (a) Step 1 : Total EPROM required Chip size available No.of chips required = 2 T.E. Sem. V [CMPN] Microprocessors Prelim Question Paper Solution = 64 KB = 32 KB No.of sets required = 2 1 2 Set 1 = Ending

More information

Digital IP Cell 8-bit Microcontroller PE80

Digital IP Cell 8-bit Microcontroller PE80 1. Description The is a Z80 compliant processor soft-macro - IP block that can be implemented in digital or mixed signal ASIC designs. The Z80 and its derivatives and clones make up one of the most commonly

More information