Embedded Systems - Lec 3 - Memory
Embedded Systems - Lec 3 - Memory
MEMORY
Processor
Program Memory
MEMORY
Memory is a collection of storage cell with associated circuit
needed to transfer information in groups of bits called “Word”.
Word is entity of bits that move in / out of storage as a unit. It is a
group of 1s or 0s and may represent number, character, or
instruction code.
Data
Memory
The Central
Input/
outside Processing
Output
world Unit (CPU)
Program
Memory
Computer Essentials
MEMORY UNIT CAPACITY
The internal structure of memory unit is specified by the number
of words it contains and the number of bits (n) in each word.
The number of address lines control the words that can be saved
in memory (k). The number of words equals 2𝑘.
ADDRESS RANGE
Each microcontroller has a specific address range.
An address range is the number of addresses the memory of
the microcontroller has and can access.
HOW TO PURCHASE A MEMORY?
It is customary to refer the number of words (or Bytes) in
memory with one of the letters K, M, G, and T where:
• Kbyte = 1024 Byte
• Mbyte = 1024 Kbyte
• Gbyte = 1024 Mbyte
• Tbyte = 1024 Gbyte
• …etc.
MEMORY AND CPU
MEMORY AND CPU
MEMORY TYPES
The most significant distinction between memory devices is how
they are connected to the CPU. There are two ways:
1. Primary memory is directly connected to the CPU.
2. Secondary memory is connected the CPU indirectly.
PRIMARY VS. SECONDARY MEMORY
Slow access in range of
milliseconds
Fast access in range
of nanoseconds Secondary
Memory
Primary
CPU
Memory
Secondary
Memory
Control
operation. Memory
CPU
To control the Write / Read
operation, a control line is used.
WRITE / READ OPERATION
Address Bus is used to select a particular location within the
memory chip. The signals my be multiplexed as in the case with
DRAM or non-multiplexed as SRAM.
Data Bus provides the data to and from the memory chip. In
some cases, it uses separate pins for incoming and outgoing data.
In others, a single set of pins is used
with the data direction controlled by the
status of chip select signals, the
read/write pin and output enable pins.
WRITE OPERATION
Steps that must be taken to store data into memory are:
1. Apply the binary address to the address lines.
2. Apply the data bits to the data input lines.
3. Activate the Write input.
Data Memory
RAM
EEPROM
External Memory
may be included
ATMEGA SERIES MEMORY EXAMPLES
Divided into:
• Boot program section.
• Application program section.