Assignment 1
Assignment 1
Microprocessors
Assignment- 1
Mohd Ammar
2021bcs0082
]\
1. Explain the difference between the following: a.
Microprocessor and Microcontroller
b. Assembler and Compiler
c. High Level and Low-Level Languages
1
]\
2
]\
a. 8085
ALU (Arithmetic and Logic Unit): Performs arithmetic and logical operations on 8-bit
data fetched from the accumulator and temporary register. Accumulator: An 8-bit
register that supplies data to the ALU for operations and also stores new data.
General Purpose Registers: Six 8-bit registers (B, C, D, E, H, L) for storing data,
which can also be combined to store 16-bit data.
Flag Register: An 8-bit register that stores flags indicating conditions resulting
from ALU operations.
Temporary Register: An 8-bit register used to temporarily store data during program
execution, providing support to the ALU.
Instruction Register and Decoder: Instruction register stores fetched instructions,
and the decoder interprets these instructions to execute tasks.
3
]\
Program Counter: A 16-bit register storing the memory address of the next
instruction to be executed.
Stack Pointer: A 16-bit register managing the stack, used for push and pop
operations, typically incremented or decremented by 2.
Timing and Control Unit: A combination of circuits providing clock signals and
control signals to coordinate tasks within the microprocessor and with external
components.
Interrupt Control: Manages interrupts during program execution, allowing the
b) 8086
4
]\
5
]\
Execute stage executes these instructions.
It has 256 vectored interrupts.
It consists of 29,000 transistors.
6
]\
b) 8255
c) 8279
d) ADC and DAC
Memory Interfacing
The 8085 microprocessor communicates with memory devices such as RAM
(Random Access Memory) and ROM (Read-Only Memory) to store and retrieve data
and instructions.
Address lines (A0-A15) of the microprocessor are connected to the address inputs of
the memory device, allowing the microprocessor to select specific memory locations.
Data lines (D0-D7) of the microprocessor are connected to the data inputs and outputs
of the memory device for data transfer.
Control signals such as Read (RD) and Write (WR) are used to control the direction of
data flow between the microprocessor and memory device.
7
]\
The 8255 is a programmable I/O (Input/Output) device that provides parallel I/O
capabilities.
It can be interfaced with the
8085 microprocessor to
extend its I/O capabilities for
connecting peripherals such
as keyboards, displays, and
sensors.
The microprocessor
communicates with the 8255
through its address and data
bus.
Control signals such as Chip Select (CS) and Read/Write (RD/WR) are used to select
the 8255 and control data transfer.
8
]\
The 8279 is a Keyboard/Display controller used for interfacing keyboards and displays
with microprocessors.
It can be connected to the 8085
microprocessor to facilitate input from
keyboards and output to displays.
9
]\
b. Interrupts in 8086
c. 8086 Bus configuration and timing d.
Basic I/O interfacing for 8086.
Interrupts in 8086
The 8086 microprocessor supports a variety of interrupts, including hardware interrupts
and software interrupts.
10
]\
Hardware interrupts are initiated by external devices and are used to signal the
processor to interrupt its current execution and handle the interrupt request.
11
]\
The data bus is 16 bits wide, allowing it to transfer data in 16-bit chunks. The
bus interface unit (BIU) handles bus operations, including fetching instructions
and accessing memory.
Bus cycles in the 8086 are typically divided into machine cycles and clock cycles,
12
]\
Minimum Mode
In Minimum mode, the 8086 processor operates as a standalone unit without the
presence of other processors or co-processors.
It typically interacts with memory and I/O devices directly without the need for
additional control from external devices.
The control signals such as
the status and control signals
(S0, S1, IO/M, RD, WR, etc.)
are generated by the
processor itself.
Address lines (A0-A15), data
lines (D0-D15), and control
lines are directly connected to
Maximum Mode:
13
]\
In Maximum mode, the 8086 processor operates in a multiprocessor environment
14
]\
15
]\
16