LVDT, Adderes, Multiplexers
LVDT, Adderes, Multiplexers
A position or linear
displacement sensor is a device whose output signal represents the distance an object has
traveled from a reference point. A displacement measurement also indicates the direction of
motion (See Figure 1).
A linear displacement typically has units of millimeters (mm) or inches (in.) and a negative or
positive direction associated with it.
The main advantage of the LVDT transducer over other types of displacement transducer is
the high degree of robustness. Because there is no physical contact across the sensing
element, there is no wear in the sensing element.
Because the device relies on the coupling of magnetic flux, an LVDT can have infinite
resolution. Therefore the smallest fraction of movement can be detected by suitable signal
conditioning hardware, and the resolution of the transducer is solely determined by the
resolution of the data acquisition system.
Working Principle of LVDT
The working of LVDT is based on the principle of Faraday’s law of
electromagnetic induction that states that “the net induced emf in the circuit is
directly proportional to the rate of change of magnetic flux across the circuit,
and the magnetic flux of the coil wounded with wires can be changed by
moving a bar magnet through the coil.”As the primary winding of the LVDT is
connected to the AC power supply, the alternating magnetic field is produced
in the primary winding, which results in the induced emf the secondary
windings. Let us assume that the induced voltages in the secondary windings
S1 and S2 be E1 and E2 respectively. Now, according to Faraday’s Law, the
rate of change of magnetic flux, i.e., dØ/dt is directly proportional to the
magnitude of induced emf’s, i.e., E1 and E2. Hence, the induced emf in the
secondary windings will be more if the value of ‘dt’ will be low (dØ/dt ∝ E1
and E2), and the low value of ‘dt’ implies that the soft iron core present inside
the LVDT is moving faster. Thus, emf of large magnitude will induce in the
secondary windings S1 and S2 if the movement of the core is faster inside the
LVDT.
The distinguishing factor of Boolean algebra is that it deals only with the
study of binary variables. Most commonly Boolean variables are presented
with the possible values of 1 ("true") or 0 ("false"). Variables can also have
more complex interpretations, such as in set theory. Boolean algebra is also
known as binary algebra.
KEY TAKEAWAYS
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.
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
NOR gate
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.
The NAND and NOR gates are called universal functions since with either one the
AND and OR functions and NOT can be generated.
Note:
The combinational logic circuits have no feedback, and any changes to the
signals being applied to their inputs will immediately have an effect at the
output. In other words, in a Combinational Logic Circuit, the output is
dependant at all times on the combination of its inputs. Thus a combinational
circuit is memoryless.
So if one of its inputs condition changes state, from 0-1 or 1-0, so too will the
resulting output as by default combinational logic circuits have “no memory”,
“timing” or “feedback loops” within their design.
It can easily be seen that the bit in the right-hand column (the "ones" column) is a 1 only when the
addends are different. XORing the addends together can therefore give us the right-hand bit. This bit
is called the sum and is the modulo-2 sum of the addends (i.e. the solution if you loop round to zero
again once you pass one).
The left-hand bit reads 1 only when both addends are 1, so an AND gate can be used to generate
this bit, called the carried bit. As a summary:
The diagram to the left shows the complete half adder with the addends being represented by A
and B, the sum represented by S and the carried bit represented by C.
The truth table is as follows (the number in the brackets are the weights of the bits - each
addend is one, as is the sum - the carried bit is two)
A version of this diagram showing the two half adder modules outlined is available here. The output
of the full adder is the two-bit arithmetic sum of three one-bit numbers.
The logic expressions for this full adder are:
All combinations resultings in one (100, 010, 001) produce a high at the sum output, as
the presence of only one high at the second XOR gate (the first gate gives a low when A
and B are low and a high when either A or B is high) gives a high output at the sum
output. The fact that only one input is ever high prevents either AND gate from going
high and give a high Cout.
All combinations resulting in two (011, 101, 110) produce a high carry out and a low sum:
o 011 sends the first XOR gate high as A and B are different. Combined with the high
at Cin, this sends the top AND gate high and therefore the carry output high as well.
The presence of two highs at the second XOR gate hold the sum low.
o 101 works in exactly the same way as 011, as A and B are interchangeable.
o 110: The high A and B force the first XOR low; this low, combined with the low from
Cin gives a low at the sum. The highs at A and B send the lower AND gate high and
therefore Cout is high.
When the inputs are 111, the first XOR gate is low due to the two high inputs, and the
second XOR gate goes high, as it has one low input (from the first XOR gate) and one
high input (from the Cin input). This gives a high sum output. The fact that both A and B
are high triggers the lower AND gate, and the Cout output goes high as well.
The truth table for a full adder is given below with the weights of the inputs and outputs:
If A and B are both high then the AND gate connected to them gives a high output, but the
XOR gate gives a low, forcing the other AND gate low. If the "sum" output of the first half
adder is high, then one of A or B must be low, meaning that the AND gate connected to
them is force low. This means that two inputs to the OR gate combining the half adder carry
outs can never both be high, this gate can be replaced with an XOR gate (OR and XOR
differ only when both inputs are high). This means that only two kinds of gates are needed,
and a full adder can be realised with only two ICs.
These can be run in stages, with the carry out of one stage driving the carry in of the next.
This is discussed in the next section.
Multiplexer is a combinational circuit that has maximum of 2n data inputs, ‘n’ selection
lines and single output line. One of these data inputs will be connected to the output
based on the values of selection lines.
Since there are ‘n’ selection lines, there will be 2n possible combinations of zeros and
ones. So, each combination will select only one data input. Multiplexer is also called
as Mux.
4x1 Multiplexer
4x1 Multiplexer has four data inputs I3, I2, I1 & I0, two selection lines s1 & s0 and one
output Y. The block diagram of 4x1 Multiplexer is shown in the following figure.
One of these 4 inputs will be connected to the output based on the combination of
inputs present at these two selection lines. Truth table of 4x1 Multiplexer is shown
below.
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
From Truth table, we can directly write the Boolean function for output, Y as
Y=S1′S0′I0+S1′S0I1+S1S0′I2+S1S0I3Y=S1′S0′I0+S1′S0I1+S1S0′I2+S1S0I3
We can implement this Boolean function using Inverters, AND gates & OR gate.
The circuit diagram of 4x1 multiplexer is shown in the following figure.
We can easily understand the operation of the above circuit. Similarly, you can
implement 8x1 Multiplexer and 16x1 multiplexer by following the same procedure.
8x1 Multiplexer
16x1 Multiplexer
8x1 Multiplexer
In this section, let us implement 8x1 Multiplexer using 4x1 Multiplexers and 2x1
Multiplexer. We know that 4x1 Multiplexer has 4 data inputs, 2 selection lines and one
output. Whereas, 8x1 Multiplexer has 8 data inputs, 3 selection lines and one output.
So, we require two 4x1 Multiplexers in first stage in order to get the 8 data inputs.
Since, each 4x1 Multiplexer produces one output, we require a 2x1 Multiplexer in
second stage by considering the outputs of first stage as inputs and to produce the final
output.
Let the 8x1 Multiplexer has eight data inputs I7 to I0, three selection lines s2, s1 & s0 and
one output Y. The Truth table of 8x1 Multiplexer is shown below.
S2 S1 S0 Y
0 0 0 I0
0 0 1 I1
0 1 0 I2
0 1 1 I3
1 0 0 I4
1 0 1 I5
1 1 0 I6
1 1 1 I7
We can implement 8x1 Multiplexer using lower order Multiplexers easily by considering
the above Truth table. The block diagram of 8x1 Multiplexer is shown in the following
figure.
The same selection lines, s1 & s0 are applied to both 4x1 Multiplexers. The data inputs
of upper 4x1 Multiplexer are I7 to I4 and the data inputs of lower 4x1 Multiplexer are I3 to
I0. Therefore, each 4x1 Multiplexer produces an output based on the values of selection
lines, s1 & s0.
The outputs of first stage 4x1 Multiplexers are applied as inputs of 2x1 Multiplexer that
is present in second stage. The other selection line, s2 is applied to 2x1 Multiplexer.
If s2 is zero, then the output of 2x1 Multiplexer will be one of the 4 inputs I3 to
I0 based on the values of selection lines s1 & s0.
If s2 is one, then the output of 2x1 Multiplexer will be one of the 4 inputs I7 to
I4 based on the values of selection lines s1 & s0.
Therefore, the overall combination of two 4x1 Multiplexers and one 2x1 Multiplexer
performs as one 8x1 Multiplexer.
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
If A and B are both high then the AND gate connected to them gives a high output, but the
XOR gate gives a low, forcing the other AND gate low. If the "sum" output of the first half
adder is high, then one of A or B must be low, meaning that the AND gate connected to
them is force low. This means that two inputs to the OR gate combining the half adder carry
outs can never both be high, this gate can be replaced with an XOR gate (OR and XOR
differ only when both inputs are high). This means that only two kinds of gates are needed,
and a full adder can be realised with only two ICs.
These can be run in stages, with the carry out of one stage driving the carry in of the next.
This is discussed in the next section.