MICROPROCESSOR BASED SYSTEM DESIGN

Slides:



Advertisements
Similar presentations
Computing Systems Organization
Advertisements

Microprocessor A microprocessor also called the CPU is the heart of the computer system or any computing device. It is a semiconductor chip which can be.
I/O Organization popo.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
I/O Unit.
Processor System Architecture
CSNB373: Microprocessor Systems
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Set 20 Interrupts. INTERRUPTS The Pentium has a mechanism whereby external devices can interrupt it. Devices such as the keyboard, the monitor, hard disks.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Practical Session No. 10 Input &Output (I/O). I/O Devices Input/output (I/O) devices provide the means to interact with the “outside world”. An I/O device.
Chapter 11 Interrupt Interface of the 8088 and 8086 Microcomputer
Presented By Chandra Shekar Reddy.Y 11/5/20081Computer Architecture & Design.
Parallel Ports of PC Methods of interfacing Examples.
INTRODUCTION TO MICROCONTROLLER. What is a Microcontroller A microcontroller is a complete microprocessor system, consisting of microprocessor, limited.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Fig 8-4 p-341. S 5 =IF flag (interrupt Enable). S 6 =0 always.
MICROPROCESSOR INPUT/OUTPUT
Input/Output. I/O Initiation & Control  Transfer of data between circuitry external to the microprocessor and the microprocessor itself.  Transfer of.
Computer Architecture Lecture 8 by Engineer A. Lecturer Aymen Hasan AlAwady 30/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Basic I/O Interface A Course in Microprocessor
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Input/Output Interface Circuits and LSI Peripheral Devices
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Input-Output Organization
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
SET 21 OPERATING SYSTEM USE OF ASSEMBLY LANGUAGE.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
I/O AND THE 8255; ISA BUS INTERFACING
Basic I/O Interface Fixed Address Variable Address
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
1 Microprocessors CSE – 341 Basic I/O Interfacing.
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter Microcontroller
8051 Micro Controller. Microcontroller versus general-purpose microprocessor.
8085 Microprocessor: Architecture & Support Components.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Overview of microcomputer structure and operation
Intel 8255A PPI EEE 365 [FALL 2014] LECTURE ATANU K SAHA BRAC UNIVERSITY.
Practical Session 11 Computer Architecture and Assembly Language Input &Output (I/O)
Chapter 11: Basic I/O Interface – Part 1. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel.
Computer System Structures
Interfacing I/O Devices
Computing Systems Organization
Diagram of microprocessor interface with IO devices
Computer Organization & Assembly Language Chapter 3
Microcomputer Architecture
Physics 413 Chapter 10.
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
I/O Interfacing CSE 2312 Maher Al-Khaiyat.
Architecture & Support Components
11.1 Interrupt Mechanism, Type, and Priority
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Computer Architecture and Assembly Language
Presentation transcript:

MICROPROCESSOR BASED SYSTEM DESIGN

Input and output interfaces Hardware Interfaces are required to enable input and output of data to and from a computer. Various I/O techniques exist. Direct Transfer Test and Transfer Interrupt Transfer Direct Memory Access Facilities provided by typical microprocessor chips. How to design interfaces for computers and microprocessor systems. The Intel family of microprocessors are no different from

Characteristics of I/O Devices INPUT OUTPUT Complexity Switches Transducer Counters/ Keyboards Lamps Servos Alphanumeric display VDU Terminals Disk Drives Multimedia Simplest Most Complex The more complex devices may well require much more complex interfaces than simple devices such as switches and lamps. Microprocessors are generally connected to a much wider range of devices than larger computers because their range of application is much wider.

ISOLATED INPUT AND OUTPUT In Isolated input & output, the data transfer between microprocessor and the I/O device takes places using special I/O instructions IN and OUT. In memory-mapped I/O, and instruction that references to memory can accomplish the I/O transfer. The Isolated I/O (I/O via separate address space) is the most common I/O transfer technique used in Intel Microprocessor Based System. The term ISOLATED describes how the I/O locations are isolated from the memory system in a separate I/O address space.

