Sample Copy. Not For Distribution.

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

Sample Copy. Not For Distribution.

Basics of Microprocessor

Microprocessor Architecture

Chapter 1: Basics of Microprocessor [08 M]

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

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

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

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

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

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

Pin Description, Status & Control Signals of 8085 Microprocessor

3.1 Description of Microprocessor. 3.2 History of Microprocessor

1. Internal Architecture of 8085 Microprocessor

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

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Instructions Involve a Segment Register (SR-field)

History and Basic Processor Architecture

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

Lecture Note On Microprocessor and Microcontroller Theory and Applications

Architecture of 8085 microprocessor

Write A General Form Of The Assembly

Introduction to Microprocessor

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Computer Hardware Requirements for Real-Time Applications

EC6504 MICROPROCESSOR AND MICROCONTROLLER

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

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

8086 Hardware Specification

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

Chapter 2 Logic Gates and Introduction to Computer Architecture

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Segment 1A. Introduction to Microcomputer and Microprocessor

Topics. Interfacing chips

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

BASIC INTERFACING CONCEPTS

Sunday, April 25, 2010


Microprocessors/Microcontrollers

Introduction to Microcontrollers

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

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

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

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

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

EC 6504 Microprocessor and Microcontroller. Unit II System Bus Structure

Module 2: Introduction to AVR ATmega 32 Architecture

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

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

Pin diagram Common SignalS Architecture: Sub: 8086 HARDWARE

Chapter 4. MARIE: An Introduction to a Simple Computer

PART B UNIT II PART A

Question Bank Microprocessor and Microcontroller

MARIE: An Introduction to a Simple Computer

Sample Copy. Not For Distribution.

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

ELE 3230 Microprocessors and Computer Systems

EC4205 Microprocessor and Microcontroller

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

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

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

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

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

MICROPROCESSOR 8085 AND ITS INTERFACING SUNIL MATHUR. Second Edition A 1 ALE AD 0 - AD 7. Latch. Keyboard data V CC 8 P A D D 0 7 STB STB G G A

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

Microcontroller & Interfacing

Microprocessors and Microcontrollers. Assignment 1:

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

INTEL Architectures GOPALAKRISHNAN IYER FALL 2009 ELEC : Computer Architecture and Design

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

1. Internal Architecture of 8085 Microprocessor

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

MARIE: An Introduction to a Simple Computer

1. Internal Architecture of 8085 Microprocessor

Technology in Action

Computer Organization

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

Chapter NINE 8088,80286 MICROPROCESSORS AND ISA BUS

Overview of Intel 80x86 µp

INSTITUTE OF ENGINEERING AND MANAGEMENT, KOLKATA Microprocessor

Sample Copy. Not for Distribution.

Introduction to Computers - Chapter 4

Lecture-55 System Interface:

Chapter 4. Chapter 4 Objectives. MARIE: An Introduction to a Simple Computer

MICROCONTROLLERS 8051

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

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


Microprocessor Theory

Sample Copy. Not for Distribution.

Fig 1. Block diagram of a microcomputer

Subject Code: Model Answer Page No: /25

ELCT 912: Advanced Embedded Systems

Unit DMA CONTROLLER 8257

8254 is a programmable interval timer. Which is widely used in clock driven digital circuits. with out timer there will not be proper synchronization

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

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

Transcription:

Microprocessor 8085 i

Publishing-in-support-of, EDUCREATION PUBLISHING RZ 94, Sector - 6, Dwarka, New Delhi - 110075 Shubham Vihar, Mangla, Bilaspur, Chhattisgarh - 495001 Website: www.educreation.in Copyright, Authors All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted, in any form by any means, electronic, mechanical, magnetic, optical, chemical, manual, photocopying, recording or otherwise, without the prior written consent of its writer. ISBN: 978-1-5457-0773-9 Price: 315.00 The opinions/ contents expressed in this book are solely of the authors and do not represent the opinions/ standings/ thoughts of Educreation or the Editors. The book is released by using the services of self-publishing house. Printed in India ii

