EE 101 Basic Electronics
EE 101 Basic Electronics
Contents
1 Number Systems 3
2 Basic Logic 7
4 Combination Circuits 15
4.1 Karnaugh Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7 Multiplexer 19
1
EE 101 : Basic Electronics
The following is a depiction of the author’s life in an accurate and succinct manner.
Page 2 of 19
EE 101 : Basic Electronics
1 Number Systems
Whenever we write any number, it is imperative to also specify the base since the face values
for e.g. “72” corresponds to different actual values as per the base.
In a positional notation, the leftmost digit is the MSD. The rightmost is the LSD.
The maximum number that we can represent using a binary system with radix ‘r’ = 2r − 1.
Consider, the binary point in a number. Then, to the left the positional weights vary
as 21 , 22 , 23 , . . . while to the right they vary as 2−1 , 2−2 , 2−3 , . . ..
Converting octal to binary : Replace each octal digit by its equivalent 3-bit sequence.
Note that the octal point becomes the binary point.
(673.12)8 = (110111011.001010)2
You might want to replace the leading zero on getting the binary representation, and it is
fine to do so. However, while going from binary to octal, we must make groups of three
starting from the binary point.
Suppose we wanted to find out the binary representation of the number 598610 . Then using
repetitive division by 2 takes 13 divisions while using division by 16 takes just 3!
Page 3 of 19
EE 101 : Basic Electronics
Sometimes, we wish to say “DON’T CARE” while talking about some of the bits. The
notation used in such a case is an 6.
In BCD, it is customary to leave a space between two distinct 4-bit sequences to avoid
confusion with the binary system.
Page 4 of 19
EE 101 : Basic Electronics
Doubt : Does saying something such as ‘4.1 bytes’, ‘2.75 bytes’ make sense?
Although this can be done for MB, GB, this can’t be done for a byte. This is more of
a standard.
In general, one can also find the r’s Complement of a number, read about it
here.
Imp point : In 2’s complement, the final carry, if any, has to be discarded.
If there is no carry, the answer found is negative, and we need to find its 2’s
complement. (Will the final reported answer contain a - sign?).
Doubt : What exactly is the point of 1’s and 2’s complement? How does the
computer do it actually?
Binary: Plusses and Minuses (Why We Use Two’s Complement) - Computerphile.
Short answer : we use it to represent negative numbers.
Page 5 of 19
EE 101 : Basic Electronics
Imp point : To find out the logical relation satisfied by a combination of logic gates,
start from right to left, i.e. from the last relation and then keep breaking them
down.
To find out the output given the inputs as well as the gate structure, start from left
to right. Imp point : EXOR gate has the following logical relation - A⊕B = AB+BA
Read more about Logic Gates here; this also contains a few good examples to try out.
Page 6 of 19
EE 101 : Basic Electronics
2 Basic Logic
The concept of ENABLE and DISABLE :
The input that is ‘ENABLED’ is in its active state while the one is ‘DISABLED’ is in its
inactive state.
Sometimes, we see some components being drawn with a bubble. This bubble denotes in-
version.
For example, let’s say you have a shift register that has a chip enable pin, CE.
If you see the CE pin anywhere in the datasheet with a line over it like this, CE, then
that pin is active-low. The CE pin would need to be pulled to GND in order for the
chip to become enabled. If, however, the CE pin doesn’t have a line over it, then it is
active high, and it needs to be pulled HIGH in order to enable the pin.
Page 7 of 19
EE 101 : Basic Electronics
Using a K-map, expressions with two to four variables are easily minimized. Expres-
sions with five to six variables are more difficult but achievable, and expressions with
seven or more variables are extremely difficult (if not impossible) to minimize using a
K-map.
Page 8 of 19
EE 101 : Basic Electronics
A B C x
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
A table that goes through ‘n’ states (normally n shall be of the form 2k is known as a
MOD-n truth table.
X =A+B
We read this as ‘X is true if at least one of A,B is true’.
Page 9 of 19
EE 101 : Basic Electronics
A B X=A+B
0 0 0
0 1 1
1 0 1
1 1 1
A nice application : Suppose we want to design an alarm that runs off if either the
temperature or the pressure exceeds the limit.
Applying a ‘CONSTANT HIGH’ through the controllable input for an OR gate will
DISABLE the gate since it will always lead to a HIGH output.
X =A·B
We read this as ‘X is true if both A,B are true’.
Applying a ‘CONSTANT LOW’ through the controllable input for an OR gate will
DISABLE the gate since it will always lead to a LOW output.
A B X=A·B
0 0 0
0 1 0
1 0 0
1 1 1
X = Ā
We read this as ‘X is true if A is false’.
The NOT gate ‘INVERTS’ the input.
The NOT Gate always has only a single input, and the output is always the opposite of
the input.
Page 10 of 19
EE 101 : Basic Electronics
Digital Buffer
A digital buffer (or a voltage buffer) is an electronic circuit element that is used
to isolate the input from the output, providing either no voltage or a voltage that
is same as the input voltage. It draws very little current and will not disturb the
original circuit.
A voltage buffer has a very high input impedance (the opposition to current
flow viewed from the load). The high input impedance is the reason a voltage buffer
is used. A circuit with a voltage buffer will always draw a little amount of current
because of the high input impedance of the buffer. As a result, the power source will
not be affected.
The digital buffer is important because it can control the on and off of data
transmission, which is used widely in the world of registers (sophisticated data storage
device) and buses (data transferring device).
For an IC, The first and foremost thing to note is that the VCC always has to be con-
nected to positive voltage while the ground is connected to zero voltage.
Page 11 of 19
EE 101 : Basic Electronics
Hence, NAND Gates are used as the building blocks since they have the least number of
inputs.
They are preferred over AND gates for the same reason.
Note that the making of a NAND gate requires only 4 transistors, so does making a NOT
gate. This is how it is done.
Diode-Transistor Logic (DTL)
Diode–transistor logic (DTL) is a class of digital circuits that is the direct ancestor
of transistor–transistor logic. It is called so because the logic gating function (e.g.,
AND) is performed by a diode network and the amplifying function is performed by
a transistor.
Whenever an inverter is present, the output is shown to be the input with a bar written
over it.
While drawing a logic circuit, remember to draw a jumper to show that two logic lines
do not intersect.
♠ Is there a way to know if the number of gates being used is the minimum?
There is something known as The Redundancy Theorem or The Consensus Theorem.
Also, alternatively, Karnaugh Maps can be used for this. Read more about how this is done
Page 12 of 19
EE 101 : Basic Electronics
Page 13 of 19
EE 101 : Basic Electronics
(X + Y ) · (X + Z) = X + Y · Z
X · (X + Y ) = X
Duality in logic.
For Sum of Products, look at the 1s in the output column of the truth
table.
For Product of Sums, look at the 0s in the output column of the truth table.
Page 14 of 19
EE 101 : Basic Electronics
4 Combination Circuits
4.1 Karnaugh Maps
♣Imp point : While moving from one row/column to another in a Karnaugh map, one must
always take care that only one of the variables is complemented.
allowed : AB → AB → AB → AB
not allowed : AB → AB → AB → AB
Convention : We shall use the following order : AB → AB → AB → AB
♣Imp point : The indices of the cells of a Karnaugh map are decided by the binary value
produced at the cell. Put a 0 whenever a variable appears in the form of a complement and
a 1 when it appears naturally. 1
ABCD ≡ (0101)2 ≡ 0 + 4 + 0 + 1 = 5
♣Imp point : Loops can help a lot in simplifying a Boolean expression. Loops of 1s can
consist of 2,4,8 elements.
A Beautiful Resource : Rules for Looping in K-Maps
♣Imp point : The final solution expression is to be generated by finding the OR sum.
1
There is a bit of ambiguity in deciding whether a complement is to be given the value of a 0 or a 1. This
will change the cell indices for sure, but it probably should not affect the other properties.
Page 15 of 19
EE 101 : Basic Electronics
• Wikipedia page
Page 16 of 19
EE 101 : Basic Electronics
The complexity of the IC depends on the scale of integration (the number of logic gates
in the IC).
Levels of IC integration
The Dual Inline Package (DIP) contains two parallel lines of pins. The pins are num-
bered counter-clockwise, when viewed from the top. The actual chip is much more smaller
than the DIP. The silicon chip is connected to the pins of the IC by very fine (thin) wires.
Dual Inline Package - Wikipedia page.
ICs are also categorized on the basis of type of components used in their circuits.
Bipolar ICs use NPN and PNP transistors.
Unipolar ICs use MOSFET and JFET (transistors).
Differences between the TTL devices is limited to electrical characteristics such as power
dissipation and switching speed. Pin layout and logic operations remain the same.
Logic Levels
Logic gate circuits are designed to input and output only two types of signals: “high” (1)
and “low” (0), as represented by a variable voltage: full power supply voltage for a “high”
state and zero voltage for a “low” state. In a perfect world, all logic circuit signals would
exist at these extreme voltage limits, and never deviate from them (i.e., less than full voltage
for a “high,” or more than zero voltage for a “low”).
However, in reality, logic signal voltage levels rarely attain these perfect limits due to stray
voltage drops in the transistor circuitry, and so we must understand the signal level limita-
tions of gate circuits as they try to interpret signal voltages lying somewhere between full
supply voltage and zero.
Logic Signal Voltage Levels
Page 17 of 19
EE 101 : Basic Electronics
The basic troubleshooting tools are the logic scope, oscilloscope and the logic pulser.
Page 18 of 19
EE 101 : Basic Electronics
7 Multiplexer
Figure 1: A multiplexer
A multiplexer works as a Data Selector. The short form used for it is MUX.
The SELECT inputs decide which input gets transmitted to the output.
Suppose there is only one SELECT input, ‘S’. If S is 0, I0 will be transmitted, while if
S is 1, I1 will be transmitted.
For S0 = 0, S1 = 0, Z = I0
For S0 = 0, S1 = 1, Z = I1
For S0 = 1, S1 = 0, Z = I2
For S0 = 1, S1 = 1, Z = I3
Page 19 of 19