0% found this document useful (0 votes)
31 views36 pages

Uni3 - Revision 1

Unit 3 of the Grade 10 Computer Science curriculum focuses on hardware, particularly the role and components of the CPU, including the Fetch-Decode-Execute cycle, cache memory, and processing cores. It explains how these elements affect computer performance and introduces input and output devices like barcode readers and QR code scanners. The document emphasizes the importance of the CPU in executing instructions and managing data processing within a computer system.

Uploaded by

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

Uni3 - Revision 1

Unit 3 of the Grade 10 Computer Science curriculum focuses on hardware, particularly the role and components of the CPU, including the Fetch-Decode-Execute cycle, cache memory, and processing cores. It explains how these elements affect computer performance and introduces input and output devices like barcode readers and QR code scanners. The document emphasizes the importance of the CPU in executing instructions and managing data processing within a computer system.

Uploaded by

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

Unit-3

Grade 10 Computer Science Revision


Unit 3 Hardware

1
3.1.1 Understand the role of CPU in a computer system

● The CPU, often referred to as the "brain" of the computer, is an electronic chip
known as a microprocessor.
● It fetches instructions from the computer's main memory (RAM), decodes them,
and executes them as provided by a computer program.
● The CPU's primary purpose is to process data, including tasks such as searching,
sorting, calculating, and decision-making within the computer.
● Regardless of the activity performed on a computer, such as writing an essay,
viewing photographs, or checking emails, the CPU handles all the necessary data
processing and computations.
● In addition to data processing, the CPU also controls other component parts of
the computer.

3.1.2 Understand the purpose of the components in a CPU, in a computer that has a
Von Neumann architecture

● In the 1940s, computers were hardware-based and required manual rewiring to


change tasks, but the Von Neumann architecture introduced software-based
programming, enabling easy task changes by loading different programs into
memory.

2
The Von Neumann architecture- main features

● The concept of a central processing unit (CPU or processor)


● The CPU is able to access the memory directly
● Computer memory can store programs as well as data
● Stored programs were made up of instructions which could be executed in sequential
order
● Wires or 'buses' to carry data around
● A control unit to control how data moves around
● A logic unit to perform calculations

Components of CPU

CPU includes
● Arithmetic and logic unit (ALU)
● Control unit (CU)
● registers
● buses
● System clock

ALU

● ALU stands for Arithmetic and Logic Unit, capable of performing ADD, SUBTRACT,
AND, OR, and NOT operations.

3
● The result of the ALUs calculations is stored in memory. This memory is usually a
very fast kind of memory called a 'register', located as close to the ALU as possible
inside the CPU.

CU
● The control unit controls the operation of the computer’s ALU, memory and
input/output devices, telling them how to respond to the program instructions it has
just read and interpreted from the memory unit.
● The control unit also provides the timing and control signals required by other
computer components.

Buses
● Buses are the means by which data is transmitted from one part of a computer to
another, connecting all major internal components to the CPU and memory.

Address Bus Data Bus Control Bus

● Carries addresses ● Bidirectional, allowing ● Bidirectional bus that carries


throughout the computer data transmission in signals from the control unit
system. both directions. (CU) to other computer
● Unidirectional between the ● Transfers data between components.
CPU and memory to the CPU and memory, ● Typically 8-bits wide, as it
prevent unwanted address as well as input/output primarily carries control
feedback. devices signals.
● The width of the bus ● Data can represent ● The width of the control bus
determines the number of addresses, instructions, does not need to be wider
memory locations that can or numerical values. since it is dedicated to
be directly addressed. ● The width of the data control functions.
● A wider bus allows for a bus determines the
larger number of word length that can be
simultaneous memory transported.
locations to be addressed. ● Larger word lengths can
improve the computer's
overall performance.

4
Registers

Registers are high-speed storage areas in the CPU. All data must be stored in a register
before it can be processed.

MAR Memory Address Register Holds the memory location of data that needs
to be accessed
MDR Memory Data Register Holds data that is being transferred to or from
memory
AC Accumulator Where intermediate arithmetic and logic
results are stored
PC Program Counter Contains the address of the next instruction to
be executed
CIR Current Instruction Register Contains the current instruction during
processing

System clock

● The clock sends out regular electrical pulses which synchronize (keep in time) all
the components.

5
● The frequency of the pulses is known as clock speed.

● Clock speed is measured in hertz. The higher the frequency, the more
instructions can be performed in the given time.

Immediate Access Store (IAS)

● The RAM holds all the data and programs needed to be accessed by the CPU.

