CS Grade 9 Unit 3 Class Notes
CS Grade 9 Unit 3 Class Notes
CLASS NOTES
Unit 3: Hardware
Computer Architecture
- Central Processing Unit
➔ Has the responsibility of the execution and processing of all the instructions and data in a
computer application
➔ The CPU consists of a control unit (CU), arithmetic and logic unit (ALU), registers and buses,
and
a system clock
➔ Von Neumann architecture was introduced in the mid-1940s by John von Neumann.
➔ The CU ensures the synchronisation of data flow and program instructions throughout the
computer by sending out control signals
➔ The system clock is used to produce timing signals on the control bus to ensure this vital
synchronisation takes place
➔ The RAM holds all the data and programs needed by the CPU
➔ The CPU takes data and programs held in the Hard Disc Drive or backing store, and puts
them in
the RAM temporarily
➔ Why? Read/write operations work faster when carried out on the RAM rather than on the
Hard
Disc Drive since there are no moving parts in RAM
3) Registers
➔ The address will uniquely identify every location in the memory and the contents will be
binary
values stored in each location
➔ In a READ operation, the memory address of the contents that are to be read and copied to the
MAR. This sends a READ signal to the computer memory, and it will put the contents of that
specific address into the MDR.
➔ In a WRITE operation, the memory content is first written into the MDR to be stored. A
WRITE
signal will be sent to the computer, and then the memory location’s address is written into the
MAR.
- Fetch-Decode-Execute Cycle
➔ To carry out a set of instructions, the CPU first fetches some data and instructions from
memory
and stores them in suitable registers. The address and data bus are used in this.
➔ While the CPU processes instructions and data extremely quickly, some factors can affect a
computer's performance
1) Clock Speed
➔ Refers to the number of electrical pulses that the clock inside the CPU can produce each
second.
Usually measured in Hz or GHz.
➔ Increasing the clock speed can increase the processing speed as more instructions than before
will be addressed in the same time
➔ One issue of increasing the clock speed is overclocking. It can lead to serious un-
synchronisation of operations, causing the computer to glitch and crash. It will also cause serious
overheating of
the CPU.
2) Cores
➔ Many computers are either dual core or quad core. Many operations are carried out
simultaneously.
➔ More cores lower the need of increasing the system clock speed
➔ However, this causes the time taken for the CPU to communicate with each core to increase,
as more cores are added
3) Cache
➔ Cache memory is located in the CPU itself, and hence has much faster data access time than
RAM
➔ It allows for faster data access as it stores the instructions and data that needs to be accessed
frequently, improving CPU performance
➔ When a CPU wishes to read the memory, it will first check the cache, and then move on to the
main memory/RAM if the required data isn't there
➔ The larger the cache memory size, the better the CPU performance
- Instruction Set
➔ A set of common instructions have been developed by processor manufacturers so that CPUs
operate as efficiently as possible
➔ This instruction set is a list of all the commands that can be processed by a CPU
➔ The instructions, called operations, are in machine code and are the most basic types of
commands that computers can process
➔ These operations can ensure that the control unit and arithmetic logic unit can carry out their
respective jobs easily
➔ Opcode stands for Operational Code, and it gives the CPU an operation that needs to be done
➔ Opcodes are stored on the computer's hard disc, and would usually be copied into the RAM
when the computer is powered on. The most regularly used opcodes would then be shifted from
RAM to the cache memory.
➔ The operand may be a piece of data itself, or it may be an address location within the main
RAM or register
- Embedded Systems
➔ Embedded systems are built into devices to carry out specific tasks. They run on firmware
and do not have additional peripherals.
➔ Embedded systems have a microprocessor, either analogue or digital input, a user interface
and output
➔ The data is input either manually (from a keypad or such) or is collected automatically from a
source, such as sensors
➔ Examples of embedded system include: motor vehicles, set-top box, security systems, lighting
systems, vending systems, washing machines
Benefits Drawbacks
Small in size and easy to fit in devices Can be difficult to upgrade certain devices to
new technology
Low cost to manufacture Troubleshooting faults
Dedicated to only one task and therefore have Interface appears simple, but it can still be
a simple interface and system more confusing for people
There is no requirement of an operating Any device is susceptible to attacks from
system hackers and viruses
Can be controlled remotely using a mobile Difficult to upgrade and troubleshoot; cause
phone or remote control devices to be thrown away rather than fixed
Fast reactions to changing inputs Throwing away can start a "throw away"
culture among users who will often discard
the devices when they become out of date
Operate in real time and are feedback -
orientated
Are mass produced and hence, reliable -
Less power consuming -
Input Devices
1) Barcode Scanners (Readers)
➔ Barcodes are a series of dark and light parallel lines that represent numbers from 0 to 9
➔ Barcode numbers are looked up in the stock database, and item details are sent back to
checkout
➔ Scanning allows automatic stock control and finding new values of stock items
➔ Benefits of using barcodes for the store management include easy and fast updates, automatic
stock control, and time-saving.
➔ Benefits of using barcodes for customers include faster checkout queues, less errors in
charging, itemised bills, cost savings visibility, and better track keeping of "sell by” dates
2) QR codes
➔ QR codes are a type of barcode made up of a matrix of filled-in dark squares on a light
background
➔ QR codes are more complex due to the increased data capacity and the use of small squares,
known as pixels
➔ The three large squares in three corners of the QR code are for alignment, and the remaining
corner is for the camera angle and size
➔ QR codes are used for advertising products, accessing websites, phone numbers, and storing
boarding passes electronically at airports and train stations
➔ QR codes are being updated to frame QR codes that include advertising logos, but the
software
needed for this isn't free
3) Digital Cameras
➔ Modern digital cameras can connect to a computer system via USB or Bluetooth
➔ Cameras are controlled by an embedded system and perform tasks like adjusting shutter
speed, focusing on the image, operating the flash gun, adjusting the aperture size, adjusting the
image size, and removing red-eye
➔ When an image is taken, light passes through the lens onto a light-sensitive cell made up of
millions of tiny sensors acting as photodiodes
➔ The image is converted into tiny electric charges using Charged Coupled Device (CCD) and
passed through an ADC to form a digital image array
➔ The ADC converts the electric charges from each pixel into levels of brightness
➔ The sensors also measure colour, which produces another binary pattern. Most cameras use a
24-bit RGB system
➔ The file size is determined by the number of pixels, and image quality depends on the device
used, the resolution, the levels of light, and the storage type of the image
4) Keyboard
5) Microphones
6) Optical Mouse
➔ Works on any surface with the help of a red LED and a CMOS sensor
➔ CMOS generates electric pulses that represent the red light and sends them to a digital signal
processor (DSP)
➔ The DSP calculates the coordinates of the mouse based on the changes in image patterns and
sends them to the computer
➔ An optical mouse has no moving parts and is more reliable, with no dirt traps or special
surface requirements
➔ A wired mouse doesn’t have the problem of continuous signal loss as it has a direct USB
connection, is cheaper to operate, and has fewer environmental issues (as compared to a
wireless mouse)
7) 2D Scanners
➔ Input devices that are used to convert paper documents to digital form
➔ Applications of 2D scanners:
↳ Used to read passports at airports
↳ Make use of OCR (Optical Character Recognition) technology to produce digital images that
represent the passport pages
↳ The person's image on the passport is scanned and stored in JPEG format and another picture
is taken of the person
↳ Both pictures are compared using a face recognition software, which will tell if the pictures
belong to the same person or not
8) 3D Scanners
➔ Produces a digital image which represents the solid object that was scanned
➔ Scanned images are then either used in a CAD (Computer Aided Design) and/or sent to a 3D
printer, which will produce a working model of the scanned image
➔ Application of 3D scanning:
↳ Computed Tomographic (CT) scanners
↳ Used to create a 3D image of the solid object
↳ Based on tomography technology, in which the whole image is build upon the series of very
thin ‘slices’. All these slices come together to form an image. X-rays are used.
↳ Have other names, such as MRI (Magnetic Resonance Imaging), which uses radio frequencies
to build the slices, and SPECT (Single Photon Emission Computed Tomography), which uses
gamma rays
9) Touch Screens