Quickest way to make logic gate output last for a few seconds?

Thread Starter

Orbitingful

Joined Oct 31, 2015
32
What is the quickest way to make the out of an AND gate last for 1 second only? In other words, for the output to be high for only 1 second. Is there a quick way to do this - I have considered using a monostable. Below is a schematic of an implementation of this idea with a XOR gate.


I need a similar configuration with an AND gate.
 
Last edited:

Papabravo

Joined Feb 24, 2006
21,159
Well it kind of depends on how accurate you want the trailing edge to be. A monostable or one-shot will do the job but the time will vary from one instance to the next. The accurate way to do it is with a Finite State Machine and an accurate clock signal.
 

WBahn

Joined Mar 31, 2012
29,978
What is the quickest way to make the out of an AND gate last for 1 second only? In other words, for the output to be high for only 1 second. Is there a quick way to do this - I have considered using a monostable. Below is a schematic of an implementation of this idea with a XOR gate.


I need a similar configuration with an AND gate.
You need to be clear on what you mean by making the output last for one second. Do you mean that when the output goes HI it stays HI for one second and returns LO even though all of the inputs are still HI?

The approach shown above works to get narrow pulses. Given the speed of even slow logic families, you would need millions of inverters to get to a one second pulse. It also has very poor accuracy.

Why have you only considered a monostable circuit? What is it about it that caused you to reject it?

What is important in this circuit? Accuracy? Precision?
 

Thread Starter

Orbitingful

Joined Oct 31, 2015
32
You need to be clear on what you mean by making the output last for one second. Do you mean that when the output goes HI it stays HI for one second and returns LO even though all of the inputs are still HI?

The approach shown above works to get narrow pulses. Given the speed of even slow logic families, you would need millions of inverters to get to a one second pulse. It also has very poor accuracy.

Why have you only considered a monostable circuit? What is it about it that caused you to reject it?

What is important in this circuit? Accuracy? Precision?
I don't really care how long the pulse is - less than one second is fine - I need it to be very short. Yes I want the pulse to go from high to low regardless of what the inputs are.
 

WBahn

Joined Mar 31, 2012
29,978
What is "very short"? There is a HUGE difference between generating a pulse that is 0.5 microseconds and one that is 0.5 seconds.

If you don't really care how long the pulse is, then why is a monostable not acceptable?
 

WBahn

Joined Mar 31, 2012
29,978
How many different signals are being ANDed together here? What should happen if one of those signals goes LO before the pulse has expired? Should the output continue to remain HI for the rest of it's normal duration, or should it go immediately LO?
 

crutschow

Joined Mar 14, 2008
34,282
Your XOR circuit will give two output pulses, one on the leading edge and one on the trailing edge of the input signal.
Is that what you want?
Or do you just want a pulse on the leading edge?
 

AnalogKid

Joined Aug 1, 2013
10,986
What is the quickest way...
The quickest way is to think about what you really need, then think about what a professional circuit designer might need to know to come up with a circuit that will work *in you application*, then ask a detailed question that includes things like the available power supply, all of the input signals, the output signal voltage and current requirements, what the circuit is driving, where the inputs are coming from, what the range of acceptable pulse widths is, which input conditions trigger the output, and which conditions can be ignored, what parts or logic families you have access to, and what your assembly skill set is. A truth table would be nice.

ak
 

dl324

Joined Mar 30, 2015
16,845
Your requirements are a bit vague.

Here's a CMOS AND gate that will give a positive pulse on the rising edge of the input. Select R and C values for the pulse duration you desire.
upload_2016-1-27_19-46-46.png
 

WBahn

Joined Mar 31, 2012
29,978
That circuit really needs a protection diode to keep Pin 2 from going more than a diode drop below GND on the negative-going edges.
 

Alec_t

Joined Sep 17, 2013
14,280
But the standard input protection can handle only small currents and energy. If C1 is a fat cap (which it would need to be for lengthy time constants) it might pass excessive current or store excessive energy. A series resistor to the gate input would limit current.
 

dl324

Joined Mar 30, 2015
16,845
But the standard input protection can handle only small currents and energy. If C1 is a fat cap (which it would need to be for lengthy time constants) it might pass excessive current or store excessive energy. A series resistor to the gate input would limit current.
OP asked for a very short pulse, so it won't be a problem. Variations of the circuit appear in an RCA app note.
 

shortbus

Joined Sep 30, 2009
10,045
Your requirements are a bit vague.

Here's a CMOS AND gate that will give a positive pulse on the rising edge of the input. Select R and C values for the pulse duration you desire.
View attachment 99552
Glad this came up, saves me from making a thread.:) In the circuit shown, how does the cap pass a positive/high voltage to the 'and gate'? Was under the assumption that caps don't pass DC through them. Since C1 is connected through R1 to ground/common, how does a positive/high get on terminal 2 of the gate?
 

hp1729

Joined Nov 23, 2015
2,304
Glad this came up, saves me from making a thread.:) In the circuit shown, how does the cap pass a positive/high voltage to the 'and gate'? Was under the assumption that caps don't pass DC through them. Since C1 is connected through R1 to ground/common, how does a positive/high get on terminal 2 of the gate?
The positive edge of the signal is what passes through the capacitor.
 

Thread Starter

Orbitingful

Joined Oct 31, 2015
32
When I use the monostable, if the trigger is a falling edge, and stays low, the output of the monostable stays high. How do I get the monostable to go back to 0v, despite the trigger staying low continuously?

Thanks.

Capture electronics 5.PNG
 

Alec_t

Joined Sep 17, 2013
14,280
You connect the gate output to pin 2 of the 555 via a capacitor (say 10nF) and connect pin 2 to the +ve rail via a pull-up resistor (say 10k).
 

Thread Starter

Orbitingful

Joined Oct 31, 2015
32
You connect the gate output to pin 2 of the 555 via a capacitor (say 10nF) and connect pin 2 to the +ve rail via a pull-up resistor (say 10k).
That causes the output to remain high all the time. It doesn't go low at all. Could you provide a schematic?
 
Last edited:
Top