Docsity

8086 Microprocessors, Study notes of Microprocessors

Toggle sidebar
bg1
Dr. V. SATHIESH KUMAR Department of Electronics Engg., MIT
Unit I : 8-BIT AND 16-BIT MICROPROCESSOR
1. Architecture and pin details of 8085, 8086
2. Instruction Set
3. Addressing Modes
4. Interrupts
5. Timing Diagrams
6. Memory and I/O Interfacing
7. Minimum and Maximum mode configurations of 8086
TEXT BOOKS
•A.K. Ray, K.M. Bhurchandi, “Advanced Microprocessor and Peripherals’’, Tata McGraw-Hill, 2nd
Edition, 2010..
•Krishna Kant, “Microprocessor and Microcontroller Architecture, programming and system design
using 8085,8086,8051 and 8096’’, PHI, 2007, 7th Reprint, 2015.
Presented By,
Dr. V. Sathiesh Kumar
Department of Electronics Engg.,
MIT-Anna University
EC23C21: MICROPROCESSORS AND
MICROCONTROLLERS
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download 8086 Microprocessors and more Study notes Microprocessors in PDF only on Docsity!

Unit I : 8-BIT AND 16-BIT MICROPROCESSOR

1. Architecture and pin details of 8085, 8086

2. Instruction Set

3. Addressing Modes

4. Interrupts

5. Timing Diagrams

6. Memory and I/O Interfacing

7. Minimum and Maximum mode configurations of 8086

TEXT BOOKS

  • A.K. Ray, K.M. Bhurchandi, “Advanced Microprocessor and Peripherals’’, Tata McGraw-Hill, 2 nd Edition, 2010 ..
  • Krishna Kant, “Microprocessor and Microcontroller Architecture, programming and system design using 8085 , 8086 , 8051 and 8096 ’’, PHI, 2007 , 7 th Reprint, 2015.

Presented By,

Dr. V. Sathiesh Kumar

Department of Electronics Engg., MIT-Anna University

EC23C21: MICROPROCESSORS AND

MICROCONTROLLERS

1

2 8086 Microprocessor Features:

  1. It is a 16 - bit Microprocessor having 20 address lines and 16 data lines that provides up to 1 MB storage. 2.It consists of powerful instruction set, which provides operations like multiplication and division. 3.It supports two modes of operation, i.e. Maximum mode and Minimum mode. Maximum mode is suitable for system having multiple processors and Minimum mode is suitable for system having a single processor.
  2. It has an instruction queue, which is capable of storing six instruction bytes from the memory resulting in faster processing. 5.It is available in 4 versions based on the frequency of operation − 8086 → 5 MHz 8086 - 2 → 8 MHz 8086 - 1 → 10 MHz 8086 - 4 → 4 MHz

4 Comparison between 8085 and 8086 Microprocessors: 1.Size − 8085 is 8 - bit microprocessor, whereas 8086 is 16 - bit microprocessor. 2.Address Bus − 8085 has 16 - bit address bus while 8086 has 20 - bit address bus. 3.Memory − 8085 can access up to 64 Kb, whereas 8086 can access up to 1 Mb of memory. 4.Instruction − 8085 doesn’t have an instruction queue, whereas 8086 has an instruction queue. 5.Pipelining − 8085 doesn’t support a pipelined architecture while 8086 supports a pipelined architecture. 6.I/O − 8085 can address 28 = 256 I/O's, whereas 8086 can access 216 = 65 , 536 I/O's. 7.Cost − The cost of 8085 is low whereas that of 8086 is high.

5 8086 Microprocessor Architecture: Register Organization

  • Has a powerful set of registers known as general purpose and special purpose registers.
  • All of them are 16 - bit registers.
  • The general purpose registers, can be used as either 8 - bit registers or 16 - bit registers.
  • They may be either used for holding data, variables and intermediate results temporarily or for other purposes like a counter or for storing offset address for some particular addressing modes etc.

7 8086 Microprocessor Architecture: Register Organization – General Data Register

8 8086 Microprocessor Architecture: Register Organization – Segment Registers

