Cd4001 NOR gate SR latch

Thread Starter

Maria Fernandez

Joined Feb 1, 2019
11
Hi,
Please help, I am pulling my hair out!

I have built a 4021 NOR gate latch based on a schematic that is readily available online.

I want 4 inputs and 4 LEDs for outputs.

I am using it as 2 separate SR latch circuits.

When I build 1 half all is fine. That is one input going high drives an LED high, driving the other input high drives the other LED high.

That is all fine.

If I build the other half all is still fine.

The problem comes when I build the full circuit up, that is 4 inputs, 4 LEDs as 2 SR latch circuits.

One latch circuit will work but the other will not. One of the LEDs seems to take priority over the other. It is lit, therefore high. When I drive the other input high the other LED goes high and then other turns off. Now comes the problem. One LED will not latch, allow that input to go low and the other LED goes high, ie it does not latch.

I am using 10k pull downs on the inputs.

Any ideas?

Maria
 

DickCappels

Joined Aug 21, 2008
10,661
That makes a lot more sense now. If we can see a schematic of what you made we might be able to figure out why it doesn't work.
 

Alec_t

Joined Sep 17, 2013
15,118
What is the value of the current-limiting resistor in series with the LED? A CD4001 can source or sink only a few mA. If you try to draw more current the output voltage changes, perhaps to a value below the point at which the LED will light.
 

MrChips

Joined Oct 2, 2009
34,809
You should not drive an LED from a logic gate and expect the output of the logic gate to be a valid logic level.
Use a separate LED driver to drive an LED.
 
Top