tutorial: iti1100
DESCRIPTION
Tutorial: ITI1100. Dewan Tanvir Ahmed SITE, UofO. General Decoder Diagram. Decoders. Decoder - logic circuit that activates an output that corresponds to a binary number on the input (set of inputs). Demo. Decoder. A n-to-m decoder a binary code of n bits = 2 n distinct information - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/1.jpg)
1
Tutorial: ITI1100
Dewan Tanvir AhmedSITE, UofO
![Page 2: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/2.jpg)
2
General Decoder Diagram
Decoder - logic circuit that activates an output that corresponds to a binary number on the input (set of inputs).
Decoders
Demo
![Page 3: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/3.jpg)
3
Decoder• A n-to-m decoder
– a binary code of n bits = 2n distinct information
– n input variables; up to 2n output lines
– only one output can be active (high) at any time
![Page 4: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/4.jpg)
4
Three-line-to 8-line (or 1-of-8) decoder
![Page 5: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/5.jpg)
5
• Expansion– two 3-to-8 decoder: a 4-to-16 deocder– a 5-to-32 decoder?
Decoder (cont..)
![Page 6: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/6.jpg)
6
– each output = a minterm– use a decoder and an external OR gate to implement any Boolean function of n input
variables– A full-adder
• S(x,y,x)=S(1,2,4,7)• C(x,y,z)= S(3,5,6,7)
Decoder (cont..)
![Page 7: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/7.jpg)
7
Lab-3Something like this:
![Page 8: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/8.jpg)
8
BCD to 7-Segment DisplayDesign Requirements
a
b
c
d
e
f gBCD to 7SegmentDecoder
a
b
c
d
e
f
g
X3
X2
X1
X0
Design the logic circuitry that will drive a seven segment LED display and will be able to represent numbers from 0
to 9
![Page 9: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/9.jpg)
9
Possible numbers and their representation on 7 segment display
a
b
c
d
e
f b
c
a
b
d
e
g
a
b
c
d
g b
c
f g
a
c
d
f g
a
c
d
e
f g
a
b
c
a
b
c
d
e
f g
a
b
c
f g
![Page 10: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/10.jpg)
10
Truth Table
X3 X2 X1 X0 a b c d e f g0 0 0 0 1 1 1 1 1 1 00 0 0 1 0 1 1 0 0 0 00 0 1 0 1 1 0 1 1 0 10 0 1 1 1 1 1 1 0 0 10 1 0 0 0 1 1 0 0 1 10 1 0 1 1 0 1 1 0 1 10 1 1 0 1 0 1 1 1 1 10 1 1 1 1 1 1 0 0 0 01 0 0 0 1 1 1 1 1 1 11 0 0 1 1 1 1 0 0 1 11 0 1 0 x x x x x x x1 0 1 1 x x x x x x x1 1 0 0 x x x x x x x1 1 0 1 x x x x x x x1 1 1 0 x x x x x x x1 1 1 1 x x x x x x x
![Page 11: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/11.jpg)
11
Signal b implementation
X1X0
00 01 11 10X3X2
00 1 1 1 1
01 1 0 1 0
11 X X X X
10 1 1 X X
b = f(X3, X2, X1, X0) =
X1’X0’
+ X1X0
+ X2’
X3
X2
X1
X0
b
![Page 12: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/12.jpg)
12
Signal c implementation
X1X0
00 01 11 10X3X2
00 1 1 1 0
01 1 1 1 1
11 X X X X
10 1 1 X X
c = f(X3, X2, X1, X0) =
X1’+
+ X0
+ X2
X3
X2
X1
X0 c
![Page 13: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/13.jpg)
13
7 segment display
• All the anode segments are connected together • Power must be applied externally to the anode connection that is
common to all the segments• By applying the ground to a particular segment (i.e. a,b,g etc..), the
appropriate segment will light up
![Page 14: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/14.jpg)
14
7 segment common anode
• A resistor should be added in order to limit the current through LED• The current to light the active LED is sink by the logic component,
which is preferable
![Page 15: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/15.jpg)
15
7 segment display
• All the cathode of the LED are connected together• The common connection must be grounded and power must be
applied to appropriate segment in order to illuminate that segment• The current to light the active LED is generated by the logic
component, which generates the logic 1
![Page 16: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/16.jpg)
16
BCD to 7 Segment Decoder/Drivers
• Common-anode : requires VCC , LED ON when Output is LOW.
• Common-cathode : NO VCC , LED ON when Output is HIGH.
• TTL and CMOS devices are normally not used to drive the common-cathode display directly because of current (mA) requirement. A buffer circuit is used between the decoder chips and common-cathode display
![Page 17: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/17.jpg)
17
7447 TTL IC• Real world example of
BCD to 7 segment decoder• Outputs of the decoder
are active low and a common anode 7 segment display is used
![Page 18: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/18.jpg)
18
Lab: BCD to 7 Segment Decoder/Drivers
(a) BCD-to-7-segment decoder/driver driving a common-anode 7-segment LED display;
(b) segment patterns for all possible input codes.
![Page 19: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/19.jpg)
19
Multiplexers (Data Selectors)• A multiplexer (MUX) selects one of multiple input signals and passes it
to the output.• The basic two input multiplexer• The four input multiplexer• The eight input multiplexer
![Page 20: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/20.jpg)
20
Multiplexers (Data Selectors)
• A multiplexer (MUX) selects 1 out of N input data sources and transmits the selected data to a single output
![Page 21: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/21.jpg)
21
Multiplexers Two-input multiplexer
![Page 22: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/22.jpg)
22
Multiplexers Four-input multiplexer
Four-input multiplexer - using sum of products logic
![Page 23: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/23.jpg)
23
Multiplexers Eight-input multiplexer: The 74151
![Page 24: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/24.jpg)
24
Multiplexers Eight-input multiplexer
![Page 25: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/25.jpg)
25
Multiplexers (cont..)
![Page 26: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/26.jpg)
26
Boolean function implementation– MUX: a decoder + an OR gate– 2
n-to-1 MUX can implement any Boolean function of n input variable
– a better solution: implement any Boolean function of n+1 input variable• n of these variables: the selection lines• the remaining variable: the inputs
![Page 27: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/27.jpg)
27
– Example: F(A,B,C)=S(1,3,5,6)
Multiplexers (cont..)
![Page 28: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/28.jpg)
28
• Procedure:– assign an ordering sequence of the input variable– the leftmost variable (A) will be used for the input lines– assign the remaining n-1 variables to the selection lines w.r.t. their corresponding
sequence– list all the minterms in two rows (A' and A)– circle all the minterms of the function– determine the input lines
Multiplexers (cont..)
![Page 29: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/29.jpg)
29
• An example: F(A,B,C,D)=S(0,1,3,4,8,9,15)
Multiplexers (cont..)
![Page 30: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/30.jpg)
30
Exercise
• Try to build an inverter using 2-1 MUX• Try to build XOR gate using 4-1 MUX
![Page 31: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/31.jpg)
31
Lab: Multiplexers
Four-input multiplexer - using sum of products logic
![Page 32: Tutorial: ITI1100](https://reader033.vdocument.in/reader033/viewer/2022051402/5681584c550346895dc5a5f0/html5/thumbnails/32.jpg)
32
Thank You!