9/16/13
1
Các mch logic t hp cơ bn
(Modular Combinational Logic Circuits)
Dr. Le Dung
School of Electronics and Telecommunications
Hanoi University of Science and Technology
Hanoi 5/2011
NI DUNG
I. B gii mã (Decoder)
1. Binary Decoder
2. BCD to Decimal Decoder
3. BCD to 7-segment Decoder
II. B lp mã (Encoder)
1. Binary Encoder
2. Binary Priority Encoder
3. Decimal to BCD Priority Encoder
III. B dn kênh – B phân kênh (Multiplexer & Demultiplexer)
1. MUX và DEMUX
2. 1 of 8 MUX và 1 to 16 MUX
3. Dual four-input MUX và Quad two-input MUX
4. ng dng ca MUX
5. DEMUX được thc hin t Decoder
IV. B cng – B tr - B so sánh – Đơn v s hc và logic
1. Binary Adder
2. BCD Adder
3. Subtractor
4. Comparator
5. Arithmetic Logic Unit (ALU)
Dr. Le Dung - School of Electronics and Telecommunications Page 2 / 60
9/16/13
2
B GII MÃ NH PHÂN - BINARY DECODER
n to 2n
DECODER
active-high
outputs
MSB xn-1
LSB x0 z0
z2n - 1
x1
.
.
.
.
.
.
z1
Ch có 1 đầu ra mc HIGH khi
đặt 1 mã nh phân ti đầu vào
Mô hình toán hc
z0 = xn-1 . . . x1. x0 = Minterm0
z1 = xn-1 . . . x1. x0 = Minterm1
z2n-1 = xn-1 . . . x1. x0 = Minterm2n-1
Ch có 1 đầu ra mc LOW khi
đặt 1 mã nh phân ti đầu vào
n to 2n
DECODER
active-low
outputs
MSB xn-1
LSB x0 z0
z2n - 1
x1
.
.
.
.
.
.
z1
Mô hình toán hc
z0 = xn-1 . . . x1. x0 = Minterm0
z1 = xn-1 . . . x1. x0 = Minterm1
z2n-1 = xn-1 . . . x1. x0 = Minterm2n-1
Dr. Le Dung - School of Electronics and Telecommunications Page 3 / 60
TNG HP B GII MÃ NH PHÂN 2 TO 4
Dr. Le Dung - School of Electronics and Telecommunications Page 4 / 60
2 to 4
DECODER
active-low
outputs
LSB$$$$x0
z0
MSB$$$x1
z1
z2
z3
Vì sao li hay thc hin b gii mã
vi đầu ra tích cc mc thp ?
- Fanout
- Power dissipation
- NAND gates
9/16/13
3
TNG HP B GII MÃ NH PHÂN 3 TO 8
Dr. Le Dung - School of Electronics and Telecommunications Page 5 /60
TNG HP B GII MÃ NH PHÂN 4 TO 16
Dr. Le Dung - School of Electronics and Telecommunications Page 6 / 60
9/16/13
4
B GII MÃ VI ĐẦU VÀO ENABLE
Dr. Le Dung - School of Electronics and Telecommunications Page 7 / 60
Enable = High such as normal 2 to 4 Decoder
Enable = Low all outputs = High (inactive)
Ý nghĩa ca đầu vào Enable ?
X2 = 0 Decoder0 acticve, Decoder1 inactive
X2 = 1 Decoder0 inacticve, Decoder1 active
IC 3 TO 8 Decoder – 74LS138
Dr. Le Dung - School of Electronics and Telecommunications Page 8 / 60
9/16/13
5
TNG HP B GII MÃ NH PHÂN 5 TO 32
T IC 74LS138
Dr. Le Dung - School of Electronics and Telecommunications Page 9 / 60
IC 74LS139
Dr. Le Dung - School of Electronics and Telecommunications Page 10 / 60