LP1 - Unit 1 - CPE 3 (Computer Technology)
LP1 - Unit 1 - CPE 3 (Computer Technology)
PREFACE
The course is divided into four (4) learning packets which includes the
following topics:
Learning Packet 2
Learning Packet 3
Learning Packet 4
This course aims to 1. Identify the major hardware and software components
of a computer system, their relationship to one another, and the roles of these
components, 2. Develop an understanding of different between application and
system software, 3. Develop an understanding of how various electronic media are
used in real-life situations and 4. Demonstrate an understanding of the necessary
criteria for the selection of microcomputer hardware.
This learning packets may serve as reference material for the faculty teaching
Computer Technology in BSCpE (Bachelor of Science in Computer Engineering) of
Samar State University, which may be used as instructional materials for the students.
1 | Computer Technology
2
2
1.1 Introduction
language after that the processor process the converted data. Some
example of input devices are keyboard, microphone, mouse, joystick,
touchpad, graphic tablet, scanner, touch screen, digital camera and
webcam.
Memory. It stores instruction and data and provides them to the various
other units as and when required. It is basically the working memory of
the computer system. This memory unit is volatile, i.e. it is temporary
memory and nothing can be stored in the main memory as long the
computer is switched on or as long as it is required by the computer.
1. Primary or also known as main memory. One of the very important parts of computer.
Without this computer will not run as all the programmes to start your computer are
installed in the primary memory. It is volatile in nature i.e. it will store information
till it is on, then after switching off, it forgets everything. There are two types of main
memories: Random Access Memory (RAM) and Read Only Memories (ROM).
The other type of primary memory is ROM which stores data permanently. It is
non-volatile in nature and stores the code to run the computer, BIOS code (Basic Input
Output System). There are three types of ROM: Programmable ROM (PROM), Erasable
PROM (EPROM) and Electronically EPROM (EEPROM).
PROM it is a use and throw ROM chip. If the programme written in the chip is
in use, it’s will work but soon as there need a change in the programme, a new
programme will have to be written on other chip which creates a lot of pollution as it
cannot be recycled. To avoid all the scrap produced by PROM, EPROM was invented.
The programme written in it can be erased by the action of ultra violet rays on the
chip. The problem with it was that, by the action of UV rays on it, the chip was
damaged, and could not be used after 2-3 times of erases. And also, if you want erase
a little part of the programme, it will remove all the data and you will have to start
from the starting point. To resolve the problem of EPROM, EEPROM was invented,
which can erase the data electronically, then rewriting the programme in it. If there
1 | Computer Technology
4
4
has to be a little change in chip, the whole data is not to be erased, only the effective
part can erased and rewritten on it.
2. Secondary memory. Since, primary memory has a limited storage capacity and it is
not permanent, secondary storage devices are used to store large amounts of data
permanently. It is not non-volatile in nature thus it stores all the data permanently in
it after the computer is off.
Memory
Primary Secondary
Control Unit (CU). It controls the various operations within a computer. It basically
manages all other units and devices of the computer system. It does so by
transmitting timing and control signals to the various devices and units. When the
CU receives an instructions set or information, it converts the instruction set to
control signals then; these signals are sent to the central processor for further
processing. The control unit understands which operation to execute, accurately,
and in which order.
Arithmetic and Logic Unit (ALU). It performs the various arithmetic and logical
operations on the data stored in memory, as dictated by the instruction. The
outputs of ALU will change asynchronously in response to the input.
1 | Computer Technology
5
5
Output. It is used to transfer processed information from the computer to the user
in a way required by the user. Output devices convert the data into a human-
readable form from binary code. The primary examples of output devices are
monitor, GPS (Global Positioning System), printer, sound card, headphones, video
card, computer speakers, braille reader, projector and speech generating device.
The ALU and CU together are called Central Processing Unit (CPU). The
computer is nothing without the CPU so, it is also known as the brain of computer.
There are set of connecting wires used for setting interconnection between the various
devices in the system called bus. Each set of bus has a specific function to perform like
carrying data, carrying control signals and addresses. Another important component
of a computer is the secondary storage, it stores various data, information and programs
permanently for future retrieval. The information is organised in such a way to
retrieve it in minimum time whenever required. The stored information remains as
long as the user wants it.
Below diagram shows how the different computer units interconnected to each other.
Secondary
Storage
Input Unit
Output
Memory U
Unit
Control
Unit
Below are the two common computer architecture: Von Neumann and Harvard
Architecture.
The number system is the system of naming or representing numbers. There are
various types of number systems in mathematics like binary, decimal, octal and
hexadecimal. This lesson covers the entire concepts of the number system with their
types, conversions and questions.
Quantities/Counting
Decimal Binary Octal Hexadecimal
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
There are many methods or techniques which can be used to convert numbers
from one base to another. We’ll demonstrate here the following:
Other base system to decimal
o Binary to Decimal
o Octal to Decimal
o Hexadecimal to Decimal
Other base system to binary
o Decimal to Binary
o Octal to Binary
o Hexadecimal to Binary
Other base system to Hexadecimal
o Decimal to Hexadecimal
o Binary to Hexadecimal
o Octal to Hexadecimal
Other base system to Octal
o Binary to Octal
o Decimal to Octal
o Hexadecimal to Octal
1 | Computer Technology
9
9
Binary to Decimal
Steps:
1. Multiply each bit by 2n, where n is the “weight” of the bit. The weight is the position
of the bit, starting from 0 on the right
2. Add the results
Example: 1010112
1 x 20 = 1
1 x 21 = 2
0 x 22 = 0
1 x 23 = 8
0 x 24 = 0
1 x 25 = 32
___
1010112 = 4310
Octal to Decimal
Steps:
1. Multiply each bit by 8n, where n is the “weight” of the bit. The weight is the position
of the bit, starting from 0 on the right
2. Add the results
Example: 7248
4 x 80 = 4
2 x 81 = 16
7 x 82 = 448
____
7248 = 46810
1 | Computer Technology
10
1
0
Hexadecimal to Decimal
Steps:
1. Multiply each bit by 16 n, where n is the “weight” of the bit. The weight is the
position of the bit, starting from 0 on the right
2. Add the results
Example: ABC16
C x 160 = 12 x 1 = 12
B x 161 = 11 x 16 = 176
A x 162 = 10 x 256 = 2560
____
ABC16 = 274810
Decimal to Binary
Steps:
1. Divide by two, keep track of the remainder.
2. First remainder is bit 0 (LSB, least-significant bit) and second remainder is bit 1.
Example: 12510
Result Remainder
125/2 = 62 1
62/2 = 31 0
31/2 = 15 1
15/2 = 7 1
7/2 = 3 1
3/2 = 1 1
1/2 = 0 1
12510 = 11111012
1 | Computer Technology
11
1
1
Octal to Binary
Steps:
1. Convert each octal digit to a 3-bit equivalent binary representation.
2. Combine all the binary equivalent.
Example: 7058
7 0 5
111 000 101
7058 = 1110001012
Hexadecimal to Binary
Steps:
1. Convert each hexadecimal digit to a 4-bit equivalent binary representation.
2. Combine all the binary equivalent.
Example: 10AF16
1 0 A F
0001 0000 1010 1111
10AF16 = 00010000101011112
1 | Computer Technology
12
1
2
Decimal to Hexadecimal
Steps:
1. Divide by 16.
2. Keep track of the remainder.
Example: 123410
Result Remainder
1234/16 77 2
=
77/16 = 4 13 = D
4/16 = 0 4
123410 = 4D216
Binary to Hexadecimal
Steps:
1. Group bits in fours, starting on right.
2. Convert to hexadecimal digits.
Example: 10101110112
10 1011 1011
2 B B
10101110112 = 2BB16
Octal to Hexadecimal
Steps:
1. Use binary as an intermediary.
2. Group the binary equivalent to 4 bits.
3. Convert to hexadecimal digits.
1 | Computer Technology
13
1
3
Example: 10768
1 0 7 6
001 000 111 110
10768 = 23E16
Decimal to Octal
Steps:
1. Divide by 8.
2. Keep track of the remainder.
Example: 123410
Result Remainder
1234/8 = 154 2
154/8 = 19 2
19/8 = 2 3
2/8 = 0 2
123410 = 23228
Binary to Octal
Steps:
1. Group bits in threes, starting on right.
2. Convert to octal digits
Example: 10110101112
10110101112 = 13278
1 | Computer Technology
14
1
4
Hexadecimal to Octal
Steps:
1. Use binary as an intermediary
2. Group bits in threes, starting on right.
3. Convert to octal digits
Example: 1F0C16
1 F 0 C
0001 1111 0000 1100
1F0C16 = 174148
👉 Exercise 1: Conversion
Complete the table below by converting the following given number system to
other base system. Show your solutions on your notebook.
3310
11101012
7038
1AF16
Boolean Algebra
the boolean sum. The NOT operation is most often designated by an overbar. It is
sometimes indicated by a prime mark ( ‘ ) or an “elbow” ().
The truth table for the boolean operators AND and OR are shown below.
𝑿 𝑨𝑵𝑫 𝒀 𝑿 𝑶𝑹 𝒀
𝑿 𝑌 𝑋𝑌 𝑿 𝑌 𝑋+𝑌
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
The truth table for the boolean NOT operator is shown below.
𝑵𝑶𝑻 𝑿
𝑿 𝑋̅
0 1
1 0
A Boolean function has at least one boolean variable, boolean operator, and input from the
set {0,1}. It produces an output that is also a member of the set {0,1}.
𝒙 𝒚 𝒛 𝒛̅ 𝒙𝒛̅ 𝒙𝒛̅ + 𝒚
0 0 0 1 0 0
0 0 1 0 0 0
0 1 0 1 0 1
0 1 1 0 0 1
1 0 0 1 1 1
1 0 1 0 0 0
1 1 0 1 1 1
1 1 1 0 0 1
To make evaluation of the boolean function easier, the truth table contains
extra (shaded) columns to hold evaluations of subparts of the function.
Our second group of boolean identities should be familiar to you from your
study of algebra:
Our last group of boolean identities are perhaps the most useful.
Through our exercises in simplifying boolean expressions, we see that there are
numerous ways of stating the same Boolean expression. These “synonymous” forms
are logically equivalent. Logically equivalent expressions have identical truth tables. In
order to eliminate as much confusion as possible, designers express boolean functions
in standardized or canonical form. There are two canonical forms for boolean
expressions: sum-of-products and product-of-sums.
Recall the boolean product is the AND operation and the boolean sum is the
OR operation. In the sum-of-products form, ANDed variables are ORed together. For
example: 𝐹 (𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑥𝑧 + 𝑦𝑧 . In the product-of-sums form, ORed variables are
ANDed together. For example: 𝐹 (𝑥, 𝑦, 𝑧) = (𝑥 + 𝑦)(𝑥 + 𝑧)(𝑦 + 𝑧).
𝒙 𝒚 𝒛 𝒙𝒛̅ + 𝒚
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
The sum-of-products form of the above function is: 𝐹 (𝑥, 𝑦, 𝑧) = 𝑥̅ 𝑦𝑧̅ + 𝑥̅ 𝑦𝑧 + 𝑥𝑦̅𝑧̅ +
𝑥𝑦𝑧̅ + 𝑥𝑦𝑧
*We note that this function is not in simplest terms. Our aim is only to rewrite our function
in canonical sum-of-products form.
1 | Computer Technology
18
1
8
Logic Gates
The three simplest gates are the AND, OR, and NOT gates.
𝑿 𝑿 X 𝑋+𝑌
XY
𝑿𝑌 𝑿 𝑋̅
𝑌 𝑌 Y
𝑿 𝑨𝑵𝑫 𝒀 𝑿 𝑶𝑹 𝒀 𝑵𝑶𝑻 𝑿
𝑿 𝑌 𝑋𝑌 𝑋 𝑌 𝑋+𝑌 𝑋 𝑋̅
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
They correspond directly to their respective boolean operations, as you can see
by their truth tables.
Another very useful gate is the exclusive OR (XOR) gate. The output of the
XOR operation is true only when the values of the inputs differ.
U1A
𝑿 𝑿𝑶𝑹 𝒀
𝑿 𝑌 𝑋 𝑌 𝑋
0 0 0 𝑋 𝑌
0 1 1 𝑌
1 0 1
1 1 0
NAND and NOR are two very important gates. Their symbols and truth tables
are shown below.
𝑿 𝑵𝑨𝑵𝑫 𝒀
𝑿 𝑌 𝑋 NAND 𝑌
0 0 1 𝑋
̅̅̅̅
𝑋𝑌
0 1 1 𝑌
1 0 1
1 1 0
1 | Computer Technology
19
1
9
𝑋̅ + 𝑌̅ = ̅̅̅̅
𝑋𝑌
𝑿 𝑵𝑶𝑹 𝒀
𝑿 𝑌 𝑋 NOR 𝑌
0 0 1 𝑋
̅̅̅̅̅̅̅̅
𝑋+𝑌
0 1 0
𝑌
1 0 0
1 1 0
𝑋̅ 𝑌̅ = ̅̅̅̅̅̅̅̅
𝑋+𝑌
NAND and NOR are known as universal gates because they are inexpensive
to manufacture and any boolean function can be constructed using only NAND or
only NOR gates.
𝑁𝑂𝑇 𝑋
𝑋 𝑋̅
𝑋 𝐴𝑁𝐷 𝑌
̅̅̅̅
𝑋𝑌
𝑋 ̅̅̅̅
𝑋𝑌 = 𝑋𝑌
𝑌
𝑋 𝑂𝑅 𝑌
𝑋 𝑋̅
̅̅̅̅ = 𝑋 + 𝑌
𝑋𝑌
𝑌 𝑌̅
Gates can have multiple inputs and more than one output. The main thing to
remember is that combinations of gates implement boolean functions.
𝑥 𝑥 + 𝑦̅𝑧
𝑦
𝑧 𝑦̅𝑧
1 | Computer Technology
20
2
0
1.3 References
Boolean Algebra Worksheet - Digital Circuits. (2020, June 29). All about Circuit.
https://www.allaboutcircuits.com/worksheets/boolean-algebra/
Note: Should you have questions about the topics discussed in this module, please feel
free to chat me thru my fb account. I will appreciate if you’ll ask questions for
clarifications to have sufficient learning.