Microprocessor 8085 PPI Interfacing and Applications Dr. Godhini Prathyusha Lecturer in Electronics Ananthapur AndhraPradesh EDUCREATION PUBLISHING (Since 2011) www.educreation.in iii

iv

Preface to this Book I feel great pleasure in bringing out the book, MICROPROCESSOR 8085 for under graduate students of AndhraPradesh universities, AndhraPradesh. This book on MICROPROCESSOR has been written in accordance with the latest syllabi, to meet the needs of the students. This book is written in a simple manner with the topics arranged systematically to enable the reader to get enough knowledge of the subject. The whole text has been logically organized and spreader over 5 Units. Unit -1: Introduction and Architecture of Microprocessor Unit -2: Timing Diagram of 8085 Microprocessor Unit -3: Instruction set, Addressing modes and simple programs Unit -4: Programmable Peripheral Interface devices Unit -5: Interfacing with Microprocessor As an author I have tried to put my best in the book and the suggestions for the improvement of this book are cordially invited from my fellow professors and students. Anantapur Dr.G.Prathyusha v

vi

Acknowledgements I convey my special thanks to my Instrumentation department, University Science Instrumentation Center, Sri Krishnadevaraya University, Anantapur for their help and cooperation. Many thanks go to my father Sri.G.SambasivaRao, my mother Smt.G.Bharathi and my dearest brother G.Rakesh Kumar. Words cannot be expressed to convey gratitude to my Life partner G.Venkatesh and my sweetest son G.Adharsh for their affectionate help and support without which I could not complete my book. Finally, the author is thankful to the authorities of Sri Krishnadevaraya University, Anantapur. - G.Prathyusha vii

viii

Dedicated to MY Family ix

x

Content List S. No. Content Page 1. Introduction to Microprocessor 1 Introduction Pin Diagram of 8085 Architecture ALU Registers Control signal and Status signal Address/Data bus Interrupts 2. Timing Diagram 22 Introduction Instruction Cycle Read Cycle Write Cycles 3. Instruction set of 8085 41 Introduction to Instruction Classifications of Instructionset Addressing Modes Programming in 8085 xi

4. Programmable Peripheral Interface 74 PPI 8255 PPI 8155 Programmable Interrupt Controller 8259 DMA Controller 8257 Keyboard/Display interface 8279 5. Interfacing with 8085 119 ADC Square wave generator using DAC Stepper motor control Seven Segment Display Opcode Sheet of 8085 xii

Microprocessor 8085 1 INTRODUCTION TO MICROPROCESSOR Introduction Microprocessor is a Central Processing Unit (CPU) etched on a single chip. A single Integrated Circuit (IC) has all the functional components of a CPU namely Arithmetic Logic Unit (ALU), Control Unit and registers. The 8085 microprocessor is an 8-bit processor that includes on its chip most of the logic circuitry for performing computing tasks and for communicating with peripherals. The architecture of a microprocessor is to be learnt in terms of registers, memory addressing, addressing modes, instruction set, interfacing with memory and Input and Output (I/O) devices and interrupt handling. It is necessary to learn about the above mentioned concepts to write efficient assembly language programs, and to design microprocessor based systems. This unit gives you an overall idea about the microprocessors, the detailed discussion about 8085 architecture and interfacing of 8085 with Programmable Peripheral Interface (PPI) devices. Microprocessor is a controlling unit of a micro-computer, fabricated on a small chip capable of performing ALU (Arithmetic Logical Unit) operations and communicating with the other devices connected to it. Microprocessor consists of an ALU, register array, and a control unit. ALU performs arithmetical and logical operations on the data received from the memory or an input device. Register array consists of registers identified by letters like B, C, D, E, H, L 1

