Professional Documents
Culture Documents
Memory
Memory
A memory unit is a collection of storage cells together with associated circuits needed to transfer information
in & out of storage. The memory stores binary information in groups of bits called words. A memory is a
group of 1’s and 0’s and may represent a number, an instruction code, one or more alphanumeric characters
or any other binary-coded information. A group of 8 bits is called a byte. The capacity of memories in
commercial computers is usually stated as the total number of bytes that can be stored.
For 8 bit micro-computer system memory word and memory byte are the same. A memory word is identified
by an address. The 8 bit microprocessor uses 16 bit address to access memory word. This provides a
maximum of 216 = 65536 memory addresses ranging from 0000H to FFFF H. Thus, the memory capacity
for this Micro-computer system is 64K.
Memory can be classified as non-volatile memory or volatile memory. Non-volatile memory retains the
stored data even when there is no power. On the other hand volatile memory losses its contents when the
power is removed. Few examples are:
Non volatile: ROM, PROM, EPROM, Floppy disk, hard disk etc.
Volatile: RAM (static dynamic), CCD (Charge coupled devices etc).
In broad sense, a microcomputer’s memory system can be divided into three groups;
Processor memory
Primary memory
Secondary memory
Processor Memory:
Processor memory refers to a set of microprocessor registers. They are used to hold temporary results when a
computation is in progress Although use of such registers enhances the execution speed, the cost involved in
the approach forces a micro-computer designer to include only a few registers include the processor. In 8085
we have registers like A, B, C, D, E, H, L, SP, PC etc to store data temporarily.
Primary Memory:
It is the storage area where all programs are executed. The microprocessor can directly access only those
items that are stored in the primary memory. Hence, all programs and data must be within the primary
memory prior to execution. Usually, the size of the primary memory is much larger than that of processor
memory and its operating speed is much slower than processor’s registers.
Primary memories can be divided into two main groups:
1. Read only memory (ROM)
2. Random Access memory. (RAM)
The figure above shows a NMOS static memory cell which consists of six NMOS transistors.
The transistors QA, is called the access transistors are used to access the data during the read and
write operation.
The transistors Q3 and Q4 are pull up load transistors and their cross connection with Q2 and
Q1respectively forms a flip flop.
The D and D’ are data lines. There is external driving circuitry which forces D and D’ to opposite
values. When reading the bit from the cell the D and D’ serve as output lines, while writing a bit on
the cell they serve as forced input.
Before reading or writing on cell, the cell must be selected, and the select line is used for the purpose.
Working on Cell:
The access transistor QA’s are turned on via the row select line (high).
The data lines are forced into a state with D high and D’ low.
The MOSFET Q1 will be turned on and Q2 off.
When forcing signals are removed Q1 will continue to hold D’ low (i,e Q1 will be on) and will keep
Q2 off and D output high.
The forced state is thus self-sustaining and stable.
A similar stable state exists with D low and D’ high. For either case, the stored data will be hold by the flip-
flop until it is either changed by new forcing singles. Or until the power to the circuit is removed.
Reading from Cell:
Write Operation:
Read Operation:
Very simple, allows very large memory arrays to be constructed on a chip at a low cost per bit.
Power consumption is low.
The storage capacitor cannot hold its charge over an extended period of time and losses the stored
data bit unless its charge is refreshed periodically.
This process of refreshing requires additional memory circuitry and complicates the operation of the
dynamic RAM.