Showing posts with label Amplifier. Show all posts
Showing posts with label Amplifier. Show all posts

Monday, April 28, 2025

Digital Pre-Distortion (Puresignal)


Linearity

Let's briefly talk about the linearity of a Power Amplifier (PA), which states that the output of such amplifier increases linearly with the increase of the input signal.  This basically means that if we have a PA with a stated gain of 10 dB, and if we put 1W into the amplifier we should see an output of 10W. Unfortunately, this isn’t an ideal world. Todays Transceivers use transistors in the PA stage, which are active devices and inherently nonlinear. Now if we use PAs in their linear region, then the output power is relatively proportional to the input power. However, the downside of this approach is that the PA is generally used in a very inefficient state in which most of the power provided is being lost as heat. We often want to use PAs at the point where they begin to compress. What this means is that if the input power is increased by 3 dB and the PA output power only increases by 1dB, the PA is operating at the  non-linear region.


Pic.1 Input Signal vs Output Signal

As soon as the PA approaches the saturation point and enters the non-linear region, the interference increases. To sum it up, when an amplifier is fed with a multi-tone signal (Voice) at its input, it amplifies all the signals and in the process will generate unwanted signals (distortion).

Pic.2 A PA used in its NON-Linear region

Digital Pre-Distortion

Most of us understand that IMD is an unwelcome and an undesired by-product of any amplifier. And fortunately there is this method to reduce IMD called Pre-Distortion. Pre-Distortion or PD basically works by making our rf-amplifiers more linear by (pre-)distorting the input signal to the amplifier. Pre-distorting the input signal in such a way as to offset the amplifier distortion at the output. Basically this means that we are able to correct the output to behave very much like an ideal amplifier, well close to an ideal amplifier anyway.

Pic.3 Amplifier Linearity without Pre-Distortion, Ideal vs Measured

As we can see from Pic.3 the PA is going into compression fairly early ,i.e. the PA is mostly working in the non-linear region. However, at Pic.4 compression starts very late, as such the we can see that the PA characteristics follow the ideal for quite a while.

Pic.4 Amplifier Linearity with Pre-Distortion, Ideal vs Measured

Please note, that in addition to the amplitude distortion (Pre-Distortion) there is also phase distortion (the amplifier phase shift varies as a function of signal amplitude) which also must be corrected to achieve significant reductions in IMD. 

The two graphs below show us the Phase relationship when Pre-Distortion (PD) is used. Pic.4 without PD and Pic.5 with PD applied.
Pic.4
Pic.4

Pic.5

Today's compute power of Software Defined Radios (SDR) can easily be used to calculate the required corrections required for PD. These corrections are then applied to the digital transmit samples to create a near perfect output signal. 

NOTE: Digital Pre-Distortion is also known as "Puresignal" (PS), as implemented by Dr. Warren Platt in the WDSP library. 

PS continuously monitors and corrects the output signal of the rf-amplifier either the internal on inside the radio or an external one. To be able to do so, the software implementation requires a second digital receiver and, if an external rf-amplifier is going to be used in the PS loop, a suitable sensor/sampler (TAP) which will feed a low power signal into a second digital receiver for further processing in the software. This method is called Adaptive Pre-Distortion, as it adapts continuously to the changes in the output signal. 

Pic.6


The above is a simplification of what is going on in the PS loop. The correction is actually performed in the Software (WDSP) and the loop is run in the digital domain of the SDR. 

Do's and Don'ts 

As mentioned above if we use an external amplifier and want to use PS we need a sample of the signal after the amplifier i.e., the signal which is going out towards the antenna. Depending on the sampler/tap used, additional attenuation might be needed to be inserted into the feedback to make sure that the receiver is not going to add additional distortion products to the signal and, of course to protect the sensitive front end of that second receiver.


NOTE: MAKE SURE THAT YOUR FEEDBACK IS ALWAYS SUFFICIENTLY LOW (ATTENUATED) SO IT DOES NOT DAMAGE YOUR HARDWARE.

  • It is very important that the feedback level does NOT create an ADC Overload situation.
  • However, to achieve the best PS results, the feedback level must be as CLOSE as practical to ADC Overload.
  • On my ANAN 100D ADC overload occurs at approximately ‐11dBm (about 180 mVpp).  
  • Again I can't stress it enough DO NOT CREATE an ADC overload condition.

 

