Post Go back to editing

IQ controls - different formula from datasheet

Thread Summary

The user is experiencing discrepancies between the expected and actual gain settings of the HMC631 on a PCB, with a maximum span of ~11dB instead of the advertised 40dB. The final answer suggests that offset voltages inside the part may be causing phase errors at low gain settings and recommends a calibration procedure to find the correct zero points for Vi and Vq. The user clarifies that the plot shows a sweep between 0.5V and 2.5V for both Vi and Vq, and will re-evaluate the data with finer steps.
AI Generated Content
Category: Hardware
Product Number: HMC631

Good afternoon,

From the datasheet at hmc631 (v00.1007), the formulas

Vi = Vmi + G/Gmax * cos(theta)

Vq = Vmq + G/Gmax * sin(theta)

are the reference to be used to set Vi and Vq, once Vim and Vqm are known, or for a rough first sweep, assumed to be 1.5V.

However, I have several HMC631 installed on a PCB, where the relationship appears to be different: I get the highest gains for [Vi = 0.5V, Vq = 1.5V] (phase = 180) but not for  [Vi = 2.5V, Vq = 1.5V], there is a difference of around 6dB between the two values.

Moreover, sweeping all pairs of values between 0.5V and 2.5V (even those that do not come from the formulas), the maximum span I can get is ~11dB, not the 40dB advertised in the datasheet. Below an example:

Data on the left appears to be more regular, but I did not want to get too close to the absolute maximum rating, moreover the DAC I am using can't even go negative.

I am generating the signal using a NanoVNA-F V2, and with the same device I am also measuring the output.

 

Any ideas what may be going on?

Thanks!

  • I don't follow the plot you pasted in but I suspect that the issue is related to offset voltages inside the part. 

     

    In order to maximize the range of the device you need to find the (externally applied) I and Q voltages that give you the lowest possible output. I proposed the procedure below in response to a similar post. 

     

    The I and Q input levels are 0.5 to 2.5 and are referenced to these Vmi and Vmq  voltage which  are both 1.5V. So if you set Vmi and Vmq each to 2.5V, you will get a phase of 45 degrees. If you set Vmi and Vmq to 0.5, you get a phase of -135 deg. The datasheet does not talk about the part having any offset errors but I'm sure that it does.  My guess is that it is these offset errors that are causing phase errors at low gain settings. So you have to find the voltage that you apply to the I and Q inputs that will results in no signal at the output, that is, you want to set your output level to zero. Here is how to do that calibration. 

    1. Apply a fixed RF input power level.

    2. Set the Q voltage to 1.5V (that is effectively 0V)

    3. Next Adjust the I voltage from 0.5 to 2.5. As the voltage approaches 1.5V, the output will drop. At the point at which the output level hits its trough (minimum), stop adjusting the I voltage and hold it at whatever level yielded the mimimum output level.

    4. Now adjust the Q voltage from 0.5V to 2.5V. Again you will see that at some voltage close to 1.5V, the signal level will hit a (lower) minimum level. 

    5. So if the I and Q voltages that yielded the two minimum levels were, say, 1.555 and 1.444, then those become your "zero points". The get a phase of 45 deg, you would add a fixed voltage to both levels. 

     

  • Hi, thanks a lot for your answer and sorry for the late reply;

    Let me clarify my plot: it is a sweep between 0.5 and 2.5V for both Vi and Vq, with step 0.1.

    I was concerned that the maximum gain I was able to set was only -11dB, but this may be due to the very coarse step I am using.

    I will take a better look at my data in virtue of your suggestions, and maybe I'll realize that I messed up something in my reasoning.

    Thanks!

  • A little more context: I am applying voltage to only one set of IQ pins, and left the other set floating. Is that a problem?

    To elaborate more on the plots I get: consistently for all chips on the PCB, plots of gain and phase are of this kind: again, the sweep is of 0.1V from 0.5V to 2.5V, for both I and Q.

    I am logging using a NanoVNA-F V2 connected through USB, that's why measurements are so noisy.

    The plots I am getting are squeezed in 10dB, and 90 degrees of phase, which makes me think that somehow I am controlling only one fourth of the available space.

  • If you are not going to use one of the inputs, I would tie it to the mid point voltage. If you are only using the I or the Q control, you are exercising the part in only one of its two dimensions. So if the Q voltage is 0, then all you can to is adjust the gain at a fixed angle of 0 degrees if the I voltage is positive. If you make the I voltage negative (relative to the mid point), now you get to adjust the gain with the signal at -180 degrees. This is not very useful if you are trying to make a vector modulator or a phase shifter. 

  • Sorry if I wasn't clear in my previous post: I use both I and Q, but only on one side of the chip as the datasheet says to apply voltage to "either input". Indeed, I also checked with multimeter and those pins are shorted on the two sides.

    If the controls were closer to 1.5V the plots would be symmetric and I could infer from them where the actual value of Vim and Vqm would be: (simulated in matlab by inverting the formulas and solving for gain and phase as function of Vi/Vq)

    But my plots make no sense and don't allow me to find Vi/Vm simply because there is no value in the data that is extremely lower than the others;

    The NanoVNA has a span of 60dB (much larger than what I could control with the HMC631) and I verified that the signal is not saturating the input.

    What's funnier is that with the evaluation board I have absolutely no issue and can control gain/phase like charm.

  • Good evening, I think I got the issue...

    The package base of the chip is not connected to GND, so its reference lever is perpetually floating between 4 and 8V.

    My absolute bad as even though the KiCAD symbol didn't bring a GND pin, I should have known better as in the datasheet it is clearly indicated.

    Thanks Enash for the help!

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.