Dr. Godhini Prathyusha and accumulator. The control unit controls the flow of data and instructions within the computer. Block Diagram of a Basic Microcomputer The microprocessor follows a sequence: Fetch, Decode, and then Execute. Initially, the instructions are stored in the memory in a sequential order. The microprocessor fetches those instructions from the memory, then decodes it and executes those instructions till STOP instruction is reached. Later, it sends the result in binary to the output port. Between these processes, the register stores the temporarily data and ALU performs the computing functions. Instruction Set It is the set of instructions that the microprocessor can understand. Bandwidth It is the number of bits processed in a single instruction. Clock Speed It determines the number of operations per second the processor can perform. It is expressed in megahertz (MHz) or gigahertz (GHz).It is also known as Clock Rate. Word Length It depends upon the width of internal data bus, registers, ALU, etc. An 8-bit microprocessor can process 8-bit 2

Microprocessor 8085 data at a time. The word length ranges from 4 bits to 64 bits depending upon the type of the microcomputer. Data Types The microprocessor has multiple data type formats like binary, BCD, ASCII, signed and unsigned numbers. Features of a Microprocessor Cost-effective The microprocessor chips are available at low prices and results its low cost. Size The microprocessor is of small size chip, hence is portable. Low Power Consumption Microprocessors are manufactured by using metaloxide semiconductor technology, which has low power consumption. Versatility The microprocessors are versatile as we can use the same chip in a number of applications by configuring the software program. Reliability The failure rate of an IC in microprocessors is very low, hence it is reliable. Microprocessor - Classification A microprocessor can be classified into three categories. They are RISC Processor, CISC Processor, Special processors. RISC Processor RISC stands for Reduced Instruction Set Computer. It is designed to reduce the execution time by simplifying the instruction set of the computer. Using RISC processors, each instruction requires only one clock cycle to execute results in uniform execution time. This reduces the efficiency as there are more lines of code, hence more RAM is needed to store the instructions. The compiler also has to work more to convert high-level language instructions into machine code. Some of the RISC processors are Power PC: 601, 604, 615, 620 3

DEC Alpha: 210642, 211066, 21068, 21164 MIPS: TS (R10000) RISC Processor PA-RISC: HP 7100LC Dr. Godhini Prathyusha Architecture of RISC RISC microprocessor architecture uses highly-optimized set of instructions. It is used in portable devices like Apple ipod due to its power efficiency. Characteristics of RISC It consists of simple instructions. It supports various data-type formats. It utilizes simple addressing modes and fixed length instructions for pipelining. It supports register to use in any context. One cycle execution time. LOAD and STORE instructions are used to access the memory location. It consists of larger number of registers. 4

Microprocessor 8085 It consists of less number of transistors. CISC Processor CISC stands for Complex Instruction Set Computer. It is designed to minimize the number of instructions per program, ignoring the number of cycles per instruction. The emphasis is on building complex instructions directly into the hardware. The compiler has to do very little work to translate a high-level language into assembly level language/machine code because the length of the code is relatively short, so very little RAM is required to store the instructions. Some of the CISC Processors are IBM 370/168 VAX 11/780 Intel 80486 Architecture of CISC Its architecture is designed to decrease the memory cost because more storage is needed in larger programs resulting in higher memory cost. To resolve this, the number of instructions per program can be reduced by embedding the number of operations in a single Instruction. 5

Dr. Godhini Prathyusha Characteristics of CISC Variety of addressing modes. Larger number of instructions. Variable length of instruction formats. Several cycles may be required to execute one instruction. Instruction-decoding logic is complex. One instruction is required to support multiple addressing modes. Special Processors These are the processors which are designed for some special purposes. Few of the special processors are briefly discussed Coprocessor A coprocessor is a specially designed microprocessor, which can handle its particular function many times faster than the ordinary microprocessor. For example Math Coprocessor. Some Intel math-coprocessors are 8087-used with 8086 80287-used with 80286 80387-used with 80386 Input/Output Processor It is a specially designed microprocessor having a local memory of its own, which is used to control I/O devices with minimum CPU involvement. For example DMA (direct Memory Access) controller Keyboard/mouse controller Graphic display controller SCSI port controller 6

