



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




A microprocessor is a sequential digital circuit which provides
the flexibility to perform different tasks upon execution of
corresponding instruction sequence. Each microprocessor has
a fixed set of instructions which are coded in binary.
Microprocessor has a circuitry to read instructions from memory
and execute the instructions to perform particular task.
Simplified block diagram of a Microprocessor
1- Microprocessor. 2- Memory. 3- Input. 4- Output. The internal logic design of the microprocessor called its "Architecture", determine how and what various operations are performed by "Mp".
The microprocessor is programmable logic device designed with register, flip-flop and timing elements.
All function performed by microprocessor can by classified in three general categories:- 1- Microprocessor initiated operations. 2- Internal data operations. 3- Peripheral (or externally) initiated operations. To performed these operations, microprocessor needs [logic circuit and control signals].
Primarily microprocessor performs four operations:- a) Memory read (Reads data from memory).
Register
General purpose registers
Instruction Decoder Control Unit
Status Register
b) Memory writes (Write data into memory). c) I/O read (Accept data to output device). d) I/O writes (Sends data to output device). ***** These operations are part of communication process. The microprocessor needs to perform the following steps:- 1- Identify the peripheral (memory location). 2- Transfer data. 3- Provide timing or synchronization signals.
1- Data bus: - is a group of 8 lines used for data flow, these lines are bidirectional from (00 – FF) =2 8 =256 numbers. ***** The largest number = 1111 1111 = FF , thus 8085 Mp is called 8 bit Mp. 2- Address bus: - is a group of 16 lines, identified as 𝐴 0 - 𝐴 15. This bus is unidirectional (bit flow in one direction) from Mp to peripheral. ***** Each memory location or peripheral identified with binary number called address. (2 16 =65536=64K). 3- Control bus: - the control is comprised of various single lines that carry synchronization signals.
Figure (1). The 8085 bus structure
a) Registers. b) An arithmetic logic unit (ALU) & control logic. c) Internal buses (paths for information flow).
The 8085 programmable register
A) Registers:- The 8085 has 6 general purpose registers to perform its operation (store 8-bit data during program execution) these are:- (B, C, D, E, H & L) or in pair (BC, DE & HL) to perform 16-bit operations it could be viewed as memory locations. B) Accumulator:- 8-bit register that is part of (ALU), this register used to stored 8-bit data to perform arithmetic & logic operation, the result of operation is stored in the accumulator. C) Program counters (pc):- This 16-bit register used in sequencing the execution of instructions, this register is memory pointer. The Mp uses this register to sequence the execution of the instruction. The
function of the program counter is to point to the memory address for which the next byte is to be fetched. D) Stack pointer (sp):- This 16-bit register used as memory pointer, it point to memory location in R/W memory called (the stack), the beginning of the stack is defined by loading 16-bit address in stack pointer (register). *Flag – Register:- The flag register contains 5-bit that are used as flags or indicator. Any time 8085 executes an arithmetic or logic instruction.
Where:- S mean the sign bit and given:- Logic 1 = (-ve). Logic 0 = (+ve). Z means zero flag and given:- Logic 1 = zero result. Logic 0 = 1 result. AC mean auxiliary carry and given:- Logic 1 = there is a carry from bit 3 to bit 4. Logic 0 = no carry. P mean parity flag and given:- Logic 1 = the number of ones in accumulator is even. Logic 0 = the number of ones in accumulator is odd.
External devices (or signals) can initiate the following operation for which individual pins on Mp chip are assigned: Reset, Interrupt, Ready, Hold. A) Reset: when reset is activated all internal operations are suspended and the program counter is cleared.