Allmost all systems contain two main types of memory :

Similar documents
FIGURE Three EPROMs interfaced to the 8088 microprocessor.

Introduction read-only memory random access memory

Address connections Data connections Selection connections

7/6/2011. Introduction. Chapter Objectives Upon completion of this chapter, you will be able to:

Menu. word size # of words byte = 8 bits

Read and Write Cycles

Chapter TEN. Memory and Memory Interfacing

UMBC. Select. Read. Write. Output/Input-output connection. 1 (Feb. 25, 2002) Four commonly used memories: Address connection ... Dynamic RAM (DRAM)

Microprocessors and Microcontrollers (EE-231)

10 2 ADDRESS DECODING:

Semiconductor Memories: RAMs and ROMs

8051 INTERFACING TO EXTERNAL MEMORY

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

Chapter 5 Internal Memory

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

eaymanelshenawy.wordpress.com

Computer Organization. 8th Edition. Chapter 5 Internal Memory

CS 320 February 2, 2018 Ch 5 Memory

Computer Organization and Assembly Language (CS-506)

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422)

CHAPTER TWELVE - Memory Devices

The pin details are given below: V cc, GND = +5V and Ground A 11 -A 0 = address lines. Fig.2.19 Intel 2716 Read Only Memory

Organization. 5.1 Semiconductor Main Memory. William Stallings Computer Organization and Architecture 6th Edition

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

ELCT 912: Advanced Embedded Systems

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Contents. Main Memory Memory access time Memory cycle time. Types of Memory Unit RAM ROM

Summer 2003 Lecture 18 07/09/03

UMBC D 7 -D. Even bytes 0. 8 bits FFFFFC FFFFFE. location in addition to any 8-bit location. 1 (Mar. 6, 2002) SX 16-bit Memory Interface

Read Only Memory ROM

ORG ; Week8. Memory and Memory Interfacing

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

ECSE-2610 Computer Components & Operations (COCO)

Chapter 2: Fundamentals of a microprocessor based system

Concept of Memory. The memory of computer is broadly categories into two categories:

Memory Expansion. Lecture Embedded Systems

Memory & Simple I/O Interfacing

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

Interface DAC to a PC. Control Word of MC1480 DAC (or DAC 808) 8255 Design Example. Engineering 4862 Microprocessors

EE251: Thursday November 15

Microprocessors/Microcontrollers

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

Lecture 13: Memory and Programmable Logic

Memory and Programmable Logic

UNIT:4 MEMORY ORGANIZATION

Chapter 5. Internal Memory. Yonsei University

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017


MODULE 12 APPLICATIONS OF MEMORY DEVICES:

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 (PROGRAMMABLE LOGIC DEVICES)

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


Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

UNIT-V MEMORY ORGANIZATION

Handout 15. by Dr Sheikh Sharif Iqbal. Memory Interface of 8088 and 8086 processors

MEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.

Architecture of 8085 microprocessor

EE 308: Microcontrollers

Sistemas Digitais I LESI - 2º ano

Memory and Programmable Logic

Computer Memory. Textbook: Chapter 1

Lecture-55 System Interface:

Microcomputer Architecture and Programming

Design with Microprocessors

Computer Structure. Unit 2: Memory and programmable devices

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Lecture XIV 8086 Memory Interface. Wisam I Hasan

Large and Fast: Exploiting Memory Hierarchy

Memory Interfacing & decoding. Intel CPU s

8 MEMORY INTERFACE. Overview. Program Memory and Data Memory. Figure 8-0. Table 8-0. Listing 8-0.

Memory Systems for Embedded Applications. Chapter 4 (Sections )

Design with Microprocessors

ECE 485/585 Microprocessor System Design

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

Lecture-50 Intel 8255A: Programming and Operating Modes

Picture of memory. Word FFFFFFFD FFFFFFFE FFFFFFFF

Computer Systems Organization

CS429: Computer Organization and Architecture

Principle and Interface Techniques of Microcontroller

CS429: Computer Organization and Architecture

M. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60

Digital Design, Kyung Hee Univ. Chapter 7. Memory and Programmable Logic

CPE/EE 421/521 Fall 2004 Chapter 4 The CPU Hardware Model. Dr. Rhonda Kay Gaede UAH. The CPU Hardware Model - Overview

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

Chapter 4 Main Memory

Discovering Computers 2012

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

Q1. Describe C.P.U and its subunits with the help of diagram?

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458

Summer 2003 Lecture 21 07/15/03

Embedded Systems Design: A Unified Hardware/Software Introduction. Outline. Chapter 5 Memory. Introduction. Memory: basic concepts

Embedded Systems Design: A Unified Hardware/Software Introduction. Chapter 5 Memory. Outline. Introduction

The 9S12 in Expanded Mode - Using MSI logic to build ports Huang Chapter 14

Transcription:

Memory Interface

Allmost all systems contain two main types of memory : read-only memory (ROM) system software and permanent system data random access memory (RAM) or read/write memory application software temporary data and

Memory Devices Types of Memory : read-only memory (ROM) flash memory (EEPROM) static random access memory (SRAM) dynamic random access memory (DRAM) All memory devices have : address inputs and outputs, or just outputs a pin for selection one or more pins that control the operation of the memory

Memory Devices (cont d) Memory Pin Connections Address Connections are used to select one of the memory location within the device. Data Connections are used to enter information to be stored in a memory location and also to retrieve information read from a memory location. Manufacturers list their memory as, for example, 4K x 4, which means that the device has 4K memory locations (4096) and 4-bits are stored in each location.

