# Logic gates, pull up/down resistor

#### Luke Vassallo

Dec 10, 2014
33
I am encountering a logic problem with my or gates. when all inputs have 0v, the output has around 0.8-0.9v which is lighting one of the segments of my display.
I have tried a pul down resistor (from the output pin of the ic to ground) but this didn't solve the problem. I have tried a 4.7k(the value the lecture suggested) resistor and after that I tried a 220 ohms resistor (current will choose the path of lowest resistance). but still the voltage at the output remained the same.

any tips ?

#### Gryd3

Jun 25, 2014
4,098
I am encountering a logic problem with my or gates. when all inputs have 0v, the output has around 0.8-0.9v which is lighting one of the segments of my display.
I have tried a pul down resistor (from the output pin of the ic to ground) but this didn't solve the problem. I have tried a 4.7k(the value the lecture suggested) resistor and after that I tried a 220 ohms resistor (current will choose the path of lowest resistance). but still the voltage at the output remained the same.

any tips ?
Show us a schematic to help further.

Pull-Up / Pull-Down are only required on the input side of logic depending on A) The Logic IC being used, and B) The circuit that is connected to it. Current limiting resistors are usually (but not always) required if a Logic or other IC is directly driving an LED.

#### Luke Vassallo

Dec 10, 2014
33
That is what I was thinking since the input logic voltages need to be high or low (i.e not undefined). This is the schematic, so far I have only built the logic for segments A and B, and I am troubleshooting them before I move on to the other segments.

the input voltages are correct at around 4.97v high and 0v low, none undefined.

#### Luke Vassallo

Dec 10, 2014
33
schematic in case the one above does not display

#### Attachments

• logic.jpg
94.8 KB · Views: 148

#### Gryd3

Jun 25, 2014
4,098
schematic in case the one above does not display
Strange, I'm not sure at the moment why that would be the case...
Personally, I would put a 220Ω in series with each segment, but I would also test the logic IC's independently to make sure the output of each behaves as expected.

#### Arouse1973

Dec 18, 2013
5,178
What series of logic are you using?

#### Luke Vassallo

Dec 10, 2014
33
I checked every single input to make sure that the logic is correct. with regards to ic I am using everything cmos and a not about the XOR gate the chip number is HEF4070BP by Philips. I will put the 220ohm resistors with the led segment because currently there are none and see what happens

#### Arouse1973

Dec 18, 2013
5,178
What Seven Seg display are you using?

#### Luke Vassallo

Dec 10, 2014
33
common cathode. I think I may have found the problem the XOR gate chip is giving undefined voltages at around 2.5v but I put a pull up resistor and it works correctly then I change the binary input number and gives undefined values again.

#### Gryd3

Jun 25, 2014
4,098
common cathode. I think I may have found the problem the XOR gate chip is giving undefined voltages at around 2.5v but I put a pull up resistor and it works correctly then I change the binary input number and gives undefined values again.
Perhaps I am misreading, but it looks as though the XOR should have a defined output of at most 0.05V for a 'LOW'.
It looks as though the remaining inputs are tied to VDD, GND, or to another input as the Data Sheet suggest. It looks like that in the schematic, but I can't see the built circuit.

Seems like Adam maybe has a hunch?

#### Arouse1973

Dec 18, 2013
5,178
common cathode. I think I may have found the problem the XOR gate chip is giving undefined voltages at around 2.5v but I put a pull up resistor and it works correctly then I change the binary input number and gives undefined values again.

Can you post the rest of the circuit that we can't see?
Thanks

#### Luke Vassallo

Dec 10, 2014
33
there are also some images of the build. I was wondering could I have damaged the chip since it is outputting a 0.8v at the ouput even with just vdd and gnd connected to it

#### Attachments

• logic.jpg
64.5 KB · Views: 157
• WP_20150309_001.jpg
214.5 KB · Views: 154
• WP_20150309_002.jpg
211.2 KB · Views: 124
• WP_20150309_003.jpg
208.9 KB · Views: 126
• WP_20150309_004.jpg
207.7 KB · Views: 141
• WP_20150309_005.jpg
197.4 KB · Views: 129
• WP_20150309_007.jpg
201.3 KB · Views: 147
• WP_20150309_009.jpg
227.1 KB · Views: 133

#### Gryd3

Jun 25, 2014
4,098
there are also some images of the build. I was wondering could I have damaged the chip since it is outputting a 0.8v at the ouput even with just vdd and gnd connected to it
The inputs should never be left floating.
For the test, tie ALL of the inputs to to Ground or Vdd.
A floating input is undefined... ICs don't treat undefined as an unknown... they simply produce unknown or unpredictable outputs!

#### Arouse1973

Dec 18, 2013
5,178
It looks like you have added pull down resistors which are not on your schematic. Is this correct?

#### Arouse1973

Dec 18, 2013
5,178
You don't have any decoupling on the supply lines. Why have you got one IC miles away from the others. if you have any gates that are not used they inputs must be terminated.

#### Luke Vassallo

Dec 10, 2014
33
in the schematic, I didn't place any resistors, but when I started to build the circuit, I added 4.7k pull downs yes

#### Arouse1973

Dec 18, 2013
5,178
Is the IC in the middle grounded?

#### Luke Vassallo

Dec 10, 2014
33
what do you mean by terminated ? short them to ground ? .. \decoupling I have tried, what value would you suggest ?

Dec 10, 2014
33
yes yes it is.

#### Arouse1973

Dec 18, 2013
5,178
what do you mean by terminated ? short them to ground ? .. \decoupling I have tried, what value would you suggest ?
Yes unused inputs to ground. Decoupling 2.2uF and 100nF across the supplies of each IC make sure they are as close to the IC power pins as you can get them.

Last edited:

Replies
10
Views
981
Replies
73
Views
12K
Replies
2
Views
2K
Replies
6
Views
2K
Replies
7
Views
3K