Professional Documents
Culture Documents
7 Digital Electronics
7 Digital Electronics
Digital Electronics
Analog and digital signals:
o Signal ⇒ a physical quantity that carries information and changes with respect to time
e.g. temperature over time, speech over time, etc.
o A signal is converted into an electrical signal by use of a transducer.
A transducer is an instrument that senses changes in a physical parameter (e.g.
temperature) and converts the sensed information into an electrical signal (such as
current).
The sensor converts the physical variable to some physical indication that varies
with variation in the measured quantity e.g. a diaphragm converts a pressure into a
physical motion.
The conversion element (transducing unit) transforms the physical indication into
an electronic signal.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 2 of 10 SPH 2110: Instrumental Electronics Lecture Notes
Electronic signals can be transmitted in either of two basic forms: either analogue
or digital.
An analogue signal varies continuously in time.
A digital signal is discrete in time (i.e. it does not vary continuously in time).
Digital/logic circuits
o A digital signal is such that a voltage range is chosen between two voltage levels and
when the voltage is above one of the voltage levels it is defined to be in one state and
when it is below the other voltage level, it is in the other state.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 3 of 10 SPH 2110: Instrumental Electronics Lecture Notes
e.g.
When,
‒ 0 V ≤ voltage range ≤0.8 V → logic state “0”
‒ 2.0 V ≤ voltage range ≤5 V → logic state “1”
o In digital electronics, therefore, a signal can only be either logic 1 or logic 0. Each of
these (1 and 0) is referred to as a bit (binary digit).
Number systems
o In analog electronics, a signal can take any numerical value e.g. 0 V, 2.2 V, 10 V, 100
V, etc.
Fundamentally, these values are expressed using ten basic symbols, namely, 0, 1, 2, 3,
4, 5, 6, 7, 8, and 9.
In order to express numbers using these ten symbols a number system is adopted. This
number system is referred to as the decimal number system. It is referred to as a base
10 number system.
o In digital electronics, a signal can only be in either of two states, 1 or 0, i.e. logic
HIGH or logic LOW respectively. A number system is therefore adopted that has two
basic symbols, 0 and 1. The corresponding number system is referred to as the binary
number system and it is a base 2 number system.
o Other number systems include the octal (base 8) and hexadecimal (base 16) number
systems.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 4 of 10 SPH 2110: Instrumental Electronics Lecture Notes
Boolean algebra
o It is the mathematics of logic.
o Basic operations that are performed in Boolean algebra are,
1. AND e.g. an AND operation between two variables x and y is expressed as x ∙ y .
Read: “ x and y ”
2. OR e.g. an OR operation between two variables x and y is expressed as x + y .
Read: “ x or y ”
3. NOT e.g. a NOT operation on a variable x is expressed as x or x '.
Read: “ x complement or x inverted”
NB: F (x , y ), Q(x , y) and K (x ) are Boolean functions for the three basic Boolean
operators AND, OR and NOT respectively.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 5 of 10 SPH 2110: Instrumental Electronics Lecture Notes
2. Commutative laws
A+ B=B+ A
A ∙ B=B ∙ A
3. Associative laws
4. Distributive laws
A ∙ ( B+C )= A ∙ B + A ∙C
A+ B ∙C=( A+ B)∙( A+ C)
6. Involution law
Á=A
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 6 of 10 SPH 2110: Instrumental Electronics Lecture Notes
8. Duality principle
A Boolean expression is valid if its dual is also valid.
The dual of a Boolean expression is obtained by replacing all the symbols in the
expression with its counterparts i.e. replacing all · with +, + with ·, 0s with 1s, and 1s
with 0s. Literals are left unchanged.
Example: commutative laws
A+ B=B+ A
A ∙ B=B ∙ A
Replacing ‘+’ with ‘∙’ in A+ B = B+ A results in A ∙ B = B∙ A
Example: applying the duality principle on an OR law gives a corresponding AND
law (and vice versa). Thus,
A+0= A ∙ 1= A
A ∙ 1= A+0= A
i. C+ BC
Solution:
Solution:
iii. ( A+C ) ( AD + A D ) + AC +C
Solution:
( A+C ) ( AD + A D ) + AC +C = ( A+C ) ∙ A ( D+ D ) + AC +C
= ( A+C ) A + AC +C
= AA+ AC + AC +C
= A+ AC+C
= A(1+C )+ C
= A(1)+C
= A+C
Therefore, ( A+C ) ( AD + A D ) + AC +C= A+C
iv. A ( A+ B C ) + A ( B+C )
Solution:
A ( A+ B C ) + A ( B+C ) = AA+ A BC + A B+ AC
= A+ A B(C +1)+ AC
= A+ A B+ AC
= A(1+ B+C )
= A(1+C )
= A(1)
= A
Therefore, A ( A+ B C ) + A ( B+C )= A
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 8 of 10 SPH 2110: Instrumental Electronics Lecture Notes
An AND logic gate can also have multiple inputs (more than two) e.g. circuit
diagram and truth table for a 3-input AND gate:
2. OR logic gate
Exercise: circuit symbol, truth table, and Boolean function for a three-input OR
gate.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 9 of 10 SPH 2110: Instrumental Electronics Lecture Notes
3. NOT logic gate
NB:
AND and OR logic gates can have two or more inputs and one output only.
A NOT logic gate is a single input single output device.
i. C+ BC
Solution:
Solution:
Exercise:
iii. ( A+C ) ( AD + A D ) + AC +C
iv. A ( A+ B C ) + A ( B+C )
Note: Logic gates are contained in integrated circuits (ICs). An IC is a circuit that
consists of miniaturized resistors, transistors, capacitors, diodes, etc. connected in a way
to perform a desired function and fabricated as a single unit (see images below).
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.
Page 10 of 10 SPH 2110: Instrumental Electronics Lecture Notes
The use of the OR gate means that the machine will shut down when the outputs of
the comparators are such that if either one of them is interpreted to be logic HIGH or
both of them are interpreted to be logic HIGH, then the machine will shut down. Truth
table:
The OR gate can therefore be used in applications that require the detection of the
occurrence of one or more events.
NB: Supplement your learning from the lecture and lecture notes by independent study and discussions.