Memory interfacing of microcontroller 8051

2,201 views 43 slides Jul 26, 2021
Slide 1
Slide 1 of 43
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43

About This Presentation

Semiconductor Memory Fundamentals
Memory Types
Memory Structure and its requirements
Memory Decoding
Examples on Memory Interfacing


Slide Content

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Memory Interfacing with Microcontroller 8051
Dr. Nilesh Bhaskarrao Bahadure
July 25, 2021

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Introduction to Memory Interfacing
1Semiconductor Memory Fundamentals
2Memory Types
3Memory Structure and its requirements
4Memory Decoding
5Examples on Memory Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Memory is simply a device that can be used to store the
information (data). The semiconductor memories are
extensively used because of their small size, low cost, high
speed, high reliability and ease of expansion of the memory
size, it consists mainly a ip ops one ip op can hold one bit
of data and some additional circuitry such as buers

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Semiconductor Memory

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Semiconductor Memory
In the design of all computers, semiconductor memories
are used as primary storage for data and code.
They are connected directly to the CPU and they are the
memory that the CPU asks for information (code or data).
Among the most widely used are RAM and ROM.Memory Capacity The number of bits that a semiconductor memory chip
can store is called its chip Capacity (bits or bytes)
Memory Organization

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Semiconductor Memory
Each memory chip contains 2N locations where N is the
number of address pins on the chip.
Each location contains M bits, where M is the number of
data pins on the chip.
The entire chip will contain 2N x M bits.Example: Memory organization of 4K x 4, 212 = 4096
locations, each location holding 4 Bits (so N=12 and
M=4)
Memory Speed (access time)

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Introduction to Memory Interfacing
1Semiconductor Memory Fundamentals
2Memory Types
3Memory Structure and its requirements
4Memory Decoding
5Examples on Memory Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
ROM

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
ROM
1ROM (Read Only Memory)
ROM is the type of memory that does not lose its contents
when power is turned o. It is also called nonvolatile
memory.
2PROM (Programmable Memory)User programmable (one-time programmable) memory.If the information burned into PROM is wrong, it needs to
be discarded since internal fuses are blown permanently.
Special equipment needed: ROM burner or ROM
programmer.
3EPROM (Erasable Programmable ROM) 2,000 timesAllows making changes in the contents of PROM after it is
burned.
One can program the memory chip and erase it thousands
of times.
Erasing its contents can take up to 20 minutes; the entire
chip is erased.

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
ROM
All EPROM chips have a window that is used to shine
ultraviolet (UV) radiation to erase its contents.
Also referred to as UV-EPROM.
4EEPROM (Electrically Erasable ROM) 500,000 times
Method of erasure is electrical.Moreover, one can select which byte to be erased.Cost per bit is much higher than for UV-EPROM.5Flash Memory EPROMFirst, the process of erasure of the entire contents takes
less than a second, or one might say in a ash, hence its
name: ash memory.
When ash memory's contents are erased, the entire
device is erased.
Even though ash memories are writeable, like EPROM's
they nd their widest use in microcomputer systems for
storage of rmware.

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Random Access Memory

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Random Access Memory
1SRAM (Static RAM)
Storage cells are made of ip-ops and therefore they do
not require refreshing to keep their data.
A cell handling one bit requires 6 or 4 transistors each,
which is too many.
SRAMS are widely used for cache memory and
battery-backed memory systems.
2DRAM (Dynamic RAM)Uses MOS capacitors to store a bitRequires constant refreshing due to leakage (every 2ms {
4ms).

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Random Access Memory
Advantages
a. High density (capacity),
b. Cheaper cost per bit
c. Lower power consumption.
Disadvantage
a. While it is being refreshed, data cannot be accessed
b. Larger access times
c. Too many pins due to large capacity

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Memory Device

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Introduction to Memory Interfacing
1Semiconductor Memory Fundamentals
2Memory Types
3Memory Structure and its requirements
4Memory Decoding
5Examples on Memory Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Memory structure of RAM and ROM

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Basic Concept of Memory Interfacing
The memory interfacing requires:
Select the chip (Enable CS).Identify the register.Enable the appropriate buer ( Read or Write)Microcontroller based system include memory devices and the
input { output devices. It is important to note that
microcontroller can communicate (Read or Write) with only
one device at a time, since the address, data and control lines
are common for all the devices.
In order to communicate with memory or IO device, it is
necessary to decode the address from the microcontroller.

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Introduction to Memory Interfacing
1Semiconductor Memory Fundamentals
2Memory Types
3Memory Structure and its requirements
4Memory Decoding
5Examples on Memory Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Absolute or Full Decoding

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Partial or Linear Decoding

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Introduction to Memory Interfacing
1Semiconductor Memory Fundamentals
2Memory Types
3Memory Structure and its requirements
4Memory Decoding
5Examples on Memory Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
1
Show the interfacing of an 8051 microcontroller with 8K bytes
of data ROM.
Answer
1

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
2
Show the interfacing of an 8051 microcontroller with 8K bytes
of data ROM and 8K bytes of program ROM.
Answer
2

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
3
Show the interfacing of an 8051 microcontroller with 4K bytes
of data RAM with 8051 Microcontroller.
Answer
3

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
4
Show the interfacing of an 8051 microcontroller with 16K bytes
of data RAM with 8051 Microcontroller. Assume the starting
address of 16KB data RAM is 8000h.
Answer
4

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
5
Show the interfacing of an 8051 microcontroller with 8K bytes
of program memory, 8K bytes of data ROM and 8K bytes of
data RAM. Show the complete address mapping. Use 74LS138
3 to 8 decoder for the generation of chip select.
Answer
5

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
6
Show the interfacing of an 8051 microcontroller with 16K
Bytes of data ROM and 16K Bytes of data RAM

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Answer
6

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
7
(a) Design the interfacing system for the Microcontroller 8051
with 256K Bytes of SRAM. Assume that available IC is 64K
Bytes of SRAM.
(b) Write an assembly language program to read 10 bytes from
memory location 20000h and store the contents in the internal
memory location from 30h.
Answer
7

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
8
Show the interfacing of an 8051 microcontroller with 4K bytes
of data ROM and 8K bytes of data RAM.
Answer
8

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
9
Show the interfacing of an 8051 microcontroller with 8K bytes
of data ROM and 8K Bytes of data RAM using partial
decoding techniques.
Answer
9

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Example
10
Show the interfacing of an 8051 microcontroller with 16K bytes
of data RAM using the available memory IC 6164.
Answer
10

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing

Memory
Interfacing
with Micro-
controller
8051
Dr. Nilesh
Bhaskarrao
Bahadure
Semiconductor
Memory
Fundamentals
Memory Types
Memory
Structure and
its
requirements
Memory
Decoding
Examples on
Memory
Interfacing
Thank you
Please send your feedback at [email protected]
For more details and updates kindly visit
https://sites.google.com/site/nileshbbahadure/home
Main Slide