200 likes | 719 Views
LOGIC CIRCUIT DESIGN (II). The problem is to design a logic circuit for TRAFFIC LIGHTS with two inputs A, B and three outputs R, Y, G. TRAFFIC LIGHTS.
E N D
LOGIC CIRCUIT DESIGN (II) • The problem is to design a logic circuit for TRAFFIC LIGHTS with two inputs A, B and three outputs R, Y, G.
TRAFFIC LIGHTS • R, Y and G feed red, yellow and green lights (e.g. LEDs), these would flash in the order of Hong Kong traffic signals when A and B are supplied continuously by a two bit binary code representing numbers 0 to 3.
0 0 1 1 0 1 0 1 0 1 0 0 TRAFFIC LIGHTS
R = A B + A B R = A (B + B) R = A TRAFFIC LIGHTS
Y = A B + A B Y = B (A + A) Y = B TRAFFIC LIGHTS
G = A B TRAFFIC LIGHTS
TRAFFIC LIGHTS The Boolean expression of Traffic Lights R = A Y = B G = A.B
TRAFFIC LIGHTS The Logic Circuit of Traffic Lights R = A Y = B G = A.B A R Y B G
A R Y B G TRAFFIC LIGHTS Using NAND gates to implement the Boolean Expression. R = A Y = B G = A.B
Question • The problem is to design a logic circuit for A COIN-OPERATED HOT DRINK MACHINE. • It will provide a cup of tea or coffee under the following conditions.
Question • The conditions is …. • (1) The correct amount of coin is inserted (P),_____ • (2) The cup is in position (Q), _____ • (3) The selector is set at “TEA”(T) ___“COFFEE”(C) Please write down a Boolean expression for these conditions under which a drink (Z) can be provided and draw the logic circuit.
Question • The conditions is …. • (1) The correct amount of coin is inserted (P),_____ • (2) The cup is in position (Q), _____ • (3) The selector is set at “TEA”(T) ___“COFFEE”(C) Please write down a Boolean expression for these conditions under which a drink (Z) can be provided and draw the logic circuit. AND AND OR