74LS08

Thread Starter

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.
 

MrChips

Joined Oct 2, 2009
30,809
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,400
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
8,253
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... ;)
 
Top