Chapter Four PC Memory
Chapter Four PC Memory
CHAPTER 4
PC MEMORY
....................................................................................................................
Chapter Objectives
Upon completion of this chapter, the student will be able to:
Distinguish between different physical memory types.
View & manage memory using Windows OS.
Troubleshoot memory problems.
Install RAM modules on the motherboard.
Sub-topics
4.1 Introduction
4.2 ROM types
4.3 RAM types
4.4 View & Manage memory
4.5 Troubleshooting memory problems
4.6 Upgrading memory (RAM)
....................................................................................................................
4.1 Introduction
PC memory can be classified by:
1. Location
(a) Main memory (mainly RAM) (b) Secondary memory
2. Application
(a) RAM (b) ROM (c) Hybrid (mixture of RAM & ROM)
3. Purpose
(a) Physical memory (b) Available memory
Available memory
-This refers to physical memory (RAM) available for use by the PC, after booting (loading
OS). The PC uses this memory to load OS, applications and data files.
1|Page
CE211 COMPUTER HW & MAINTENANCE I
-Each time you open a program, it is loaded into physical memory which reduces it.
Large programs using graphics and sound (e.g. Adobe Photoshop) take up more physical
memory than small programs which use only text (e.g. word processors).
-To open a large program, you should first quit other programs that are running on the PC. For
example, use Task manager. How? Use Ctrl+Alt+Del.
Bus cycle
Refers to each communication between CPU and memory. CPU addresses amount of memory
in a single bus cycle.
Parity check
-This a simple method used to ensure data integrity (detect errors) by adding a parity bit
(extra 9th bit) in addition to 8-bit bus cycle.
-There are 2 types of parity check:
1. Even parity 2. Odd parity
Comparison of PC memory
1. Retention
(a) Volatile (short term storage) (b) Non-volatile (long term storage)
2. Access time (Speed)
(a) High speed (b) Slow speed
3. Capacity
(a) Small capacity in MB (b) Big capacity in MB
4. Upgradability
(a) Replaceable (b) Non-replaceable
5. Cost
(a) Less expensive (b) More expensive
Access time
Also known as speed; is the response time the RAM takes to provide requested data to the
memory controller and measured in nanoseconds (ns). For example, 60 ns is faster than 70 ns
DRAM chip.
2|Page
CE211 COMPUTER HW & MAINTENANCE I
Summary
Factor Main memory Secondary memory
1 Retention Volatile Non-volatile
Short term storage Long term storage
2 Access time (Speed) High speed Low speed
Fast retrieval via parallel port Slow retrieval via serial
port
3 Capacity Small capacity Big capacity
4 Cost More expensive Less expensive
5 Upgradability Replaceable Replaceable
Remember:
Do not mix RAM modules with different speeds in the same bank (set of several memory
modules).
Check the motherboard specifications for the recommended RAM chip speed.
3|Page
CE211 COMPUTER HW & MAINTENANCE I
The chip is easily identified by its small circular window and were used in old PCs
e.g. IBM old PCs used EPROMs for their BIOS information.
Disadvantage
You can inadvertently (without intention) erase information from the chip (becomes blank) by
opening the PC case and exposing it to sun light (carries U.V).
Precaution!
Do not expose open window to sunlight (U.V) when opening system case (make sure open
window is covered an opaque material).
SRAM DRAM
EDORAM SDRAM
SDR DDR
Comparison
Both are volatile because they lose their contents when the power is turned off.
SDRAM is static because the information does not need a constant update (refreshing),
while DRAM is dynamic because it needs constant update (refreshed thousands of times per
second).
SDRAM uses transistors, while DRAM uses microscopic capacitors (makes it cheaper) to
store information.
SRAM is faster because it does not need constant refreshing, but DRAM is more commonly
used because it is cheaper than SRAM.
4|Page
CE211 COMPUTER HW & MAINTENANCE I
Summary
Factor SRAM DRAM
1 Retention No need for constant update Needs constant update
(refreshing). (refreshing) and so more
Retains contents as long as power is power needed.
on. Very short data life-time
(approx. 4 milliseconds)
2 Access time Faster (10 ns) Slower (60 ns)
(Speed)
3 Storage type Transistors (binary registers). Very small capacitors.
4 Capacity Smaller capacity. Larger capacity.
(256 KB per chip)
5 Cost More expensive. Cheaper.
6 Application Used in older PCs e.g. XT Used in newer PCs.
Comparison
EDORAM is faster RAM which was used in Pentiums and became popular in 1995.
Usually, it is a bit more expensive than regular DRAM.
SDRAM is synchronized to the speed of memory bus and became popular in 1996
e.g. PC133 SDRAM runs at 133 MHz.
SDRAM was developed to match the ever increasing processing speeds of the Pentium
systems.
Qn. What happens if you use a slower DDR2 module in a system of higher speeds?
Ans. The bus will run at the speed of the slowest memory in use.
Qn.
DDR with 100 MHz memory bus (bus clock rate) and data transfer rate of 8 mbps.
What is the maximum data rate of the module?
Soln.
DDR clock rate = memory bus clock rate x 2 = 100 MHz x 2 = 200 MHz (double)
Executes (reads & writes) at 200 MHz and transfer data rate to processor at
100 MHz
5|Page
CE211 COMPUTER HW & MAINTENANCE I
Maximum DDR data rate = DDR clock rate x data rate = 200 MHz x 8 = 1600 mbps.
-The 2 versions of DDR are:
1. DDR (older version) 2. DDR2 (newer version)
-DDR is the older version and DDR2 is an improvement over DDR
i.e. DDR2 operates at twice bus speed of DDR.
-DDR2 is used for high speed storage of working data in a PC or other digital electronic
device.
Note:
MDDR (Mobile DDR) is a type of memory used in some portable electronic devices, e.g.
mobile phones.
DDR operates at 2.5 V, but MDDR operates at 1.8 V (reduced power consumption).
Disadvantage of DDR
More expensive because of higher speed and more difficult to assemble.
Comparison
No. of pins i.e. DDR DIMM has 184 pins & DDR2 DIMM has 240 pins.
No. of notches i.e. DDR DIMM has 1 notch & DDR2 DIMM has 2 notches.
Pin density of DDR2 DIMM is slightly higher than DDR DIMM in desktops.
DDR2 DIMMs do not have backward compatibility with DDR DIMMs.
Faster DDR2 DIMMs are compatible with slower DDR2 DIMMs.
However, faster DDR2 DIMM module runs at the slower module's speed.
6|Page
CE211 COMPUTER HW & MAINTENANCE I
Cache memory
-This is a special memory which is much faster and more expensive than SRAM, but of small
amount used as a buffer to reduce the time of memory access.
-There are 2 levels: 1. L1 (level 1) 2. L2 (level 2)
-Level 1 memory is within the microprocessor, while Level 2 memory is between
microprocessor and main memory (RAM modules).
-Frequently accessed files (e.g. My Documents) are loaded in cache memory and accessed
from here. This is known as file caching and speeds up access to a file.
See memory chip package types in Chap3 Motherboards.
Comparison of memory types
Cache
RAM
Optical disks
Magnetic disks
Magnetic tapes
Capacity
Note:
Speed & Cost increase upwards, while Capacity increases downwards.
Cache memory has the least capacity, but highest speed & most expensive per unit.
Magnetic tapes have highest capacity, but lowest speed & cheapest per unit.
7|Page
CE211 COMPUTER HW & MAINTENANCE I
Click Start > Type “perform” in Search > Open Resource monitor
> Memory.
8|Page
CE211 COMPUTER HW & MAINTENANCE I
Note:
MS DOS 6.22 was the last independently available MS DOS package marketed.
All versions of Windows OS retain a shell (command line interface) with cmd.exe in
Windows-NT family which replaced command.exe.
9|Page
CE211 COMPUTER HW & MAINTENANCE I
Logical memory refers to the way physical memory (RAM) is represented by the operating
system. MS DOS represents memory as stacks of 16 blocks each with a range of 5-digit
hexadecimal addresses e.g. A0000 to AFFFF, B0000 to BFFFF and C0000 to CFFFF.
-Standard memory occupies the 1st 1MB (1024 KB) of main memory that DOS supports and
consists of 2 types:
1. Conventional memory (0-640 KB) 2. Reserved memory (640-1024 KB)
-Extra memory is beyond standard memory and needed by some applications which require
extra space. It consists of 2 types:
1. Expanded memory 2. Extended memory
Conventional memory
Also known as basic memory; consists of the lower 10 blocks of 640 KB
(0 to 639 KB or 00000 to 9FFFF) that DOS supports in the memory map.
This memory is used for running programs, loading OS files and loading drivers.
OS communicates to hardware devices through their drivers e.g. sound card driver is loaded
in conventional memory.
TSR (Terminate & Stay Resident) programs (e.g. anti-virus programs, disk caching programs)
need to stay in conventional memory constantly.
Reserved memory
Also known as upper memory or UMA (Upper Memory Area); consists of the upper
6 blocks of 384 KB (640 to 1024 KB or A0000 to FFFFF) that DOS supports in the memory
map. It is fast & efficient memory reserved for use by some devices in the PC to store data for
direct access by the microprocessor. Various sections of reserved memory are usually
allocated for special purposes e.g. video RAM, BIOS & RAM on PCBs.
Expanded memory
This is specialised memory introduced in 1985 to provide extra memory to DOS programs
beyond the limit of standard 1MB (1024 KB) address space.
Expanded memory uses address space in reserved memory called page frame divided into 16
KB pages for DOS programs.
Note:
Expanded memory is configured to use a specific standard called EMS (Expanded
Memory System).
10 | P a g e
CE211 COMPUTER HW & MAINTENANCE I
EMS works with DOS to allow access to the extra memory and make it possible to use that
memory for certain tasks.
EMS uses EMS emulator (software driver) to hold pages called page frame in reserved
memory.
Extended memory
-This is a newer alternative to expanded memory, used to provide extra memory to most DOS
programs beyond the limit of standard 1MB (1024 KB) address space.
-It is supported by the use of certain types of microprocessors (starting with Intel 80286 and
then later ones).
-Also known as HMA (High Memory Area) or HIMEM by former MS DOS (command line
OS).
Note:
Today, most PCs (many programs) use extended memory because newer systems have more
powerful microprocessors that render the need to utilize expanded memory obsolete.
Extended memory does not have to make use of EMS or any other standard, since
application programming interface allows communication between the standard and the
extended memory.
In old systems, DOS memory was optimized manually by modifying the autoexec.bat and
config.sys files or using the MEMMAKER utility.
Virtual memory
It is a technique in modern OS (e.g. Windows NT) which gives the software the impression
that there is more continuous working memory (RAM).
Page file is a section of free hard disk space which is used to continually read and write.
Advantage
Large applications are able run faster and RAM used more efficiently.
Swapping files
-Modern Operating System (e.g. Windows NT) use hard disk space as virtual memory
extension RAM.
-The space used on hard disk is called swap file or swap space or page file.
-The least recently used files in RAM are swapped out to hard disk until they are needed later
and new files are swapped into RAM.
Note:
The units moved in large OS are called pages and swapping is called paging.
Windows and Unix-based OS provide a default swap file of a certain size that the user
(system administrator) can usually change.
Advantage
Swap file can be organised as a single continuous space so that fewer I/O operations are
required to read or write a complete.
11 | P a g e
CE211 COMPUTER HW & MAINTENANCE I
Troubleshooting guidelines
1. POST
-Tests and counts memory (RAM) and if different from previous one, issues error message.
-Error messages depend on type of BIOS and are of 2 types:
(a) Audio i.e. number of beeps heard (b) Text message shown on the screen.
2. CMOS/BIOS setup
-Compare memory (RAM) count in POST to installed memory in setup, and if not equal
it means memory failure or problem.
3. Other options
-Include: PC technician software, Norton’s utilities and diagnostic disk.
12 | P a g e
CE211 COMPUTER HW & MAINTENANCE I
Note:
Since most computers have more than one RAM module, determine which one should be
replaced.
You can also systematically replace one RAM module at a time until the memory error goes
away.
You must acquire the right RAM and correct configuration for the given PC.
See website of PC for capacity of RAM recommended.
13 | P a g e