Basic Electronics Notes
Basic Electronics Notes
(NAIROBI CAMPUS)
COURSE OBJECTIVES
COURSE SCHEDULE.
NO TOPIC SUBTOPICS
4 ELECTRONIC Resistor, capacitor, diode, inductor
COMPONENTS
Characteristics of electronic components
1
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
2
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
BCD arithmetic:
addition,subtraction,multiplication,division
9 LOGIC GATES AND Gate, OR Gate, NAND Gate, NOR Gate, NOT Gate
AND BOOLEAN (Inverter), Exclusive OR, Exclusive NOR, Laws of
ALGEBRA Boolean algebra.
ASSESSMENTS
4. Assignments/Group work
6. All the tests and assignments are compulsory i.e. must be done by all students.
REFERENCES
Table of Contents
CHAPTER 1 .................................................................................................................................................... 7
INTRODUCTION TO ELECTRICAL CIRCUITS ................................................................................................ 7
Introduction to Electrical circuits .............................................................................................................. 7
3
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
4
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
5
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
6
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
CHAPTER 1
Electronics is a branch of science that deals with the study of flow and control of electrons and
study of their behavior and effects in vacuums, gases and semi-conductors and in devices using
such electrons.
Application of Electronics
1. Entertainment and communications
Electronic gadgets/devices are widely used
2. Medical services
Electronic systems are widely used by doctors in the diagnosis and treatment of various
diseases.
3. Industrial application
Electronic circuits are used in industrial applications such as control of weight quality
and moisture content of material.
Voltage V Volt V
Resistance R Ohm Ω
Current I Ampere A
Capacitance C Farad F
Charge Q Coulombs C
Impendence Z Ohm Ω
Inductance L Henry H
Power P Watt W
VOLTAGE
Electrical voltage is defined as electrical potential difference between two points of an electric
field.
Voltage series
The total voltage of several sources or voltage drops in series is their sum.
VT= V1 + V2 + V3 + ……………………. Vn
7
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Voltage is parallel
Ohm’s law
Current through a conductor between two points is directly proportional to the potential
difference or voltages across the two points and inversely proportional to the resistance between
them.
The potential difference (voltage) across a conductor is proportional to the current through it.
Directly proportional means both variables increases and decreases at the same time.
Inversely proportion means one variable increases while the other decreases.
V= IR
Or E = IR
Where, V= voltage
I= Electrical current
R= Resistance in Ohms
I =2A
Battery
(V)
R= 7Ω
8
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
V = IR
= 2 x 7 = 14 V
Examples
What is the potential difference across a resistor of 1000 Ω when current of 0.25 A flows through
it?
V = IR
Materials that obey ohm’s law are called ohmic because the potential differences across it vary
linearly with the current.
Electrical Resistance
Resistance is an electrical quantity that measures how a device or material reduces the electric
current flowing through it.
SI unit of electrical resistance is the ohm (Ω). It is designated a Greek capital letter Omega (Ω).
Insulators have high value of electrical resistance. In order to express resistance of these
materials much bigger units are used such as: mega ohm (M Ω) and kilo ohm (K Ω)
1 Ω = 0.001 K Ω
1 Ω = 0.000001 M Ω
Smaller units of resistance are: milliohm (mΩ) and micro ohm (µΩ)
1 Ω = 1, 000, mΩ
1 Ω = 1000 000 µΩ
1. Nature of material
Different materials have different numbers of free electrons available for producing
current.
9
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
2. Length of material
Resistance of any conductor is directly proportional to its length
3. Cross-sectional area of material
Resistance of any conductor is inversely proportional to its cross-sectional area of a
conductor. Decreases its resistance and vice-versa.
4. Temperature of material
Resistance of any conductor increases with increase in temperature and vice-versa.
Resistance (R) = length (L)
Cross-sectional area (A)
𝐿
Rα
𝐴
𝜌𝐿
R=
𝐴
ρ = resistivity
Example
A potential difference of I0V is connected to a uniform resistance wire of length 3 meters and a
cross-sectional area of 0.09m2 with 0.01A current flowing in the wire. Determine the resistivity
of the material.
𝜌𝐿
From R=
𝐴
1000 Ω = ρ x3/0.09
0.03
ρ = 1000 x
3
= 30
Conductance
It is the degree to which an object conducts electricity, calculated as the ratio of the current
which flows to the potential difference present. This is the reciprocal of the resistance, and is
measured in Siemens.
𝐼 1 𝐼 𝑉
G = 𝑉 or G =𝑅 and R = 𝐺 OR R =𝑅
Example
A voltage (V) of 5 volts generates a current (I) of 0.30 amps in a particular length of wire.
Calculate its conductance. (Answer = 0.06 Siemens)
10
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Electric Power
It is the rate of energy consumption in an electric circuit. Electric power is the rate at which
electric energy is transferred. SI unit of the power is watts (W)
P = I2R
P = IV
Where,
I = current in watts
R = resistance in Ohms
P = 0.042 (100)
= 0.16W
Also from P = IV
P = 0.04 x 4 = 0.16W
Electrical current
Current is a measure of amount of charge moving past a given point per unit time.
Electric current is designated by the symbol I; the SI unit of electrical current is ampere (A)
Milliamperes (mA)
Microamperes (µA)
1A = 1, 000,000 µA
1A = 1000 mA
Example
11
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Solution:
1A = 1000mA
? = 2mA
2/1000 x 1 = 0.002A
A current of 4mA flows through a resistor (R) when a potential difference (pd) of 16v is
connected. Determine the value of resistance.
1a = 1000 mA
? = 4mA
4/1000 x 1 = 0.004A
𝑉 16
V = IR R = = = 4000Ω
𝐼 0.004
Electrical charge
Tiny pieces of matter can sometimes attract or repel each other. Matter that behaves in this way
is said to possess electrical charge.
Amount of charge is measured in coulombs (C). Symbol used to represent amount of charge is Q
Materials that contain equal number of positive and negative is said to be neutral. Charge in
motion represents current.
Capacitance
A capacitor is a device formed with two or more separated conductors that store charge and
electric energy.
Ǫ = CV
Where,
Farad is a large unit such that capacitance is usually measured in smaller units such as micro
farads (µF), pico farads (pf), nano farads (nf) are used.
Inductance
It is the ability to store energy in a magnetic field and coils are a very common way to create
inductance.
An inductor is a passive electronic component that stores energy in the form of magnetic fields.
It is a measure of energy (voltage) that causes current passing through a circuit. It can also be
defined as voltage developed by any source of electrical energy such as a battery.
Magnetic Flux
It is the measure of magnetic field passing through a given surface such as conducting coil.
Flux lines
Strength of this field depends upon value of current passing through a conductor.
If a changing flux line is linked with a coil over a conductor, an emf will be induced in it.
13
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Fewer turns of wires in a coil result in less inductance. More turns of wire means that the coil
will generate a better amount of magnetic field force for a given amount of coil.
2. Coil area: all other factors being equal, greater coil area results in greater inductance and
less area results in less inductance.
These are components that cannot increase the strength of a signal i.e. by themselves they cannot
produce a gain in signal strength.
Passive components are not capable of producing wave forms for themselves nor when
connected with other passive components. They include: resistors, capacitors, diodes and
inductors.
Active components
These are those electronics components that require an energy source to operate e.g. transistors
which are integrated circuits.
Resistors
These are passive electronic components that are specially designed to have controlled amounts
of resistance.
Resistor symbols
Uses of resistors
1. Limiting current: they limit the amount of current in part of a circuit. Too much current
can destroy many sensitive electronic components such as transistors, light emitting diode
14
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
(LED) and integrated circuits (IC’s). by putting a resistor at the input to a sensitive part,
current that reaches the point is controlled.
2. Reducing and controlling voltage
Resistors can also be used to reduce the voltage supplied to different parts of a circuit.
Example
If you have a 9V power supply, but you need to provide 5V to power a particular integrated
circuit, then you can set up a circuit to divide the voltage in a way that provides 5V at the output.
You can use the output voltage volt of the voltage dividers as the supply voltage for the
integrated circuit.
Types of resistors
1. Fixed resistors
These resistors supply a constant factor determined resistance but the actual resistance of any
given resistor may vary up/down from its normal value by some percentage known as the
resistance tolerance.
A variable resistor or a potentiometer or a rheostat allows you to control, adjust the resistance
from virtually 0Ω to a factory-determined maximum value.
A potentiometer is used to vary the amount of current supplied to that part of the circuit.
Color coding identifies the nominal Value and tolerance of most resistors. Other resistors have
values stamped on them.
The color code starts near the edge of the one side of the resistor and consists of several stripes
or bands of color.
15
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Each color represents a number and the position of the band indicates how to use that number.
The first three bands indicate the nominal value of the resistor and the forth indicates tolerance.
The first four bands indicate the value and the fifth indicates the tolerance
Using a special decoder ring, you can decipher/identify the nominal value of a standard precision
resistor as follows:
You get the nominal value of the resistance by putting the first two digits together side by side
and apply the multiples. If no forth band exists, you can assume the tolerance is ±20%
Color No Tolerance
Black 0 ±20%
Brown 1 ±1%
Red 2 ±2%
Orange 3 ±3%
Yellow 4 ±4%
Green 5 n/a
Blue 6 n/a
Violet 7 n/a
Grey 8 n/a
White 9 n/a
Gold 0.1 ±5%
Silver 0.01 ±10%
16
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Examples
AB x 10c ±𝐷%
= 22 x 104 ±5%
= 220,000Ω ±5%
24 x 106 -2 ±10%
10% silver
Exercise
The following is an outline of the colors of two resistors. Determine the resistance in each case
17
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
CHAPTER 2
Circuit diagrams
A circuit consists of a number of components connected together in such a way as to carry out a
specific task.
A task must have a source of electrical power. Most electronic circuits make use of very low
power and can be operated from small DC supplies.
Types of Circuits
Series circuits
In series, all the components are connected one after the other in the circuit.
Parallel circuit
In parallel circuit, components are connected in different branches of the electrical circuit.
Types of current
V V
18
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Current +
Time
CHAPTER 3
SIMPLE A.C. CIRCUITS
Unlike direct current (DC) which moves in one direction, alternating current moves in both
directions.
Current flaws first in one direction and then in the opposite direction during the second cycles.
a. Cycle
It is one complete set of positive and negative values of alternating current
19
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
b. Periodic time/period
It is the time taken by an alternating current to complete one cycle and it is denoted by T
Periodic time is the reciprocal of the number of cycles/ the inverse of the frequency e.g. if
AC makes 50 cycles in 1 second, then its periodic time is 1/50 = 0.02 sec
c. Frequency
This is the number of the waveforms per second made by an alternating current.
Frequency is measured in hertz.
F (number of cycles
𝐻𝑧 =
𝑇𝑖𝑚𝑒 𝑖𝑛 𝑠𝑒𝑐𝑠
d. Amplitude
This is the peak value of the wave form measured from zero to the maximum positive/the
negative value of the AC voltage.
e. Peak to peak value
It is the sum of positive and negative peak values.
f. Phase
It is the fraction of time period which has elapsed/passed since an alternating current last
passed a given reference point. The reference point is taken as the starting point itself.
CHAPTER 4
ELECTRONIC COMPONENTS
RESISTORS IN SERIES
To calculate the combined (total) resistance of resistors in series, you add up the values of
individual resistors.
RT= R1 + R2 + R3 + ………………..RN
20
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
EXAMPLE
The figure below shows a simple electric circuit with three resistors of R1 (50Ω), R2 (40Ω), R3
(60Ω) and a voltage of 450V
`R11 R1 R1
450V
Determine the:
a. Total resistance
b. Current across the resistors
c. Voltage across each resistor
RT = R1 + R2 + R3
𝑉 450
IT = = 150 = 3A
𝑅
From V = IR,
R1 V = IR, = 3 x 50 = 150V
R2 V =IR2 = 3 x 40 = 120 V
R3 V = IR3 = 3 x 60 = 180V
21
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Exercises
Determine the:
a. Total resistance
b. Current across the resistors
c. Voltage across each resistor
10 15
9V
20
30
Resistors in Parallel
1
𝑅𝑇 =
1⁄ + 1⁄ + 1⁄ + ⋯ … … . 1⁄
𝑅1 𝑅2 𝑅3 𝑅𝑁
Example
A circuit consists of 4 resistors R1, R2, R3 and R4 connected in parallel as shown in the figure
below:
18V
15 30 45
Determine:
i) Total resistance
ii) Current through each resistor
22
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Exercise
R1=20Ω
ε=13V R3=40Ω
R2=30Ω
Find
(a) The total resistance,
(b) The total current in the circuit,
(c) The voltage across each resistor, and
(d) The current through each resistor.
Determine:
i) Total resistance
ii) Current through each resistor
18V
15 30 45
i) Total resistance.
ii) Current across each resistor
iii) Voltage drop across each resistor
23
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Exercise
i) Total resistance.
ii) Current across each resistor
iii) Voltage drop across each resistor
CAPACITORS
A capacitor consists of two conductive plates with an insulative material between them.
Current continues until the voltage charge across the capacitor plate becomes the same as the
source voltage.
24
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
The positive plate of the capacitor and the positive terminal of the battery are also at equal
positive potential.
Farad is a large unit such that capacitance is usually measured in smaller units such as the micro
farad (µF), pico farad (pF) and nano farad (nF)
1F = 1000000 µF
1F = 1000000000 nF
1F = 1000000 pF
Capacitors in Parallel
Like resistors, capacitors can be joined together in two basic ways i.e. parallel and series.
A parallel connection results in bigger capacitor plate area which means they can hold more
charge for the same voltage.
The formula for the total capacitance is a parallel circuit is CT= C1 + C2 +C3 +………CN
Parallel connected capacitors always have the same voltage drop (potential difference) across
each of them.
VT = V1 = V2 = V3
Ǫ = CV
Where,
Q1 = C1VT
Q2 = C2VT
Q3 = C3VT
Capacitors in the parallel do not have the same charge unless they have similar capacitances (C).
Examples
a. Total capacitance
b. Charge on each capacitor
Capacitors in series
1
𝐶𝑇 =
1⁄ + 1⁄ + 1⁄ + ⋯ … … . 1⁄
𝐶1 𝐶2 𝐶3 𝐶𝑁
26
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Determine
i) Total capacitance
ii) Charge stored on each capacitor
iii) Voltage drop across each capacitor
Solution
1
𝐶𝑇 =
1⁄ + 1⁄ + 1⁄
0.1 0.2 0.3
1
𝐶𝑇 =
11⁄
0.6
0.6
CT =1 x = 0.054µF
11
Q = CV
27
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Points to note
1. When capacitors are in parallel, to get total capacitance treat them as resistors in series
and when capacitors are in series treat them as resistors in parallel.
2. Capacitors in series store similar charge but get different voltage drops.
3. Capacitors in parallel get similar voltage but store different charge
Capacitors in series-parallel
8 μF C2
C1
24 V C3 C4
4 μF
6 μF 2 μF
28
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
CHAPTER 5
SEMI-CONDUCTOR THEORY
Forms of Matter
Element
It is a part of matter which cannot be broken down any further by chemical means into simpler
substances.
Compound
It is a substance that consists of more than one element in a chemical combination e.g. water is
formed when hydrogen and oxygen combine chemically.
Atoms of most elements cannot exist by themselves hence; they generally combine to form
molecules.
Molecules are composed of one or more atoms and are called monatomic, diatomic and
triatomic.
Structure of an atom
An atom is made up of sub-atomic particles. The main one being the proton, electron and
neutron.
The protons and the neutrons occupy the nucleus while the electrons move in orbits in high
speed.
29
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Electrons are negatively charged while protons are positively charged and neutrons are neutral.
Atoms have equal number of protons and electrons hence are overall neutral.
Atomic number refers to the number of protons an atom has. Electrons are arranged in shells.
Electrons in shells near the nucleus experience the highest attraction while those in outer shells
experience least nuclear attraction.
Number of electrons in a shell is given by 2n2 where n is the shell number starting from the
nucleus e.g. an atom with 2 shells 2𝑛2 = 2 𝑥12 = 2
NB: The maximum number of electrons in the outer most shell of an atom cannot exceed 8. The
maximum number of electrons in the shell just prior to the outermost shell cannot exceed 18.
Bond formation
Most atoms do not have 8 electrons in the outermost shell. As such, atoms combine with other
atoms to attain octet (8) or duplet (2) states which are stable states.
30
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Types of Bonds
a. Ionic bond
This bond is formed when there is complete transfer of electron from one atom to another
e.g. sodium chloride
b. Covalent bond
This bond occurs when atoms share electrons e.g. oxygen
c. Metallic bond
Metallic bonds refer to bond that holds metal atoms together.
In metals, when there is slight temperature increase, metal atoms lose electrons easily.
This results in protons occupying center and electrons become free. Protons at the center
are surrounded by electrons.
Conductors are able to transmit electric current since they posses free electrons (valence
electrons)
31
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Semi-conductors
A semi-conductor is a material whose electrical properties lie in between those of insulators and
good conductors examples of semi-conductors are silicon and germanium.
pure silicon does not conduction pure silicon, there is no free electron for conducting. However,
it can conduct due to thermally excited electrons.
32
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Intrinsic semi-conductors are semi-conductors which have not been doped (no impurity added).
An N-type semi conductor is formed when a semi-conductor is doped with a pentavalent element
e.g. phosphorus, a timony and arsenic.
A pentavalent atom has 5 electrons in outermost energy level and once introduced to a semi-
conductor, a single electron is left free in each bond between the impurity and silicon
Thus, an N-type material is formed when a semi conductor is doped with a pentavalent material.
Conduction in an N-type material is due to free electrons which are majority carriers.
P-types extrinsic semi-conductor is formed when a semi-conductor is doped with a trivalent (an
element with three electrons in outer most energy shell). Trivalent impurities include: indium,
aluminium, boron.
In an N-type material, majority carriers are electrons since the impurity used is pentavalent and
introduces free electronics.
33
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
In an N-type material, holes are few and hence are minority carriers.
In P-type material, majority carriers are holes as the trivalent impurity results in deficiency of
electrons. Electrons are few and are minority carriers.
When a P-type material and N-type material are combined, a P-N junction diode is formed.
Once combined, + charge from P-material drift to the N-material and –ve charge from N-
material drift to P-material and neutralize each other at the junction till no further movement of
charge is possible. This creates a region with no charge called the depletion layer.
The P-N junction now behaves as a switch. When a P-N junction is connectedto an external
voltage, it behaves as a switch.
34
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
When a P-N junction diode is connected to external voltage such that the positive terminal of the
battery is connected to the P-material and the negative terminal of the battery is connected to the
N-material, the depletion layer is closed.
This is because, the holes (+ve) charge is P-material repel (+ve) current and move towrds N-
material and electrons in N-material move towards P-material since like charges repel i.e. when a
P-N junction is forward biased, the depletion layer is closed and current flows.
This is when the P-N junction is connected to external voltage since such that it cannot conduct
current.
When the (+ve) terminal of the battery is connected to N-material and (-ve) terminal of battery is
connected to P-material, since unlike charges attract, holes in P-material move towrds negative
terminal of the battery and electrons in N-material move towards +ve terminal of the battery.
Silicon and germanium are the major semi-conductors used to manufacture the P-N junction
diodes. For a silicon, P-N junction when forward biased it starts to conduct when an external
voltage of about 0.6V is provided.
Germanium on the other hand starts to conduct when a voltage of 0.2V is applied.
When voltage exceeds 0.6 V for silicon, P-N junction diode current measures exponentially due
to:
a. Zener effect
Increased voltage results in breaking of covalent bonds of the material.
b. Avalanche effect
Some charge carriers break covalent bonds.
Four accepter elements that would form a ptype material- Monday exe
Acceptors are elements added in the doping process that have one less electron in the
valence shell than the substrate semiconductor material. With one less electron, this
dopant “accepts” or pulls away an electron from the base semiconductor.
An atom which substitutes for a regular atom of the material but has one less valence
electron may be expected to be an acceptor atom. For example, atoms of boron,
aluminum, gallium, or indium are acceptors.
Types of diodes
Symbol
36
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Schottky Diode: uses low voltage to start conducting than the normal diode
Symbol
Light Emitting Diode (LED): it converts current to light energy when forward biased.
Symbol
Photodiode
The photodiode is a type of P-N junction diode that converts the light energy into electrical
current. Its operation is opposite to that of an LED.
Symbol
37
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Zener diode : It is a type of diode, which not only allows the flow of current in the forward
direction but also in reverse direction.
Symbol
TRANSISTORS
The transistor is the most important example of an active element. It is a device that can amplify
and produce an output signal with more power than the input signal. The additional power comes
from an external source i.e. the power supply.
Active components such as transistors and silicon-controlled rectifiers (SCRs) use electricity to
control electricity. What are passive components? Like resistors, transformers, and diodes don't
need an external power source to function. These components use some other property to control
the electrical signal. An active element is an element capable of generating electrical energy.
The essential role of this active element is to magnify an input signal to yield a significantly larger
output signal.
A passive element is an electrical component that does not generate power, but instead
dissipates, stores, and/or releases it. Passive elements include resistances, capacitors, and coils
(also called inductors).
The transistor is the essential ingredient of every electronic circuit: amplifiers, oscillators and
computers. Integrated circuits (ICs), which have replaced circuits constructed from individual,
38
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
discrete transistors, are themselves arrays of transistors and other components built as a single
chip of semiconductor material.
A bipolar junction transistor is a three-terminal semiconductor device that consists of two p-n
junctions which are able to amplify or magnify a signal. It is a current controlled device. The
three terminals of the BJT are the base, the collector, and the emitter.
Standard Bipolar Transistor or BJT, comes in two basic forms. An NPN (Negative-Positive-
Negative) type and a PNP (Positive-Negative-Positive) type, with the most commonly used
transistor type being the NPN Transistor.
39
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
A signal of a small amplitude applied to the base is available in the amplified form at the
collector of the transistor. This is the amplification provided by the BJT. Note that it does require
an external source of DC power supply to carry out the amplification process.
In order for either PNP or NPN transistors to work, the emmitter base junction must be forward
biased and collector base junction reverse biased.
BJT is a semiconductor device that is constructed with 3 doped semiconductor Regions i.e. Base,
Collector & Emitter separated by 2 p-n Junctions.
Bipolar transistors are manufactured in two types, PNP and NPN, and are available as separate
components, usually in large quantities. The prime use or function of this type of transistor is to
amplify current. This makes them useful as switches or amplifiers. They have a wide application
in electronic devices like mobile phones, televisions, radio transmitters, and industrial control.
Saturation region: The region in which the transistor is fully on and operates as a switch
such that collector current is equal to the saturation current.
Cut-off region: The region in which the transistor is fully off and collector current is
equal to zero.
PNP BJT
40
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
In PNP BJT, the n-type semiconductor is sandwiched between the two p-type semiconductors. The
two p-type semiconductors act as emitter and collector respectively while the n-type semiconductor
acts as a base. This is shown in the figure below.
NPN BJT
In NPN BJT, p-type semiconductor is sandwiched between the two n-type semiconductors. The
two n-type semiconductors act as emitter and collector respectively while the p-type
semiconductor acts as a base. This is shown in the figure below.
41
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Current entering the emitter, base, and collector has the sign convention of positive while the
current that leaves the transistor has the sign convention of negative.
The emmitter-base junction is forward-biased since the the negative VEE is repelled by the
electrons in the emitter and they cross the lightly doped base.
Some electrons are lost in the few holes in base about 2% but 98% cross and enter the collector
region, the collector is forward biased to electrons from emitter due to positive VCC voltage
which attracts them.
42
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
region and PNP transistor also consists of two semiconductor junctions that have a thin n- doped
cathode region.
The flow of charge in a Bipolar transistor is due to the diffusion of charge carriers between the
two regions belonging to different charge concentrations. Regions of BJT are known as the base,
collector, and emitter.
The emitter region is highly doped when compared to other layers. Both collector and base layers
have the same charge carrier concentrations. Among these junctions, the base-emitter junction is
forward biased, and the base-collector junction is reverse biased. Forward biased means p-doped
region has more potential than the n-doped side.
CHAPTER 6
COMPUTER MEMORIES
Computer Memory types
43
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Semi-conductor memories are either random access memories (RAM) or read only memory
(ROM).
ROM is used to store non-volatile, permanent or semi-permanent data such as the basic input
output system (BIOS)
RAM is employed to store data temporarily and it may either be static or dynamic. Dynamic
RAM is much cheaper per bit stored than static RAM.
A semi-conductor memory consists of a matrix of memory cells and a number of digital circuits
that provide such functions as address selection and control.
The basic requirements for both ROM and RAM are that:
a. Any location in memory can be addressed
b. Data can be read out of an addressed location
c. For RAM, only data can be written into any location.
R
Y= Q
S Y=Q'
TRUTH TABLE
R S Q ACTION
0 0 Last Value No Change
0 1 1 Set
1 0 0 Reset
1 1 ? Forbidden
44
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
RAM structure
Memory wall
Categories of RAM
Data can be accessed in any RAM location hence the name random access memory.
RAM Types
1. SRAM
2. DRAM
RAM
SRAM DRAM
SRAM: Static Random Access Memory. It can store data as long as the power supply is on. It
does not need refreshing.
45
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
DRAM: Dynamic Random Access Memory. Dynamic means refreshing i.e. in order for it to
store data it needs refreshing
DDRAM (D2 RAM): Double data rate dynamic random access memory is a form of DRAM
which operates at twice the clock speed.
Cache: A type of RAM that is put between the CPU and main RAM to increase CPU speed.
Types of ROM
SECONDARY STORAGE
Hard disk
This is data stored in form of magnetic fields of magnetised and non-magnetic sports.
46
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Holographic memory
It uses the principle of light to store data, hence it is also called optical memory
Magnetic tapes
Data is recorded in form of magnetisable material e.g. iron oxide
Optical disk
It is also called laser. It uses laser beam technology and it consists of rotating disk which is
coated with a thick metal or some other metal or some other materials that is highly reflective
e.g. DVD’s, CD. Data is stored in form of lauds (I’s) and holes (0’s)
CHAPTER 7
NUMBER SYSTEMS
A number system relates quantities using symbols. The base or radix of a number system
represents the number of a basic symbols in that particular ne system.
In decimal system (Denary), the base is 10 because of the use of the numbers 0, 1,2,3,4,5,6,7,8 9.
This is a system that uses only two digits which are zero’s and ones.The binary number system is
in base 2 as it uses the digits 0 and 1.
The bit- it is the smallest unit of data that a computer uses. It can either be zero or one.
Decimal Binary
0 0
1 1
2 10
47
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
3 11
4 100
5 101
6 110
7 111
8 1000
Each digit in a binary number has a value or weight. The least significant bit has a value of 1,
the second from the right has a value of 2, next 4 e.t.c.
16 8 4 2 1
24 23 22 21 20
Example
The fraction is mutlplied by 2 and the carry in the integer posistion is written after each
multiplication. Then they are written in the forward order to get the correspondingbinary
equivalent.
Example
i) 54.4510
ii) 20.12510
48
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Example 1
Example 2
Example 3
Example 4
If the number has a fraction past, that part is multiplied by 8 and the carry in the integer part is
taken.
Example 1
Example 2
Example 3
49
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
To convert from octal to decimal, multiply each octal digit by its weight and add the resulting
products.
Example 1
Example 2
Example 3
Example 1
Example 2
Example 1
Example 2
Example 1
50
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
0 0 0000
1 1 0001
2 2 0010
3 3 0011
4 4 0100
5 5 0101
6 6 0110
7 7 0111
8 8 1000
9 9 1001
10 A 1010
11 B 1011
12 C 1100
13 D 1101
14 E 1110
15 F 1111
Example 1
Example 2
Each digit of the hexadecimal number is multiplied by its weight and the products are added.
Example 1
51
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Example 2
Example 3
Example 1
Example 2
Example 1
Example 2
Example
BINARY ARITHMATIC
Binary Addition
52
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
0+0=0
0+1=1
1+0=1
Example 1
10102+11012
Example 2
112+112
Exaple 3
101012+11012
Example 4
1111012+110112+10012
Binary subtraction
To perform binary subtraction, the following binary subtraction rules should be followed:
1-1 = 0
Examples
a. 1100012 - 1112
b. 101012-10112
101101012+1100112-111012
Examples
53
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
0101 1010
1001 0110
1101 0010
0001 1110
d. The last carry that arises from addition is said to be “end around carry”
e. End around carry should be added with the sum to get the final answer
f. If there is no end around carry, find out the one’s compliment of the sum and put a
negative sign before the result as the result is negative
Example
b. 310-710
d. If there is a carry, discard it, the remaining part will be the result (positive)
e. If there is no carry, find out the 2’s complement of the sum and put a negative sign before
the result (negative)
Example
1010-810
410-510
Binary Multiplication
0x0=0 1 x 0 =0
0x1 1 x 1= 1
Example
10112 x 1102
101012 x 11012
OCTAL ARITHMETIC
Octal Addition
Steps- add the numbers every time the sum adds up to 8 or more more there is a carry
Example
1238 +5278
Octal Subtraction
In octal system, when you borrow 1 it is equivalent to 8. When you use the borrow , the column
you borrow from is reduced by one.
55
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Consider the subtruction of 1 from 10 in decimal, binary and octal number systems.
Example
a. 468-78
b. 5328-1748
Hexadecimal Arithmetic
Examples
EA616 + 42416
A116 + 6C16
CHAPTER 8
BINARY CODES
Digital data is represented, stored, transmitted as group of binary bits. This group is known as
binary code.
Classification of codes
1. Weighted binary codes
In weighted binary codes, each position of a number represents a specific weight. The bits are
multiplied witht the weights indicated and the sum of this is weighted bits gives the equivalent
decimal digits.
2. Sequential codes
Sequential code is one where each succeeding code word is one number greater than its
preceding code word. Such a code facilitates mathematical manipulation of data.
In this code, each decimal digit 0 through 9 is coded by a 4-bit binary number. It is also called
the natural binary code because of the 842 and 1 weights attached to it.
Advantage of BCD
56
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Disadvantages
i) Less efficient than pure binary number in the sense that it requires more bits to
represent e.g. the decimal number 14 can be represented as 1110 in pure binary
but also as 00010100 in BCD.
ii) Arithmetic operations are more complex than they are in pure binary.
BCD Addition
It is performed by individually adding the corresponding digits of the decimal numbers
expressed in 4-bit binary groups starting from the least significant digit (LSD)
If there is no carry and the sum is not an illegal code, no correction is needed.
Examples
25 + 13
BCD Subtraction
Example
38 – 15
Example
Gray code
It is a code that is used to convert the decimal number into 8-bit binary sequence. This
conversion is carried in a manner that the adjacent digits of the decimal number differ from each
other one bit.
Examples
57
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
0 00000000
1 00000001
3 00000011
2 00000010
A B AƟB
0 0 0
0 1 1
1 0 1
1 1 0
Example
Alphanumeric Codes
Computers, printers and other devices must process both alphanumeric and alphabetic data.
Information coding systems have been developed to represent alphanumeric information as a
series of 1’s and 0’s (ones and zeros)
The characters to be coded are alphabets, numerals and special characters such as +, -, 1, *, ?
In order to code a character, a string of binary digits is used. In order to ensure uniformity in
coding two standard codes have been used.
These are:
ASCII
It is a 7-bit code that is used to code two types of information.
One type is the printable characters such as the alphabets, digits and special characters.
The other type is known as control character which represents the coded information to control
the operation of a digital computer and are non-printed.
58
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
EBCDIC
Parity bit: It is a binary digit 0 or 1 that is added to a group of data to be transmitted to make its
sum odd or even for checking its integrity for transmission or storage.
Odd Parity
With odd parity, the parity bit chosen so that the total number of 1’s including the parity bit is
odd.
e.g. 10000000
111110+1
10010010
Even Parity
The value of the bit is chosen so that the total number of 1’s in the code group including the
parity bit is even number
Example
10000001
10010011
If a computer uses an even parity and the number of 1-bit add up to odd number, then it will
know there was an error during transmission.
59
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
CHAPTER 9
A logic gate or just a gate is an electronic circuit which operates one or more signals to produce
an output signal.
The name logic gate is derived from the ability of such a device to make decision, in the sense
that it produces one output level when some combinations of input levels are present and a
different output level when other combinations of input levels are present.
The fact that the computers are able to perform very complex logic operations stems from the
way elementary gates are interconnected.
Inputs and outputs of logic gates can occur only in two levels which are termed as high or low,
true or false, on and off or simply 1 and 0.
Truth table
It is a table which has all the possible combination of input variables and the corresponding
outputs.
Logic gate truth table shows each possible input to the gate or circuit and the resultant output
depending upon the combination of the inputs.
A logic circuit with n numbers of inputs would have 2n possible inputs combinations of both on
and off.
Consider a 2 input logic circuit with input variables labelled A and B. There are four possible
input combinations of OFF and ON or 22.
A three input logic circuit would have 8 possible input combinations or 23.
Usually, the letters ABCD are used to label inputs and Q is used to label output. Gates are
identified by their functions e.g. NOT, AND, NOR, EX- OR (Exclusive –OR), EX-NOR
(exclusive NOR).
60
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Capital letters are normally used to make it clear that the term refers to a logic gate.
Some gate symbols hav e a circle on their output which means that their functions includes
inverting of the output.
AND gate
The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are
high. A dot (.) is used to show the AND operation i.e. A.B. Bear in mind that this dot is
sometimes omitted i.e. AB
OR gate
The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are
high. A plus (+) is used to show the OR operation.
61
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
NOT gate
The NOT gate is an electronic circuit that produces an inverted version of the input at its
output. It is also known as an inverter. If the input variable is A, the inverted output is known as
NOT A. This is also shown as A', or A with a bar over the top, as shown at the outputs. The
diagrams below show two ways that the NAND logic gate can be configured to produce a NOT
gate. It can also be done using NOR logic gates in the same way.
NAND gate
This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The outputs
of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a small
circle on the output. The small circle represents inversion.
NOR gate
This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The outputs of all
NOR gates are low if any of the inputs are high.
62
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
The symbol is an OR gate with a small circle on the output. The small circle represents
inversion.
EXOR gate
The 'Exclusive-OR' gate is a circuit which will give a high output if either, but not both, of its
two inputs are high. An encircled plus sign ( ) is used to show the EOR operation.
EXNOR gate
The 'Exclusive-NOR' gate circuit does the opposite to the EOR gate. It will give a low output if
either, but not both, of its two inputs are high. The symbol is an EXOR gate with a small circle
on the output. The small circle represents inversion.
63
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
i. F=A + AB
ii. F= +A + B
The above gates can be simplified first using boolean algebra or karnaugh map.
Sometimes given a logic function, one is required to simplify it first either using boolean algebra
rules or Karnaugh maps.
BOOLEAN ALGEBRA
It is a tool for simplifying digital circuits.
A0 A A0 0
A 11 A1 A
A A 1 AA 0
A A A AA A
AA
A B B A AB BA (Communicative Property)
Simplify the following expression as much as possible and represent on a logic circuit.
iii. A( A B) BA .
iv. A B AB
v. A + AB
64
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
vi. +A + B
Karnaugh Maps
Functions of the form ABC + BCD are called sum of products of inputs A, B and C and BCD is
a product of inputs B, C and D. SOP is also called a miniterm.
Functions of the firm (A+B+C)(A+B+C) are called products of sums (POS) because inputs A, B
and C are added before being multiplied. They are also called maxterms.
Miniterms are majorly used in maps called Karnaugh maps that can be used instead of Borlean
algebra.
3. For each group, move horizontal and vertically and write down the variables that are not
changing(constant)
B 0 1
Simplify
i) F= A + AB
ii) F= +A + B
65
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
AB
C 00 01 11 10
i. ABC+ABC+ABC+ABC
AB
CD 00 01 11 10
00
Exe:simplify the following
01 ABCD + ABCD + ABCD + ABCD + ABCD
11
i. ΣM(0,1,2,4,5,6,8,9,12,13,14)
ii. Ʃ m (0,1,2,3,8,9,10,11)
NAND and NOR gates are universal gates, meaning that any other gate can be represented as a
combination of NAND and NOR gates.
A NAND gate is an inverted AND gate. It has the following truth table:
Q = NOT( A AND B )
Truth Table
Input A Input B Output Q
0 0 1
0 1 1
1 0 1
1 1 0
NOT
A NOT gate is made by joining the inputs of a NAND gate together. Since a NAND gate is
equivalent to an AND gate followed by a NOT gate, joining the inputs of a NAND gate leaves
only the NOT gate.
67
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Q = NOT( A ) = A NAND A
Truth TABLE
Input A Output Q
0 1
1 0
AND
An AND gate is made by following a NAND gate with a NOT gate as shown below. This gives a
NOT NAND, i.e. AND.
Truth Table
Input A Input B Output Q
0 0 0
0 1 0
1 0 0
1 1 1
OR
If the truth table for a NAND gate is examined or by applying De Morgan's Laws, it can be seen
that if any of the inputs are 0, then the output will be 1. To be an OR gate, however, the output
must be 1 if any input is 1. Therefore, if the inputs are inverted, any high input will trigger a high
output.
Truth Table
Input A Input B Output Q
68
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
0 0 0
0 1 1
1 0 1
1 1 1
NOR
A NOR gate is simply an inverted OR gate. Output is high when neither input A nor input B is
high.
Truth Table
Input A Input B Output Q
0 0 1
0 1 0
1 0 0
1 1 0
XOR
An XOR gate is constructed similarly to an OR gate, except with an additional NAND gate
inserted such that if both inputs are high, the inputs to the final NAND gate will also be high, and
the output will be low. This construction has a propagation delay three times that of a single
NAND gate and uses four gates.
69
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
Truth Table
0 0 0
0 1 1
1 0 1
1 1 0
Alternatively, the B-input of the XNOR gate with the 3-gate propagation delay can be inverted.
This construction uses five gates instead of four.
XNOR
70
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
An XNOR gate is made by connecting the output of 3 NAND gates (connected as an OR gate)
and the output of a NAND gate to the respective inputs of a NAND gate. This construction
entails a propagation delay three times that of a single NAND gate and uses five gates.
Truth Table
0 0 1
0 1 0
1 0 0
1 1 1
Alternatively, the 4-gate version of the XOR gate can be used with an inverter. This construction
has a propagation delay four times (instead of three times) that of a single NAND gate.
71
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)
lOMoARcPSD|33726925
CHAPTER 10
EMERGING TRENDS IN ELECTRONICS
The era of electronics began with the invention of the transistor in 1947 and silicon-based
semiconductor technology. Seven decades later, we are surrounded by electronic devices and,
much as we try to deny it, we rely on them in our everyday lives.
The performance of silicon-based devices has improved rapidly in the past few decades, mostly
due to novel processing and patterning technologies, while nanotechnology has allowed for
miniaturization and cost reduction.
For many years silicon remained the only option in electronics. But recent developments in
materials-engineering and nanotechnology have introduced new pathways for electronics.
While traditional silicon electronics will remain the main focus, alternative trends are emerging.
These include:
1. 2-D electronics
Interest in the field started with the discovery of graphene, a structural variant of carbon. Carbon
atoms in graphene form a hexagonal two-dimensional lattice, and this atom-thick layer has
attracted attention due to its high electrical and thermal conductivity, mechanical flexibility and
very high tensile strength. Graphene is the strongest material ever tested.
2. Organic electronics
3. The development of conducting polymers and their applications resulted in another Nobel
prize in 2000, this time in chemistry. Alan J. Heeger, Alan G. MacDiarmid and Hideki
Shirakawa proved that plastic can conduct electricity.
72
Downloaded by Jack Ndungu (jacksnydar767@gmail.com)