Docsity

Microprocessor and Microcontroller, Schemes and Mind Maps of Microprocessors

Partial preview of the text

Download Microprocessor and Microcontroller and more Schemes and Mind Maps Microprocessors in PDF only on Docsity!

EEE 3231: Microprocessor and Embedded

Systems



Intel’s first 16-bit MP



Approx. 29,000 transistors



40 pin



5V power supply



Can be operated at three different clock speeds



8086 has a

20-bit address bus

and, hence, in can directly address up to one

megabyte

^

of

memory

megabyte

^

of

memory



This 1 MB of memory is divided into

segments

of up to 64KB each.



The 8086 is internally divided into two separate functional units –

Bus Interface Unit (BIU) -

fetches instructions, reads data from memory and

ports, and writes data to memory and I/O ports. 2.

The Execution Unit (EU)

Executes instructions already fetched by the BIU.

Farhana B Sufi (PhD), 2024



Farhana B Sufi (PhD), 2024

Ref. Book: C. Marut

Figure 1.6 Intel 8086 Microprocessor Organization



EU has – * General data registersAXBXCXDX * Pointer RegistersSP Stack PointerBP Base “ * Index Registers

  • Status register

FLAGS

Farhana B Sufi (PhD), 2024

Ref. Book: C. Marut Figure3.1 8086 Registers

  • Index Registers

  • Status register

FLAGS

SI Source IndexDI Destination “

**BIU has – ***

Four 16-bit segment registers: Code Segment Register CSData

“

“

DS

Stack

“

“

SS

Extra

“

“

ES

and* Instruction Pointer

IP

8086 has six 1-bit flags:

AF, CF, OF, SF, PF, ZF

8086 has

three

control flags

, that

are set or reset by the programmer

.



DF (Direction flag)

  • setting DF to ‘1’ causes string instructions to autodecrement the

appropriate index register(s). Clearing DF to ‘0’ causes string instructions to autoincrement. 

IF (Interrupt flag)

  • setting IF to ‘1’ causes 8086 to detect external maskable interrupts.

Clearing IF to ‘0’ causes disables these interrupts. 

TF (Trace flag)

  • setting TF to ‘1’ places 8086 in the single-step mode, in this mode 8086

generates an internal interrupt after execution of each instruction. User can write a service routineat the interrupt address, and thus debug the program.

Farhana B Sufi (PhD), 2024

Ref. Book: Rafiquzzaman



Farhana B Sufi (PhD), 2024

Rafiquzzaman



Farhana B Sufi (PhD), 2024

Rafiquzzaman



BIU – provides all external bus operation. 

BIU interfaces the 8086 MP to the outside world, i.e. BIU provides all external bus operations. 

BIU has Bus Control Logic – generates all bus control signals to provide functions such as fetching and queuing of instructions, and bus control. (e.g. read, write signalsfor memory and I/O). 

BIU Contains segment registers, instruction pointer, instruction queue, and address generation/bus

control

circuitry

generation/bus

control

circuitry



P

ipelining

  • BIU’s instruction queue is a FIFO, that queues 6 bytes of instruction

code pre-fetched from the memory – this mechanism is called

pipelining

  • If the BIU is not full, and can store at least 2 bytes and the EU doesn’t request it toaccess memory, the BIU may prefetch instructions.

Farhana B Sufi (PhD), 2024



Text Books:

Mohamed Rafikuzzaman – MPs and MC-based SystemDesign

Charles Marut – Assembly Language Programming and Organization of the IBM PCOrganization of the IBM PC