● The RAM is often the CPU that transfers data and programs from the slower
backing store (e.g., hard disk drive) to RAM temporarily.

● This is done to speed up operations because accessing data from RAM is much
faster than accessing it from the backing store. referred to as the Immediate
Access Store (IAS)

Memory(Page no 78)

Computer memory consists of partitions with addresses and contents.


· The address uniquely identifies each memory location.
· The contents are the binary values stored in each location.
· Read operation example:
Address 1111 0001 is written to the MAR.
A Reading signal is sent to the memory.
Contents of location 1111 0001 are stored in the MDR.
· Write operation example:
Data 1001 0101 is written to the MDR.
Address 1111 1101 is written to the MAR.

6
Write signal is sent to the memory.
· Value 1001 0101 is written to the specified memory location.

3.1.b Describe the process of Fetch–Decode–Execute cycle

● The Fetch-Decode-Execute cycle is the basic method used by the CPU to carry
out a single instruction contained in a computer program.

● The diagram below shows how each step relates to one another. First, there is a
fetch operation followed by a decode operation and then an execute operation.
Then another fetch begins and the cycle starts all over again.

● Usually, the operating system loads it, ready for the CPU to use. The very first
instruction in the program needs to be loaded into the CPU (fetch)

● The fetch action loads an instruction into the CPU then the decode and execute
stage takes place inside the CPU. Once the first cycle is complete, the CPU
fetches the next instruction.

7
Fetch

The fetch operation is responsible for getting an instruction or data from the main
memory into the CPU.

Let's look at a program that begins at location 305 in the main memory.

Step 1

The Program Counter has been pre-


loaded with the starting address of
the first instruction within the
program which in this case is 305.

Step 2
During the first stage of the fetch
cycle, the program counter value is
copied into the Memory Address
Register (MAR).

Step 3

Once the MAR is loaded,


The Control Unit loads the address
(305) onto the address bus and also
sends a signal to the main memory
to read the instruction contained at
that address.
Imagine, location 305 in RAM
contains an instruction 'add #5'.

8
Step 4
Now the instruction is passed across
the data bus and copied into the
Memory Data Register.

Step 5
Then the instruction in the MDR is
copied into the Instruction Register
so that it is ready to use during the
next stage (decode)

Step 6
The program counter is now
incremented by one location,
changing it to 306 so that it is ready
to begin the next fetch cycle.

Decode

