Why Are My Half-Adder Outputs Always Zero?

  • Thread starter hogrampage
  • Start date
In summary, the conversation revolves around an issue with the outputs from a half-adder using CD4007UBE chips. Despite simulating the circuit successfully, the actual circuit's outputs remain at zero. It is suggested that the problem may be due to using only three chips instead of four, as well as missing pin definitions and incorrect power supply connections. After some troubleshooting, it is discovered that using four chips and a different type of transmission gate (xor) allows the half-adder to work properly. A possible explanation for the initial failure is that the lab may have used logic chips with incorrect pin wiring.
  • #1
hogrampage
108
1
I have an issue with the outputs from a half-adder. I am using three CD4007UBE chips and the outputs always stay at zero. I simulated using a model for the CD4007, and it worked without any issues. However, the actual circuit's outputs remain zero for every input.

The input signals are A and B. Each is connected to a separate function generator with a 5V square wave (5V high, 0V low). I have adjusted the frequencies and no matter what, the outputs are always zero. I noticed if I disconnect the wire connecting PIN 1 from x1 and PIN 5 from x2, the output C works.

I heard from some that it's not possible to use only three chips for this, since I have four NAND gates and an inverter (18 total transistors). I don't see why it would not work with three, if this is the case.

The circuit diagram is attached, as well as the model I'm using for the CD4007UB.

Any help is greatly appreciated.

EDIT: I modified the circuit and used four chips instead of three. Now, the C output is working correctly, but S is not. The S output is inverting whatever C is (so they're opposite) for some reason. Schematic is attached.
 

Attachments

  • img1.jpg
    img1.jpg
    22 KB · Views: 827
  • img2.jpg
    img2.jpg
    17.7 KB · Views: 853
  • img3.jpg
    img3.jpg
    19.9 KB · Views: 557
Last edited:
Engineering news on Phys.org
  • #2
I've spent some time looking over your post and attachments, but so far I'm not able to help much.

Could you please post schematics of what you are trying to do with those 4007 ICs? It would be best if you could post the logic schematic first, and then how you are trying to use those totem-pole CMOS transistor ICs to implement the logic schematic.

And there are pin definitions missing on your attachments. There are no ground connections, and no external connections for the totem pole component CMOS transistors. A more complete definition of what you are doing would help us to help you.
 
  • #3
The logic diagram is attached. I made the four NAND gates using four 4007s and then the inverter uses the first 4007 (pins 9, 10, 11, 12). Someone else made the circuit using five NAND gates and they have the same issue (S output is the inverted C output).

I also found a top view of the 4007 with what each pin is (attached).

EDIT: If I disconnect the supply voltage (VDD), both outputs work correctly.
 

Attachments

  • logic_ha.jpg
    logic_ha.jpg
    8.4 KB · Views: 1,529
  • CD4007.png
    CD4007.png
    6.2 KB · Views: 800
Last edited:
  • #4
I managed to get the half adder working, but I used the xor transmission gate. I still have no idea why the xor using four nand gates did not work.
 
Last edited:
  • #5
When you are faced with ICs that you are unfamiliar with, you should first test individual gates by monitoring input and output as you apply various test inputs. Only when you are satisfied they are working and you understand them, should you connect multiple gates into something more complex.

It sounds like you didn't have the power supply correctly connected, or switched on, or something.
 
Last edited by a moderator:
  • #6
I did all that, but still no go. It's odd that I wasn't the only one that could not get the design for the xor using 4 nand gates working (was a lab). They had the same problems.
 
  • #7
hogrampage said:
I did all that, but still no go. It's odd that I wasn't the only one that could not get the design for the xor using 4 nand gates working (was a lab). They had the same problems.
Okay, here's a face-saving explanation which allows everyone to walk away from the situation with dignity intact: the lab had a batch of logic chips that inside the package were wired to the wrong pins. :wink:
 

1. Why is my half-adder output not working?

There could be several reasons for this issue. It could be due to a faulty connection, incorrect wiring, or a malfunctioning component.

2. How can I troubleshoot my half-adder output?

The first step is to carefully check all the connections and make sure they are secure. Next, double check the wiring to ensure that it is correct. If the issue still persists, try replacing the components or testing them with a multimeter.

3. Can a damaged component affect the half-adder output?

Yes, a damaged or malfunctioning component can definitely affect the half-adder output. It is important to check all the components and replace any that may be faulty.

4. Are there any common mistakes that can cause the half-adder output to not work?

Yes, some common mistakes include incorrect wiring, using the wrong components, and not following the correct circuit diagram. It is important to carefully follow the instructions and double check all connections to avoid these mistakes.

5. Can a lack of power supply affect the half-adder output?

Yes, a lack of power supply can definitely affect the half-adder output. Make sure that the circuit is receiving the correct voltage and that all components are properly connected to the power supply.

Similar threads

  • STEM Educators and Teaching
Replies
15
Views
3K
  • Electrical Engineering
2
Replies
39
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
20
Views
2K
Replies
4
Views
832
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
1K
  • Set Theory, Logic, Probability, Statistics
2
Replies
45
Views
3K
Replies
4
Views
2K
  • Electrical Engineering
Replies
6
Views
853
  • Engineering and Comp Sci Homework Help
Replies
34
Views
2K
  • Electrical Engineering
Replies
11
Views
2K
Back
Top