# 74LS08

#### Linden

Joined Feb 28, 2015
4
I am trying to use mini float switches to drive my inputs but when I hook up my Vcc and Gnd, they start off in a false logic "1" state.(measuring 1.4V on I and 3.9V on the O). What is going on? They are brand new chips.

#### bertus

Joined Apr 5, 2008
22,133
Hello,

Can you post a schematic of your current set-up?

Bertus

#### Linden

Joined Feb 28, 2015
4
JK is used as a piezo hush

#### Attachments

• 1.8 MB Views: 51

#### bertus

Joined Apr 5, 2008
22,133
Hello,

I do not see any pull-up or pull-down resistors on the inputs of the gates.
When you leave then floating the results may be unpredictable.

Bertus

#### Attachments

• 85.8 KB Views: 113

#### Linden

Joined Feb 28, 2015
4
I figured that would solve it just wanted to make sure. What size resistors would you suggest?

#### Linden

Joined Feb 28, 2015
4
Thanks for all your help. I am sure this will work.

#### MrChips

Joined Oct 2, 2009
28,108
Unconnected inputs of TTL gates usually start out at logic 1. But it is better to be certain by using 1kΩ pullups.

#### cmartinez

Joined Jan 17, 2007
7,911
Unconnected inputs of TTL gates usually start out at logic 1. But it is better to be certain by using 1kΩ pullups.
I normally use 4.7K, and up to 10K resistors as TTL pullups... is that bad? should I switch to 1K?

#### MrChips

Joined Oct 2, 2009
28,108
To answer your question, we have to look at the datasheets of TTL gates.

For 74xx and 74LSxx, VIH is quoted as 2V. This is the minimum Vin for logic HIGH.
Fro 74xx, IIH is 40μA and 20μA for 74LSxx. This is the input leakage current when Vin is HIGH.

Suppose you want Vin to be 4V. Then the pullup resistor has to drop 1V while conducting IIH.

Rpullup = (Vcc - Vin)/IIH

For 74xx, Rpullup = 1V/40μA = 25kΩ

For 74LSxx, Rpullup = 1V/20μA = 50kΩ

Hence, Rpullup of 10kΩ is fine.

#### ScottWang

Joined Aug 23, 2012
7,326
I normally use 4.7K, and up to 10K resistors as TTL pullups... is that bad? should I switch to 1K?
Your values of resistors are quite normal, if you want to reducing the current then you can increasing some more, normally resistor of pull high for TTL ic around 1K~33K, but if the pull low should be used 330Ω, because the internal diode of input, although using less 330Ω is ok, but it will draw more current.

#### cmartinez

Joined Jan 17, 2007
7,911
To answer your question, we have to look at the datasheets of TTL gates.

For 74xx and 74LSxx, VIH is quoted as 2V. This is the minimum Vin for logic HIGH.
Fro 74xx, IIH is 40μA and 20μA for 74LSxx. This is the input leakage current when Vin is HIGH.

Suppose you want Vin to be 4V. Then the pullup resistor has to drop 1V while conducting IIH.

Rpullup = (Vcc - Vin)/IIH

For 74xx, Rpullup = 1V/40μA = 25kΩ

For 74LSxx, Rpullup = 1V/20μA = 50kΩ

Hence, Rpullup of 10kΩ is fine.
Thanks! ... Ah, the magic of datasheets... if only more of us bothered to actually read them...