Professional Documents
Culture Documents
Digital signal
Digital system only two discrete levels or values, low (0) or high (1). In case of positive
logic high is from 3.5-5v and low is 0-1v. In case of negative logic high is 0-1v and low is
3.5-5v. As long as voltage remains in these levels the state is considered low or high
depending on logic used. Digital system are less susceptible to noise due to the range in
logic voltages. High is also called as on and low as off.
Digital Electronics
For TTL
Vin = 0-0.8 (low)
Vin = 2-5 (high)
Vout = 0-0.4 (low)
Prof. H. Arya
Vout = 2.4-5 (high)
DEPT. OF AEROSPACE ENGINEERING
IIT BOMBAY
Y = A B C ...N
Y = A + B + C + ...N
Y = ABC...N Standard symbol for OR gate
Standard symbol for AND gate
A,B,C .. N are input variables (possible values only 0 &1 ) and Y is output. Y will be Output of OR gate is 1, if and only if one or more inputs are 1
high only when all the inputs are high (positive logic)
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.
1
Applied Mechatronics - ADE Applied Mechatronics - ADE
Y = A B C ...N; Y = ABC...N
Y = A + B + C + ...N
It is not a basic gate, and the operation can be performed using the basic It is EX-OR gate followed by a NOT
gates - AND, OR and NOT.
Y = A B + AB
Standard notation
Y = AB Y = A B + AB Standard notation Y = A o B
Y = A B + AB
2
Applied Mechatronics - ADE Applied Mechatronics - ADE
Any boolean expression can be converted from AND to OR and vice versa using
De Morgans theorem
A + B = A.B
A.B = A + B
A.B.C = A + B + C
This can be extended to any number of variables.
Any arbitrary logical function can be expressed in one of the following form
Sum-of-products form (SOP)
Product-of-sums form (POS)
These forms help in designing the circuits having standard components
3
Applied Mechatronics - ADE Applied Mechatronics - ADE
Y = AB + A C + BC Y = AB A C BC
Y = AB + A C + BC
By De Morgans theorem
Y = AB AC BC
Y = Y1 Y2 Y3 Y1 = AB; Y2 = AC; Y3 = BC
Y = ( A + C)(A + B)(B + C)
First level using only OR gates and second level using AND gate
Y = ( A + C) + ( A + B) + (B + C)
Y = (A + C)(A + B)(B + C)
Y = ( A + C) + ( A + B) + (B + C)
Y = YA + YB + YC
YA = (A + C); YB = (A + B); YC = (B + C)
4
Applied Mechatronics - ADE Applied Mechatronics - ADE
Y = (A + BC)(B + CA ) If each term in SOP or POS form contains all the literals then it is in standard
form.
Y = A C + BC Y = (A + BC)(B + CA )
Y = (A + C)(B + C) Y = ( A + C)(A + B)(B + C) Y = AB + A C + BC
Y = AB (C + C ) + AC ( B + B ) + ( A + A) BC Theorem 1.7
This is the simplified form of original equation and this uses the
least number of devices Y = ABC + ABC + A BC + ABC
5
Applied Mechatronics - ADE Applied Mechatronics - ADE
Karnaugh Map representation of logical functions Karnaugh Map representation of logical functions
6
Applied Mechatronics - ADE Applied Mechatronics - ADE
N-bit comparator
It is a combination of combinational digital circuits. The output depends on the input Asynchronous: A sequential circuits whose output depends upon the sequence of
sequence. The output depends on the past history and it is given in some form of input signals. Output will be affected whenever input changes.
feed back to the input.
Synchronous: A sequential circuits whose output can be defined from the
knowledge of timing signal. Output will be affected only during timing signal. In
general timing signal is called as clock signal.
Inputs Outputs
Combinational
circuit
Memory Inputs Outputs
elements Combinational
circuit
Memory
elements
Clock signal
7
Applied Mechatronics - ADE Applied Mechatronics - ADE
J-K flip-flop D-type flip-flop
The uncertainty state i.e. S = 1 and R = 1 in S-R flip flop can be eliminated by J-K
It uses only one input referred as D-input or data input. The output at the end of
flip flop. Inputs J & K are ANDed with output to obtain S & R input. This will work for
clock pulse equals the input Dn before the clock pulse. The output is available
all possible combination of J & K inputs. When J & K = 0, the output is maintained
after one clock cycle and it is also known as delay flip flop.
from the previous state. When J & K = 1, the output is inverted from the previous
state. In other states output follows input.
A register is a group of flip-flops to store a group of bits (word). For storing n-bit Serial data - one bit at a time or with every clock pulse. One signal line is sufficient.
word n flip-flops are required. Data is applied at D-inputs and output is available More clock pulses for a given data.
at Q with the rising edge of the pulse. Preset and clear is used to set or reset the Parallel data - many bits at a time and same number of lines as number of bits. In one
output. clock pulse a word can be represented.
8
Applied Mechatronics - ADE Applied Mechatronics - ADE
Registers Shift register
Registers are classified depending upon the way input is given and output is Master-slave flip-flops are cascaded to form shift register. The circuit shown is a
retrieved. Four possible mode of operations : universal shift register. Generally, preset is set high to make output 0, before data
transfer. After this data is fed serial or parallel, depending on requirements.
1) Serial-in, serial-out (SISO)
2) Serial-in, parallel-out (SIPO)
3) Parallel-in, serial-out (PISO)
4) Parallel-in, parallel-out (PIPO)
A register which can work in all the above four modes is called as universal
register
The output of Q0 (LSB) changes at every falling edge of the input pulse. The output Mechanical switches have bouncing characteristics- multiple contacts. It also
of Q1 changes at every falling edge of Q0 and so on. The output at is 100 (i.e. 4). A means multiple change in state. Switch position decided 1 as input in one of the
decoder circuit is required to get the decimal number. 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.
9
Applied Mechatronics - ADE Applied Mechatronics - ADE
What is ADC?
Most of the sensors output is analog. Computers, micro-controller etc understands digital. ADC is a
system which converts the analog voltage into equivalent digital number. Analog to digital converter
(ADC) is an interface between analog world (voltages) and digital world (computer). The digital data
can be stored, manipulated for further use. Less storage space compared to mechanical data
storage devices - strip charts. High speed data acquisition possible.
Digital to Analog Conversion - These are available as 8-bit, 12-bit, 24-bit etc. also called as resolution. Data available at discrete
time step.
DAC
8 bit - 256 (28)
12 bit - 4096 (212)
Analog to Digital Conversion - 16 bit - 65536 (216)
ADC Input range will be divided in above number of steps.
10
Applied Mechatronics - ADE Applied Mechatronics - ADE
Monostable mode
Internal Block Diagram - 555 Monostable means only one state stable - off state. When triggered it will go to other state
temporarily. This can generate a single pulse when triggered. This can be used to switch on the
circuit/device for a specified time, whenever triggered.
Astable multivibrator
11