While this method works quite well, there's a problem with it, and to illustrate this problem, take a look at the following schematic:
![]() |
| Figure 1: An example of a gate-driven transmitter with "clock stall" (DC) protection - see text. Click on the image for a larger version. |
This could be considered to be very simple example of "polar modulation" in that the phase and amplitude components are modulated separately 1. Like the QMX, it uses the output of a logic gate to drive the BS170 output transistor, Q3 - in a Class-E configuration in this instance. The source signal is a crystal oscillator operating at 4 times the output frequency (e.g. around 6.8 MHz) for a 25% duty cycle at the output frequency at the top of the AM broadcast band (around 1.7 MHz). As we can see, there is a frequency divider here (U3, the 4017) which is configured as a divide-by-four counter, with just one of the outputs from U3 selected at a given instant to provide a selection of two such signals, 180 degrees apart.
What if it gets "stuck"?
In the above, what if the oscillator were to stop - or take a long time to get started? In either of those conditions, there is some chance that the gate drive signal from the output of the logic source will be stuck "ON" - and if this were the case, the output FET - Q3, in the example above - would effectively short the drain of this transistor to ground. Were the drain current not limited, the result would be destruction of the transistor and related circuitry.
In the example above this is prevented with the use of the components in the highlighted area of Figure 1 on the gate of Q3: The series 0.1uF capacitor, the diode to ground and the 100k resistor. In a "steady state" from the output of U4 - which could include the output being stuck "on" - the DC is blocked by the 0.1uF capacitors - and the 100k resistor to ground assures that in the long term, Q3 is always turned off in that state by pulling the average voltage on the gate to ground.
There is a problem with using just a capacitor and resistor: The output from U4, which is a 5 volt square wave, would, due to capacitive coupling, settle to the average voltage of the waveform on the gate: In the case of Q3, the average voltage would be 25% of the 5 volts, or about 1.25 volts - still 5 volts in amplitude, but it would peak to only +1.25 volts or so, the rest of the waveform being a negative voltage around -3.75 volts.
From the data sheet of the BS170 we know that, at best, it will start to turn on at around +0.8 volts - but, depending on this device, this "threshold" voltage could be as high as +3 volts with the "typical" turn-on voltage of around 2.1 volts. What this means is that it is likely that, for most BS170 devices, there will be little-to-no RF output at all with a +/-2.5 volt square wave on its gate and the situation would be worse with 1.25 volts.
To get around this, the diode to ground was added as a sort of "clamp" 2 : When the waveform swings negative, this diode will conduct, causing the negative side of the waveform coupled through the capacitor to be "only" -0.6 volts or so, but the positive side of the waveform will now go up to about +4.6 volts - enough to be guaranteed to turn on the FET - at least partway.
How this applies to the QRP Labs QMX:
Here is a redrawn "snippet" of a simplified schematic of the final amplifier and driver stages from the QRP Labs QMX transceiver:
![]() |
| Figure 2: Simplified QMX final amplifier diagram showing direct DC connection to the output transistors. Click on the image for a larger version. |
In the above, "CLK2" is from the oscillator - the Si5351 - and the two XOR gates (IC501/IC502) and with the "other" input of IC501 wired to VDD, its output is inverted compared to that of IC502 - this being done to get the 180 degree phase shift to differentially drive the final transistors, Q503/Q505 for one half, and Q504/Q506 for the other half. Because of IC501/IC502, it is guaranteed that no matter what, one of those chips' outputs will be high at a given instant.
Now let's consider the situation where CLK2 is turned OFF - something that would be done to conserve power, or during receive and it might even happen after power-up, before the clock circuit is initialized. When this is done either IC501 or IC502's output WILL BE ON and this will propagate through IC503, the transistor drivers, and to one or the other set of final transistors. In this state, these transistors will, via Q502, short the +12 volt bus to ground and as is known from past experience of QMX users, that if this happens, this will, at best, result in the radio "glitching" and resetting - but it often ends up with wisps of smoke from somewhere within the radio.
To prevent this, the "TX" line is added on the "other" inputs of IC503: When this line is LOW, it forces all of the outputs of IC503 to LOW as well - and just in case the radio's processor hasn't booted up yet, R503 pulls this line low. It is also possible to turn off Q502 to disconnect the DC power from the final transistor as well.
It can be worse...
There is another problem with this arrangement: Should one of the RF amplifier transistors fail, there is a reasonable chance that it will develop a drain-to-gate short which will dump the drain voltage - which can be around 12 volts - back into IC503 which will likely be destroyed and that all of the RF output transistors will be turned on instead of just the one(s) that failed.
What is worse is that the "body diodes" in the output stages of IC503 will then dump this voltage backwards into the 5 volt bus, potentially destroying other components in the QMX. During the "clock stall" event that blew up my QMX during CW operation 3, not only was IC503 destroyed, but also D108 - a 5.6 volt Zener - in the power supply, which gives a clue as to the severity of this problem!
Murphy's law strikes again. And again.
If everything goes right, the software running on the QMX will always prevent the sequence of events that could lead to the loss of smoke from the QMX, but all software epitomizes various aspects of Murphy's law: If something can go wrong, it will!
For example, there was the reported issue where, if one were to have set a "break in" period when operating CW 3 (e.g. the radio stays in transmit for a brief period before going to receive). Ideally, one should disable the "TX" line during that "break-in" period - but in a case of "too many things", this was omitted and several people - including myself - let the "magic smoke" out of the radio when one half of the final transistors were left "on" during the "break in" delay.
There is also the reported issue that if the processor crashes in some odd way - perhaps due to interrupted power (e.g. a loose DC connection to the power supply, low-humidity static discharge crashing the processor, etc.) the unit may not shut down and/or recover gracefully: If in mid-transmit, this, too, could result in one set of the finals being turned on - and more smoke may be the result.
Hans, G0UPL, should be commended for his good work what is a very complicated "software machine" with many, many moving parts - but there are many, many ways in which such a complicated machine could fail, and it is unlikely that one could conceive of - let alone prevent - all of the "edge cases". For example, a friend of mine who runs his QMX on WSPR has reported several instances of the unit randomly crashing and blown finals - even after greatly improving heat sinking 4 and beefing up overcurrent protection. It is suspected that a bug may be resulting in a "clock stall" situation that very rarely occurs and would likely be impossible to replicate at will.
To minimize the "collateral" damage should a clock stall occur due to a software or hardware issue, this blog entry was written.
Protecting the finals from "clock stall"
This brings is back to "how to protect the finals?" We can take an example from Figure 1 and adapt it to the QMX and, in the process, improve the drive to the output transistors a bit. Consider the diagram below - again, a simplified version of the QMX's RF output circuit - but with some additions:
Component notes:
D1 and D2 should be 1N914, 1N4148 or similar "high speed", low-capacitance silicon diode while D3 and D4 need not be a high-speed diode (e.g. 1N4001, etc.)
This is the same as the circuit above, but with some passive components added in the middle. Here, we see capacitors C1 and C2, 0.01uF, that block DC from the gates of the finals, effectively stopping the "stuck on" problem entirely - but as we know from above, simply adding a diode to ground would reduce the recovered voltage peak by about 0.6 volts.
In order for the final amplifier to be as efficient as possible, it is desirable that during the "on" period of the RF drive waveform, we turn each set of FETs ON as hard as possible to minimize their resistance - and this reduces heating and improves efficiency: This is another reason why IC503 is used: Its paralleled outputs can more quickly swing the FETs ON and OFF - and if we could "instantly" turn the FET off, or instantly on with zero resistance - we'd have a significant efficiency gain.
This is where the "extra" diodes come in. On the "gate" side of capacitors C1 and C2 we have diodes D1 and D2 which, like the diode on the gate in figure 1, prevent the RF swing going negative - but there's a twist: Instead of being grounded, the anodes of these diodes are connected together, RF bypassed and filtered with C3, and connected to the "top" of a two-diode string consisting of D3 and D4. At the top of these two diodes we have R3, a 10k resistor biasing this arrangement to 1.2 volts and this is fed to one side of diodes D1 and D2 where, because of its diode drop, we end up with the diode conducting below a gate voltage of approximately +0.6 to +0.8 volts. Meanwhile, resistors R1 and R2 are connected to the midpoint of diodes D3 and D4 and the DC bias on the gates of the FETs is established at 0.6-0.8 or so volts.
Because of this arrangement, the "bottom" of the waveform feeding the gates of the final transistors will never go below about +0.6 to +0.8 volts and, because of R1 and R2, will not be able to go higher than this, either. A quick check of the BS170 data sheet shows that the minimum turn-on voltage is 0.8 volts, but the "typical" voltage is around 2.1 volts and while this parameter can vary between devices - even those from the same manufacturer - it's likely that 0.6-0.8 volts of bias will be perfectly "safe" for any BS170 that you are likely to find.
The upshot of this can be seen in the following oscillogram taken from one of the gates of the RF output transistors while operating the QMX on 160 meters:
In the very center of the vertical axis is "ground" (0 volts) and we can see that the bottom of the RF waveform is a bit below 880 millivolts. By "counting the graticules" - and noting the parameter displayed in the bottom-left - our waveform is just short of 5 volts peak-to-peak, and this is exactly the same number that was measured directly at the corresponding output of IC503: In other words, our original waveform is shifted up by 0.6 to 0.8 volts.
Another look at the waveform will tell you something else: The top of it is nearly 6 volts - and if you look at Figure 4 you can see that the "ON" resistance will have decreased and the drain current increased and this edges the FET just a bit closer to it being an "ideal" switch.
In addition to providing "clock stall" protection, this also improves the RF power output a bit. In testing with my QMX+, the power increase on 40 meters was only slight - going from about 3.95 watts before the modification to 4.1 watts after with nearly the same drain current, but on 6 meters the power increase was more dramatic, going from 2.5 to 4.0 watts with a drain current increasing by 0.25 amps at a drain voltage of 11.5 volts. At least part of the power increase is likely due to the fact that we have effectively increased the amplitude of our drive signal, and at 6 meters the gate capacitance combined with the Miller effect 5 will conspire to reduce the peak drive voltage and "smooth" the waveform a bit from the ideal square wave.
With this amount of bias voltage on the gate, there was no real sign that the FET was being turned on. If the FET were "slightly" on, its drain current would be fairly low, but it's also possible that it this current flow could "suck out" some of of the receive signal and/or produce some low-level RF noise within the final transistors which could get into the receive signal path as the final transistors are connected in parallel with the receive signal path. If this were to happen the value of "Rb" could be reduced (to 2.2k or so) and instead of connecting to "+12V", connected to the "TX" line feeding IC503 which would completely remove this bias when on receive.
Will this work on the smaller QMX? I have both the QMX and QMX+, but with the latter being larger and with more room inside, I decided to modify it first. Doing this modification on my QMX (e.g. the smaller, "non-plus" version) looks like it is possible, but the more-circuitous board trace - on both sides - the relatively cramped quarters will make this more difficult than with the QMX+. |
Applying the modification to the QMX+
The first order of business is to cut the traces on the bottom side of the board that go from IC503 to Q503-Q506 to install the blocking capacitors, C1 and C2. Looking at the PBC, I identified the traces in question and carefully cut them with a sharp knife as Figure 6 shows.
In this picture we see the trace cut on the bottom, below IC503, the break being made after the traces from the two outputs come together and the same thing was done on the upper trace feeding the finals, but this cut is obscured in the photo by the already-added 0.01uF capacitor connecting to U503 pin 8: An Ohmmeter was used to verify that the trace was properly cut by verifying the lack of continuity between IC503 and the corresponding transistor gate.
Using another small capacitor, a connection was made to pin 6 of IC503 and directly to one of the gate leads. Once this was done, an Ohmmeter was again used to make sure that there were no shorts to adjacent pins or to ground and that the gates of Q503-Q506 were, in fact, floating - the completed work can be seen in Figure 7.
![]() |
| Figure 6: Below IC503 you can see the cut trace after the lines from pins 3 and 6: Similar was done above with pins 8 and 11. Click on the image for a larger version. |
It is important that the capacitor and its leads be fairly small as it is carrying rather low impedance, high frequency energy. For this modification, I used some very small disk ceramic to test the "worst case" scenario, but small, monolithic capacitors would be preferred - and if you have the patience and skill, it should be possible to squeeze an 0603 SMD capacitor across the cut trace as well. As there is only about 3-4mm clearance between the bottom of the board and the QMX's case, it is important that these components lay flat as well.
![]() |
| Figure 7: This shows the two "isolation" caps, C1 and C2, between the outputs of IC503 and the PA's gates. Click on the image for a larger version. |
For the circuitry on the top side of the board the most important part is to keep the leads of R1/R2 and D1/D2 connected to the gate quite short to minimize stray capacitance, but a bit more liberty may be taken with the opposite side - but capacitor C3 - which does both RF bypassing and DC filtering - should be located fairly close by
In figure 8, monolithic capacitor C3 is visible as the yellow rectangle with one end tacked to the ground plane and to the top are the "un-banded" ends of diodes D1/D2. To the right of C3 can be seen the two diodes that make up D3 and D4 - the banded ends of both "pointed" toward the ground plane and the top of the two diodes connected to C3. If you look carefully you can see a short, green wire that connects the midpoint D3 and D4 to the "floating" end of R1/R2.
Testing
What's there to say here: It works.
Once this modification was done, I verified that it still worked on every band, and there was no band on which the power was lower after the modification was done - but some bands, particularly the higher ones, seemed to benefit a bit more than the others.
As noted earlier, as the final amplifier is always in parallel with the receive signal path, any noise that might be being produced by the output FETs being slightly turned on by the bias voltage would degrade reception. Even if the output transistors did not produce noise when turned slightly on, doing so could "swamp" the receive signal path a bit if their resistance were reduced by their conducting slightly. To verify that neither of these things were happening, I checked the receiver sensitivity on several bands, alternately shorting the junction of D3 and R3 to remove the bias voltage and NO change in noise or signal level was discernible.
Final comments
This modification is admittedly a bit awkward due to the compact construction of the QMX and QMX+, but it should be possible as long as care is taken. It should be possible to produce a very small PC SMD board with everything but C1 and C2 on it that could be connected with just three leads plus ground on the top side of the board to make this modification both easier and tidier. I have yet to look into what it would take to make this modification to the much more compact QMX.
I would strongly suggest that this modification - or something very much like it - be incorporated into the QMX/QMX+ designs to make it more robust overall. While I am perfectly capable of building a QMX/QMX+ from a kit - and repairing it, even at the surface-mount level - many owners of the QMX/QMX+ do not have that capability - and reducing one "semi-common" point of failure would, in my opinion, be beneficial 6 .
* * * * * * *
Footnotes:
- Back in 1999, when this circuit was built, PSK31 was "all the rage" and I wanted to construct a self-contained, simple PSK31 beacon transmitter that would operate under FCC part 15 at the top of the AM broadcast band - typically around 1704.9 kHz. More detail about this project may be found here.
- A similar issue to this may be found when analog video is capacitively-coupled. Many circuits that process analog video rely to some degree on the fact that the synchronization pulses will be the most negative portion of the waveform - and a specific portion of that wave form, namely the "front porch", is used to establish where the "black" level of the video should be. If capacitively coupled, the "average" voltage of a video waveform will wander up and down and otherwise make determining the precise bightness-versus-voltage correlation impossible. A "cheesy" way to do this in the old days was to simply clamp to the negative-going synchronization pulse with a diode and make the assumption that it had some fixed relation to the "black" level voltage - and usually, doing this was "OK", but would never fly in good-quality commercial gear.
- The "clock stall" issue when running CW with break-in was fixed by firmware version 1.4.00. I was "bit" by this bug when operating POTA: I'd been running on CW for the better part of an hour and was being distracted by the "full break in" - that is, being able to hear the receive signals during even the briefest "dits" on transmit. Remembering that it was an option, I then added 200 milliseconds of break-in, which is still fast enough to hear the receiver between words at 16-18WPM and after 2-3 minutes and another couple of QSOs, the QMX turned itself on/off several times with keying before turning off for good with smoke issuing from every orifice. Back at home, all four of the PA transistors, IC503 and diode D108 were found to have failed.
- In my humble opinion, the heat sinking of the final transistors in the QMX and QMX+ is not quite adequate for high duty-cycle modes such as WSPR. For example, on both my QMX and QMX+, the final transistors and the series modulator, Q507, will attain close to 100C during long key-down and during the self-calibration. For my QMX, I have placed 5mm thick thermal padding on the back side of the circuit board in that areas around the final transistors and Q507 to help dissipate heat and the result is that there is significantly less "droop" during key-down, and during self-calibration, the aluminum case of the QMX gets almost too hot to hold - but at the same time, the final transistors and surrounding components stay below 70C: The only components that get "hotter than hell" are the 1N4007 diodes used for band switching. On the QMX+, 4mm thick pad with self-adhesive copper or aluminum foil on the "non-board" (case) side can be used to allow the board to be slid in in spite of the "stickiness" of of the thermal pad material. If you do use thermal pad material, use good-quality (but somewhat expensive) material from a reputable manufacturer rather than random pad found on EvilBay or Amazon: These cheaper alternatives often degrade and melt to a sticky, oily and possibly slightly corrosive mess!
- The Miller Effect is a "bugaboo" that makes it a challenge to drive simple circuits to high frequencies. There is capacitance between the gate of the FET and its drain, but in a circuit like this, when we "turn on" the FET by increasing the gate voltage, this causes the drain voltage to go down - and since it's an amplifier, the "swing" of the drain voltage is likely to be much larger than the gate voltage. What this means is that the capacitive coupling between the gate and drain work against us: The dropping drain voltage gets capacitively coupled to the gate, working against the gate voltage that we are trying to increase! For a simple circuit like this all we can really do is "push" the signal into the gate harder, using more drive power - and this, coupled with the fact that the gate of the FET also has gate-to-source capacitance, is why there are pairs of gates paralleled in IC503 to drive the FET's gate more forcefully.
- As was stated in this article, I appreciate how difficult it is to catch "all possible" things that can go wrong in both firmware and hardware. and as one of the major contributors in a previous SDR transciver's hardware and software (e.g. the mcHF) I have experienced the "pain" of unforeseen consequences. By understanding and reporting difficulties with this and other hardware, products like the QMX and others can be improved over time.
* * * * * * *
This page stolen from ka7oei.blogspot.com
[END]









No comments:
Post a Comment
PLEASE NOTE:
Be sure to be logged in to your Google account to post.
While I DO appreciate comments, those comments that are just vehicles to other web sites without substantial content in their own right WILL NOT be posted!
If you include a link in your comment that simply points to advertisements or a commercial web page, it WILL be rejected as SPAM!