MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

Similar documents
1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

Pin Description, Status & Control Signals of 8085 Microprocessor

Basics of Microprocessor

Chapter 1: Basics of Microprocessor [08 M]

Microprocessor Architecture

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

History and Basic Processor Architecture

1. Internal Architecture of 8085 Microprocessor

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Architecture of 8085 microprocessor

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor

MICROPROCESSOR B.Tech. th ECE

The functional block diagram of 8085A is shown in fig.4.1.

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Microcomputer Architecture and Programming

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

MICROPROCESSOR BASICS AND RELATED TERMS

UNIT I. Differences between: Microcomputer, Microprocessor and Microcontroller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

م.م. ماجد عيدان. Introduction to microprocessor and microcomputer

JNTU World. NOTES SUBJECT: Microprocessors and Interfacing Devices

PART B (5 x 16 =80) ADDRESS BUS The 8085 has eight signal lines, A15 A8 : Unidirectional, known as high order address.

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

Interrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:

MACHINE CONTROL INSTRUCTIONS: 1. EI

Instructions Involve a Segment Register (SR-field)

Introduction to Microprocessor

4 Categories Of 8085 Instructions That Manipulate Data

1. What is Microprocessor? Give the power supply & clock frequency of 8085?

Write A General Form Of The Assembly

Subject Code: Model Answer Page No: /25

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

8085 Interrupts. Lecturer, CSE, AUST

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

Microprocessor Architecture. mywbut.com 1

Microprocessor, Microcomputer and Associated Languages

Microprocessors/Microcontrollers

Unit 1 8 BIT MICROPROCESSOR ARCHITECTURE

Four Categories Of 8085 Instructions That >>>CLICK HERE<<<

3.1 Description of Microprocessor. 3.2 History of Microprocessor

Interrupts. by Rahul Patel, Assistant Professor, EC Dept., Sankalchand Patel College of Engg.,Visnagar

Lecture-15 W-Z: Increment-Decrement Address Latch:

Assembly Language Programming of 8085

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

UNIT-I. 1.Draw and explain the Architecture of a 8085 Microprocessor?

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

Sunday, April 25, 2010

Fundamentals of Digital Computers The mechanical computer age began with the advent of the abacus in 500 B.C by Babylonians. The abacus, which was

9/25/ Software & Hardware Architecture

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

ROEVER ENGINEERING COLLEGE

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

UNIT.1 THE 8085 MICROPROCESSOR. SYLLABUS Introduction to 8085 Microprocessor architecture Instruction set Programming the 8085 Code conversion.

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

These three counters can be programmed for either binary or BCD count.

Chapter 8 Summary: The 8086 Microprocessor and its Memory and Input/Output Interface

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

LECTURE NOTES MICROPROCESSORS AND INTERFACING DEVICES

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

Intel 8086 MICROPROCESSOR ARCHITECTURE

This page intentionally left blank

Digital IP Cell 8-bit Microcontroller PE80

EC6504 MICROPROCESSOR AND MICROCONTROLLER

MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur

8051 Microcontroller

It is a program controlled semiconductor device (IC}, which fetches, decode and executes instructions.

Micro Processor & Micro Controllers

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

Intel 8086 MICROPROCESSOR. By Y V S Murthy

Chapter 13 Direct Memory Access and DMA-Controlled I/O

Overview of Intel 80x86 µp

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

UMBC. 80C86/80C88: CMOS version draws 10mA with temp spec -40 to 225degF. 450mV while input max can be no higher than 800mV). 0 0.

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

8051 Microcontrollers

Types of Interrupts:

ELE 3230 Microprocessors and Computer Systems

UNIT - II PERIPHERAL INTERFACING WITH 8085

Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's "««"** ***** ** various

It is important that a computer remembers what it is doing and the data from inputs such as

ELECTRICAL ENGINEERING

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Introduction to Computers - Chapter 4

8086 Hardware Specification

Micro computer Organization

3. The MC6802 MICROPROCESSOR

Transcription:

