Module 3 ITC 111
Module 3 ITC 111
Module 3 :
Basic Computer Concepts
Prepared by:
JENNIE T. FERNANDO
Assistant Professor I
E-mail Address: jenfernando@minscat.edu.ph /jenfernando04@gmail.com
Mobile Number: +639778254102/ +639885804531
ITP 222
ITC :111
QUANTITATIVE METHODS
: INTRO TO COMPUTING Bachelor of Science in Information Technology
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Storage
Memory Unit
CPU
Register
ALU
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
brain of the computer because it takes all major decisions, make all sort of
calculations and control different parts of the computer elements
Arithmetic Logic Unit (ALU) - performs arithmetic and logical operations on the
binary data. The ALU contains an Adder which is capable of combining the
contents of two registers in accordance with the logic of binary arithmetic.
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Registers - small high-speed memory inside the CPU used to store temporary
results.
◦ Accumulator- This is the most frequently used register used to store data taken from memory
◦ Memory Address Registers (MAR) - holds the address of the location to be accessed from
memory
◦ Memory Data Registers (MDR) - contains data to be written into or to be read out from the
addressed location.
◦ General Purpose Registers - These are numbered as R0, R1, R2….Rn-1, and used to store
temporary data during any ongoing operation
◦ Program Counter (PC) - used to keep the track of execution of the program
◦ Instruction Register (IR) - holds the instruction which is just about to be executed
Clock - generates a regular sequence of electronic pulses used to synchronize
operations of the processor’s components
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Refer to computer components, devices and recording media that retain digital data
used for computing for some interval of time. Computer memory includes internal
and external memory.
Peripheral devices – used to perform specific task but not necessarily needed in basic computer operation
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
serves as a single platform to connect all of the parts of a computer together. It connects the CPU,
memory, hard drives, optical drives, video card, sound card, and other ports and expansion cards
directly or via cables. It can be considered as the backbone of a computer.
Features of Motherboard
◦ Motherboard varies greatly in supporting various types of components.
◦ Motherboard supports a single type of CPU and few types
of memories.
◦ Video cards, hard disks, sound cards have to be compatible
with the motherboard to function properly.
◦ Motherboards, cases, and power supplies must be compatible
to work properly together.
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Numeral Systems
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Decimal to Octal
◦ Same process as in decimal to binary but the divisor is 8
359/8 = 44 r.7 359 = 5478
44/8 = 5 r.4
5/8 = 0 r.5
Octal to Decimal
◦ Using expanded notation
23228 = 2 x 8^3 + 3x8^2 + 2x8^1 + 2x8^0
= 1024 + 192 + 16 + 2
= 123410
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary to Octal
◦ Group the given bits into 3s starting from the right hand side and look onto the
table of the corresponding octal number form
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Decimal to Hexadecimal
◦ Same process as in decimal to octal but the divisor is 16
255/16 = 15 r.15 255 = FF16
15/16 = 0 r.15
Hexadecimal to Decimal
◦ Use expanded notation
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Octal to Hexadecimal
◦ Convert to binary first then to hexadecimal
3618 = 011 110 001
= 1111 0001
= F116
Hexadecimal to Octal
◦ Convert to binary first then to octal
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Bit – basic unit of information in digital computer
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Integers – whole numbers or fixed-point numbers with radix point fixed
after the least-significant bit
Commonly used bit-lengths for integers
◦ 8-bit
◦ 16-bit
◦ 32-bit
◦ 64-bit
Representation schemes
◦ Unsigned integers – represent zero and positive integers
◦ Signed integers – can represent zero, positive integers as well as negative
integers
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
An n-bit unsigned integers can represent integers from 0 to (2n) - 1
distinct integers
Example 1: Suppose that n=8 and the binary pattern is 0100 0001B,
the value of this unsigned integer is 1 x 20 + 1 x 26 = 65D
Example 2: Suppose that n=16 and the binary pattern is 0001 0000
0000 1000B, the value of this unsigned integer is 1 x 23 + 1 x 212 =
4104D
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Sign-Magnitude representation – most significant bit (msb) is the sign bit, with
value of 0 representing positive integer and 1 for negative
Example 1: Suppose that n=8 and the binary pattern is 0 100 0001B
Sign bit is 0 – positive
Absolute value is 100 0001B = 65D
Hence, integer is +65D
Example 2: Suppose that n=8 and the binary pattern is 1 000 0001B
Sign bit is 1 – negative
Absolute value is 000 0001B = 1D
Hence, integer is -1D
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
2’s Complement representation – most significant bit (msb) is the
sign bit, with value of 0 representing positive integer and 1 for negative
◦ For positive integers – absolute value is equal to the magnitude of the (n-1)-bit
◦ For negative integers – absolute value is equal to the magnitude of the
complement (inverse) of the (n-1)-bit plus one
Example 1: Suppose that n=8 and the binary pattern is 0 100 0001B
Sign bit is 0 – positive, Absolute value is 100 0001B = 65D, Hence, integer is +65D
Example 2: Suppose that n=8 and the binary pattern is 1 000 0001B
Sign bit is 1 – negative, Absolute value is 111 1110B + 1B = 126D plus 1, Hence,
integer is -127D
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary Addition
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
Binary Addition
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary Subtraction
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
Binary Addition
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary Multiplication
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
Binary Addition
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary Division
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Binary Division
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
0 0 0 0 0 1
0 1 0 1 1 1
1 0 0 1 1 0
1 1 1 1 0 0
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Answer the following:
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Real number
Can represent a very large or a very small value
Could also represent very large negative number and very
small negative number as well as zero
Typically expressed in scientific notation with a fraction (F) and
an exponent (E) of a certain radix (r)
Decimal numbers use radix of 10 (F x 10^E)
Binary numbers use radix of 2 (F x 2^E)
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Example: 32 bit pattern = 1 1000 0001 011 0000 0000 0000 0000 0000
S = 1- negative
E = 1000 0001 = 129
F = 011 0000 0000 0000 0000 0000
Actual fraction is 1.011 0000 0000 0000 0000 0000 = 1 + 1x2^-2 + 1x2^-3 = -1.375D
Actual exponent is 127 in normalized form, E-127=129-127 = 2D
Hence, the number represented is -1.375 x 2^2 = -5.5D
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Example: S=1
E=0
F = 011 0000 0000 0000 0000 0000
Actual fraction is 0.011 0000 0000 000 0000 0000 = 1x2^-2 + 1x2^-3 = -0.375D
Actual exponent is -126
Hence, the number represented is -0.375 x 2^-126 = -4.4 x 10^39 which is an
extremely small negative number (close to zero)
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS
College
College of
of
Computer
Computer
Studies
Studies
Example 1: Suppose that IEEE-754 32-bit floating-point representation pattern
is 0 10000000 110 0000 0000 0000 0000 0000.
Sign bit S = 0 ⇒ positive number
E = 1000 0000B = 128
Fraction is 1.11B (with an implicit leading 1) = 1 + 1×2^-1 + 1×2^-2 = 1.75D
The number is +1.75 × 2^(128-127) = +3.5D
ITC
ITC111
111: INTRO TOTO
: INTRO COMPUTING
COMPUTING TOPIC : BASIC
TOPIC: BASICCOMPUTER
COMPUTERCONCEPTS
CONCEPTS