0% found this document useful (0 votes)
59 views

Memory Interfacing With Problem

Uploaded by

abinayasuresh135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views

Memory Interfacing With Problem

Uploaded by

abinayasuresh135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

UNIT II

EMBEDDED C PROGRAMMING
Memory And I/O Devices Interfacing

For external memory interfacing to 8051 port 0 & port 2 are used as multiplexed
address/data bus & higher order data bus respectively. If circuit needs on-chip peripherals e.g. serial
I/O & interrupts then only port is available for I/On such situation, I/O expansions is necessary & it
is achieved by using 8255.
External Memory Interfacing in 8051
Microcontroller
Why need External Memory Interfacing in 8051 Microcontroller ?

• Limited internal memory

• Larger programs

• Data storage

• Flexibility

• Cost-effective
EXTERNAL PROGRAM MEMORY
Instructions to Access External ROM / Program Memory

• MOVC A, @ A+DPTR //Copy the contents of the external ROM address

formed by adding A and the DPTR, to A

• MOVC A, @ A + PC///This operation will do copy This operation contents of

the external ROM address formed by adding A and the PC, to A.


Instructions to Access External Data Memory
Problem
Example 1: Design a µController system using 8051.Interface the external RAM of size 16k x
8.
• Solution: Given, Memory size: 16k that means we require 2n=16k :: n address lines here n=14 :: A0 to A13 address lines
are required. A14 and A15 are connected through OR gate to CS pin of external RAM. when A14 and A15 both are low
(logic ‘0’), external data memory(RAM) is selected. Address Decoding(Memory Map)for 16k x 8 RAM.
2.Design a µController system using 8051.Interface the external
ROM of size 4k x 8.

• Given, Memory size: 4k that means we require 2n=4k :: n address lines here n=12 :: A0 to A11 address lines are required.
remaining lines A0, A0, A0, A0 & PSEN are connected though OR gate to CS & RD of external ROM. when A0 to A0 are
low (logic ‘0’), only then external ROM is selected.
3. Design a µController system using 8051, 16k bytes of ROM & 32k bytes of RAM.
Interface the memory such that starting address for ROM is 0000H & RAM is 8000H.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy