Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Logic Gate problems (AND 4081)

Status
Not open for further replies.
if you don't connect CMOS inputs they very likely float near the threshold that also keeps the output switches both open since their R.DS.ON-s at 5 V Vcc are apx. 300 ohm and (P-MOS) 50 ohm (N-MOS) they may pass 5 / 350 = 14 mA if you have 10 gates floating it's 140mA e.c. -- otherwise - if your pulse fronts and trails are sharp (the time that both switches are simultaneously open) - the CMOS consumes only few µA (micro ampers) . . .
I guess you didn't see the Texas Instruments datasheet for the CD4081. With a 5V supply the typical shorted output current from the ordinary CD4081 is only 3mA and 4mA. Into an LED without a current-limiting resistor the current is even less.
Maybe you are thinking about a high speed Cmos gate (74HC series) that can supply much more output current.
 
s5d2fYc.png
instead of this "Quanted Voltage Follower" describe your further goal

. . . i assume (never tested) that these LED-s would show out better using them @ the std. duty 1:10 where you manage to flash them with 5 and more mA . . .
 
instead of this "Quanted Voltage Follower" describe your further goal

. . . i assume (never tested) that these LED-s would show out better using them @ the std. duty 1:10 where you manage to flash them with 5 and more mA . . .
Well actually in these topics my only goal was to understand a few things... Because putting up a circuit found online won't really give any problems.. So I tried to follow the circuit step by step and came across simple problems.. and later on I did actually find in the other circuits the poll-up/down resistors etc.. But this time I did understand why those resistors were used.. And did learn about the floating pins, which JimB actually told me before when i asked about a Timer555.. But didn't really fully understand it that time.. But this time i understood it better..



You show some of the pin numbers WRONG and you are trying to drive an LED and have a logic high voltage at the same time.

Ah, I see i made actually a mistake in those numbers... Kinda weird i skipped the number 4... And in the post I mentioned the supply..
Yeah about the LED and the input... It is not the best idea.. But it worked out on the board.. But those LEDs were actually more for me to understand and see how it actually works.. But if I did actually need and output which both gives a Light(like signal that it is on) and at the sime time i want to give it a signal to another output pin.. How should this be done then? Is there a better way for than i did on the circuit?

Yes, a resistor in series if you still want the proper logic levels to appear at the output.
Here's the part of the data sheet that pertains to the output current for a grounded load: View attachment 107451
View attachment 107450
You can see that at a 5V supply the highest worst-case current load you should have at 25°C, and still maintain a good logic level, is 0.51mA.
For an LED with a forward drop of 2V, this means you need a series resistor of no less than 3V/0.51mA = 5.9kΩ.
For a transistor with an input Vbe of 0.7V the resistor should be >4.3V/0.51mA = 8.4kΩ

Thanks a lot for the information.
 
An LED with a current of only 0.51mA will be very dim. That is why I said that an ordinary Cmos gate with a 5V supply cannot drive an LED and have a logic high voltage at the same time. The gate can easily provide a low input current to a transistor that can provide plenty of current to the LED then the logic high voltage will be fine.

Why is the value of your current-limiting resistor R3 only 200m ohms which is 0.2 ohms and is the same as a piece of wire? If the LED is a 2V red one then the 0.2 ohms will have a voltage drop of only 0.51mA x 0.2 ohms= 0.0001V!
Actually, the datasheet shows that logic levels for ordinary Cmos gates using a 5V supply are a minimum of 3.5V for a logic high and a maximum of 1.5V for a logic low.
 
An LED with a current of only 0.51mA will be very dim.
For test monitor purposes, wouldn't a high-brightness type LED be quite readable at that current?
 
quite readable
depending on led the daylight background threshold is from 270 to some 800+ µA - so the clear lens red (← has a lowest FW drop) may show out quite good at the 500µA - it may considered too much fuzz to set up stand alone indicators until you make one (= get the experience + get already that much better on making such . . . https://www.ti.com/product/CD4050B)
 

Attachments

  • digital_overload.png
    digital_overload.png
    50 KB · Views: 104
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top