# Pull down through LED

I've built my own version of 8-bit computer based on various examples in the Internet. Once built I started to face some issue with unpredictable memory changes when it was not supposed to. After I'd spent couple of days debugging I found out that the problem was caused by a chip implementing combination logic. An output of the chip was switching from 1 to 0 unpredictably with no particular rule. Ensuing digging helped me to realize that the problem could be caused by the schematics of one of the inputs. (See the picture). Once I removed the LED,I let the schema work for a couple of hours and it worked with no issues.
I wanted the input of the HCT10N to be either 1 or 0 based on the switch position and LED to indicate the mode of the schema.

Question: Does it mean that actually I can't pull down the IC input through LED? Looks like I can't 'cause LED drops up to 2V and CMOS logic can treat it as a logical 1. Thanks a lot!

• Correct. You cannot because the capacitance at the NAND input cannot drain below $V_{LED}$. Oct 21, 2019 at 21:39
• You can get around the problem by having a second resistor in parallel with the LED/series resistor. That won't be affected by the LED forward voltage. Oct 21, 2019 at 21:40
• Thanks! If I connect extra resistor in parallel it means that the voltage on it and LED/resistor will be the same, doesn't it? Oct 21, 2019 at 21:51
• For driving LEDs (in the "early days" anyway), we used the 7489 (which predates the 74189.) The 7489 is open-collector and can sink 16 mA. Since it is a NAND a "1" supplied to its input can be inverted to a "0", which pulls down. If you hook an LED up to that and towards Vcc (with a resistor of course), then a "1" at the input will cause the LED to "turn on." So it reflects the input without loading the input much. It's how we used to do "front panels" for our hand-built, wire-wrapped (in my case) computers when all we had was 7400 series devices to work with. I always buffered LED displays.
– jonk
Oct 21, 2019 at 21:51
• @AndrewBolotov Sure does and since the diode is the one which is able to force the voltage across itself, the resistor will end up matching the diode's voltage. Since the top resistor will have the same voltage as it did before due to the diode's forcing action, then the same current flows through it as before, but now some of it gets diverted from the LED to the parallel resistor so your LED will be dimmer unless you adjust the top resistor to accommodate for it. Oct 21, 2019 at 21:59