8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes numbers (specifically binary numbers, 0 s and 1 s). To process means to manipulate. It is a general term that describes all manipulation. Itmeanstoperformcertainoperationsonthenumbersthatdependon the microprocessor s design. Micro is a new addition. In the late 1960 s, processors were built using discrete elements. These devices performedthe required operation,but t were too large & slow. In the early 1970 s the microchip was invented. All of the components that made up the processor were now placed on a single piece of silicon. The size became several thousand times smaller and the speed became several hundred times faster. The Micro Processor was born. A Microprocessor (μp) is a multipurpose, programmable, clock driven, register based integrated device (IC) that has computing (when used as data processing unit) and decision making (when used to control process) capabilities. reads binary instructions (program) from a storage device called memory, accepts binary data as input and processes data (arithmetic or logical operations) according to those instructions and provides results as output. From the above description, we can draw the following block diagram to represent a microprocessor based system: Input Microprocessor Memory Output A programmable machine can be represented with four components; microprocessor, memory, input and output. These four components work together or interact with each other to perform a given task. A computer with a microprocessor (μp)as its CPU is known as microcomputer. Input Microprocessor Memory Output ARCHITECTURE The internal logic design of the microprocessor called its architecture, determine how and what operations are performed by the microprocessor (μp). All the various functions performed by the 8085/8080A μp can be classified in three general categories. Microprocessor initiated operations. Internal data operation. Peripheral (External) initiated operation. The 8085/8080A microprocessor unit performs primarily four operations; 1. Memory Read Reads data from memory 2. Memory Write Writes data into memory 3. I/O Read Accept data from input devices 4. I/O Write Sends data to output devices All these operations are part of the communication process between the μp unit and peripheral devices including memory. The 8085 μp unit performs these functions using three sets of communication lines called buses. They are; Address Bus Data Bus Data Bus Control Bus 1

85/8080A Microprocessor 808 A15 A0 D7 D0 Memory Address Bus Input Data Bus Control Bus Output d Real Worl ADDRESS BUS A group of 16 lines; A0 to A15. Unidirectional, i.e., bits flow from the μp to memory/peripheral devices. Function: Identifying peripheral/memory location. Capable of addressing 2 16 bits = 65536 bits = 64 kb memory location. DATA BUS A group of 8 lines; D0 to D7 Bidirectional, i.e., data flow in both directions between the μp and peripheral devices/memory. Function: Transferring data. Manipulate 8 bit data (2 8 = 256 no s) ranging from 00 H to FF H. CONTROL BUS comprised of various single lines carry Synchronization signal Function: provides Timing Signal used to identify a device type. Control Signal To perform various operations the microprocessor requires the following units Registers Accumulator Flags Program Counter (PC) Stack Pointer (SP) ACCUMULATOR FLAG REGISTER B C D E H L STACK POINTER (SP) PROGRAM COUNTER (PC) DATA BUS ADDRESS BUS 8 16 REGISTERS General Purpose Registers to store 8 bit data. B, C, D, E, H &L(8 bit registers) Can beused singly or can be used as 16 bit register pairs BC, DE, HL H & L can be used as a data pointer (holds memory address). Registers are programmable. ACCUMULATOR Special Purpose Registers A 8 bit register part of Arithmetic & Logic Unit (ALU) Perform arithmetic & logical operations Store the result of an operation Store 8 bit data during I/O transfer FLAGS 8bitregister shows the status of the microprocessor before/after an operation ALU includes five flip flops known as Flags. Used for testing the data conditions in the accumulator and other registers. S(signflag),Z(zero flag), AC (auxiliary carry flag), P (parity flag) &CY(carryflag) S Z X AC X P X CY 2

