Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
1 Homework Reading –Tokheim, Chapter 12-1 through 12-4 Machine Projects –MP4 due at start of next class Labs –Continue with your assigned section.
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
9/20/6Lecture 14 - Static Memory1 Static Memory. 9/20/6Lecture 14 - Static Memory2 Static Memory.
ECE 301 – Digital Electronics Memory (Lecture #21)
Chapter 10. Memory, CPLDs, and FPGAs
Parity. 2 Datasheets TTL:  CMOS: 
Memory and Programmable Logic
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Computer Organization Prepared by:Anh Q. Vu Course:CS-147 Professor:Sin-Min Lee Date:Summer
Chapter 5 Internal Memory
Memory Devices Wen-Hung Liao, Ph.D..
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
TK Memory Interface DR MASRI AYOB. 2 Requirement and memory structure There are two types of memory: –RAM: read and write –ROM: read only Figure.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Logic Device and Memory. Tri-state Devices Tri-state logic devices have three states: logic 1, logic 0, and high impedance. A tri-state device has three.
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory and I/O Interfacing
Memory and Programmable Logic
Introduction to Computing: Lecture 4
8088 I/F with basic IO, RAM and 8255
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Microprocessor Address Decoding.
Address Decoding Memory/IO.
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Basic I/O Interface A Course in Microprocessor
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Chapter 5 Internal Memory. Semiconductor Memory Types.
3-1-1 Chapter 3 Memory and Memory Interfacing Section 3.01 Semiconductor Memory Fundamentals In the design of all computers, semiconductor memories are.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
HARDWARE ARCHITECTURE
Chapter 8 Memory Interface
Minimum System Requirements Clock Generator Memory Interfacing.
Memory and Storage Dr. Rebhi S. Baraka
Internal Memory.
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
Memory Read only memory (ROM) – nonvolatile
Memory and Register. Memory terminology read/write operation volotile/non volatile determine the capacity from input and output timing requirements of.
Memory Cell Operation.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2007.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Semiconductor Memory Types
Memory Interface Every µP-based system has a memory system. All systems contain two types of memories.  Read-Only Memory (Volatile Memory)  Random Access.
Wnopp Memory device Introduction n Memory Cell n Memory Word n Byte n Capacity n Address n Read Operation n Write Operation n Access Time n Volatile.
Chapter 10: Memory Interface – Part I. Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Objectives : At the end of this lesson, students should be able to : i.Identify the types of memory chip and their functions. ii.Define the difference.
Computer Architecture Chapter (5): Internal Memory
AHMEDABAD INSTITUTE OF TECHNOLOGY
MICROPROCESSOR BASED SYSTEM DESIGN BY PROF. DR. B. S. CHOWDHRY Lecture #
Chapter 10: Memory Interface
Memory and Programmable Logic
Homework Reading Tokheim, Chapter 12-1 through 12-4.
MEMORY DEVICES, CIRCUITS, AND SUBSYSTEM DESIGN
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
William Stallings Computer Organization and Architecture 8th Edition
حافظه و منطق قابل برنامه ریزی
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
حافظه و منطق قابل برنامه ریزی
MICROPROCESSOR MEMORY ORGANIZATION
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia

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 temporary data and application software

Memory Devices 4 Types of Memory : –read-only memory (ROM) –flash memory (EEPROM) –static random access memory (SRAM) –dynamic random access memory (DRAM) 4 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) 4 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) 4 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. 4 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) 4 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. 4 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) 4 Commonly found address decoders include : –the 3-to-8 Line Decoder (74LS138)(see Fig ) –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 (8-Bit) Memory Interface 4 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 (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 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 (8-Bit) Memory Interface (cont’d) Interfacing EPROM to the 8088 –Fig 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 (8-Bit) Memory Interface (cont’d) –The 8088 will allow 660 ns for the EPROM to access data. The 660 ns is sample 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 (8-Bit) Memory Interface (cont’d) –Fig. 9-20, K 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 (8-Bit) Memory Interface (cont’d) 4 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 illustrates a 28F400 Intel Flash Memory interfaced to the 8088 microprocessor

8088 and (8-Bit) Memory Interface (cont’d) 4 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 illustrates the 74AS280 parity generator/detector integrated circuit

8088 and (8-Bit) Memory Interface (cont’d) –Fig illustrates a 64K memory system that containts a parity error detection circuit 4 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 (8-Bit) Memory Interface (cont’d) –Fig depicts the pin-out 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 illustrates an error detection and correction circuit using the 74LS636