0
\$\begingroup\$

I am designing a circuit which will output a square waveform for a specific duration of time (t) but I need to be able to read the square waveform using a processor so would like to turn the changing square waveform into a single high pulse for time (t). The frequency of the waveform could be too high for the processor to read directly so I am looking for a method to convert it to a single high pulse (with duration t). I first thought about using a small capacitor which would be charged up during the rise of the square waveform and then be discharged through the low part of the waveform but I am unsure if this would work and what value the capacitor would need to be. Ideally I need way which does not use ICs (simple discrete components only would be best). Any ideas? Dan

\$\endgroup\$
  • \$\begingroup\$ Have you tried a LPF? \$\endgroup\$ – Ignacio Vazquez-Abrams Jun 19 '15 at 15:29
  • \$\begingroup\$ An LPF, followed by a comparator if you need a logic level output, should work fine. \$\endgroup\$ – Nick Johnson Jun 19 '15 at 15:37
  • \$\begingroup\$ Would a comparator work though during the low parts of the square waveform (my output is basically a chain of square pulses)? \$\endgroup\$ – dan15 Jun 19 '15 at 15:47
1
\$\begingroup\$

You need a retriggerable one-shot, like the 74HC423 The first rising edge will make the output high, and each subsequent rising edge will keep it high. The output will not go low until there is a time period between rising edges that exceed the output pulse width.

In the world of logic chips, one-shots aren't the greatest of ideas, and are considered to be cheats in many cases, but here it seems to make OK sense.

| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

What is required is an RC & a circuit with a schmitt input. This couple be constructed from a comparator or...a couple of 74HC14 - schmitt input inverter (two just to re-invert the original inversion)

schematic

simulate this circuit – Schematic created using CircuitLab

schematic

simulate this circuit

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ That would delay the rising edge of the output to be later than the beginning of the square wave, while a retriggerable one shot won't. This might be fine behavior for the asker. \$\endgroup\$ – Scott Seidman Jun 19 '15 at 16:35
  • \$\begingroup\$ True, he might not want that. but it is easily fixed - diode. Its just another way of doing something similar \$\endgroup\$ – JonRB Jun 19 '15 at 16:37
  • \$\begingroup\$ The cap will charge (almost instantly) but will take longer to discharge on a low. As long as a 74HC14 is used it will be fine \$\endgroup\$ – JonRB Jun 20 '15 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.