PA Memory Effects

There is this phenomena in RF-amplifiers called Memory Effects. I try to explain this as best as I possible can. What this means is that the amplifier gain and phase are not only a function of the current input signal but also a function of past input signal(s), i.e. the amplifier remembers the past. These effects can be temperature and/or bias (PWRS) related. This is most prominent using SSB. The signal into the amplifier changes with speech pattern of the operator and so we have strong signals and weak signals into the amplifier. Suppose that a strong signal sends the active device(s) in the amplifier into a hot situation thereby briefly changing its gain and other characteristics. The amplifier will remember this state/characteristics until it cools sufficiently down again. However, in the meantime a number of weaker signals arrive at the amplifier however, they have been predistored for a different state of the amplifier. The end result is a PS issues. This is also true for bias and the supply voltages. Which can also change the gain and other characteristics of the amplifier. 

Having used PS with a 13.8V 400W - 8dB gain linear-amplifier with voltage supplied from a 60A PWRS, I've detected some memory effects running the amplifier at about 380W output. Dropping the input by 25% solved that issue. There was no issue with the supply voltage, so I assume the issue was more related to heating of the amplifier. I did not add additional cooling, which might have solved that issue. However, using amplifiers with high voltage power FET(s) or LDMOS devices I have not detected any memory effects (YMMV).

So a few points to take away from this to minimise memory effects:
  • Make sure to monitor the temperature of the amplifier. Using amplifiers with more headroom to keep the amplifier running cool or adding additional cooling should keep memory affects away.
  • It goes without saying that enough headroom in the PWRS is also required to avoid voltage sag.
  • Sufficient heat dissipation of all parts.

Puresignal Correction Bandwidth

Another point to consider when operating PS is, the PS correction bandwidth. 
For PS to be able to correctly compute correction, all IMD products need to be within the bandwidth of the receiver used to receive the feedback of the amplifier. PS can only correct what it can "see" within the bandwidth of the channel. The sample rate dictates the bandwidth of the receiver and since this is set in the firmware to be 48ks, the correction bandwidth would be 48kHz. 
However, we would need to consider a bit of filter roll‐off and so the correction bandwidth would really be more like 40 kHz e.g., +/-20kHz from the center frequency.
For most of us that is not an issue however, for some this could become an issue. PS will NOT work well with very dirty signals e.g., signals which are dirty by overdriving the available hardware.


APPENDIX

  • The current fav is to use a Hermes Lite, which has about 5W pep output, then add a low voltage intermediate amplifier, before finally driving a tube or a low gain high-power solid state amplifier. If you managed to read all of the above you would have garnered a good understanding now of why that might be fraught with problems. An easier solution would be to forget about the intermediate amplifier and to use a high gain solid state amplifier.

  • The effects of Digital Pre-Distortion (Puresignal) (no external amplifier)
2 tone signal without DPD/PS

2 tone signal with DPD/PS

Voice signal without DPD/PS

Voice signal with DPD/PS

  • Digital Pre-Distortion as implemented in Direct Sampling SDR.

  • Digital Pre-Distortion as implemented in WDSP (Puresignal)



Friday, June 28, 2024

IM improvements using DPD with a SSPA

The question that a lot of users seem to have on their mind is "What benefits, if any do I get by using ICOMS DPD in conjunction with a Solid State Power Amplifier (SSPA)"

Well, I measured a 6dB improvement. 

Measurement setup:

Two tone test:


Result:
1st Value    -31.311dBc
2nd Value    -31.455dBc
3rd Value    -52.398dBc
4th Value    -53.545dBc
IM Max     -22.2dBc
IM Avg     -21.6dBc

NOTE: 1st and 2nd value are the two tones (fundamentals) and 3rd and 4th value are IM3.

Look at IM3 and IM5, they are nearly the same in strength.

