Computer Basics and Peripherals Overview
Computer Basics and Peripherals Overview
L T P :2 0 0
1
[Link] Lovely Professional University
Unit-1 (Computer Systems)
• Basic structure of computer, working
• Computer associated peripherals
• Memories (Primary and Secondary)
• System Configuration
• BIOS configuration
• PC connection interface
• RAID, GPU basics , CPU and GPU
2
[Link] Lovely Professional University
3
[Link] Lovely Professional University
4
[Link] Lovely Professional University
5
[Link] Lovely Professional University
Structure of Computer
6
[Link] Lovely Professional University
Computer Associated Peripherals
7
[Link] Lovely Professional University
List of Computer Peripherals
• Mouse
• Keyboard
• Monitor
• RAM
• DVD-ROM
• Microphone
• Webcam
• Printer
All of these are peripherals because they all are extra accessories that connect
with the main computing unit to provide extra power and abilities. RAM,
for example, gives the computer more room to process more operations
more quickly.
8
[Link] Lovely Professional University
Main Categories of Computer Peripherals: Uses
& Examples
1. The type of computer peripherals and their uses determines the category of the
peripheral. The three categories are the following.
a. An input devices
b. Output devices
c. Input/output and storage devices
2. These categories are based on the direction of data flow. Some peripherals send
data to the computer, while other peripherals receive data from the computer.
Other peripherals can do both; they can both send and receive data from the
computer
9
[Link] Lovely Professional University
Input Devices
• Input devices are devices that send information to the computer.
• They do not receive information from the computer.
• Input devices are one-way devices.
• A mouse is an input device because it sends information to the computer.
• A mouse is used to tell the computer which way to move the cursor.
• A microphone is another peripheral that is an input device. The
microphone sends audio data to the computer.
10
[Link] Lovely Professional University
Output Devices
• An output device is a device that receives information from the core
computing unit but does not send information to the computer.
• A speaker is an output device because the computer sends sound
information to the speaker, but the speaker does not send sound
information to the computer.
• Standard monitors are output devices as well since their job is to display
graphical information from the computer.
• Standard monitors do not send information to the computer.
• Touchscreen monitors are not strict output devices
11
[Link] Lovely Professional University
Memories
• Memory is the most essential element of a computing system because
without it computer can’t perform simple tasks.
12
[Link] Lovely Professional University
Classification of Memory
13
[Link] Lovely Professional University
Random Access Memory (RAM)
• It is also called read-write memory or the main
memory or the primary memory.
14
[Link] Lovely Professional University
DRAM Vs SRAM
15
[Link] Lovely Professional University
Read Only Memory (ROM)
• Read-Only Memory (ROM)
• Stores crucial information essential to operate the system, like the program
essential to boot the computer.
• It is not volatile.
• Always retains its data.
• Used in embedded systems or where the programming needs no change.
• Used in calculators and peripheral devices.
• ROM is further classified into four types- MROM, PROM, EPROM, and
EEPROM.
16
[Link] Lovely Professional University
RAM vs ROM
17
[Link] Lovely Professional University
Secondary Storage Devices
• A secondary storage device refers to any non-volatile storage device that is
internal or external to the computer. It can be any storage device beyond
the primary storage that enables permanent data storage.
18
[Link] Lovely Professional University
Secondary Storage Devices
• Secondary storage devices primarily refer to storage devices that serve as
an addition to the computer's primary storage, RAM and cache memory.
Since they always consist of non-volatile memory, they allow the user to
permanently store data on them.
• Typically, secondary storage allows for the storage of data ranging from a
few megabytes to petabytes.
• These devices store virtually all programs and applications stored on a
computer, including the operating system, device drivers, applications and
general user data.
• They are used for a variety of purposes ranging from backup data used for
future restores or disaster recovery, long-term archiving of data that is not
frequently accessed, and storage of non-critical data in lower-performing,
less expensive drives.
19
[Link] Lovely Professional University
Use Cases of Secondary Storage
Devices
• Today, many secondary storage drives are
frequently external, especially since the
introduction of USB flash drives and plug-
and-play devices.
20
[Link] Lovely Professional University
Forms of Backup Storage
• Although many forms of backup storage such as tape
drives and floppy diskettes have been long
abandoned, secondary storage devices include:
21
[Link] Lovely Professional University
System Configuration
• System configuration is a term in systems engineering that defines the
computer hardware, the processes as well as the various devices that
comprise the entire system and its boundaries.
22
[Link] Lovely Professional University
System Configuration
• System configuration mainly refers to the specification of a given
computer system, from its hardware components to the software and
various processes that are run within that system.
• It refers to what types and models of devices are installed and what
specific software is being used to run the various parts of the computer
system.
• By extension, system configuration also refers to the specific operating
system settings that have been set by default automatically or manually by
a given program or the user.
23
[Link] Lovely Professional University
Activity-1 for System Configuration
How do I find system configuration?
•To check your PC hardware specs, click on the Windows Start button, then
click on Settings (the gear icon).
•In the Settings menu, click on System. Scroll down and click on About. On
this screen, you should see specs for your processor, Memory (RAM), and
other system info, including Windows version.
24
[Link] Lovely Professional University
Hard Disk Drives (HDD)
• Hard-disk drives (HDDs), commonly
referred to as hard drives, were the
default storage component in desktop
and laptop PCs for decades, an honor
that has since been bestowed on solid-
state drives (SSDs).
• But hard drives are far from being
obsolete.
• Modern HDDs are far more advanced
and higher-performing than their
counterparts from yesteryear.
25
[Link] Lovely Professional University
Hard Disk Drives (HDD)
• In enterprise gear and massive 12TB external drives for home, for
example, you can find stacks of hard drive platters in airtight disk
enclosures filled with helium to keep the temperatures down and allow for
higher performance.
• There are also advancements that aim to make hard drives even more
efficient, such as energy-assisted magnetic recording, which is another
enterprise-only feature for now.
• Despite these changes, the basic underlying hard drive technology remains
the same: quickly rotating magnetic platters paired with read/write heads
that travel over the platters’ surfaces to retrieve or record data.
26
[Link] Lovely Professional University
The WD Black 4TB drive without its
cover
27
[Link] Lovely Professional University
Solid-state drives (SSD)
• SSDs use nonvolatile NAND flash memory to hold your files, with no
mechanical parts or magnetic bits flying around, as we see in hard drives.
• They’re the fastest storage option available by far. Not only can SSDs read
and write data much faster than hard drives with most workloads, but they
can also access the data much more quickly.
28
[Link] Lovely Professional University
PCIe 4.0 NVMe SSDs, the Samsung 980 Pro
29
[Link] Lovely Professional University
HDD Vs SDD
30
[Link] Lovely Professional University
•
Processor
A processor is an integrated electronic circuit that performs the calculations that run a
computer. A processor performs arithmetical, logical, input/output (I/O) and other basic
instructions that are passed from an operating system (OS).
• Most other processes are dependent on the operations of a processor.
• The terms processor, central processing unit (CPU) and microprocessor are commonly linked
as synonyms. Most people use the word “processor” interchangeably with the term “CPU”
nowadays, it is technically not correct since the CPU is just one of the processors inside a
personal computer (PC).
• The Graphics Processing Unit (GPU) is another processor, and even some hard drives are
technically capable of performing some processing.
31
[Link] Lovely Professional University
Threads in Computer Processor
• Threads are the virtual components or codes, which divides the physical
core of a CPU into virtual multiple cores.
• For example, if a CPU is dual core (i.e., 2 cores) it will have 4 threads.
And if a CPU is Octal core (i.e., 8 core) it will have 16 threads and vice-
versa.
32
[Link] Lovely Professional University
Activity -2 Example of Smartphone
application
33
[Link] Lovely Professional University
• The smartphone application is an example of this, when you open a app it
shows a circle which spins continuously, this process is done by a thread
created for this purpose only, and the second thread loads the information
and presents it in the Graphical User Interface.
• The only fact that will limit the creation of the threads will be the number
of the threads provided by the physical CPU, and it varies from CPU to
CPU.
• The 1st image is the loading spinner by the first thread and the second one
is the GUI loading by the second thread.
34
[Link] Lovely Professional University
Use of Threads
• Threads have become a vital part
of the computing as they allow the
processor to perform multiple
tasks at the same time making the
tasks faster.
35
[Link] Lovely Professional University
BIOS Configuration
• A computer's basic input/output system (BIOS) is a program that's
stored in nonvolatile memory such as read-only memory (ROM)
or flash memory, making it firmware.
• The BIOS (sometimes called ROM BIOS) is always the first
program that executes when a computer is powered up.
• BIOS identifies, configures, tests, and connects computer
hardware to the OS immediately after a computer is turned on.
• The combination of these steps is called the boot process.
• These tasks are each carried out by BIOS' four main functions:
Power-on self-test (POST).
36
[Link] Lovely Professional University
Activity-3 How to Enter BIOS
Setup on Windows PCs?
• Each and every time you press your PC’s power button, the BIOS is the first
operation to load your operating system and all of the personal settings that make
your computer your own.
• Whether you need to update your BIOS or sweep it clean of systematic bugs,
knowing how to enter BIOS is essential for PC users. In order to access BIOS on a
Windows PC, you must press your BIOS key set by your manufacturer which could
be F10, F2, F12, F1, or DEL.
• If your PC goes through its power on self-test startup too quickly, you can also
enter BIOS through Windows 10’s advanced start menu recovery settings.
• One thing PC users love most about Windows is how many options you can
configure directly within your selected system.
• Even before your computer has completed a full startup, you can venture into your
BIOS software to modify the boot order, enable hardware components, or change
the system time and date.
37
[Link] Lovely Professional University
Methods to enter in BIOS in
•
Windows
Method #1: Use hotkey during boot-up
• Method #2: Use Windows 10’s start menu
38
[Link] Lovely Professional University
Methods to enter in BIOS in
Windows
39
[Link] Lovely Professional University
PC Connection Interface
• There are various PC connection interfaces . In this category USB has the
largest share of the market due to its ease of use and device compatibility
• PCIe stands for PCI Express card bus and it is an internal bus.
• IEEE 1394,USB,eSATA are used for external hard disk connections
• Most commonly used Video connectors include VGA, HDMI, and DVI.
• For connecting an LCD monitor, you need a digital signal connector such as
DVI or HDMI. PGA, and VGA are analog standards.
• The different versions of USB cables, like USB 2.0 and USB 3.0, are
concerned with the functionality and speed of the USB cable; whereas, the
type of USB cable (like USB Type A, USB Type B) essentially refers to the
physical design of the plugs and ports.
• USB is used for connecting USB-compliant peripheral devices, and eSATA
is used for connecting external eSATA devices such as eSATA disk drives.
40
[Link] Lovely Professional University
There are a variety of USB connectors as illustrated
in the figure below:
41
[Link] Lovely Professional University
42
[Link] Lovely Professional University
Types of Connection Interface
• VGA : A Video Graphics Array (VGA)
connector is a three-row 15-pin DE-15
connector. The 15-pin VGA connector was
provided on many video cards, computer
monitors, laptop computers, projectors, and
high definition television sets. On laptop
computers or other small devices, a mini-
VGA port was sometimes used in place of
the full-sized VGA connector.
• HDMI (High-Definition Multimedia
Interface) is a proprietary audio/video
interface for transmitting uncompressed
video data and compressed or uncompressed
digital audio data from an Compliant source
device, such as a display controller, to a
compatible computer monitor, video
projector, digital television, or digital audio
device. HDMI is a digital replacement for
analog video standards.
43
[Link] Lovely Professional University
• NFC: NFC, short for Near Field
Communication, is a short-range high
frequency wireless communication
technology that enables the exchange of data
between devices over about a 10 cm distance.
• Due to its shorter range (less than 20cm), NFC
provides a higher degree of security than
Bluetooth (range of about 50m) and makes
NFC suitable for crowded areas where
correlating a signal with its transmitting
physical device.
• There are two different types of NFC:
Active and passive. Active NFC, which is
currently used on many Android devices, as
well as the new Apple devices, can send and
receive data. Passive NFC, on the other hand,
can only send data.
• However, passive NFC provides an extra
benefit: The passive devices can run without
power. For example, a student ID card may
use NFC technology. If you tap the card on
the bus, your card is passively transferring
information through NFC to the bus system's
active card reader.
44
[Link] Lovely Professional University
• SATA, in full serial advanced technology
attachment, also called serial ATA, an
interface for transferring data between a
computer’s central circuit board and storage
devices.
45
[Link] Lovely Professional University
SATA
PATA
46
[Link] Lovely Professional University
Activity-4 How to pair your
Bluetooth device to a laptop
To pair a Bluetooth device
[Link] on your Bluetooth device and make it discoverable. The way you make
it discoverable depends on the device. Check the device or visit the
manufacturer's website to learn how.
[Link] your PC, select Start > Settings > Bluetooth & devices > Add
device > Bluetooth .
[Link] the Bluetooth device, follow additional instructions if they appear,
then select Done.
•Your Bluetooth device and PC will usually automatically connect anytime the
two devices are in range of each other with Bluetooth turned on.
47
[Link] Lovely Professional University
RAID
• (Redundant Array of Independent Disks) A disk or solid state drive (SSD)
subsystem that increases performance or provides fault tolerance or both.
• RAID uses two or more physical drives and a RAID controller, which is
plugged into motherboards that do not have RAID circuits.
• Today, most motherboards have built-in RAID but not necessarily every
RAID configuration. In the past, RAID was also accomplished by software
only but was much slower.
• In the late 1980s, the "I" in RAID stood for "inexpensive" but was later
changed to "independent."
• In large storage area networks (SANs), floor-standing RAID units are
common with terabytes of storage and huge amounts of cache memory.
• RAID is also used in desktop computers by gamers for speed and by
business users for reliability. Following are the various RAID
configurations.
48
[Link] Lovely Professional University
RAID 0
49
[Link] Lovely Professional University
RAID 1
51
[Link] Lovely Professional University
RAID 5
RAID 5 - Speed and Fault Tolerance (Popular) Data are striped across
three or more drives for performance, and parity is computed for safety.
RAID 5 is similar to RAID 3, except that the parity is distributed to all
drives. RAID 6 offers more reliability than RAID 5 by performing more
parity computations.
52
[Link] Lovely Professional University
GPU Basics
• Graphics processing technology has evolved to deliver unique benefits in the
world of computing.
• The latest graphics processing units (GPUs) unlock new possibilities in
gaming, content creation, machine learning, and more.
• GPU stands for graphics processing unit. You’ll also see GPUs commonly
referred to as graphics cards or video cards. Every PC uses a GPU to render
images, video and 2D or 3D animations for display. A GPU performs quick
math calculations and frees up the CPU to do other things.
53
[Link] Lovely Professional University
What Does a GPU Do?
• The graphics processing unit, or GPU, has become one of the most
important types of computing technology, both for personal and business
computing. Designed for parallel processing, the GPU is used in a wide
range of applications, including graphics and video rendering.
• Although they’re best known for their capabilities in gaming, GPUs are
becoming more popular for use in creative production and artificial
intelligence (AI).
• GPUs were originally designed to accelerate the rendering of 3D graphics.
Over time, they became more flexible and programmable, enhancing their
capabilities. This allowed graphics programmers to create more interesting
visual effects and realistic scenes with advanced lighting and shadowing
techniques.
• Other developers also began to tap the power of GPUs to dramatically
accelerate additional workloads in high performance computing (HPC),
deep learning, and more.
54
[Link] Lovely Professional University
Unit-1 (Computer Languages)
• Machine Language
• Assembly Language
• High Level Language
• Steps in development of a Program
• Compilation and Execution
• Compiler
• Interpreter
• Assembler
55
[Link] Lovely Professional University
MACHINE LANGUAGE
• Machine language is a low-level language made up of binary numbers or
bits that a computer can understand.
56
[Link] Lovely Professional University
MACHINE LANGUAGE
• Machine languages consist of strings of numbers ultimately reduced to
1's and 0's. The computer responds to these numbers by performing
different operations.
• Programs written in machine language are not portable, that is, they may
not be run on other computers with different machine languages.
57
[Link] Lovely Professional University
ASSEMBLY LANGUAGE
• In computer programming, assembly language (or assembler language, or
symbolic machine code), is any low-level programming language with a very
strong correspondence between the instructions in the language and the
architecture's machine code instructions.
58
[Link] Lovely Professional University
59
[Link] Lovely Professional University
High Level Languages
• Such languages are considered high-level because they are closer to human
languages and further from machine languages
60
[Link] Lovely Professional University
Steps in development
61
[Link] Lovely Professional University
Work Flow
• USER WRITES A PROGRAM IN C LANGUAGE (HIGH-LEVEL
LANGUAGE).
• THE C COMPILER, COMPILES THE PROGRAM AND TRANSLATES IT
TO ASSEMBLY PROGRAM (LOW-LEVEL LANGUAGE).
• AN ASSEMBLER THEN TRANSLATES THE ASSEMBLY PROGRAM
INTO MACHINE CODE (OBJECT).
• A LINKER TOOL IS USED TO LINK ALL THE PARTS OF THE PROGRAM
TOGETHER FOR EXECUTION (EXECUTABLE MACHINE CODE).
• A LOADER LOADS ALL OF THEM INTO MEMORY AND THEN THE
PROGRAM IS EXECUTED.
62
[Link] Lovely Professional University
63
[Link] Lovely Professional University
Compiler
64
[Link] Lovely Professional University
Interpreter
65
[Link] Lovely Professional University
Assembler
• An assembler translates assembly language programs into machine code.
66
[Link] Lovely Professional University