SIM For Week 4
SIM For Week 4
Week 4 - 5: Unit Learning Outcomes (ULO): at the end of the unit, you are expected to:
Metalanguage
In this section, the most essential terms relevant to the study of this course to demonstrate
the ULO a will be operationally defined to establish a common frame of reference as to how
the text work in your chosen field or career. You will encounter these terms as we go through
the study of this course.
Essential Knowledge
Computers are classified according to functionality, physical size and purpose. Functionality,
Computers could be analog, digital or hybrid. Digital computers process data that is in
discrete form whereas analog computers process data that is continuous in nature. Hybrid
computers on the other hand can process data that is both discrete and continuous.
In digital computers, the user input is first converted and transmitted as electrical pulses that
can be represented by two unique states ON and OFF. The ON state may be represented by a
“1” and the off state by a “0”. The sequence of ON’S and OFF’S forms the electrical signals
that the computer can understand.
A digital signal rises suddenly to a peak voltage of +1 for some time then suddenly drops -1
level on the other hand an analog signal rises to +1 and then drops to -1 in a continuous
version.
Electrical signals or waveforms of this nature are said to be periodic. Generally, a periodic
wave representing a signal can be described using the following parameters: Amplitude(A),
Frequency(f), Periodic Time(T)
• Amplitude (A): this is the maximum displacement that the waveform of an electric
signal can attain.
• Frequency (f): is the number of cycles made by a signal in one second. It is measured
in hertz.1hert is equivalent to 1 cycle/second.
• Periodic time (T): the time taken by a signal to complete one cycle is called periodic
time. Periodic time is given by the formula T=1/f, where f is the frequency of the wave.
When a digital signal is to be sent over analog telephone lines e.g. e-mail, it has to be
converted to analog signal. This is done by connecting a device called a modem to the digital
computer. This process of converting a digital signal to an analog signal is known as
modulation. On the receiving end, the incoming analog signal is converted back to digital form
in a process known as demodulation.
It has proved difficult to develop devices that can understand natural language directly due
to the complexity of natural languages. However, it is easier to construct electric circuits
based on the binary or ON and OFF logic. All forms of data can be represented in binary system
format. Other reasons for the use of binary are that digital devices are more reliable, small
and use less energy as compared to analog devices.
A numbering system is a systematic way to represent numbers with symbolic characters and
uses a base value to conveniently group numbers in compact form. The most common
number system is decimal, which has a base value of 10, and a symbolic character set of 0, 1,
2, 3, 4, 5, 6, 7, 8, and 9. However, there are other number systems, and they can be more
efficient to use for a specific purpose. For example, because computers use Boolean logic to
perform calculations and operations, they use the binary number system, which has a base
value of 2.
Table of Number Systems
The value is formed by the sum of each digit, multiplied by the base (in this case it
is 10 because there are 10 digits in decimal system) in power of digit position (counting from
zero). A decimal number should always be written with a subscript 10 e.g. X10.
The absolute value is the magnitude of a digit in a number. For example, the digit 5 in 7458
has an absolute value of 5 according to its value in the number line.
The place value of a digit in a number refers to the position of the digit in that number i.e.
whether; tens, hundreds, thousands etc.
The total value of a number is the sum of the place value of each digit making the number.
The base value of a number also k known as the radix, depends on the type of the number
systems that is being used. The value of any number depends on the radix. For example, the
number 10010 is not equivalent to 1002.
Example:
• 754
• 547
Each digit in a binary number is called a BIT, 4 bits form a NIBBLE, 8 bits form a BYTE, two
bytes form a WORD, two words form a DOUBLE WORD (rarely used).
Example:
• 10100101
It is very easy to convert numbers from binary system to hexadecimal system and vice-versa,
every nibble (4 bits) can be converted to a hexadecimal digit using this table:
Example:
• 1234
Basic Electronics
The distinct values 1 or 0 as discussed above also represents positive and negative or
represented as On/Off Switch. Imagine a lamp or a bulb, it has two terminals known as anode
and cathode. The anode is positive, and cathode is negative. To light up the lamp, we need
to connect the positive terminal of the lamp to the anode terminal of the battery and the
negative terminal to the cathode terminal. A switch is connected in between wire to give
supply or voltage to the lamp. See figure below.
The connections of these positive and negative wires on a breadboard or by soldering on PCB
to form circuits are known as electrical and electronic circuits.
Electric charge or electrical charge or electrostatic charge refers to the physical property of
matter that causes it to experience a force when placed in an electromagnetic field.
1C = 6.25x10^18 electrons
What is Current?
• Current is represented by the letter I.
• The basic unit for measuring current is ampere.
• Ampere can be abbreviated to amp or just A.
• 1 amp = 1 coulomb/sec, meaning for every amp, there are 6.25x10^18 electrons
moving past a point every second.
What is Voltage?
• Voltage, also called electromotive force, is a quantitative expression of the potential
difference in charge between two points in an electrical field.
Analogy of Voltage
Let’s imagine that electrons are represented by a marble on a flat plane. At this point, the
plane is level, and the marble does not move. If the plane is lifted at one side, the marble will
roll down to the lower point.
In electricity
• The high point is a point with lots of electrons and the low point is a point with a lack
of electrons.
• The high point is called the high potential and the low point is the low potential.
• The difference between these two points is called the potential difference.
• The larger the potential difference, the larger the VOLTAGE.
• Voltage can be thought of as the measure of the pressure pushing the electrons. The
higher the pressure, the higher the voltage.
• Voltage is represented by the letter E. The basic unit of measure is volts or the letter
V.
What is POWER?
• Power is simply the amount of energy used or the amount of "work" a circuit is
doing.
• Power is represented by the letter P.
• The basic unit for measuring power is watts or the letter W.
• To find power, all you need is a simple equation:
P=E*I
Power = voltage * current.
• We follow the electrical power triangle (power formula) in
getting the equation.
Example: Looking at the power triangle:
Sample Calculations
P = 100 W
I = 2.5 A
V = 12V
P = 60W
What is RESISTANCE?
E = I*R
What is RESISTOR?
• The resistor can be represented by the following symbols, 'box' symbol for a fixed
resistor is popular in the UK and Europe. A 'zig-zag' symbol is used in America and
Japan:
• The color of the resistor indicates its value in terms of ohms or can be test using a
tester. It follows the color coding to get the value.
Below is an example on how to get the value of the resistor
Example 1:
• The first color is BROWN, in the color code 1st band, BROWN is 1
• The second color is BLACK, in the color code 2nd band, BLACK is 0
• The third color RED, since Resistor has only four colors, RED is considered as the
multiplier and the Gold considered as the Tolerance. In the color code, RED as
multiplier has a value of 100.
Gold as Tolerance has a value of ± 5 %, it means that the tolerance of 1K ohms is equal to 950
ohms to 1050 ohms.
Looking at the color code, what is the value of this resistor and its tolerance value?
Resistance can be calculated in series and parallel. In a series circuit, the current flowing is
the same at all points. For example:
To get the voltage, we use the formula: Volage (E) = Current (I) * Resistance (RT)
Voltage = 3mA * 2K Ω
= 6V
Voltage = 3mA * 1K Ω
= 3V
To complete the picture, the voltage across R1 and R2 can be calculated as:
What is CAPACITOR?
We have learned the basic electronics in the previous topics. Those concepts are important
in understanding its connections to the Boolean functions because Boolean functions are
practically implemented by using electronic gates. These Boolean functions are simplified
using the Boolean Algebra’s 1) operations and expressions, and 2) laws and rules (axioms or
postulates).
Definition: Boolean algebra, like any other deductive mathematical system, may be defined
with a set of elements, a set of operators, and several unproved axioms or postulates. A set
of elements is any collection of objects having a common property.
The Variable, complement, and literal are terms used in Boolean algebra.
• A variable is a symbol used to represent a logical quantity. Any single variable can
have a 1 or a 0 value.
• The complement is the inverse of a variable and is indicated by a bar over variable
(overbar).
For example:
The complement of the variable A is read as "not A" or "A bar (Ā)."
• In Boolean algebra, a sum term is a sum of literals. In logic circuits, a sum term is
produced by an OR operation with no AND operations involved.
• A sum term is equal to 1 when one or more of the literals in the term are 1. A sum
term is equal to 0 only if each of the literals is 0.
Boolean Multiplication
• In Boolean algebra, a product term is the product of literals. In logic circuits, a product
term is produced by an AND operation with no OR operations involved.
• Some examples of product terms are AB, AB, ABC, and ABCD.
• A product term is equal to 1 only if each of the literals in the term is 1. A product term
is equal to 0 when one or more of the literals are 0.
The basic laws of Boolean algebra such as the commutative laws for addition and
multiplication, the associative laws for addition and multiplication, and the distributive law-
are the same as in ordinary algebra.
A+B = B+A
• This law states that the order in which the variables are ORed (added) makes no
difference. Remember, in Boolean algebra as applied to logic circuits, addition and the
OR operation are the same.
Figure below illustrates the (A + B = B + A) commutative law as applied to the OR gate and
shows that it doesn't matter to which input each variable is applied. (The symbol ≡ means
"equivalent to.").
The commutative law of multiplication for two variables is A.B = B.A This law states that the
order in which the variables are ANDed makes no difference.
Figure below illustrates this Cumulative law of Multiplication as applied to the AND gate.
A + (B + C) = (A + B) + C
This law states that when ORing more than two variables, the result is the same regardless of
the grouping of the variables.
A(BC) = (AB)C
This law states that it makes no difference in what order the variables are grouped when
ANDing more than two variables.
A(B + C) = AB + AC
This law states that ORing two or more variables and then ANDing the result with a single
variable is equivalent to ANDing the single variable with each of the two or more variables
and then ORing the products. The distributive law also expresses the process of factoring in
which the common variable A is factored out of the product terms.
For example:
AB + AC = A(B + C).
The basic rules that are useful in manipulating and simplifying Boolean expressions. Rules 1
through 9 will be viewed in terms of their application to logic gates. Rules 10 through 12 will
be derived in terms of the simpler rules and the laws that are previously discussed.
Rule 1: A+0=A
A variable ORed with 0 is always equal to the variable. If the input variable A is 1, the output
variable X is 1, which is equal to A. If A is 0, the output is 0, which is also equal to A. This rule
is illustrated below, where the lower input is fixed at 0.
Rule 2: A+1=1
Rule 3: A.0=0
A variable ANDed with 0 is always equal to 0. Any time one input to an AND gate is 0, the
output is 0, regardless of the value of the variable on the other input. This rule is illustrated
below, where the lower input is fixed at 0.
Rule 4: A.1=A
A variable ANDed with 1 is always equal to the variable. If A is 0 the output of the AND gate
is 0. If A is 1, the output of the AND gate is 1 because both inputs are now 1s. This rule is
shown below, where the lower input is fixed at 1.
Rule 5: A+A=A
A variable ORed with itself is always equal to the variable. If A is 0, then 0 + 0 = 0; and if A is
1, then 1 + 1 = 1. This is shown below where both inputs are the same variable.
Rule 6: A+Ā=1
A Ā
Ā A
A+Ā=1
Rule 7: A.A=A
A variable ANDed with itself is always equal to the variable. If A = 0, then 0.0 = 0; and if A = 1.
then 1.1 = 1. Figure below illustrates this rule.
Rule 8: A.Ā=0
A variable ANDed with its complement is always equal to 0. Either A or A will always be 0: and
when a 0 is applied to the input of an AND gate. the output will be 0 also. Figure below
illustrates this rule.
Rule 9:
The double complement of a variable is always equal to the variable. If you start with the
variable A and complement (invert) it once, you get Ā. If you then take Ā and complement
(invert) it, you get A, which is the original variable. This rule is shown in Figure below using
inverters.
Rule 10: A + AB = A
This rule can be proved by applying the distributive law, rule 2, and rule 4 as follows:
=A.1 Rule 2: (1 + B) =1
=A Rule 4: A . 1 = A
The proof is shown in Table below, which shows the truth table and the resulting logic circuit
simplification.
Rule 11: A + ĀB = A + B
This rule can be proved as follows:
The proof is shown in the Table below, which shows the truth table and the resulting logic
circuit simplification.
Rule 12: (A + B) (A + C) = A + BC
(A + B) (A + C) = AA + AC + AB + BC Distributive Law
= A + AC + AB + BC Rule 7: AA = A
= A (1 + C) + AB + BC Rule 2: 1 + C = 1
= A.1 + AB + BC Factoring (distributive law)
= A (1 + B) + BC Rule 2: 1 + B = 1
= A.1 + BC Rule 4: A . 1 = A
= A + BC
The proof is shown in the table below, which shows the truth table and the resulting logic
circuit simplification.
Self-Help: You can refer to the sources below to help you further
understand the lesson.
• Vermaat, M., Sebok, S., Freund, S., Campbell, J., & Frydenberg, M. (2016). Discovering
Computers 2016: Tools, Apps, Devices, and the Impact to Technology. Cengage.
• https://www3.ntu.edu.sg/home/ehchua/programming/java/datarepresentation.htm
l
Let’s Check
Solve the given problems and provide a solution.
1. An online quiz asks students questions about computer science topics. One of the
colors used in an image is 'cadet blue'. 'Cadet blue' in binary is 0101 1111 1001 1110
1010 0000. Convert 0101 1111 1001 1110 1010 0000 to hexadecimal.
2. Find the value of a) resistance from the given circuit below and 2) the current
following at point B, C and D.
Let’s Analyze:
Tolerance
Resistor Color Value
Minimum Value Maximum Value
blue, black, red
grey, red, brown
3. Simplify the given Boolean expression and draw its logic circuit simplification. Show
the Rules you’ve used in simplifying the expression.
In a Nutshell
Based on the definition of the most essential terms and the learning exercises that you have
done, please feel free to write your arguments or lessons learned below.
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
Question and Answer List
Questions/Issues Answers
1.
2.
3.
Keywords Index