And the below using my Voice Caller calling CQ:


Result:
1st Value    -23.996dBc
2nd Value    -31.168dBc
3rd Value    -49.526dBc
4th Value    -53.689dBc
IM Max    -29.7dBc
IM Avg    -24.0dBc

DPD ON

Two tone test:


Result:
1st Value    -31.168dBc
2nd Value    -31.311dBc
3rd Value    -58.996dBc
4th Value    -59.139dBc

IM Max    -28.0dBc
IM Avg    -27.8dBc

Well, we do see about a 6dB improvement on the two tone test which is better than a Mosquito fart. But I believe the below is quite a good example on how well it improves your VOICE signal!

And below, using my Voice Caller calling CQ:


Result:
1st Value    -20.840dBc
2nd Value    -27.582dBc
3rd Value    -57.750dBc
4th Value    -60.143dBc

IM Max    -39.3dBc
IM Avg    -34.7dBc

On average we see an improvement of 7dB again better then a Mossi fart.


So I'd say any reduction in IMD, and be it only 6dB, is an improvement. As such, I would recommend enabling DPD whilst using an RF-Amplifier however, YMMV ....

Saturday, July 1, 2023

Controling the RF-KIT Amplifier via UDP

Having gone through the trials and tribulation of online "shopping for answers" I thought I better write down how I got my amplifier to follow the band/frequency of my radio, an ICOM IC-7610.  

Please note: Many ways lead to Rome, as well to a solution for the amplifier to follow the Radios frequency/band. This is only one of the many.

Since I've already control my radio from my PC via the logging program from DXLAB, it was quite easy to Setup the amplifier to follow the radios frequency/band after some very good information had been passed on from Martinus, CT1IQI.

I first configured the amplifier for network access. I tried using the WiFi Interface but that had intermittent hissifits  so I connected it to my wired network using a STP patch cable (CAT6) and configured the Network interface of the RF2K-S through the menu system.

From the main screen select [MENU] :


and select [Network] [LAN] or [WiFi] :


The default will be DHCP however, I would advise to use a manual IP-Address. It does make it easier in finding the devices IP-address (YMMV). And should the DHCP reservation time out, it might assign a new IP-Address to the amplifier causing future connection issues.

NOTE: If you are using DHCP you'll have to search for the IP-address in your router/dhcp server address table. Make sure to have the address reserved, i.e. map the address as a static address. Consult your manual on how to do so (it would be nice it the amplifier would display its own LAN/WiFi MAC-Address, this would make finding the DHCP assigned IP-address a lot easier)


I've setup my router to act as a Name Server, as such I've also populated the [Name Server] field. (Again YMMV)

To test if the amplifier is reachable from your PC use the ping command. 

hw@rapi4:~ $ ping -c 3 rf2k-s <-- use your amplifiers IP-address (ping 1.2.3.4)
PING rf2k-s (192.168.1.11) 56(84) bytes of data.
64 bytes from rf2k-s (192.168.1.11): icmp_seq=1 ttl=64 time=0.476 ms
64 bytes from rf2k-s (192.168.1.11): icmp_seq=2 ttl=64 time=0.429 ms
64 bytes from rf2k-s (192.168.1.11): icmp_seq=3 ttl=64 time=0.423 ms
--- rf2k-s ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.423/0.442/0.476/0.023 ms

Having finished setting up the Network interface of the amplifier it's time the control Interface.
Select [Interface] and select UDP as the Default operational interface:


Now select [UDP] to select Port 12060 (the default)



and check Listen to active radio.

Now onto the Radio Control Application. In my case that is Commander from the DXLAB suite of applications. 

NOTE: I've been told that Log4OM is capable of the same feat however, I've not tried this.

In Commander open the Configuration Panel and select <Net Serv> from the [General] tab:


which brings us to the UDP Network Service window.


We add our amplifier IP Address and Port number as shown and enable the UDP Network Service. The New transceiver (Xcvr) Delay is set at 10, you might like to experiment here if you are using a WiFi connection.  

That's it for the configuration. For operation you would make sure that you select UDP through the UNIV menu.