Formulas
Formulas
co
1
www.gradeup.co
Digital Electronics
IMPORTANT FORMULAS TO REMEMBER
A number system with base ‘r’, contents ‘r’ different digits and they are from 0 to r –1.
Decimal to other codes conversions: To convert decimal number into other system with base ‘r’,
divide integer part by r and multiply fractional part with r.
Octal Binary and Binary to Octal: Same procedure as discussed above but here group of 3 bits is
made.
Codes:
• In BCD code each decimal digit is represented with 4 bit binary format.
2
www.gradeup.co
Eg : (943)10 1001 0100 0011
9 4 9 BCD
Gray Code: It is also called minimum change codes or unit distance code or reflected code.
3
www.gradeup.co
To determine(r – 1)’s complement: First write maximum possible number in the given system and
subtract the given number.
Example:
7777
7’s Complement −2456
5321
5321
8’s Complement +1
5322
010.001
2’s complement +1
010.010
Data Representation:
→ 0 to 2n−1 +5 101
−5 Not possible
4
www.gradeup.co
−6 1 110 1 0000110
sign bit sign bit
with 4 bits with 8 bits
( )
→ − 2n−1 − 1 to + 2n−1 − 1( )
+6 0110 −6 1 001
sign bit 1' s complement 6
+6 0110 −6 1 001
sign bit 1' s complement 6
In any representation + ve numbers are represented similar to +ve number in sign magnitude.
Boolean Laws:
Commutative
xy =yx xy =yx
Associative x ( y z) = ( x y ) z x ( y z) = ( x y z)
Distribute x ( y z) = ( x y ) ( x z) x ( y z) = ( x y ) ( x z)
Absorption x (x y) = x x (x y) = x
Combining (x y) (x y) = x (x y) (x y) = x
DE Morgan’s (x y) = x y (x y) = x y
Dual of a function:
The dual of logic function, f, is the function fD derived from f by substituting a for each , a for
each a 1 for each 0, and a 0 for each 1.
f (a,b) = (a b) (b c) fD (a,b) = (a b) (b c)
5
www.gradeup.co
Flip Flops:
RS Latch
SR Q Q Comment
00 QQ Hold
01 01 Reset
10 10 Set
11 00 Illegal
Where Q is the next state and Q is the current state.
JK Flip Flop
JK Q Q Comment
00 QQ Hold
01 01 Reset
10 10 Set
11 QQ Toggle
T – Flip Flop:
6
www.gradeup.co
T Q Q Comment
0 QQ Hold
1 QQ Reset
D – Flip Flop:
Excitation tables:
SR JK D T
00 0X 00 0X 00 0 00 0
01 10 01 1X 01 1 01 1
10 01 10 X1 10 0 10 1
11 X0 X0 X0 11 1 11 0
• For twisted ring counter = “2n” (Johnson counter/switch tail ring counter).
COMBINATIONAL CIRCUITS
7
www.gradeup.co
8
www.gradeup.co
Multiplexer:
• It can be used to implemented Boolean function by selecting select lines as Boolean variables.
• For implementing “n+1” variables Boolean function 2n × 1 MUX + NOT gate is required.
• For implementing “n+2” variables Boolean function 2n × 1 MUX + Combinational circuit is required.
Decoder:
• used to implement the Boolean function. It will generate required min terms @ output and those
terms should be “OR” ed to get the results.
• Suppose it consists of more min terms then connect the max terms to NOR gate then it will give
the same output with less no. of gates.
AND OR
Fixed Programmable PROM
Programmable Fixed PAL
Programmable Programmable PLA
9
www.gradeup.co
Asynchronous Sequential circuits do not use a clock and can change their output state as fast as
the signal path's propagation delay from the input allows. This means they can be faster than
Synchronous Sequential circuits. However, they are considerably more likely to suffer from race
conditions (inputs arriving at different times causing different output states) and intermediate
output states (as the outputs change from one state to the next final state) than Synchronous
Sequential circuits:
Synchronous Sequential circuits: Synchronous Sequential circuits use a clock signal to alleviate
the two problems mentioned above. The outputs can only change state with the clock and are designed
such that all propagation delays are satisfied before the outputs are allowed to change. This however
makes them potentially slower (because the whole circuit must run at the speed of the slowest path
in it) and consumes significantly more power due to the extra circuitry required by distributing the
clock to all flip-flops, and the continual switching.
1. Clock input is applied to LSB FF. The output 1. Clock input is common to all FF.
of first FF is connected as clock to next FF.
IOH I
• Fan out of a logic gate = or OL
IIH IIL
• Power Dissipation,
1 + _ I
PD = VCC ICC = Vcc
2
10
www.gradeup.co
• For TTL floating input considered as logic “1” & for ECL it is logic “0”.
• “MOS” mainly used for LSI & VLSI. Fan out is too high.
• Gates with open collector output can be used for wired AND operation (TTL).
• Gates with open emitter output can be used for wired OR operation (ECL).
• ROM is nothing but combination of encoder & decoder. This is non volatile memory.
• DRAM: info stored in terms of charge on capacitor. Used Transistors & Capacitors.
• No. of memory ICs of capacity 1k × 4 required to construct memory of capacity 8k × 8 are “16”
DAC
1
• FSV = V R 1 −
2
Step size V R / 2n 1
• Resolution = = = n−1 100%
FSV 1
VR 1 − n 2
2
1 1
• Accuracy = LSB = n+1
2 2
11
www.gradeup.co
ADC
FSV
• Resolution =
2n − 1
VR
• Quantization error = %
2n
2n → resistors
2n n → Encoder
Fastest ADC:
****
12
www.gradeup.co
13