100% found this document useful (3 votes)
466 views1 page

Digital Logic Designs

The document discusses four combinational logic circuits: 1) A burglar alarm circuit that sounds a buzzer when light shines on a light dependent resistor. 2) An automatic night light circuit that turns on an LED when it gets dark. 3) A 2-bit decoder circuit that outputs a high signal on a different line for each input combination. 4) A 2-bit encoder circuit that outputs a unique binary code for each input combination.

Uploaded by

Kevin Haworth
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
466 views1 page

Digital Logic Designs

The document discusses four combinational logic circuits: 1) A burglar alarm circuit that sounds a buzzer when light shines on a light dependent resistor. 2) An automatic night light circuit that turns on an LED when it gets dark. 3) A 2-bit decoder circuit that outputs a high signal on a different line for each input combination. 4) A 2-bit encoder circuit that outputs a unique binary code for each input combination.

Uploaded by

Kevin Haworth
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

*04 Electronics (160-187).

qxd 2/2/07 12:20 pm Page 171

Combinational logic
design 1 Key words
binary code logic gate
light-dependent
resistor (LDR)
1 Burglar alarm 2 Automatic night light light-emitting
+5V +5V diode (LED)

a b
1 Burglar alarm
● The light-dependent resistor (LDR)
and the adjacent resistor act as a
potential divider. In the dark the
resistance of the LDR is high and both
inputs to the NAND gate are high and
c
the output is 0.
● When light shines on the LDR its
resistance drops and that input to the
0V 0V NAND gate becomes low. The result is
a,b pull-up resistor – to keep input high
an output of 1 which causes the
when switch is open and no light is buzzer to sound.
shining on the LDR
Note: CMOS inputs must not float
c buzzer
2 Automatic night light
● During the day the LDR is illuminated
and its resistance is low. The low input
to the first NAND gate is inverted to
3 2-bit decoder 4 2-bit encoder give a high input to the second NAND
+5V gate. The high input to the second
NAND gate is inverted to give a low
A B output so the LED is not lit.
● As it goes dark the resistance of the

F0 P LDR rises and gives a high input to the


first NAND gate. This is inverted,
giving a low input to the second
F1 B inverting NAND gate. The resulting
high output from the second NAND
F2 0 1 2 3 gate turns the LED on.
A
F3 3 2-bit decoder and truth
table
●A decoder converts a binary input
0V into a form which can be displayed.
Truth table Truth table The network of AND and NOT gates
provide a different output for each
B A F0 F1 F2 F3 0 1 2 3 B A P different combination of inputs from A
and B.
0 0 1 0 0 0 0 1 1 1 0 0 1
4 2-bit encoder and truth
0 1 0 1 0 0 1 0 1 1 0 1 1 table
● Anencoder converts an input into a
© Diagram Visual Information Ltd.

1 0 0 0 1 0 1 1 0 1 1 0 1 binary output. Closing a switch causes


the voltage across the wire to fall.
1 1 0 0 0 1 1 1 1 0 1 1 1 Closing each different combination of
the switches produces a unique output
1 1 1 1 X X 0 from A and B.

You might also like