BRANCH-E & TC ENGG
SUBJECT-MICROPROCESSOR & MICROCONTROLLER
CHAPTER-6-MICROCONTROLLER
TOPIC-ARCHITECTURE OF 8086 MICROCONTROLLER
SEM-4TH
FACULTY-ER. P PANIGRAHI (LECT. E & TC ENGG DEPARTMENT)
AY-2021-2022, SUMMER-2022
8086 MICROCONTROLLER
Block diagram of 8086
2
Software Model of the 8086 Microprocessors
3
8086 Registers
4
General Purpose Registers
5
AX - the Accumulator
BX - the Base Register
CX - the Count Register
DX - the Data Register
General Purpose Registers
6
General Purpose Registers
7
Pointer and Index Registers
8
Flag Register
9
Carry
Parity
Auxiliary Carry
Zero
Overflow
Direction
Interrupt enable
Trap
Sign
6 are status flags
3 are control flag
8086 Programmer’s Model
10
ES
CS
SS
DS
IP
AH
BH
CH
DH
AL
BL
CL
DL
SP
BP
SI
DI
FLAGS
AX
BX
CX
DX
Extra Segment
Code Segment
Stack Segment
Data Segment
Instruction Pointer
Accumulator
Base Register
Count Register
Data Register
Stack Pointer
Base Pointer
Source Index Register
Destination Index Register
BIU registers
(20 bit adder)
EU registers
The Stack
11
The Stack
12
INTEL 8086 - Pin Diagram
13
INTEL 8086 - Pin Details
14
Ground
Clock
Duty cycle: 33%
Power Supply
5V ± 10%
Reset
Registers, seg regs, flags
CS: FFFFH, IP: 0000H
If high for minimum 4 clks
INTEL 8086 - Pin Details
15
Address/Data Bus:
Contains address bits A15-A0 when ALE is 1 & data bits D15 – D0 when ALE is 0.
Address Latch Enable:
When high, multiplexed address/data bus contains address information.
INTEL 8086 - Pin Details
16
INTERRUPT
Non - maskable interrupt
Interrupt request
Interrupt acknowledge
INTEL 8086 - Pin Details
17
Direct Memory Access
Hold acknowledge
Hold
INTEL 8086 - Pin Details
18
Address/Status Bus
Address bits A19 – A16 & Status bits S6 – S3
INTEL 8086 - Pin Details
19
Bus High Enable/S7
Enables most significant data bits D15 – D8 during read or write operation.
S7: Always 1.
BHE#, A0:
0,0: Whole word (16-bits)
0,1: High byte to/from odd address
1,0: Low byte to/from even address
1,1: No selection
INTEL 8086 - Pin Details
20
Min/Max mode
Minimum Mode: +5V
Maximum Mode: 0V
Minimum Mode Pins
Maximum Mode Pins
Minimum Mode- Pin Details
21
Maximum Mode - Pin Details
22
Status Signal
Inputs to 8288 to generate eliminated signals due to max mode.
S2 S1 S0
000: INTA
001: read I/O port
010: write I/O port
011: halt
100: code access
101: read memory
110: write memory
111: none -passive
Maximum Mode - Pin Details
23
DMA Request/Grant
Lock Output
Lock Output
Used to lock peripherals off the system
Activated by using the LOCK: prefix on any instruction
Maximum Mode - Pin Details
24
Queue Status
Used by numeric coprocessor (8087)
QS1 QS0
00: Queue is idle
01: First byte of opcode
10: Queue is empty
11: Subsequent byte of opcode
Minimum Mode 8086 System
25
Minimum Mode 8086 System
26
‘Read’ Cycle timing Diagram for Minimum Mode
27
‘Write’ Cycle timing Diagram for Minimum Mode
28
Maximum Mode 8086 System
29
Maximum Mode 8086 System
30
Maximum Mode 8086 System
31
Memory Read timing in �Maximum Mode
32
Memory Write timing in �Maximum Mode
33
8086 Control Signals
34
Coprocessor and Multiprocessor configuration�
1. Coprocessor (8087)
2. Closely coupled (8089)
3. Loosely coupled (Multibus)
35
Coprocessor and Multiprocessor configuration�
- Memory� - I/O system� - Bus & bus control logic� - Clock generator
36
Coprocessor / Closely Coupled Configuration
37
TEST pin of 8086
38
Coprocessor Execution Example
Coprocessor cannot take control of the bus, it does everything through the CPU�
39
Closely Coupled Execution Example
40
Loosely Coupled Configuration
41
Loosely Coupled Configuration
42
Advantages of Multiprocessor Configuration
Each bus master module is an independent unit and normally resides on a separate PC board. One can be added or removed without affecting the others in the system.
43
WAIT State
44
8086 System Memory Circuitry
45
Minimum Mode System Memory Circuitry
46
Maximum Mode System Memory Circuitry
47
48
THANK YOU