Unit 3
Microprocessor and Interfacing
Microprocessor and Its Interfacing: Organization of 8085 – Addressing Modes – Instruction Set – Simple Programs involving Logical - Branch/Call - Sorting - Evaluating Arithmetic Expressions and String Manipulation Instructions - A/D and D/A Converters.
Arithmetic and Logic Unit
The ALU performs the actual numerical and logical operations such as Addition (ADD), Subtraction (SUB), AND, OR etc. It uses data from memory and from Accumulator to perform operations. The results of the arithmetic and logical operations are stored in the accumulator
Registers
The 8085 includes six registers, one accumulator and one flag register, as shown in Fig. 3. In addition, it has two 16-bit registers: stack pointer and program counter. The 8085 has six general-purpose registers to store 8-bit data; these are identified as B, C, D, E, H and L. they can be combined as register pairs - BC, DE and HL
Accumulator
The accumulator is an 8-bit register that is a part of ALU. This register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation is stored in the accumulator. The accumulator is also identified as register A.
Flag register
The ALU includes five flip-flops, which are set or reset after an operation according to data condition of the result in the accumulator and other registers. They are called Zero (Z), Carry (CY), Sign (S), Parity (P) and Auxiliary Carry (AC) flags. Their bit positions in the flag register are shown in Fig. 4. The microprocessor uses these flags to test data conditions.
PIN Diagram of 8085 Microprocessor
All the signals are classified into six groups:
Address bus
Address and Data Buses:
Control & Status Signals:
Supply & Clock Frequency:
Externally Initiated and Interrupt Signals:
Serial I/O Signals:
Addressing Modes
INSTRUCTION EXECUTION AND TIMING DIAGRAM:
To execute a program, 8085 performs various operations as:
External communication functions are: