Project 16: half subtractor, Ab a – Elenco Understanding Logic Gates and Circuits User Manual
Page 26

U15
U16
U20
Project 16:
Half Subtractor
This
circuit
demonstrates
how
a
half
subtractor works. Turn the slide switch (S1)
on. The green LED represents the Difference
(D) of input A minus input B and the red LED
represents the Borrow (B). When the loose
ends of the red and black wires are both
connected to 0 (0-0) or to 1 (1-1), both LEDs
are off (D=B=0). When the loose end of the
red wire is connected to 1 and the loose end
of the black wire is connected to 0 (1-0), the
green LED is on and the red LED is off (D=1,
B=0). When the loose end of the red is
connected to 0 and the loose end of the black
wire is connected to 1 (0-1), the green and red
LEDs are both on (D=1, B=1), indicating a
borrow condition.
Subtractors are often implemented with adders since the incremental cost is low (one
additional NOT gate).
1
1
1
1
1
1
2
2
2
1
2
2
2
2
1
2
2
2
3
D
B
Represents the
Difference
Represents the
Borrow
1
2
1
2
Input (A)
Input (B)
Output (D)
Output (B)
0
0
0
0
0
1
1
1
1
0
1
0
1
1
0
0
A
B
A
3
2
4
26
2
2
2
1
2
3
2
3
1
2
B
2
4
3
1
2
1
2
3
1
0
- Upgrade Kit SC100 to SC300 (76 pages)
- Snap Circuits Jr.® Educational 100 Exp. (48 pages)
- Upgrade Kit SC300 to SC500 (64 pages)
- Snap Rover ® (24 pages)
- XP&trade (64 pages)
- Snap Circuits LIGHT ® (84 pages)
- Snap Circuits Extreme® Educational 750 Exp. (88 pages)
- Projects PC1-PC73 (60 pages)
- Electronics 202 (132 pages)
- Snaptricity® (92 pages)
- Upgrade Kit SCROV10 to SCROV50 (48 pages)
- Snap Circuits Green ® (80 pages)
- C Adapter for Snap Circuits® (2 pages)
- Motion Detector Kit (20 pages)
- Digital Roulette Kit (16 pages)
- FM Wireless Microphone Kit (12 pages)
- AM Radio Kit (32 pages)
- AM Radio Kit (36 pages)
- AM/FM Radio Kit (64 pages)
- Circuit Maker Skill Builder 125 (64 pages)
- Circuit Maker Sound Plus 200 (80 pages)
- Understanding Logic Gates (16 pages)
- Tumbling Robot (12 pages)
- Solar Energy (16 pages)
- C2D Scope (16 pages)
- 288x Astrolon Telescope with Aluminum Tripod (1 page)
- Simulated Frog Dissection Kit (1 page)
- Talking Galaxy Planetarium with Night Light (1 page)
- Night’n Day® (10 pages)
- Radio Controlled Black Widow (1 page)
- Handheld Microscope (2 pages)
- Water Filtration Kit (8 pages)
- 6-in-1 Solar Kit (18 pages)
- Microscope Set in Carrying Case (1 page)
- Mobile 20 Telescope (1 page)
- Mechanical Drum (20 pages)
- Aerial Screw (20 pages)
- Swing Bridge (20 pages)
- Printing Press (24 pages)
- MultiBarrel Cannon (20 pages)
- Armored Car (24 pages)
- Paddleboat (20 pages)
- SelfPropelled Cart (20 pages)
- Catapult (24 pages)