10 8086 Microprocessor Architecture: Register Organization – Segment Registers

  • The stack segment register is used for addressing stack segment of memory i.e. memory which is used to store stack data.
  • The CPU uses the stack for temporarily storing important data, e.g. the contents of the CPU registers which will be required at a later stage.
  • The stack grows down, i.e. the data is pushed onto the stack in the memory locations with decreasing addresses.
  • When this information is required by the CPU, they will be popped off from the stack.
  • While addressing any location in the memory bank, the physical address is calculated from two parts, the first is segment address and the second is the offset.
  • The segment register contain 16 - bit base addresses, related to different segments.
  • Any of the pointers and index registers or BX may contain the offset of the location to be addressed.

11 8086 Microprocessor Architecture: Register Organization – Segment Registers

  • The advantage of this scheme is that instead of maintaining a 20 - bit register for a physical address, the processor just maintains two 16 - bit registers which are within the word length capacity of the machine.
  • Thus the CS, DS, SS and ES segment registers, respectively, contain the segment addresses for the code, data, stack and extra segments of the memory.
  • Note: All these segments in RAM are the logical segments. They may or may not be physically separated.
  • In other words, a single segment may require more than one memory chip or more than one segment may be accommodated in a single memory chip.

13 Flag Register:

  • It is a 16 - bit register, i.e. it changes its status according to the result stored in the accumulator.
  • It has 9 flags and they are divided into 2 groups − Conditional Flags and Control Flags.

14 Flag Register: Conditional Flags

  • It represents the result of the last arithmetic or logical instruction executed. 1.Carry flag (Cy) − This flag is set when there is a carry out of MSB in case of addition or a borrow in case of subtraction. 2.Auxiliary flag (Ac) − When an operation is performed at ALU, it results in a carry/borrow from lower nibble (i.e. D 0 – D 3 ) to upper nibble (i.e. D 4 – D 7 ). 3.Parity flag (P) − This flag is used to indicate the parity of the result, i.e. when the lower order 8 - bits of the result contains even number of 1 ’s, then the Parity Flag is set. For odd number of 1 ’s, the Parity Flag is reset. 4.Zero flag (Z) − This flag is set to 1 when the result of arithmetic or logical operation is zero else it is set to 0. 5.Sign flag (S) − This flag holds the sign of the result, i.e. when the result of the operation is negative, then the sign flag is set to 1 else set to 0. For signed computations, the sign flag equals the MSB of the result.

16 Flag Register: Control Flags

  • Control flags controls the operations of the execution unit. 1.Trap flag (T) − It is used for single step control and allows the user to execute one instruction at a time for debugging. If it is set, then the program can be run in a single step mode. In other words, a trap interrupt is generated after execution of each instruction. The processor executes the current instruction and the control is transferred to the Trap interrupt service routine. 2.Interrupt flag (I) − It is an interrupt enable/disable flag, i.e. used to allow/prohibit the interruption of a program. It is set to 1 for interrupt enabled condition and set to 0 for interrupt disabled condition. 3.Direction flag (D)− It is used in string manipulation instructions. If this flag bit is 0 , the string is processed beginning from the lowest address to the highest address, i.e. autoincrementing mode. Otherwise, the string is processed from the highest address towards the lowest address, i.e. autodecrementing mode.

17 8086 Architecture:

19 8086 Microprocessor Architecture: BIU ▪The complete physical address which is 20 - bits long is generated using segment and offset registers, each 16 - bits long. ▪ For example, if the segment address is 1005 H and the offset is 5555 H, then the physical address is calculated as follows,

20 8086 Microprocessor Architecture: BIU ▪ Thus, the segmented addressed by the segment value 1005 H can have offset values from 0000 H to FFFFH within it, i.e. maximum 64 K locations may be accommodated in the segment. ▪Thus the segment register indicates the base address of a particular segment, while the offset indicates the distance of the required memory location in the segment from the base address. ▪Since the offset is a 16 - bit number, each segment can have a maximum of 64 K locations. ▪The BIU has a separate adder to perform this procedure for obtaining a physical address while addressing memory. ▪The segment address value is to be taken from an appropriate segment register depending upon whether code, data or stack are to be accessed, while the offset may be the contents of IP, BX, SI, DI, SP, BP or an immediate 16 - bit value, depending upon the addressing mode.