The Program Counter (PC) This is a 16 bit register that is used to control the sequencing of the execution of instructions. This is a memory pointer. This register always holds the address of the next instruction. Since it holds an address, it must be 16 bits wide. The Stack Pointer (SP) The stack pointer is also a 16 bit register That is used to point into memory. The R/W memory this register points to is a special area called the stack. The stack is an area of R/W memory used to hold data that will be retrieved soon. It store the address of last data byte written into the stack The stack is usually accessed in a Last In First Out (LIFO) fashion. Externally Initiated Operations External Devices can initiate the following operations: Reset All internal operations are suspended and the execution begins at zero memory address Interrupt Interrupt normal execution and execute some other instruction called service routine Ready Enters into wait state. Synchronize slower peripherals with the microprocessor. Hold Give up control of buses and allow the external peripheral to use them. The 8085 Microprocessor 8 bit general purpose µp Capable of addressing 64 KB of memory Has 40 pins Requires +5 v power supply Can operate with 3 MHz clock 8085 upward compatible 8085 Microprocessor The 8085 Microprocessor and its Buses The pins on the chip can be grouped into 6 groups: Address Bus. Data Bus. Control and Status Signals. Power supply and frequency. Externally Initiated Signals. Serial I/O ports. 8085 Microprocessor Multiplexed Address Data Bus Power Supply: +5 V Input/Output/ Memory Read Write Enable Address Bus The Address and Data Bus Systems The address bus has 8 signal lines A8 A15 which are unidirectional. The other 8 address bits are multiplexed (time shared) with the 8 data bits. So, the bits AD0 AD7 are bi directional and serve as A0 A7 and D0 D7 at the same time. During the execution of the instruction, these lines carry the address bits during the early part, then during the late parts of the execution, they carry the 8 data bits. In order to separate the address from the data, we can use a latch to save the value before the function of the bits changes. 3

The Control and Status Signals There are 4 main control and status signals. These are: ALE: Address Latch Enable. This signal is a pulse that become 1 when the AD0 AD7 lines have an address on them. It becomes 0 afterthat.thissignalcanbeusedtoenablealatchtosavethe address bits from the AD lines. RD: Read. Active low. WR: Write. Active low. IO/M: This signal specifies whether the operation is a memory operation (IO/M=0)oranI/O operation (IO/M=1). S1 and S0 : Status signals to specify the kind of operation being performed. Usually not used in small systems. Frequency Control & Power Supply Signals There are 3 important pins in the frequency control group. X0 and X1 are the inputs from the crystal or clock generating circuit. The frequency is internally divided by 2. So, to run the microprocessor at 3 MHz, a clock running at 6 MHz should be connected to the X0 and X1 pins. CLK (OUT): An output clock pin to drive the clock of the rest of the system. The V CC and V SS are power supply and ground pin, respectively. Interrupts and Externally Initiated Operations Five Interrupt signals which can be used to interrupt execution. Interrupt INTR ( Interrupt Request) general purpose interrupt. INTA (Interrupt Acknowledge) acknowledge an interrupt. RST (Restart Interrupt) vector interrupt, higher priority than interrupt. Priority order RST 7.5 RST 6.5 RST 5.5 TRAP Non maskable interrupt and has highest priority. Externally Initiated Operations RESET signals RESET IN PC is set to zero and the μp is reset. RESET OUT indicates that μp is being reset. HOLD signals HOLD (Hold Request) Peripherals is requesting the use of Buses. HLDA (Hold Acknowledge) acknowledge the HOLD request. READY signals READY delay the μp until a slow peripheral is ready. Serial Input / Output Ports Two signals to implement the serial transmission, i.e., data bits are sent over a single line one bit at a time. SID (Serial Input Data) SOD (Serial Output Data) The address bus has 8 signal lines A8 A15 which are unidirectional. The other 8 address bits are multiplexed (time shared) with the 8 data bits. So, the bits AD0 AD7 are bi-directional and serve as A0 A7 and D0 D7at the same time. During the execution of the instruction, these lines carry the 8 address bits during the early part, then during the late parts of the execution, they carry the 8 data bits. In order to separate the address from the data, we can use a latch to save the value before the function of the bits changes. The AD7 AD0 lines are serving a dual purpose and that they need to be demultiplexed to get all the information. The high order bits of the address remain on the bus for three clock periods. However, the low order bits remain for only one clock period and they would be lost if they are not saved externally. Notice that the low order bits of the address disappear when they are needed most. To make sure we have the entire address for the full three clock cycles,wewilluseanexternal latch to save the value of AD7 AD0 when it is carrying the address bits. We use the ALE signal to enable this latch. Given that ALE operates as a pulse during T1, we will be able to latch the address. Then when ALE goes low, the address is saved and the AD7 AD0 lines can be used for their purpose as the bidirectional data lines The high order address is placed on the address bus and hold for 3 CLK periods. The low order address is lost after the first CLK period, this address needs to be hold however we need to use latch. The address AD7 AD0 is connected as inputs to the latch 74LS373. The ALE signal is connected to the enable (G) pin of the latch and the OC Output control of the latch is grounded 4

