Digital Logic Formula Notes Final 1
Digital Logic Formula Notes Final 1
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.
11 01
01 .11 00 (35.C)16
up
Binary to Hexadecimal: Grouping of 4 bits into one hex digit.
(110101.11) 2 00
Octal to Binary and Binary to Octal: Same procedure as discussed above but here
group of 3 bits is made.
Codes:
e
ad
Binary coded decimal (BCD):
In BCD code each decimal digit is represented with 4 bit binary format.
Eg : (943)10 10
01 01
00 0011
9 4 9 BCD
gr
gradeup
gradeup
Gray Code:
It is also called minimum change code or unit distance code or reflected code.
MSB 1 1 0 1 1 Gray
up
BCD code is used in calculators, counters.
gradeup
gradeup
Data Representation:
up
6 0110 6 1 001
sign bit 1's complement of 6
gradeup
gradeup
Flip Flops :
e up
ad
Excitation tables :
gr
S R J K D T
0 0 0 x 0 0 0 x 0 0 0 0 0 0
0 1 1 0 0 1 1 x 0 1 1 0 1 1
1 0 0 1 1 0 x 1 1 0 0 1 0 1
1 1 x 0 1 1 x 0 1 1 1 1 1 0
Q(n+1) = S + R Q
=D
=J + Q
=T + Q
gradeup
Combinational Circuits
gradeup
e up
ad
gr
gradeup
gradeup
up
Multiplexer :
2 i/ps ; 1 o/p & n select lines.
It can be used to implement Boolean function by selecting select lines as Boolean variables
For implementing n variable Boolean function 2 1 MUX is enough .
For implementing n + 1 variable Boolean 2 1 MUX + NOT gate is required .
e
For implementing n + 2 variable Boolean function 2 1 MUX + Combinational Ckt is
required
If you want to design 2 1 MUX using 2 1 MUX . You need 2 2 1 MUXes
ad
Decoder :
Suppose it consists of more min terms then connect the max terms to NOR gate then it will give the
same o/p with less no. of gates .
If you want to Design m 2 Decoder using n 2 Decoder . Then no. of n 2 Decoder
required = .
In Parallel (n bit ) total time delay = 2 t .
For carry look ahead adder delay = 2 t .
AND OR
gradeup
gradeup
Asynchronous Sequential circuits: 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.
e up
ad
gr
gradeup
gradeup
I OH I OL
Fan out of a logic gate = or
I IH I IL
Noise margin : VOH - VIH or VOL - VIL
I +I
Power Dissipation PD = Vcc Icc = Vcc 2
I Ic when o/p low
I Ic when o/p high .
TTL , ECL & CMOS are used for MSI or SSI
Logic swing : VOH - VOL
RTL , DTL , TTL saturated logic ECL Un saturated logic
Advantages of Active pullup ; increased speed of operation , less power consumption .
For TTL floating i/p considered as logic 1 & for ECL it is logic 0 .
MOS mainly used for LSI & VLSI . fan out is too high
ECL is fastest gate & consumes more power .
CMOS is slowest gate & less power consumption
NMOS is faster than CMOS .
Gates with open collector o/p can be used for wired AND operation (TTL)
Gates with open emitter o/p can be used for wired OR operation (ECL)
ROM is nothing but combination of encoder & decoder . This is non volatile memory .
SRAM : stores binary information interms of voltage uses FF.
up
DRAM : infor stored in terms of charge on capacitor . Used Transistors & Capacitors .
SRAM consumes more power & faster than DRAM .
CCD , RAM are volatile memories .
1024 8 memory can be obtained by using 1024 2 memories
No. of memory ICs of capacity 1k 4 required to construct memory of capacity 8k 8 are 16
e
DAC ADC
ad
1
FSV = VR 1 * LSB = Voltage range / 2n
2
ste p size V R /2n 1 FS V
Resolution = = 1 = 100% * Resolution =
FS V V R 1 n 2n 1 2n 1
2
1 1 V
Accuracy = LSB = n +1 * uantisation error = 2nR %
2 2
Analog o/p = K. digital o/p
gr
Fastest ADC :-
gradeup
gradeup
Microprocessor
A Microprocessor includes ALU, register arrays and control circuits on a single chip.
Microcontroller:
A device that includes microprocessor, memory and input and output signal lines on
a single chip, fabricated using VLSI technology.
e up
ad
gr
8085 MPU:
It has 40 pins, requires a +5V single power supply and can operate with 3 MHz
single phase clock.
gradeup
gradeup
Flag Register:
D7 D6 D5 D4 D3 D2 D1 D0
S Z AC P CY
Carry Flag (CY): If an arithmetic operation result in a carry or borrow, the CY flag
is set, otherwise it is reset.
If the result has au even number of 1s, the flag is set, otherwise the flag is reset.
Sign Flag (S): Sign Flag is set if bit D7 of the result is 1. Otherwise it is reset.
up
Program counter (PC): It is used to store the l6 bit address of the next byte to be
fetched from the memory or address of the next instruction to be executed.
Stack Pointer (SP): It is 16 bit register used as a memory pointer. It points to memory
location in Read/Write memory which is called as stack.
e
ad
8085 Signals:
Address lines:
There are l6 address lines AD0 AD7 and A8 A15 to identify the memory
locations.
gr
In memory mapped I/O ; I/O Devices are treated as memory locations . You can connect max of
65536 devices in this technique .
In I/O mapped I/O , I/O devices are identified by separate 8-bit address . same address can be used
to identify i/p & o/p device .
Max of 256 i/p & 256 o/p devices can be connected .
8155 programmable peripheral Interface with 256 bytes RAM & 16-bit counter
8255 Programmable Interface adaptor
8253 Programmable Interval timer
8251 programmable Communication interfacing Device (USART)
8257 Programmable DMA controller (4 channel)
8259 Programmable Interrupt controller
8272 Programmable floppy Disk controller
CRT controller
Key board & Display interfacing Device
gradeup
gradeup
When CALL executes , p automatically stores * Programmer use PUSH to save the contents
16 bit address of instruction next to CALL on the rp on stack
Stack
CALL executed , SP decremented by 2 * PUSH executes SP decremented by 2 .
RET transfers contents of top 2 of SP to PC * same here but to specific rp .
RET executes SP incremented by 2 * same here
Rotate Instructions:
RAL :- Each bit shifted to adjacent left position . D7 becomes CY & CY becomes D0 .
up
RAR :- D0 becomes CY & CY becomes D7
CP Call on +ve
RET : - 10 T
RC : - 6/ 12 T states
Jump Instructions
gradeup
gradeup
PCHL : Move HL to PC 6T
PUSH : 12 T ; POP : 10 T
SHLD : address : store HL directly to address 16 T
SPHL : Move HL to SP 6T
STAX : R p store A in memory 7T
STC : set carry 4T
XCHG : exchange DE with HL 4T
A = Reg/mem : Z 1 & CY 0 .
DAD Add HL + RP (10T) fetching , busidle , busidle
DCX , INX wont effect any flags . (6T)
DCR, INR effects all flags except carry flag . Cy wont be modified
LHLD load HL pair directly
up
RST 12T states
SPHL , RZ, RNZ ., PUSH, PCHL, INX , DCX, CALL fetching has 6T states
gradeup