8085 Introduction
8085 Introduction
Microprocessor
Prepared by : Ala Eldin Abdallah Awouda.
Lecture No 1 2
1. 2. 3. 4.
Course Layout:
Technology and concepts of microprocessors. Von-Neumann Model. p families Intel (486, 386, Pentium). Intel 8085 microprocessor (CPU) Architecture and Addressing Modes ( register addressing, immediate addressing, direct addressing, register indirect addressing,
based addressing, index addressing, based index addressing, string addressing, relative addressing,
implied addressing
organization, and architecture), Registers. 5. 8085 Pins, Signals, Bus Cycle, Address, and Concepts.
Lecture No 1
Course Layout:
6. Assembly Language. Instruction Set and Instructions Format instruction, op-code, operands, encoding of instructions and data, signed and unsigned conditional branch instruction, conditional jump affecting individual flags. Instruction format 7. Address space. The control structure of a stored program sequential, conditional, iteration, subroutines, stack, and data movement instructions (push/ pop, MOV), arithmetic and logic instructions (shift, add, subtraction, comparison). 8. Instruction cycle: fetch, decode, fetch data, execute, and store result. 9. Assembler Dependent and Pseudo Instruction.
Lecture No 1 4
Reference Book:
1. The 8088 and 8086 Microprocessors, Walter A. Triebel and Avtar Singh, Fourth Edition. 2. Microprocessors and Interfacing Programming and Hardware, Douglas V. Hall, Second Edition
6/18/2013
Lecture No 1
Contents:
1. 2. 3. 4. 5. 6. 7. Introduction. What is Computer ?. What is Microprocessor ?. What is CPU ?. Operation Types in a Microprocessor. Microprocessor interfacing. The Intel 8086 Microprocessor.
6/18/2013 Lecture No 1 6
Why??
A Microprocessor is great at solving problems, but if it cant communicate with the outside world, it is of little worth. A Microcomputer performs a task by reading and executing the set of instructions written in its memory. This set of instructions, written in a sequence, is called a program. Each instruction in the program is a command, in binary, to the microprocessor to perform an operation. Assembly language is low level language.
6/18/2013 Lecture No 1 7
1-1 Introduction
The Microprocessor is something like the heart of a computer.
The microprocessor world become more complicated. The item processor was solely used for the central processing unit (CPU) of the von-Neuman-model. The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory. The microprocessor reads one instruction at a time, matches it with its instruction set, and performs the data manipulation specified. The result is either stored back into memory or displayed on an output device.
6/18/2013 Lecture No 1 8
Data Storage
6/18/2013
Lecture No 1
CPU
6/18/2013
Lecture No 1
10
CPU
6/18/2013
Lecture No 1
11
Arithmetic/Logic Unit
Registers
6/18/2013
Lecture No 1
12
Arithmetic/Logic Unit
6/18/2013
Lecture No 1
13
Arithmetic/Logic Unit
Registers To perform shift and rotate operations that may either be arithmetic or logical in nature
6/18/2013
Lecture No 1
14
Control and Status Registers User-Variable Registers Control Unit & Instruction Decoder A set of internal storage locations within the CPU Arithmetic/Logic Unit
Registers
6/18/2013
Lecture No 1
15
6/18/2013
Lecture No 1
16
6/18/2013
Lecture No 1
17
6/18/2013
Lecture No 1
19
6/18/2013
Lecture No 1
21
6/18/2013
Lecture No 1
22
6/18/2013
Lecture No 1
23
Early computer programs were hard wired. To reprogram a computer mean to change the hardware switches manually, that took a long time with potential errors. The computer memory was only used for storing data. Dr John von Neumann suggested in 1946 that data and programs should be stored together in memory, it is now called Von Neumann architecture. The von Neumann processor has been the foundation of computing from the start. In it the programs are fetched from memory for executions by a central unit that is what we call the CPU. Basically programs and data are represented on memory in the same way. The program is just data coded for special meaning.
6/18/2013 Lecture No 1 24
Cont
A computer design model that uses a processing unit and a single separate storage structure to hold both instructions and data. Named after mathematician and early computer scientist John von Neumann.
6/18/2013
Lecture No 1
25
6/18/2013
Lecture No 1
26
Cont
Arithmetic Logic Unit (ALU) : The ALU is where calculation and logical operations take place. Control Unit : The control unit controls the operations of the memory, ALU, and the input/output subsystem. Input/Output: The input subsystem accepts input data and the program from outside the computer; the output subsystem sends the result of processing to the outside. Memory : Memory is the storage area. It is where programs and data are stored during processing.
6/18/2013 Lecture No 1 27
Cont
The Execute is typically implemented by separating the task to:
1. Control : The control unit reads the instruction, and activates the appropriate parts of the datapath. 2. Datapath: The datapath is the pathway that the data takes through the microprocessor. As the data travels to different parts of the datapath, the command signals from the control unit cause the data to be manipulated in specific ways, according to the instruction. The datapath consists of the circuitry for transforming data and for storing temporary data. It contains ALUs capable of transforming data through operations such as addition, subtraction, logical AND, OR, inverting, and shifting.
6/18/2013 Lecture No 1 30