Lecture-2 8085 Microprocessor
Lecture-2 8085 Microprocessor
Prepared By
Muhammad Musaddiq
Introduction to 8085 Microprocessor:
• It has 16-bit address bus and hence can address up to 216 = 65536 bytes
(64KB) memory locations through A0-A15.
• The first 8 lines of address bus and 8 lines of data bus are multiplexed AD0
- AD7. Data bus is a group of 8 lines D0 - D7.
• Six 8-bit general purpose register arranged in pairs: BC, DE, HL.
• The MPU uses the address bus to perform the first function:
identifying a peripheral or a memory location.
8085 Bus Structure: Address Bus:
Data Bus:
• The data bus is a group of eight lines used for data flow.
• These lines are bi-directional - data flow in both directions between the MPU and memory
and peripheral devices.
• The MPU uses the data bus to perform the second function: transferring binary information.
• The eight data lines enable the MPU to manipulate 8-bit data ranging from 00 to FF (28 =
256 numbers).
• The largest number that can appear on the data bus is 11111111.
Control Bus:
• The control bus carries synchronization signals and providing timing signals.
• The MPU generates specific control signals for every operation it performs. These signals
are used to identify a device type with which the MPU wants to communicate.
• Registers of 8085:
• The 8085 have six general-purpose registers to store 8-bit data during program execution.
• They can be combined as register pairs-BC, DE, and HL-to perform some 16-bit operations.
Registers of 8085:
Accumulator (A):
• The accumulator is an 8-bit register that is part of the arithmetic/logic unit (ALU).
• This register is used to store 8-bit data and to perform arithmetic and logical operations.
• Flags:
• The ALU includes five flip-flops that are set or reset according to the result of an operation.
• The microprocessor uses the flags for testing the data conditions.
• They are Zero (Z), Carry (CY), Sign (S), Parity (P), and Auxiliary Carry (AC) flags. The most
commonly used flags are Sign, Zero, and Carry.
Flags: