5
\$\begingroup\$

I have a 5Mhz signal which is being amplified by an OPA847 opamp.

In good conditions I get a voltage swing of ~120mV output from the opamp, in bad conditions I get a slightly noisy ~80mV p-p. I am hoping for the final circuit to be single supply, the current test setup uses -5v/+5v.

The scope trace below is from good conditions, modulation can be seen in two places where the phase inverts:

Scope trace in good conditions

My question is quite simple: what is the best way to turn this signal into a square wave for processing by digital logic?

I have considered standard digital logic gates but I don't believe the swing is large enough. I have also considered a comparator with the input signal (biased at Vcc/2) compared to a fixed Vcc/2. I assume this would need some hysteresis but am still not sure if it's the most practical solution.

\$\endgroup\$

2 Answers 2

7
\$\begingroup\$

I'd use a MAX999 comparator. Feed the signal into one pin via a series capacitor and biasing resistor to mid-rail then on the other pin have a resistor feeding a capacitor so that the average level can be followed - it's called a data slicer: -

enter image description here

With the waveform in the OP's picture looking like it could undulate its average level a fair bit, using a data slicer probably makes sense.

The MAX999 has a 4ns propogation delay and can work from 5V or 3V3 rails. It would directly interface with logic as I have done several times on previous occasions.

\$\endgroup\$
5
  • 1
    \$\begingroup\$ It sounds like I personally have interfaced with logic. Ahhh leave it be. \$\endgroup\$
    – Andy aka
    Commented Feb 7, 2014 at 21:34
  • 1
    \$\begingroup\$ This is a great answer for me to start experimenting from, however the MAX999 is not cheap! Will any comparator with maximum toggle frequency >5Mhz be suitable? \$\endgroup\$
    – David
    Commented Feb 7, 2014 at 21:46
  • \$\begingroup\$ @David I think you ought to do some research on this - MAXIM do do slower devices that might be cheaper and so do Linear technology (from memory). I only use the best LOL \$\endgroup\$
    – Andy aka
    Commented Feb 7, 2014 at 22:00
  • \$\begingroup\$ Thanks again, I'll have a look. I will eventually want 3 channels, a £5 opamp and £5 comparator per channel soon adds up. \$\endgroup\$
    – David
    Commented Feb 7, 2014 at 22:02
  • 1
    \$\begingroup\$ Perhaps worth mentioning that this particular comparator has a few mV of internal hysteresis. \$\endgroup\$ Commented Feb 7, 2014 at 22:33
4
\$\begingroup\$

As a follow-up to Andy's excellent answer above, here's some additional details and simulation results after I had researched his proposal.

I used an ADCMP601 because it is slightly cheaper, is marketed as an "Improved Replacement for MAX999" and has an ltspice model available.

The schematic below has two inputs which result in the 5Mhz signal with a lot of white noise added. This would be the output of my opamp in worst case conditions. The low-pass filter (-3dB point of ~6Mhz) is not essential but helps prevent excessive switching on the output due to the noise. Improved hysteresis might do the same thing.

Schematic

Experimenting with the data slicer was interesting, the final output is shown below. I'll use these values as a starting point for building a real circuit.

Plot

The interesting bit about Andy's idea is how the -ve input of the comparator works, instead of just using Vcc/2 as the reference. Experimenting with an input signal that changes in amplitude and DC bias shows that the comparator output is still a good square wave. The -ve node varies up and down very slightly with the amplitude and bias of the input signal. I'll probably need to play with the R/C values some more when I build a real circuit.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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