Memory Devices (cont d) Selection Connections Memory selection is accomplished via a chip selection pin (CS) on many RAMs or a chip enable pin (CE) on many EPROM or ROM memories. Control Connections Memory function is selected by an output enable pin (OE), for reading data. For writing data, memory function is selected by the write enable pin (WE).

Memory Devices (cont d) ROM Memory ROM permanently stores programs and data that are resident to the system and must not change when power is disconnected. This type of memory is often called nonvolatile memory, for example : EPROM (erasable programmable read-only memory) is programmed by an EPROM programmer and can be erased if exposed to ultraviolet light.

Memory Devices (cont d) The flash memory (EEPROM) is programmed in the system by using a 12V programming pulse. Static RAM (SRAM) Devices retains data for as long as the system power system is attached. these memory types are available in sizes up to 128K x 8 stores temporary data and is used when the size of the read/write memory is relatively small Fig. 9-4 illustrates the 4016 SRAM, which is a 2K x 8 read/write memory

Memory Devices (cont d) Dynamic RAM (DRAM) Memory the size is up to 16M x 1 DRAM = SRAM, except that it retains data for only 2 or 4 ms on an integrated capasitor (see Fig. 9-7) Another disanvantage of DRAM memory is that it requires so many address pins that the manufacturers have multiplexed the address inputs

Memory Devices (cont d) as with SRAM, the R/W pin writes data to the DRAM when a logic = 0, but there is no pin labeled G or enable. There also is no S (select) input to the DRAM

Address Decoding To attach a memory device to the microprocessor to decode the address from the microprocessor to make the memory function at a unique section or partition of the memory map. Why Decode Memory? To corrects the mismatch between microprocessor and memory component (because of a difference in the number of address connections surfaces)

Address Decoding(cont d) Commonly found address decoders include : the 3-to-8 Line Decoder (74LS138)(see Fig. 9-13) the 74LS139 2-to-4 line decoder (see Fig. 9-15) programmed selection logic in the form of a PROM (the 82S147) or PLD (see Fig. 9-17)

8088 and 80188 (8-Bit) Memory Interface Basic 8088/80188 (8-bit) Memory Interface Both has an 8-bit data bus ideal as a simple controller the memory system must decode the address to select a memory component it must use the RD, WR and IO/M control signals provided by the 8088/80188 to control the memory system

8088 and 80188 (8-Bit) Memory Interface (cont d) is used the maximum mode system : IO/M is combined with RD to generate an MRDC signal IO/M is combined with WR to generate an MWTC signal these maximum mode control signals are developed inside the 8288 bus controller The minimum mode, the memory sees the 8088 or the 80188 as a device with 20 address connections (A 19 - A 0 ), 8 data bus connections (AD 7 - AD 0 ) and control signals IO/M, RD, and WR

8088 and 80188 (8-Bit) Memory Interface (cont d) Interfacing EPROM to the 8088 Fig. 9-19 illustrates an 8088 microprocessor connected to eight 2732 EPROMs, 4K x 8 memory devices the 2732 has one more address input (A 11 ) than the 2716 and twice the memory the decoder (74LS138) must add a NAND gate to generate a signal to enable the decoder and a signal for the wait state generator

8088 and 80188 (8-Bit) Memory Interface (cont d) The 8088 will allow 660 ns for the EPROM to access data. The 660 ns is ample time for a 450 ns memory component to access data, even with the delays introduced by the decoder and any buffers added to the data bus Interfacing RAM to the 8088 RAM is a little easier to interface than EPROM (it doesn t require wait states) it contains vectors for interrupts

8088 and 80188 (8-Bit) Memory Interface (cont d) Fig. 9-20, 16 62256 32K x 8 static RAMs are interfaced to the 8088, beginning at memory location 0000H the circuit board uses two decoders to select the sixteen different RAM memory components and a third to select the other decoders for the appropriate memory sections the first decoder (U 4 ) in this circuit selects the other two decoders

8088 and 80188 (8-Bit) Memory Interface (cont d) Interfacing Flash Memory for storing setup information on video cards for storing the system BIOS in the PC the only difference between a flash memory device and SRAM is that the flash memory device requires a 12V programming voltage to erase and write new data Fig. 9-21 illustrates a 28F400 Intel Flash Memory interfaced to the 8088 microprocessor

8088 and 80188 (8-Bit) Memory Interface (cont d) Parity for Memory Error Detection Parity checking counts the number of 1 s in data and indicates whether there is an even or odd number if all data are stored with even parity (with an even number of 1-bits), a 1-bit error can be detected Fig. 9-22 illustrates the 74AS280 parity generator/detector integrated circuit

8088 and 80188 (8-Bit) Memory Interface (cont d) Fig. 9-23 illustrates a 64K memory system that containts a parity error detection circuit Error Correction one such circuit is the 74LS636, an 8-bit error correction and detection circuit that corrects any single-bit memory read error and flags any 2-bit error it corrects errors by storing five parity bits with each byte of memory data

8088 and 80188 (8-Bit) Memory Interface (cont d) Fig. 9-24 depicts the pin-oit of 74LS636 when a single error is detected, the 74LS636 goes through an error correction cycle: it places a 01 on S 0 and S 1 by causing a wait and then a read following error correction Fig. 9-25 illustrates an error detection and correction circuit using the 74LS636