In the 'decode' stage, the control unit reads the Instruction Register (Add #5) and makes
sure that it is an instruction that the CPU can carry out i.e. it is in its instruction set. If it
is, then various parts of the CPU are prepared for the next stage, which is the 'Execute'
stage.

9
Execute

The final stage of the cycle is called 'execute' which just means carrying out the
instruction that has been decoded. In this case, the instruction is to add 5 to the value in
the accumulator.

Summary of F-D-E

Three stages- Fetch, decode and execute

Fetch:

● Program Counter (PC) contains the address of the next instruction.

● PC copies the address of the next instruction to Memory Address Register (MAR).

● MAR places the instruction address on the address bus. This causes the data in
memory stored at that address to be loaded into the Memory Data Register (MDR).

10
● Instruction Register (IR) (also the Current Instruction Register (CIR) ) loads the
instruction from the MDR

● Program Counter will increment to point to the next instruction.

Decode:

● CU: Determines (decodes) what is required to complete the instruction pending in the
IR.

Execute:

● The instruction is performed

● ALU: Performs any calculation required by the CU instruction.

The Accumulator is used as an internal “working memory” register for the ALU.

Data is moved in and out of the ALU via the MAR/MDR.

11
3.2 Understand what is meant by a core, cache, and clock in a CPU and explain how
they can affect the performance of a CPU

● The CPU is responsible for carrying out all instructions for all programs that the
computer is running. More than any other component, the quality of the CPU
affects the computer's performance.
● These include:
Adjusting the clock
Adjusting the processing cores
Adjusting the cache memory

3.2.1 Clock speed

● The clock is a quartz crystal on the CPU chip that sends out regular electrical
pulses.
● The CPU uses these pulses to keep time, fetching a new instruction with every
tick of the clock.

● Every CPU has its own clock, and these clocks can tick at different rates. The
faster the clock ticks, the more instructions are carried out per second.
● However, using a clock speed higher than the computer was designed for can
lead to seriously unsynchronised operations and the computer would frequently
crash and become unstable. Overclocking can lead to serious overheating of the
CPU again leading to unreliable performance.

3.2.2 Processing cores

12
A 'core' is a complete processing unit within the CPU - it has an ALU, a control unit and
memory in the form of registers

● A cpu with two cores is called a 'dual core' and one with four cores is called a
'quad-core'.

● The idea of using more cores alleviates the need to continually increase clock
speeds. However, doubling the number of cores doesn’t necessarily double the
computer’s performance since we have to take into account the need for the CPU
to communicate with each core; this will reduce overall performance.
● Multi-tasking

Multi-tasking is the ability to carry out more than one task at the same time. With
two cores, a CPU can run two tasks simultaneously.

● Parallel Processing

Parallel processing is when a single task (program) is split into two or more parts
and each part is processed at the same time.

3.2.3 Cache

● As the CPU processes instructions, it needs to fetch instructions and data from
the program. These are stored in main memory (random access memory or
RAM).

13
● However, RAM is comparatively slow for the CPU to access and retrieve data
from. To overcome this issue, a special type of memory called the cache, is used.
● The cache acts as a buffer, helping to speed up the transfer of data between the
CPU and RAM.
● Cache memory stores frequently used instructions and data that need to be
accessed faster, which improves CPU performance.
● When a CPU wishes to read memory, it will first check out the cache and then
move on to main memory/RAM if the required data isn’t there.
● The larger the cache memory size the better the CPU performance.

Speed of Computer Performance

● Increasing bus width (data and address buses) increases the performance and
speed of a computer system

● Increasing clock speed will potentially increase the speed of a computer.

However, using a clock speed higher than the computer was designed for can
lead to seriously unsynchronised operations and the computer would frequently
crash and become unstable. Overclocking can lead to serious overheating of the
CPU again leading to unreliable performance.

● The use of cache memories can also improve CPU performance.

Unlike RAM, cache memory is located within the CPU itself, which means it has
much faster data access times than RAM.

● The use of a different number of cores can improve computer performance.

The idea of using more cores alleviates the need to continually increase clock
speeds. However, doubling the number of cores doesn’t necessarily double the
computer’s performance since we have to take into account the need for the
CPU to communicate with each core; this will reduce overall performance.

Other methods to improve the speed

● Graphics cards
● More RAM
● Faster RAM
● More secondary storage

14
● Faster secondary storage
● Defragmenting secondary storage
● Correct operating system
● Updated operating system and drivers
● Run a malware and virus scan
● Upgrading CPU, from within the same family

3.2.4 Instruction set

● Instructions are a set of operations that are decoded in sequence.


● Each operation will instruct the ALU and CU (which are part of the CPU).
● An operation is made up of an opcode and an operand.
● Opcode- The opcode informs the CPU what operation needs to be done
● Operand - The operand is the data that needs to be acted on or it can refer to a
register in the memory
● The set of opcodes that are used to carry out operations is called the instruction
set

3.1.5 Embedded systems

● An embedded system is a combination of hardware and software which is


designed to carry out a specific set of functions. E.g DVD player
● Take in inputs from specialized sensors.
● The computer processes those inputs, and then produces an output that requires
some physical action, such as spinning up or ejecting a DVD.
● These physical actions are carried out by actuators.
● Embedded systems can be based on Microprocessors(includes CPU and
RAM),Microcontroller(CPU only) and System on Chips(SOC,includes i/o
devices)

15

Read Pages 83,84 and 85 for few detailed examples of embedded systems

3.2 Input and output devices

3.2.1 Input devices


1. Barcode reader

Features and Working Advantages

● A barcode is a series of dark and light parallel lines of ● much easier and faster
varying thicknesses. ● more up-to-date sales
information

16
● The numbers 0 to 9 are each represented by a unique ● no need to price every stock
series of lines. item on the shelves
● read by a red laser or red LED ● allows for automatic stock
● Light is reflected back off the barcode; control
● the reflected light is read by sensors (photoelectric ● possible to check customer
cells) buying habits
● a pattern is generated, which is converted into digital
data

Other input/Out devices associated with barcode: Keypad, Screen, Speaker, Card
reader, Touchscreen

2. QR Code Scanner

Features and Working Advantages of QR codes Disadvantages of QR


compared to traditional codes compared to
barcodes traditional barcodes

● This is made up of a matrix of ● They can hold much ● More than one
filled-in dark squares on a more information QR format is
light background ● There will be fewer available
● It can presently hold up to errors; ● QR codes can be
4296 characters (or up to 7089 ● QR codes are easier to used to transmit
digits read malicious codes
● also allows internet ● It is easy to transmit QR
addresses to be encoded codes
within the QR code.
● The three large squares at the
corners of the code function
as a form of alignment;

3. Digital cameras
Features and Working

● controlled by an embedded system

17
● the image is captured when light passes through the lens onto a light-sensitive cell;
● each of the sensors is often referred to as pixels
● the image is converted into tiny electric charges which are then passed through an ADC
● the ADC converts the electric charges from each pixel into levels of brightness
● the quality of the image depends on the recording device, the number of pixels the levels
of light and how the image is stored

4. Keyboards
Features and Working

● used as the input devices on computers, tablets, mobile phones, and many other electronic
items
● Each character on a keyboard has an ASCII value. Each character pressed is converted into
a digital signal, which the computer interprets.
● There is a membrane or circuit board at the base of the keys
● When a key is pressed, the CPU in the computer can then determine which key has been
pressed

5. Microphones
Features and Working

● Microphones are either built into the computer or are external devices connected through
the USB port or using Bluetooth connectivity.
● When sound is created, it causes the air to vibrate.
● When a diaphragm in the microphone picks up the air vibrations, the diaphragm also
begins to vibrate.
● A copper coil is wrapped around the cone which is connected to the diaphragm.
● As the diaphragm vibrates, the cone moves in and out causing the copper coil to move
backwards and forwards causing an electric current.
● The electric current is then either amplified or sent to a recording device. The electric
current is analog in nature.

6. Optical mouse
Features and Working

● An optical mouse is an example of a pointing device.


● It uses tiny cameras to take 1500 images per second. A red LED is used in the base of the
mouse and the red light is bounced off and the reflection is picked up by a complementary
metal oxide semiconductor (CMOS).

18
● Benefits of an optical mouse over a mechanical mouse » There are no moving parts,
therefore it is more reliable. » Dirt can’t get trapped in any of the mechanical components. »
There is no need to have any special surfaces.
● A wired mouse has the following advantages: » no signal loss since there is a constant
signal pathway (wire) » cheaper to operate (no need to buy new batteries or charge
batteries) » fewer environmental issues (no need to dispose of old batteries).

7. 2D scanners
Features and Working

● generally used to input hard copy (paper) documents.


● A bright light then illuminates the document
● A scan head moves across the document until the whole page has been scanned.
● The focused image now falls onto a charge coupled device (CCD), which converts light
into an electric current
● Software produces a digital image from the electronic form.

Application of 2D scanners at an airport:

2D scanners are used at airports to read passports. They make use of OCR technology
to produce digital images which represent the passport pages. At many airports the
two-dimensional photograph in the passport is scanned and stored as a JPEG image.
The passenger’s face is also photographed using a digital camera. The two digital
images are compared using face recognition/detection software. Key parts of the face
are compared.
8. 3D scanners
Features and Working

● 3D scanners scan solid objects and produce a three-dimensional image.


● take images at several points along these three coordinates. A digital image which
represents the solid object is formed.
● The scanned images can be used in computer aided design (CAD) or, more recently, sent to
a 3D printer

Application of 3D scanning – computed tomographic (CT) scanners

19
Computed tomographic (CT) scanners are used to create a 3D image of a solid object.
● builds up an image of the solid object through a series of very thin ‘slices’.
● Each of these 2D ‘slices’ make up a representation of the 3D solid object

Types- CT Scanner- Uses X-rays , MRI- magnetic resonance images- radio


frequencies, SPECT -single photon emission computed tomography- gamma rays
9. Touch screens

Touch screens allow the user to carry out the same functions as they would with a
pointing device, such as a mouse.
Capacitive Infrared » Resistive (most
common method at the
moment).

Working : Capacitive touch screens Working : Infrared touch Working : made up of


are composed of a layer of glass screens use a glass screen two layers of
(protective layer), a transparent with an array of sensors electrically resistive
electrode (conductive) layer and a and infrared transmitters. material with a voltage
glass substrate The sensors detect the applied across them.
When bare fingers (or a special stylus) infrared radiation. ● With a resistive
touch the screen, the electrostatic field coating on one side
of the conductive layer is changed and ,The bottom layer is
the installed microcontroller is able to made of glass
calculate the point of touching. ● When the top
polyethylene surface
Types : surface and projective is touched, the two
Advantages layers make contact.
With surface capacitive screens, Allows multi-touch ● The point of contact
sensors are placed at the corners of a facilities Have good is detected where
screen. screen durability The there was a change in
operability isn’t affected voltage.
Projective- The transparent by a scratched or cracked ● A
conductive layer is now in the form of screen. microcontroller
an X-Y matrix pattern. This creates a Disadvantages converts the to digital
three dimensional (3D) electrostatic ● The screen can be data, which it then
field. sensitive to water or sends to the
moisture microprocessor.
Advantages

20
● Better image clarity than resistive ● It is possible for
screens, especially in strong accidental activation
sunlight to take place if the Advantages
● Very durable screens that have infrared beams are Good resistance to dust
high scratch resistance disturbed in some and water
● Projective capacitive screens allow way Can be used with bare
multi-touch. ● Sometimes sensitive fingers, stylus, and
to light interference. gloved hand.
Disadvantages
Disadvantages
● Low touch sensitivity
● Doesn’t support
● Surface capacitive screens only
multi-touch facility
work with bare fingers or a special
● Poor visibility in
stylus
strong sunlight
● They are sensitive to
● Vulnerable to
electromagnetic radiation
scratches on the
screen

3.2.2 OUTPUT DEVICES

1. Actuators

When a computer is used to control devices, such as a conveyer belt or a valve, it


is usually necessary to use an actuator. An actuator is a mechanical or
electromechanical device such as a relay, solenoid, or motor.
2. Light projectors

Digital Light Projector (DLP) Liquid crystal display project

Includes a DMD chip(Digital ● These are an older technology than DLP.


micromirror device) with millions of ● Essentially a high-intensity beam of light
micro-mirror chips passes through an LCD display and then
onto a screen.
The number of micromirrors ● a powerful beam of white light is
determines the resolution of the generated from a bulb or LED inside the
digital image. projector body

21
● this beam of light is then sent to a group
micromirrors tilt towards the light of chromatic-coated mirrors
source- ON. tilt away from the light ● these reflect the light back at different
source- OFF. wavelengths
● when the white light hits these mirrors,
A bright white light source passes the reflected light has wavelengths
through a color filter on its way to the corresponding to red, green and blue light
DMD chip. components
● these three different colored light
components pass through three LCD
screens
● consequently, three different versions of
the same image are now produced
● these images are then re-combined using a
special prism to produce a full-color
image
● Finally, the image passes through the
projector lens onto a screen.

Advantages Advantages
● higher contrast ratios ● give a sharper image than DLP projectors
● Higher reliability/longevity ● have better color saturation than DLP
● quieter running than LCD projectors
projector ● more efficient in their use of energy than
● uses a single DMD chip, which DLP technology – consequently they
means no issues lining up the generate less heat
images
● smaller and lighter than LCD
projector Disadvantages
● they are better suited to dusty
or smoky atmospheres than LCD ● although improving, the contrast ratios are
projectors not as good as DLPs
Disadvantages ● LCD projectors have a limited life (that is,
the longevity is not as good as DLPs)
● Image tends to suffer from ● since LCD panels are organic in nature,
‘shadows’ when showing a moving they tend to degrade with time (screens

22
image turn yellow and the colors are
● DLP do not have gray subsequently degraded over time)
components in the image
● the color definition is
frequently not as good as LCD
projectors because the color
saturation is not as good (color
saturation is the intensity of a color)

3. Printer

Inkjet printer Laser printer

● Inkjet printers are often used for ● These devices produce high-quality
printing one-off photos or where printouts and are very fast when making
only few pages of good quality, multiple copies of a document; any
color printing is needed; application that needs high-volume
● Inkjet printers are essentially made printing
up of:
» a print head, which consists of ● Laser printers use dry powder ink rather
nozzles that spray droplets of ink than liquid ink and make use of the
onto the paper to form characters properties of static electricity to produce
The ink droplets are produced the text and images.
currently using two different
technologies: Refer to 105 for the steps

Thermal bubble -tiny resistors


create localized heat that leads to
form tiny bubbles, When the bubble
collapses, a small vacuum is created
which allows fresh ink to be drawn
into the print head.

Piezoelectric – a crystal is located


at the back of the ink reservoir for

23
each nozzle. The crystal is given a
tiny electric charge which makes it
vibrate. This makes the ink to be
ejected to the paper

Refer 104 for the process


explanation

Advantages

Cheap and useful for homes and


suitable for printing photographs.

Disadvantages

However, the paper can absorb ink


and prevents printing on both sides.

Image quality is also poor on


ordinary paper and is very slow to
produce copies.

They run out of ink quickly and if the


nozzles get clogged, it makes the
cartridge useless.

4. 3D printers

The solid object is built up layer by layer using materials such as: powdered
resin, powdered metal, paper or ceramic.
Direct 3D printing uses inkjet technology; a print head can move left to right as
in a normal printer.
Binder 3D printing is similar to direct 3D printing and uses two passes for each
of the layers; the first pass sprays dry powder and then on the second pass a
binder (a type of glue) is sprayed to form a solid layer.
Uses of 3D printing - covering of prosthetic limbs, making items to allow
precision reconstructive surgery (e.g. facial reconstruction following an accident);

24
5. LED and LCD screens
LED LCD

● An LED screen is made up of tiny light emitting ● LCD screens are made up of tiny liquid
diodes (LEDs). Each LED is either red, green or crystals. These tiny crystals make up an
blue in color. array of pixels that are affected by changes in
● This type of screen tends to be used for large applied electric fields.
outdoor displays due to the brilliance of the ● Because LCD’s don’t produce any light,
colors produced. LCD screens are back-lit using light emitting
diode (LED) technology

Organic light emitting diodes (OLED) ● Use of LED backlighting gives a very
good contrast and brightness range.
Use of organic light emitting diodes (OLEDs). Before the use of LEDs, LCD screens
used cold cathode fluorescent lamps
Advantages of using OLED compared to (CCFL) as the back-lit method.
existing LEDs and LCDs:
Advantages of LCD
● The plastic, organic layers of an OLED are
thinner, lighter and more flexible than the ● The main advantage of LCD is, it is low
crystal structures used in LEDs or LCDs. cost and energy-efficient and has very
little power consumption.
● LCD provides excellent resolution,
● The light-emitting layers of an OLED are brightness, and contrast so the picture
lighter; OLED layers can be made from quality is crystal clear.
plastic rather than the glass as used in ● It gives perfect sharpness at the native

25
LED and LCD screens. resolution.
● Generate less heat during operation
due to its low power consumption.
● It is not affected by the magnetic field
● OLEDs give a brighter light than LEDs.
and has no geometric distortion.
○ OLEDs do not require backlighting
● Due to high peak intensity, they
like LCD screens– OLEDs generate
produce very bright images as the
their own light.
brightness range of LCDs is high

Disadvantages
● Since OLEDs require no backlighting, ● It needs extra light sources.
they use much less power than LCD ● It has also a restricted viewing angle.
screens (most of the LCD power is used ● Its speed is very slow.
to do the backlighting); this is very
important in battery-operated devices
such as mobile phones.

Comparison between LED Backlighting over


● Since OLEDs are essentially plastics, they
CFL
can be made into large, thin sheets (this
■ LEDs reach their maximum brightness
means they could be used on large
almost immediately (there is no need to
advertising boards in airports, subways,
‘warm up’ before reaching full efficiency)
and so on).
○ LEDs give a whiter light that sharpens the
image and makes the colors appear more
vivid; CCFL had a slightly yellowish tint
● OLEDs have a very large field of view, ○ LEDs produce a brighter light that improves
about 170 degrees, which makes them the color definition
ideal for use in television sets and for
advertising screens.

○ monitors using LED technology are much


thinner than monitors using CCFL
technology
■ LEDs last indefinitely; this makes the
technology more reliable and makes for a
more consistent product

26
■ LEDs consume very little power which
means they produce less heat as well as
using less energy.

6. Loudspeakers

Loudspeakers are output devices that produce sound. When connected to a computer
system, digitized sound stored on a file needs to be converted into sound as follows:

» The digital data is first passed through a digital to analog converter (DAC) where it is
changed into an electric current.

» This is then passed through an amplifier (since the current generated by the DAC will
be very small); this creates a current large enough to drive a loudspeaker.

» This electric current is then fed to a loudspeaker where it is converted into sound.

3.2.3 Sensors

● Sensors are input devices which read or measure physical properties from their
surroundings.
● Sensors are used in both monitoring and control applications.
● Sensors used in various applications

Control central Temperature sensor


heating system Humidity sensors

Chemical Temperature sensor


process Level sensors – level of liquids
Gas sensors – Sense gasses
pH sensor- Measures acidity level

greenhouse Temperature sensor


Moisture sensor
Humidity sensors
Gas detector - monitor oxygen and carbon dioxide levels

27
PH sensor -acidity levels in the soil in a greenhouse

Food Factory Moisture sensor -


Level sensors - measures water level
Gas sensors

Security alarm Infrared- Detects intruder breaks the infrared beam


system Acoustic- Pickup the noise of footsteps

weighing Pressure sensor-Detect weight


station/Lift

cars ● Light sensor- switch on car headlights automatically when it gets dark
● Infrared sensor- Helps to turn on car windscreen wipers automatically
● Gas sensor - monitor oxygen levels in a car exhaust
● Magnetic sensor- used in anti-lock braking systems in cars
● Accelerometer- anti-lock braking systems in cars
● Liquid level sensor- monitor levels in a petrol tank in a car
● Accelerometer- used in cars to measure rapid deceleration

Mobile ● Proximity sensor- detect when a face is close to a mobile phone screen
● Accelerometer- change between portrait and landscape mode

28
control applications monitoring applications

Examples Examples
Monitoring of a patient in a hospital Turning street lights on
intruders in a burglar alarm Controlling the temperature in a central
Monitoring pollution levels in a river heating/air conditioning system
Chemical process control
Steps for any control applications 1. Steps for monitoring applications

1. Sensors send signals to the 2. Sensors send signals to the


microprocessor/computer (Mention microprocessor/computer
sensors based on the application 3. The signals are converted to
given) digital
2. The signals are converted to digital using an analogue to digital
(if necessary) using an analogue to converter (ADC)
digital converter (ADC) 4. The computer/microprocessor
3. The computer/microprocessor analyzes the data received by
analyzes the data received by checking it against stored values
checking it against stored values

29
4. If new data is outside the acceptable 5. If the new data is outside the
range, a warning message is sent to a acceptable range, the
screen or an alarm is activated computer/microprocessor sends
signals to control valves, motors,
etc via DAC

3.3 Memory

● Difference between primary and secondary memory


Primary memory Secondary memory

Data is directly accessed by the Data cannot be accessed directly by


processing unit. the processor. It is first copied from
secondary memory to primary
memory. Only then can the CPU
access it.

Accessing data from primary memory Accessing data from secondary


is faster. memory is slower.

Primary memory is both volatile Secondary memory is always a non-


(RAM)& nonvolatile(ROM) volatile memory

Contains RAM, ROM and cache Examples include HDD, SSD, DVD,
memory memory stick, Blu-ray disc

Primary memory - RAM(Random Access Memory) and ROM(Read only memory)


RAM ROM

can be written to or read from, and permanent memory device(the


the data can be changed by the user or contents cannot be changed or written
the computer (i.e. it is a temporary to by the user, the computer or any
memory) application/program)

used to store data, files, part of an always used to store BIOS and other
application or part of the operating data needed at startup
system currently in use Used to boot up the computer when
power is turned on

30
it is volatile, which means memory they are non-volatile (the contents are
contents are lost when powering off not lost after powering off the
the computer computer)

can be written to and read from data stored cannot be altered

● Two types of RAM- SRAM and DRAM (Static RAM, Dynamic RAM)
DRAM SRAM

Each DRAM chip consists of It makes use of flip flops(Use cross-


transistors and capacitors. capacitor – coupled transistors ) which hold each
this holds the bits transistor – this acts bit of memory
like a switch. Doesn’t needs to be constantly
recharged

Capacitors are used to store data in Transistors are used to store


DRAM. information in SRAM.

To store information for a longer time, Capacitors are not used hence no
the contents of the capacitor need to refreshing is required.
be refreshed periodically.

These are used in cache memories. These are used in main memories.

Advantages over SRAM Advantages over DRAM


● they are much less expensive to ● doesn’t need to be constantly
manufacture than SRAM refreshed
● they consume less power than ● has a faster data access time
SRAM than DRAM
● they have a higher memory
capacity than SRAM

31
** Applications of RAM and ROM other than computers
Example- RAM and ROM in a remote-controlled toy car
ROM RAM

● storing the factory settings ● the user may wish to program


● storing the ‘start-up’ routines in their own routines;
● storing of the set routines; for ● the RAM chip will store the
example, how the buttons on the data/instructions received from
hand-held device control turning the remote control
left, acceleration, stopping, and so
on

Secondary and off-line storage


● Three types - Magnetic, optical and solid-state storage

1. Magnetic storage Examples -HDD


HDD(Hard disk drives)

● Data is stored in a digital format on the magnetic surfaces of the disks .


● These magnetic surfaces are called platters.
● The hard disk drive will have a number of platters that can spin at about 7000
times a second.
● Read-write heads consist of electromagnets that are used to read data from or
write data to the platters.
● Data is stored on the surface in sectors and tracks.
● Latency is defined as the time it takes for a specific block of data on a data track
to rotate around to the read-write head.
● When we save data, data will be allocated in different sectors that may not be
adjacent to each other
● numerous deletions and editing which leads to sectors becoming increasingly
fragmented (get scattered )resulting in a gradual deterioration of the HDD
performance
● Disk Defragmentation involves rearranging the information on a disk so that
files appear in continuous sequences of sectors. This will improve file access
times.

32
2. SSD(Solid State Drives)
● No moving parts and data is retrieved at the same rate.
● don’t rely on magnetic properties.
● store data by controlling the movement of electrons within NAND
or NOR chips.
● The data is stored as 0s and 1s in millions of tiny transistors
● At each junction one transistor is called a floating gate and the
other is called a control gate within the chip.
● This effectively produces a nonvolatile rewritable memory.

Benefits of SSD than Hard disk drives

● they are more reliable (no moving parts to go wrong)


● they are considerably lighter (which makes them suitable for
laptops)
● they don’t have to ‘get up to speed’ before they work properly
● they have a lower power consumption
● they run much cooler than HDDs (both these points again make
them very suitable for laptop computers)
● because of no moving parts, they are very thin
● data access is considerably faster than HDD.

Drawback of SSD

Most solid state storage devices are conservatively rated at only 20GB of write
operations per day over a three year period . It specifically refers to the maximum
amount of data that can be written to the device.

Memory sticks/flash memories

● use solid state technology.


● Their main advantage is that they are very small, lightweight devices,
which make them very suitable as a method for transferring files between
computers.
● They can also be used as small back-up devices for music or photo files

33
● Used to store expensive software and additional files to run the software
to avoid illegal access

3. Optical media

CD Drives (700MB) DVD Drives (4.7GB) BluRay Drives (50GB)

>Optical storage device >Optical storage device >Optical storage device


> The data is stored in ‘pits’ and > The data is stored in ‘pits’ and
‘lands’ on the spiral track. ‘lands’ on the spiral track. >Works similar to CD/DVD
>A red laser is used to read and >A red laser is used to read and but laser used to read the
write the data. write the data. data is blue rather than red
> can be designated ‘R’ (write
> can be designated ‘R’ (write once once only) or ‘RW’ (can be written >Blue lasers are capable of
only) or ‘RW’ (can be written to or to or read from many times). reading closer pits and
read from many times). >Light reflects differently on pits lands. This means that more
and lands. This read as data by data can be stored on the
>Light reflects differently on pits computer DVD surface.
and lands. This read as data by >Blu-ray disks automatically
computer come with a secure
Difference encryption system that helps
DVD has dual layering. This to prevent piracy and
means they have two recordable copyright infringement
surfaces which can store more » the data transfer rate for a
data. DVD is 10Mbps and for a
Blu-ray disc it is 36Mbps
CDs use lasers with a wavelength DVDs use lasers with a
of 780 nanometres. wavelength of 650 nanometres;

Virtual Memory
● The purpose of RAM is to store current data and program instructions in use
● The amount of physical RAM available is limited. The average modern desktop
computer has between 4GB and 16GB of RAM. Some programs are larger than this
● Virtual memory is part of secondary storage which acts as RAM when RAM is full
● It prevents the computer system crashing when RAM is full

34
● Data that needs to be accessed by the CPU directly is switched by the operating
system from virtual memory into RAM and an inactive page from RAM replaces it in
virtual memory. This is called page switching(Paging)

● The table describes the steps that are taken when a program is opened on a computer

Step Description

1 ● The memory manager software built into the Operating


System checks to see if there is sufficient space in RAM to
move the new program’s instructions into RAM, so that they
can be directly accessed by the CPU

2 ● If RAM is full, the memory manager will move out the most
inactive pages of data and put them in virtual memory until
needed

3 ● The new program instructions are moved into RAM

Benefits of virtual memory are:


» programs can be larger than physical memory and still be executed
» there is no need to waste memory with data that isn’t being used
» it reduces the need to buy and install more expensive RAM memory

Drawback

35
Disk thrashing and thrash point

● As main memory fills, more and more data needs to be swapped in and out of
virtual memory leading to a very high rate of hard disk read/write head
movements; this is known as disk thrashing.
● A point can be reached when the execution of a process comes to a halt since the
system is so busy moving data in and out of memory rather than doing any
actual execution – this is known as the thrash point.

Cloud storage

Cloud storage is a method of data storage where data is stored on remote servers.

» Public cloud – this is a storage environment where the customer/client and cloud
storage provider are different companies

» Private cloud – this is storage provided by a dedicated environment behind a


company firewall; customer/client and cloud storage provider are integrated and
operate as a single entity

Hybrid cloud – this is a combination of the two above environments; some data
resides in the private cloud and less sensitive/less commercial data can be accessed
from a public cloud storage provider.

Benefits of using cloud storage Demerits of using cloud storage


Difficult to access in unstable network
Anytime access from anywhere Cost can be high if we needs to extend
No need to carry devices the storage capacity
Backup easily Failure of storage unit of the cloud
Easy recovery of data company can also happen

36

You might also like