AE 242 Aerospace Measurements Laboratory
AE 242 Aerospace Measurements Laboratory
Aerospace Measurements
Laboratory
Number system
( N) b d n 1d n 2 ...d i ....d1d 0 d 1d 2 ...d f ...d m
N - a number
b - radix or base of the number system
n - number of digits in integer portion
m - number of digits in fractional portion
dn-1 - most significant digit (msd)
d-m - least significant digit (lsd)
Decimal number can be obtained by multiplying di and d-f by their weights and
adding the terms. Weights are equal to bi for the terms on the left of radix point
and b-f for the terms on the right of radix point.
Binary number system
Number with a radix two or base two
only two numbers (0 and 1) are used to represent numbers
0 1 0 1
Binary number
addition + 1 1 1 1
1 0 1 0 0
Binary arithmetic
Binary subtraction
Minuend Subtrahend Difference Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
1 0 1 1 Minuend
Binary number - 0 1 1 0 Subtrahend
subtraction 0 1 0 1 Difference
Binary arithmetic
Binary multiplication : Similar to decimal multiplication
1 0 0 1 Multiplicand
x 1 1 0 1 Multiplier
1 0 0 1
0 0 0 0
1 0 0 1
1 0 0 1 .
1 1 1 0 1 0 1 Final Product
1101 Quotient
Divisor 1001)1110101 Dividend
1001
1011
1001
1001
1001
0000
Answer : 1101
2’s Complement arithmetic
Problem of subtraction can be converted in to a addition problem. This
eliminates additional circuit for subtraction.
For TTL
Vin = 0-0.8 (low)
Vin = 2-5 (high)
Vout = 0-0.4 (low)
Vout = 2.4-5 (high)
Y A B C ...N
Y ABC...N Standard symbol for AND gate
A,B,C .. N are input variables (possible values only 0 &1 ) and Y is output. Y
will be high only when all the inputs are high (positive logic)
Y A B C ...N
Standard symbol for OR gate
NOT operation
NOT gate also known as inverter. It is one input (A) and one output (Y) device.
Output is complement of input. Bubble in the circuit always denotes inversion in
digital circuits.
Basic gates in digital circuitry are AND, OR and NOT. Using these
three basic gates any Boolean (logic expression) can be realized.
Other type of gates obtained using basic gates are NAND, NOR, XOR,
XNOR
NAND operations
NOT-AND operation is known as NAND, it is a AND gate followed by a NOT
gate. Complemented output of AND. Standard symbol is AND with bubble.
Y A B C ...N; Y ABC...N
Y A B C ...N
Y A B AB
Standard notation B
Y A
Y A B AB
Digital circuit classification
Mainly two type of classification in digital circuits. Combinational logic
circuits and Sequential logic circuits. Combinational logic circuits only
depends on the combination of the gates. Output at any time are
determined from the present combination of inputs. Where as sequential
logic circuit depends on the combination of gates and sequence of input, it
is history dependent. Sequential circuit employs storage elements in
addition to logic gates.
n Combinational m
inputs Circuit outputs
Half adder
A logic circuit adding two bits is
called as half adder. A and B are
two inputs. S is sum and C is carry
as output.
Sum S AB
Carry C AB
1
0 B
1
0 A
0 S
1
0 C
Full adder
In a full adder carry coming from low order bit is also considered. Input is An,
Bn and Cn-1 Output is Sn and Cn
Sn A n Bn Cn 1 A n Bn Cn 1 A n Bn Cn 1 A n Bn Cn 1
C n A n Bn Bn C n 1 A n C n 1
SUM ( A B) Cin
N-bit adder
n Combinational m
inputs Circuit outputs
Sequential Logic
It is a combination of combinational digital circuits. The output depends
on the input sequence. The output depends on the past history and it is
given in some form of feed back to the input.
Inputs Outputs
Combinational
circuit
Memory
elements
Asynchronous & Synchronous
Asynchronous: A sequential circuits whose output depends upon the
sequence of input signals. Output will be affected whenever input
changes.
Inputs Outputs
Combinational
circuit
Memory
Clock signal elements
Edge triggered flip flops
Clock signal: Output changes only during the transition of the
signal. Rising edge or falling edge. After the transition output is
immune to any input changes.
Clock signal
It is a periodic train of clock pulses, generated by system clock and
used for synchronization of the events. Or the outputs are affected only
by application of clock pulse. Output will change with 0, or 1 or rising
edge or falling edge.
Y A B C ...N
Q’
R
S
NAND operations
NOT-AND operation is known as NAND, it is a AND gate followed by a NOT
gate. Complemented output of AND. Standard symbol is AND with bubble.
Y A B C ...N; Y ABC...N
R
S
Sequential Logic
X
Bounce elimination switch
Mechanical switches have bouncing characteristics- multiple contacts. It
also means multiple change in state. Switch position decided 1 as input
in one of the terminals. At t = 0, switch is thrown from A to B. At t=0+ at
S will be Vcc and at time t1 R will be 0. In this position output is immune
to any change at R and hence even at t2, t3 etc output is maintained.
Master-slave flip flop
Output is isolated from the input by applying out of phase clock
signal (positive level triggered)
Edge triggered flip flops
Edge triggered flip flops
Edge triggered flip flops
Edge triggered flip flops
J-K flip-flop
Truth table for J-K flip flop J-K flip flop using NAND gates
Counters
Digital counters are used for counting the number of events. n-flip flop
can count 2n number. A 3-bit counter can count from 0 to 7. Flip-flop
used are toggle type, toggles the output at falling edge.
f) Master-slave J-K
QM - Master and Q -
slave, (K=1)
Registers
A register is a group of flip-flops to store a group of bits (word). For
storing n-bit word n flip-flops are required. Data is applied at D-inputs
and output is available at Q with the rising edge of the pulse. Preset
and clear is used to set or reset the output.
Data representation
Serial data - one bit at a time or with every clock pulse. One signal line is
sufficient. More clock pulses for a given data.
Parallel data - many bits at a time and same number of lines as number of
bits. In one clock pulse a word can be represented.