8085 ALE A15-A8 Example: Illustrate the steps and the timing of data flow MOV C A when the instruction code 0100 1111 (4FH), stored in location 2005H is being fetched. AD7-AD0 Latch A7 - A0 D7 - D0 Moving data form memory to MPU using instruction MOV C, A (code machine 4FH = 0100 1111) 8085 timing diagram for Opcode fetch cycle for MOV C, A. The Fetch Execute Sequence : 1. The μp placed a 16 bit memory address from PC (program counter) to address bus. 2. At T1: The high order address, 20H, is placed at A15 A8. the low order address, 05H, is placed at AD7 AD0 and ALE is active high. Synchronously the IO/M is in active low condition to show it is a memory operation. 3. At T2: the active low control signal, RD, is activated so as to activate read operation; it is to indicate that the MPU is in fetch mode operation. 4. At T3: The active low RD signal enabled the byte instruction, 4FH, to be placed on AD7 AD0 and transferred to the MPU. While RD high, the data bus will be in high impedance mode. 5. At T4: The machine code, 4FH, will then be decoded in instruction decoder. The content of accumulator (A) will then copied into C register at time state, T4. Architecture of Intel 8085 μp The Flags Register Flag register whose bits are affected by the ALU operations. S sign flag: The sign flag is set if bit D7 of the accumulator is set after an arithmetic or logic operation. Z zero flag: Set if the result of the ALU operation is 0. Otherwise is reset. This flag is affected by operations on the accumulator as well as other registers. (DCR B). AC Auxiliary Carry: This flag is set when a carry is generated from bit D3 and passed to D4. This flag is used only internally for BCD operations. P Parity flag :After an ALU operation, if the result has an even # of 1s, the p flag is set. Otherwise it is cleared. So, the flag can be used to indicate even parity. CY carry flag: This flag is set when a carry is generated from bit D7 after an unsigned operation. 5

8085 ENDS Programmable device: The microprocessor can perform different sets of operations on the data it receives depending on the sequence of instructions supplied in thegiven program. By changing the program, the microprocessor manipulates the data in different ways. Instructions: Each microprocessor is designed to execute a specific group of operations. This group of operations is called an instruction set. This instruction set defines what the microprocessor can and cannot do. Takes in data: The data that the microprocessor manipulates must come from somewhere. It comes from what is called input devices. These are devices that bring data into the system from the outside world. These represent devices such as a keyboard, a mouse, switches, and the like. Numbers: The microprocessor has a very narrow view on life. It only understands binary numbers. A binary digiti is called a bit. The Microprocessor recognizes and processes a group of bits together. This group of bits is called a word. The number of bits in a Microprocessor s word, is a measure of its abilities. Arithmetic and Logic Operations: Every microprocessor has arithmetic operations such as add and subtract as part of its instruction set. Most microprocessors will have operations such as multiply and divide. Some of the newer ones will have complex operations such as square root. In addition, microprocessors have logic operations as well. Such as AND, OR, XOR, shift left, shift right, etc. Stored in memory: When a program is entered into a computer, it is stored in memory. Then as the microprocessor starts to execute the instructions, it brings theinstructions from memory one at a time. Memory is also used to hold the data. The microprocessor reads (brings in) the data from memory when it needs it and writes (stores) the results into memory when it is done. Produces: For the user to see the result of the execution of the program, the results must be presented in a human readable form. h l b d d i The results must be presented on an output device. This can be the monitor, a paper from the printer, a simple LED or many other forms. 6