ISOLATED INPUT AND OUTPUT (Contt..) The address for Isolated I/O devices are called PORTS. It is separate from the memory. The user can expand the memory to its full size without using any of this space for I/O devices. DISADVANTAGE or ISOLATED I/O: The data transfer between I/O & microprocessor must be accessed by INS, OUT, OUTS instructions. Separate Control Signals for I/O space are used (using M/IO & W/R) that indicate an I/O read (IORC) or an I/O write (IOWC) operation.

ISOLATED INPUT AND OUTPUT (Contt..) In PC, Isolated I/O ports are used for controlling peripheral devices. 8-bits port address is used to access devices located on the system board, such as: Timer, Keyboard Interface. 16-bits port address is used to access serial & parallel port. Video (CGA/VGA) & Disk Drive System. DISADVANTAGE of MEMORY-MAPPED I/O: The portion of the memory system is used to as the I/O map. This reduces the amount of memory available to applications.

Input & Output MAP of PC The PC used part of I/O map for DEDICATED APPLICATIONS. The I/O space between ports 0000H and 03FF is normally reserved for Computer System. The I/O ports located at 0400H-FFFFH are generally available for user applications.

I/O INSTRUCTIONS Both IN & OUT instructions transfer data between I/O device & microprocessor’s accumulator (AL, AX or EAX). Instructions INS and OUTS, which are available on all versions, except 8086/8088 are used to transfers STRINGS of data between the memory & I/O Device. All data transfer takes pace between I/O devices & AL or AX register. For this reason, this method of performing I/O is know as ACCUMULATOR I/O.

Mnemonic Meaning Format Operation IN OUT Input direct Input Indirect (Variable) Output Direct Output Indirect (Variable) IN Acc, Port IN Acc, DX OUT Port, Acc OUT DX, Acc (Acc) (Port) Acc = AL or DX (Acc) (DX) (Port) (Acc) (DX) (Acc) Byte transfers involve the AL register and word transfers involve AX register. Since 16 address line (A0-A15) are used to address I/O ports, the I/O address space consists of 64K word-wide I/O ports. In Direct I/O instruction, the address of the I/O port is specified at port of the instruction. 8-bits are provided for Direct address. For this reason its value is limited to 0000H to 00FFH.

Example-1 IN AL, FE Execution of this instruction causes the contents of the byte-wide I/O port (at address FEH) to be input to the AL register. Example-2 Write a sequence of instructions that will output FFH to a byte-wide output port at address ABH of the I/O address space.

Solution: First the AL register is loaded with FFH as an immediate operand using instruction: MOV AL. FF Now the data in AL can be output to the byte-wide output port with the instruction: OUT AB, AL

The difference between the direct and variable I/O instruction lies in the way in which the address of the I/O port is specified. For direct I/O Instruction an 8-bit address is specified as port of the instruction. The variable I/O uses a 16-bit address the resides in DX register. The value in DX is the actual address that is to be output. Since this address is al full 16-bits in length, variable I/O instructions can access ports located anywhere in the 64K byte I/O address space.

Example-3 Write a series of instructions that will output FFH to an output port located at address B000H of the I/O address space (Turn all LED’s ON). Solution: MOV DX, B000 : DX register must be loaded with address of the output port. MOV AL, FF : Data to be output must be loaded into AL OUT DX, AL : Data is sent at output address B000H

Example-4 Solution: MOV AL, FF : and move it to AH Suppose Data are to be read in from two byte-wide input ports at address AAH and A9H, respectively, and then output as word to a word-wide output port at address FAFDH. Write a sequence of instructions to perform this input/output operation. Solution: IN AL , AA : First read byte from the port address AAH into AL MOV AL, FF : and move it to AH OUT DX, AL : other byte can be read into AL MOV DX, FAFD : load DX with variable address OUT DX, AX : send contents of AX at output FAFDH