1

I'm trying to drive some RF switches that need 0 to -5 V control logic with a 0 to 3.3 V signal. I found 2 topologies for this level shifting effect, one using a comparator and one using an inverter. Both circuits do the job but have a significant amount of overshoot on the outputs especially when driving switches that are further away. The current solution I'm trying to replace uses BJTs for the switching but they get too slow once more than 4 switches are connected.

Both the comparator and inverter output -5 to 0 volts just fine right at their outputs, but if I attach a 4 inch jumper wire the over and undershoot grows a bit, and if I connect a few feet of wire the signals overshoot to over 2 volts and undershoot below 8 volts.

I have tried smoothing out the ringing with combinations of resistors, caps, and ferrites but I can get a good looking signal in one location but by the time I look at the far end of the cable the signal is horrible again. Is there a way to prevent this type of ringing no matter how far away my load is from the output of the chip?

Here is the inverter topology I'm using to get the screenshots, it takes the 0 to 3.3 V signal on the left and turns it into -5 to 0 V signals on A and B: enter image description here

Screenshots: Taken from the comparator circuit, yellow trace is the input to the 1st comparator after the zener diode, blue is the output of the 2nd comparator and red/green are the outputs measured further down a wire.

enter image description here

enter image description here

DKNguyen
  • 54,733
  • 4
  • 67
  • 153
esimunds
  • 75
  • 3
  • It gets complicated when each of your scope probes has the same ground reference. Note sure if your signal is being launched into coax or just a single conductor wire – sstobbe Oct 30 '19 at 00:01

2 Answers2

1

Congratulations. You have just discovered a "transmission line". 8 feet away. That's far. Far enough that given the speed an electrical signal propagates down a wire (~0.6c) and a fast rise/fall time, you can no longer assume that the electrical signal (or wave) travels down the wire at instantly, hence a transmission line. In other words, you can't assume the conditions (voltage and current) at both ends of the wire are the same.

It takes "information" or "events" time to travel between each end of the wire. Imagine pouring water down a long pipe that suddenly narrows somewhere or is completely blocked at the far end. When the water reaches the far end, it a wave will travel back towards the inlet and splash water back at you. There was already a volume of water in the pipe with momentum behind it based on the initial width of the pipe. But it took time for the water at the inlet to know what it was like at the far end so it could not adjust right away and something has to happen with the extra water already en route. The longer your pipe, the more excess water is en route and the larger the splash. The splash back is your overshoot. The sloshing after the initial splash between the intet and far end of the pipe is like your ringing and happens while the system takes time to adjust. Just like the pipe, the longer the wire the larger the overshoot, undershoot, and ringing. So the longer the wire is, the worse the effects are at any given frequency component in the signal's bandwidth (with the highest frequency being the first one to be affected, and the highest frequency is determined by the rise/fall time of a digital signal).

Undershoot is more difficult to describe with a mechanical analogy but would be like a narrow pipe sucking in water with a widening down the line. There would be a brief void of water (a vacuum) formed somewhere that tries to draw in more water until the flow rate could be increased. It's not a perfect analogy though.

So how do you solve this with a water pipe? You cut a relief hole at the far end of the pipe so that the flow rate doesn't have to change. Or at least not change so abruptly. Furthermore, if the pipe was infinitely long for that same width you wouldn't get any splash back either. You are basically trying to make the pipe appear as though it is consistent along it's entire length and that it runs on forever...without actually having to make it run on forever. Same idea with "parallel termination resistors at the destination."

There are other kinds of termination, some of which don't translate as well to a mechanical analogy such as "series termination resistors at the source". I guess it's kind of like putting a narrowing right at the inlet of the pipe so that you can't flood the pipe with too much water which reduces the excess and the amount that can splash back. It also reduces the size of the splash coming back towards the inlet which also happens when you electrically terminate this way. Just like how the "second hole-at-the-end" in the water pipe will have better results than narrowing the inlet, "parallel termination" has better results than "series termination" in electricity.

In general, this is called "termination". It is how you solve this problem. You size the termination so the characteristic impedance of the wire does not abruptly change at the far end (just like you add an extra hole to the water pipe so the flow volume/pipe cross section doesn't abruptly change). The cross sectional area of the pipe is equivalent of the characteristic impedance of the wire. You want to make it appear the same all throughout the wire as if it was like that for infinite length, without actually having an infinitely long wire.

This was just a conceptual description so you have an intuition of what's actually happening. You can search for "transmission line" and "termination" and "characteristic impedance" on this website and elsewhere to see what is really going on electrically.

DKNguyen
  • 54,733
  • 4
  • 67
  • 153
  • I figured it would have something to do with improper termination at the far end. The current setup does fine without any termination resistors and we can't really add any at the moment. But I ended up finding a series resistance that smoothed the output out a lot and it seems to be working well. – esimunds Oct 30 '19 at 23:06
0

consider this circuit

Given you have no requirements for Delay, Output Rise and Fall times, unknown Cload, and no limitation for current pulled from the Source signal, this circuit will serve you very well.

schematic

simulate this circuit – Schematic created using CircuitLab

analogsystemsrf
  • 33,703
  • 2
  • 18
  • 46
  • This is actually almost the exact circuit I was tasked with replacing due to it being a bit too slow for what we are driving. It does work really well though. – esimunds Oct 30 '19 at 23:05