Microprocessor 8085 Transputer (Transistor Computer) A transputer is a specially designed microprocessor with its own local memory and having links to connect one transputer to another transputer for inter-processor communications. It was first designed in 1980 by Inmos and is targeted to the utilization of VLSI technology. A transputer can be used as a single processor system or can be connected to external links, which reduces the construction cost and increases the performance. For example 16-bit T212, 32-bit T425, the floating point (T800, T805 & T9000) processors. DSP (Digital Signal Processor) This processor is specially designed to process the analog signals into a digital form. This is done by sampling the voltage level at regular time intervals and converting the voltage at that instant into a digital form. This process is performed by a circuit called an analogue to digital converter, A to D converter or ADC. A DSP contains the following components Program Memory It stores the programs that DSP will use to process data. Data Memory It stores the information to be processed. Compute Engine It performs the mathematical processing, accessing the program from the program memory and the data from the data memory. Input/Output It connects to the outside world. Its applications are Sound and music synthesis Audio and video compression Video signal processing 2D and 3d graphics acceleration. For example Texas Instrument s TMS 320 series, e.g., TMS 320C40, TMS320C50. 7

Dr. Godhini Prathyusha Pin Diagram of 8085 The pins of a 8085 microprocessor can be classified into seven groups Address bus A15-A8, it carries the most significant 8-bits of memory/io address. Data bus AD7-AD0, it carries the least significant 8-bit address and data bus. 8

Microprocessor 8085 Control and status signals These signals are used to identify the nature of operation. There are 3 control signal and 3 status signals. Three control signals are RD, WR & ALE. RD This signal indicates that the selected IO or memory device is to be read and is ready for accepting data available on the data bus. PWR This signal indicates that the data on the data bus is to be written into a selected memory or IO location. ALE It is a positive going pulse generated when a new operation is started by the microprocessor. When the pulse goes high, it indicates address. When the pulse goes down it indicates data. Three status signals are IO/M, S0 & S1. IO/M This signal is used to differentiate between IO and Memory operations, i.e. when it is high indicates IO operation and when it is low then it indicates memory operation. S1 & S0 These signals are used to identify the type of current operation. QS0 QS1 Status 0 0 No operation (Halt) 0 1 First byte of opcode from the queue(read) 1 0 Empty the queue(write) 1 1 Subsequent byte from the queue(fetch) Power supply There are 2 power supply signals VCC & VSS. VCC indicates +5v power supply and VSS indicates ground signal. Clock signals There are 3 clock signals, i.e. X1, X2, CLK OUT. 9

10 Dr. Godhini Prathyusha X1, X2 A crystal (RC, LC N/W) is connected at these two pins and is used to set frequency of the internal clock generator. This frequency is internally divided by 2. CLK OUT This signal is used as the system clock for devices connected with the microprocessor. Interrupts & externally initiated signals Interrupts are the signals generated by external devices to request the microprocessor to perform a task. There are 5 interrupt signals, i.e. TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR. We will discuss interrupts in detail in interrupts section. INTR INTR is an interrupt request signal. It has the lowest priority among the interrupts. INTR can be enabled or disabled by using software. Whenever INTR goes high the microprocessor completes the current instruction which is being executed and then acknowledges the INTR signal and processes it. INTA : Whenever the microprocessor receives interrupt signal. It has to be acknowledged. This acknowledgement is done by INTA. So whenever the interrupt is received INTA goes high. RST 5.5, 6.5, 7.5 These are nothing but the restart interrupts. They insert an internal restart function automatically. All the above mentioned interrupts are maskable interrupts. That is, they can be enabled or disabled using programs. TRAP Among the interrupts of 8085 microprocessor, TRAP is the only non-maskable interrupt. It cannot be enabled or disabled using a program. It has the highest priority among the interrupts. PRIORITY ORDER (From highest to lowest) TRAP RST 7.5 RST 6.5

Microprocessor 8085 Get Complete Book At Educreation Store www.educreation.in 11