Microprocessor Lecture 5 Full
Microprocessor Lecture 5 Full
2
Memory Chip Interfacing
• Address lines of a Microprocessor
• Data lines of a Microprocessor
3
Memory Extended and Expanded
8 bit 8 bit
A0
D0
1kB A0 D0 Memory
A9 D7 Extended
A0 2kB
D0 D7
A10
1kB
A9 D7
16 bit
8 bit 8 bit
A0 A0 D0 Memory
1kB 1kB 2kB Expanded
A9 A9 D15
4
Memory Organization
Computer memory
5
Random Access memory ( RAM )
Random Access Memory (RAM) is a type of
memory used for temporary storing data and
intermediate results created and used during the
operation of the microcontrollers/microprocessor. The
content of this memory is cleared once the power supply
is off.
A memory device that can be read and written.
Volatile: It looses its data when the power supply is
switched-off
When the supply is switched-on it contains random data.
A RAM device can be divide two types, Static and Dynamic
Static RAM ( SRAM )
Static ram consisting of array of flip-flops.
Information stored in SRAM is lost when the power is
removed from them.
Dynamic RAM ( DRAM )
https://en.wikipedia.org/wiki/Flash_memory
18
Types of ROM
Written during manufacture
Very expensive for small runs
Programmable (once)
PROM
Read “mostly”
Erasable Programmable (EPROM)
• Erased by UV
Electrically Erasable (EEPROM)
20
I/O device Interfacing
21
Memory Map
22
Reset Vector
• Default starting location of a Central
Processing
Unit
• First Instruction executing address
• Design by Microprocessor Architecture
Intel 8088
Reset Vector FFFF0 h
23
Ex: Draw a Memory Map for following
microprocessor based system
ROM - 2KB
RAM - 4KB
One Seven segment
One Switch
Reset vector of the Processor 0000 H
Address Bus – 14 bits
Data Bus – 8 bits
24
Memory Map
2000 H 7 Segment
3000 H Switch
End Address
Location of the
processor
3FFF H 25