Docsity

Lecture Slides on General Memory Interfacing | ETEE 3285, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Lecture Slides on General Memory Interfacing | ETEE 3285 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Embedded Systems Programming

ETEE 3285

Topic 11: General Memory Interfacing

Objectives

 To become familiar with the concepts of memory

expansion and the data and address bus

 To design embedded systems circuits that will

include generic expanded memory systems

 External to the microcontroller

Volatile Memory

 Volatile memory loses its stored information

when power is removed

 Random access memory ( RAM ) is volatile memory

 RAM is sometimes referred to as read/write memory

 Data may be stored in (written to) memory as well as read

from memory under normal circuit operation

 Flash Memory

 Non-volatile memory that can be electrically erased and

reprogrammed

 A type of EEPROM

 Used as program memory on most embedded systems

Non-Volatile Memory

 ROM memory is non-volatile

 Masked ROM is a type of ROM whose data is stored

into it during the manufacturing process

 These types of ROM chips are used in systems where:

 The data/program have been perfected and
 Will be used in many products (such as system or boot-up
programs in computers

 PROM s are programmable read only memories.

PROMs

 May be programmed once and then never erased or altered

EEPROM Memory

 EEPROM s are electrically erasable

programmable read only memories

 Non-Volatile: Retain data and/or programs when

power is removed

 May be erased and written to (programmed) while in

the circuit

 Limited read/erase/write cycle

 About 10,000 times

 Slower than other types of memory

 Used to hold constant data in embedded systems

Memory Organization

 Data may be read from or written to memory one

bit at a time or several bits at a time

 Depends on its organization

 Example:

 A memory IC with two addressable memory locations that could
each store 8 bits of data
 a 2 x 8 organization (2 memory locations by 8 bits wide)

4 x 4 Memory Organization

 Example:

 A chip that had four addressable memory locations, each

capable of storing four bits simultaneously

 4 x 4 organization

 Each addressable memory location (or the chip itself) would be said to
be 4 bits wide.

4 x 4 Memory Organization

 Example:

 A chip that had four addressable memory locations, each

capable of storing four bits simultaneously

 4 x 4 organization

 Each addressable memory location (or the chip itself) would be said to
be 4 bits wide.

This IC would require 2 address inputs to select one of the four addressable memory locations as shown.

A1 A

Memory Addressing

 All memory has external pins for selecting a particular

addressable memory location: its address inputs

 Example: a 4 x 8 memory chip

 requires 2 address inputs

The internal decoding logic will accept the address inputs and then decode and select the appropriate memory location.

Memory Addressing

 All memory has external pins for selecting a particular

addressable memory location: its address inputs

 Example: a 4 x 8 memory chip

 requires 2 address inputs

The internal decoding logic will accept the address inputs and then decode and select the appropriate memory location.

The only thing that circuit designers must do in this case is to connect the proper pins from the microcontroller to the address inputs.

2 - 4 x 8 Memory ICs

What if our circuit required an 8 x 8 memory system, but all we have available are the 4 x 8 memory chips.

We would then need two 4 x 8 memory chips

Simple Decoding Logic

What if our circuit required an 8 x 8 memory system, but all we have available are the 4 x 8 memory chips.

We would then need two 4 x 8 memory chips and the circuitry (external decoding logic) to choose between them.

RAM

and RAM

: A

Address inputs A 0 and A 1 will choose the memory location on on each memory chip…..

A 2 will enable the proper memory chip (either RAM0 or RAM1)

Example Address

If address 101 (A 2 =1, A 1 =0, A 0 =1) is placed on the address lines…… 0