# Is there a component that will OR the last 1-2ms of its input?

I need a component/circuit which will output 1 if a 1 has been input at any time in the last 1-2ms.

I could make such a circuit out of several shift registers, an oscillator and several OR gates, or I could use an MCU.

Is there a simpler (maybe analogue) alternative? I've considered:

bus -->|--+--+-- out
|  |
=  R
|  |
_  _
-  -
_
>| diode    = capacitor    - GND    R resistor


but the 1V diode drop is quite big, making the circuit very sensitive to the bus being driven at less than 3V3. There may be slew issues, with the output component not recognising an edge.

Maybe a 555 can do this?

The required logic looks like:

       _                          ____   _   __
bus __| |________________________|    |_| |_|  |______________________
_____________________      _________________________________
out __|                     |____|                                 |__

|<----- 1-2ms ----->|                  |<----- 1-2ms ----->|

• A 555 sure, but today we have more. eg: LTC6994 (which is basically the mcu you mention, but the hard part has been done already) – Jeroen3 Jun 3 at 8:22
• This sounds like a job for a one-shot, i.e. a rising edge (1) triggers the one-shot to maintain its output of 1 for a duration of 2ms. Would that meet your requirement? – MarkU Jun 3 at 8:22
• The ASCII art is lovely but there's a schematic button on the editor toolbar that does a better job. When finished hit the "Save and Insert" button and an image is posted in your question with an edit link. No CircuitLab account required. – Transistor Jun 3 at 8:35
• @MarkU A monostable multivibrator isn't quite what's needed. en.wikipedia.org/wiki/Monostable shows the output going low, even when the input is still high. I'll add a diagram to my post. – fadedbee Jun 3 at 8:36
• @Transistor I did that, and clicked "Save and Insert" but nothing happened except for a brief circular timer. I then tried the back button, which took me back to the editor but without the circuit. – fadedbee Jun 3 at 8:47