<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Engineering · Writing · Franco Alcaraz</title><description>How things that have to work get designed, tested and kept running.</description><link>https://blog.francoalcaraz.com/en/topics/engineering/</link><language>en-US</language><item><title>IQ modulation in practice: carrier leakage and the image</title><link>https://blog.francoalcaraz.com/en/iq-modulation/</link><guid isPermaLink="true">https://blog.francoalcaraz.com/en/iq-modulation/</guid><description>A visual tour of IQ modulator impairments (offset, gains, quadrature, cross-coupling and delay) and of the single model that lets you compensate them.</description><pubDate>Fri, 05 Jun 2015 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;You generate a clean baseband tone, convert it with two DACs, run it through an IQ modulator and look at the spectrum analyzer. You expected one line at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0+f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and three show up: yours, another one right at the local oscillator frequency &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and a third, smaller one mirrored at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0-f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. The middle one is &lt;strong&gt;carrier leakage&lt;/strong&gt;; the mirrored one is the &lt;strong&gt;image&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Neither is mysterious. Both can be read from a single picture: the complex-envelope vector seen from a frame that rotates with the local oscillator. In this article I go through that picture and what each hardware impairment does to it: DC offset, gain imbalance, quadrature error, cross-coupling between branches and differential delay. In the end, all of them fit into one model that can be inverted to predistort the signal.&lt;/p&gt;
&lt;p&gt;The complete derivations, circuits and validity conditions are in the &lt;a href=&quot;#the-full-report&quot;&gt;full report&lt;/a&gt;, which you can download at the end.&lt;/p&gt;
&lt;h2 id=&quot;a-real-signal-two-numbers-per-instant&quot;&gt;A real signal, two numbers per instant&lt;/h2&gt;
&lt;p&gt;An IQ modulator takes two real signals, &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I(t)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q(t)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and produces&lt;sup&gt;&lt;a href=&quot;#user-content-fn-1&quot; id=&quot;user-content-fnref-1&quot; data-footnote-ref aria-describedby=&quot;footnote-label&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;Re&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;{&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msup&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mrow class=&quot;tml-sml-pad&quot;&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;/mrow&gt;&lt;/msup&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;}&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mi&gt;sin&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;s(t)=\operatorname{Re}\{b(t)\,e^{j2\pi f_0t}\}=I(t)\cos(2\pi f_0t)-Q(t)\sin(2\pi f_0t),
\qquad b(t)=I(t)+jQ(t).&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;b(t)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is the &lt;strong&gt;complex envelope&lt;/strong&gt;: a vector in the plane whose coordinates are &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. It is worth not confusing the orthogonality of the &lt;em&gt;axes&lt;/em&gt; with a time relationship between the &lt;em&gt;signals&lt;/em&gt;: &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; can be any two real functions. Sine and cosine only appear in a particular case, a tone &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-lyons2000&quot; title=&quot;Lyons (2000). Quadrature Signals: Complex, But Not Complicated&quot; class=&quot;cita&quot; id=&quot;cita-lyons2000&quot;&gt;1&lt;/a&gt;]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;That case is precisely the most instructive one. With &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;A&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;msup&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mrow class=&quot;tml-sml-pad&quot;&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;/mrow&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;b(t)=A_me^{j\omega_mt}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the vector traces a circle of radius &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;A&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;A_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; rotating at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\omega_m=2\pi f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and the output is a single tone at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0+f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. With a negative &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the vector rotates the other way and the tone falls below the LO.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/fasor_vectorial.CqX4mOZ1_ZHTJq2.webp&quot; alt=&quot;Two panels. On the left, a vector in the complex plane with its I and Q projections on the axes. On the right, two vectors rotating in opposite directions around the origin.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1088&quot; height=&quot;538&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;(a) The envelope vector and its I and Q coordinates. (b) In the frame rotating at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, a component at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0+f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; rotates at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;+\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and one at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0-f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; rotates at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;That rotating frame is the key to reading everything that follows. If we “ride” on the local oscillator, every spectral line around &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; becomes a vector:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;static&lt;/strong&gt; vector is energy exactly at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; (carrier leakage);&lt;/li&gt;
&lt;li&gt;a vector rotating &lt;strong&gt;counterclockwise&lt;/strong&gt; at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is a line at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0+f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;;&lt;/li&gt;
&lt;li&gt;a vector rotating &lt;strong&gt;clockwise&lt;/strong&gt; at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is a line at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0-f_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; (the image of our tone).&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;figura animacion&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/ideal.DHlK_qv-.mp4&quot; poster=&quot;/_astro/ideal-poster.BJ3HwEnP_ZdUBuh.webp&quot; width=&quot;855&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;A blue vector rotates from the origin and its tip traces a perfect circle of radius one. On the right, I and Q over time: a cosine and a sine of equal amplitude.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;Ideal tone: a single rotating vector tracing a perfect circle. On the right, both coordinates over time.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In the figures, blue is the desired signal, red the image and gray the offset; the vectors are chained, so their sum traces the envelope trajectory, and the dashed circle is the ideal trajectory. In the animations, the middle inset magnifies the small vector, which is barely visible at scale, and the right panel shows &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; (blue) and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; (red) over time.&lt;/p&gt;
&lt;h2 id=&quot;the-real-chain&quot;&gt;The real chain&lt;/h2&gt;
&lt;p&gt;In practice, &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; come from memory or from a digital generator, go through two DACs with a common clock, are amplified and filtered, and reach two mixers fed by the LO through a 0°/90° splitter. The two branches are summed, and the RF is amplified and filtered again.&lt;/p&gt;
&lt;figure class=&quot;figura figura-ancha&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/cadena.C6EXVmlJ_Znqvo8.svg&quot; alt=&quot;Block diagram: memory, two DACs with a common clock, filters and amplifiers on the I and Q branches, two mixers fed by a local oscillator through a 0 and 90 degree splitter, a summer and the RF stage.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;516&quot; height=&quot;176&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Typical generation chain. Every block can introduce a difference between the I and Q branches.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Before reaching the mixer, the DAC itself already distorts the signal. The zero-order hold has a &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;sinc&lt;/mi&gt;&lt;/mpadded&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;/&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;/msub&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;|\mathrm{sinc}(f/f_s)|&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; response: it drops &lt;math&gt;&lt;semantics&gt;&lt;mn&gt;3.92&lt;/mn&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;3.92&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dB at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;/&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_s/2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and leaves sampling images around every multiple of &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_s&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. With &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;s&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;60&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_s=60&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; MHz and a &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;±&lt;/mo&gt;&lt;mn&gt;25&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\pm25&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; MHz band of interest, the band edge sits at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;2.64&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-2.64&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dB. You can pre-compensate within the band &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-maxim2012&quot; title=&quot;Integrated (2012). Equalizing Techniques Flatten DAC Frequency Response&quot; class=&quot;cita&quot; id=&quot;cita-maxim2012&quot;&gt;2&lt;/a&gt;]&lt;/span&gt;, but that gain eats headroom: to avoid saturation, the table must be normalized to the band-edge level. And pre-compensation does not remove the images; that is the job of the reconstruction filter, which in this example must transition between 25 and 35 MHz.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/sinc_imagenes.CWrKAWUt_2hsAHW.webp&quot; alt=&quot;Two spectra under the DAC&apos;s sinc envelope: three tones in the band of interest and their sampling images around 60 and 120 megahertz, without and with pre-compensation.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1138&quot; height=&quot;870&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Output of a 60 MS/s DAC for three tones: (a) uncompensated; (b) with pre-compensation limited to the band of interest and normalized to the band-edge level.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;A correction common to I and Q compensates a common response. What is interesting, and what produces leakage and image, are the &lt;strong&gt;differences&lt;/strong&gt; between branches.&lt;/p&gt;
&lt;h2 id=&quot;five-impairments-two-symptoms&quot;&gt;Five impairments, two symptoms&lt;/h2&gt;
&lt;p&gt;All the impairments below produce one of two symptoms: a static vector appears (LO leakage) or a vector rotating the other way appears (image) &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-nash2009&quot; title=&quot;Nash (2009). AN-1039: Correcting Imperfections in IQ Modulators to Improve RF Signal Fidelity&quot; class=&quot;cita&quot; id=&quot;cita-nash2009&quot;&gt;3&lt;/a&gt;]&lt;/span&gt;. To quantify the image I always use the same convention:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;img&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;20&lt;/mn&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msub&gt;&lt;mi&gt;log&lt;/mi&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;mfrac&gt;&lt;mi&gt;E&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/mfrac&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;/mrow&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mtext&gt;[dBc]&lt;/mtext&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;IRR&lt;/mi&gt;&lt;/mpadded&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;img&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mtext&gt;[dB]&lt;/mtext&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;L_{\rm img}=20\log_{10}\left|\frac{E}{D}\right|\ \text{[dBc]},\qquad
\mathrm{IRR}=-L_{\rm img}\ \text{[dB]},&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;where &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;D&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;E&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;E&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; are the complex amplitudes of the desired component and of the image. An image level of &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;40&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-40&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc is an image rejection of 40 dB.&lt;/p&gt;
&lt;h3 id=&quot;dc-offset-the-circle-shifts&quot;&gt;DC offset: the circle shifts&lt;/h3&gt;
&lt;p&gt;An offset in each branch adds a constant to the envelope: &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;b_O(t)=b(t)+O_I+jO_Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. In the LO frame it is a fixed vector, so the circle shifts and a line appears in the RF exactly at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;LO&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;20&lt;/mn&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msub&gt;&lt;mi&gt;log&lt;/mi&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mfrac&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;A&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mfrac&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mtext&gt;[dBc]&lt;/mtext&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msqrt&gt;&lt;mrow&gt;&lt;msubsup&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msubsup&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;/mrow&gt;&lt;/msqrt&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;L_{\rm LO}=20\log_{10}\frac{O}{A_m}\ \text{[dBc]},\qquad O=\sqrt{O_I^2+O_Q^2}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;An offset of 5 % of the desired amplitude leaves the leakage at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;26&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-26&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc.&lt;/p&gt;
&lt;figure class=&quot;figura animacion figura-ancha&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/dc.ClmOEcU7.mp4&quot; poster=&quot;/_astro/dc-poster.CevhCxLF_HXFg4.webp&quot; width=&quot;1125&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;The circle traced by the tip of the blue vector is shifted from the dashed ideal circle. The inset magnifies a gray vector fixed at the origin: the offset.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;Offset of &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.04&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;O_I=0.04&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;O&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.03&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;O_Q=0.03&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; (5 % of the amplitude): the gray vector is static and shifts the center of the trajectory. The inset magnifies the offset, which is barely visible on the main scale.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The correction is to subtract the offset, either digitally before the DACs (which costs range) or with auxiliary DACs afterwards (which preserves the range of the signal DACs). In practice a single pass is not enough: the real leakage is the vector sum of the converted offset and the direct LO feedthrough to the output, and the two adjustment directions are usually not orthogonal. You have to alternate I and Q adjustments until the minimum stops improving.&lt;/p&gt;
&lt;h3 id=&quot;gain-imbalance-the-ellipse-is-two-circles&quot;&gt;Gain imbalance: the ellipse is two circles&lt;/h3&gt;
&lt;p&gt;If the branches have different gains &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the circle becomes an ellipse. The revealing step is to rewrite it as:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msup&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;1em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_II(t)+jG_QQ(t)=\alpha\,b(t)+\beta\,b^*(t),\qquad
\alpha=\frac{G_I+G_Q}{2},\quad \beta=\frac{G_I-G_Q}{2}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;The &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msup&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;b^*(t)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; term is the image: for a tone it rotates the other way. The ellipse is nothing but the sum of two vectors rotating in opposite directions.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/ganancia_fasores.4oxx3BGj_Z16sOSb.webp&quot; alt=&quot;Two panels. On the left, a flattened ellipse instead of the ideal circle. On the right, the same ellipse split into a large blue vector and a small red one chained at its tip.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1098&quot; height=&quot;550&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;With &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1.2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_I=1.2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.7&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_Q=0.7&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;: (a) elliptical trajectory; (b) the same trajectory as the sum of a desired component (&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;+\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;) and an image (&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-\omega_m&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;).&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The image level is &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mn&gt;20&lt;/mn&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msub&gt;&lt;mi&gt;log&lt;/mi&gt;&lt;mn&gt;10&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;/&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;20\log_{10}|(G_I-G_Q)/(G_I+G_Q)|&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. A ±5 % imbalance (&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;1.05&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_I=1.05&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.95&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;G_Q=0.95&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;) leaves the image at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;26&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-26&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc; reaching 40 dB of rejection requires an imbalance of ±1 % or less, and that is with no other error present. Note that these are two different metrics: equalizing the gains cancels the image, but the desired amplitude also depends on their average.&lt;/p&gt;
&lt;figure class=&quot;figura animacion figura-ancha&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/ganancia.Y6-AaZG7.mp4&quot; poster=&quot;/_astro/ganancia-poster.CFIwIXaT_Z2dknlp.webp&quot; width=&quot;1125&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;A slightly flattened ellipse. The red image vector, chained to the tip of the blue one, rotates the opposite way; the inset magnifies it.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;A ±5 % imbalance: the red vector, chained to the blue one, rotates backwards. It is little more than a correction to the trajectory, yet it already leaves the image at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;26&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-26&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;quadrature-error-axes-that-are-not-perpendicular&quot;&gt;Quadrature error: axes that are not perpendicular&lt;/h3&gt;
&lt;p&gt;If the two carriers are not exactly 90° apart, with phase errors &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\phi_I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\phi_Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the effective axes of the plane are no longer orthogonal. With &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\Delta\phi=\phi_I-\phi_Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mover&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot; class=&quot;wbk-acc&quot; style=&quot;math-depth:0&quot;&gt;‾&lt;/mo&gt;&lt;/mover&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;/&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\bar\phi=(\phi_I+\phi_Q)/2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the model takes the same form again:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mrow class=&quot;tml-sml-pad&quot;&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;mover&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot; class=&quot;wbk-acc&quot; style=&quot;math-depth:0&quot;&gt;‾&lt;/mo&gt;&lt;/mover&gt;&lt;/mrow&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;msup&gt;&lt;mi&gt;e&lt;/mi&gt;&lt;mrow class=&quot;tml-sml-pad&quot;&gt;&lt;mi&gt;j&lt;/mi&gt;&lt;mover&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot; class=&quot;wbk-acc&quot; style=&quot;math-depth:0&quot;&gt;‾&lt;/mo&gt;&lt;/mover&gt;&lt;/mrow&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mi&gt;sin&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mspace width=&quot;2em&quot;&gt;&lt;/mspace&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;mfrac&gt;&lt;mi&gt;E&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/mfrac&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mrow&gt;&lt;mi&gt;tan&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;/mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mfrac&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\alpha=e^{j\bar\phi}\cos\frac{\Delta\phi}{2},\qquad
\beta=je^{j\bar\phi}\sin\frac{\Delta\phi}{2},\qquad
\left|\frac{E}{D}\right|=\tan\frac{|\Delta\phi|}{2}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;The common phase &lt;math&gt;&lt;semantics&gt;&lt;mover&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo stretchy=&quot;false&quot; class=&quot;wbk-acc&quot; style=&quot;math-depth:0&quot;&gt;‾&lt;/mo&gt;&lt;/mover&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\bar\phi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; only rotates everything; the difference &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\Delta\phi&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is what creates the image and tilts the ellipse. A quadrature error of 1° leaves the image at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;41&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-41&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc.&lt;/p&gt;
&lt;figure class=&quot;figura animacion figura-ancha&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/cuadratura.jdmtu80q.mp4&quot; poster=&quot;/_astro/cuadratura-poster.BGLiCDuQ_1MX0jb.webp&quot; width=&quot;1125&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;A tilted ellipse instead of the ideal circle. In the inset, the red image vector rotates opposite to the blue one.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;Phase errors of 27° and 9° (exaggerated so they show): the ellipse is tilted and the image, in the inset, rotates opposite to the desired signal.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Gain and phase combine coherently:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mfrac&gt;&lt;msub&gt;&lt;mi&gt;P&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;img&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mi&gt;P&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;des&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;/mfrac&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;msubsup&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msubsup&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;msubsup&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msubsup&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mn class=&quot;tml-med-pad&quot;&gt;2&lt;/mn&gt;&lt;/msubsup&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mi&gt;G&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mi&gt;cos&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;/mfrac&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\frac{P_{\rm img}}{P_{\rm des}}=
\frac{G_I^2+G_Q^2-2G_IG_Q\cos\Delta\phi}{G_I^2+G_Q^2+2G_IG_Q\cos\Delta\phi}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;You cannot add the dB levels of each error as if they were independent powers. Improving the phase may go unnoticed if the gain dominates, and vice versa.&lt;/p&gt;
&lt;h3 id=&quot;cross-coupling-between-branches-it-depends-on-the-circuit&quot;&gt;Cross-coupling between branches: it depends on the circuit&lt;/h3&gt;
&lt;p&gt;Both branches live on the same board: parasitic capacitances, shared supplies, return paths. In general, the output is a &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mo&gt;×&lt;/mo&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;2\times2&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; transfer matrix that mixes &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;I&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and its frequency dependence &lt;strong&gt;cannot&lt;/strong&gt; be inferred by naming the mechanism (“it’s capacitive”, “it’s inductive”): it is set by the source and load impedances.&lt;/p&gt;
&lt;p&gt;A concrete example: two sources with series resistance &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;S&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;R_S&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, loads &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;R_L&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and a capacitance &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mi&gt;M&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;C_M&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; between branches.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/circuito_capacitivo.CwfmjIoN_Z2u664d.svg&quot; alt=&quot;Circuit: two sources, I and Q, each with its series resistance and its load to ground, joined by a coupling capacitor.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;302&quot; height=&quot;305&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Lumped model of capacitive coupling between symmetric branches.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Solving the circuit, with &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;ω&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mi&gt;M&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x=\omega_m R C_M&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;S&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;∥&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;R=R_S\parallel R_L&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the image-to-desired ratio is &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mi&gt;/&lt;/mi&gt;&lt;msqrt&gt;&lt;mrow&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msup&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mn class=&quot;tml-sml-pad&quot;&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;/msqrt&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x/\sqrt{1+x^2}&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;: &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;20&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-20&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc for &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x=0.1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;7&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-7&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc for &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x=0.5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, and 0 dBc when the coupling is very strong. In that limit the trajectory collapses into a line at 45°: desired component and image have the same magnitude, and &lt;strong&gt;no finite predistortion&lt;/strong&gt; can recover the signal, because two degrees of freedom go through a single direction.&lt;/p&gt;
&lt;figure class=&quot;figura animacion figura-ancha&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/capacitivo.BeXFR9h8.mp4&quot; poster=&quot;/_astro/capacitivo-poster.uxpRJHCx_Z2tqaAX.webp&quot; width=&quot;1125&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;A barely elliptical trajectory. In the inset, a small red vector chained to the blue one rotates the opposite way.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;Capacitive coupling with &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;S&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;R&lt;/mi&gt;&lt;mi&gt;L&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;50&lt;/mn&gt;&lt;mtext&gt; &lt;/mtext&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Ω&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;R_S=R_L=50\ \Omega&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mi&gt;M&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;C_M=5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; nF for a 125 kHz tone (&lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;≈&lt;/mo&gt;&lt;mn&gt;0.1&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x\approx0.1&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;): image at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;20&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-20&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;figure class=&quot;figura figura-ancha&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/capacitivo_fasores.Dq9dujR2_1ythiw.webp&quot; alt=&quot;Three IQ planes. With weak coupling the trajectory is almost a circle; with moderate coupling, an ellipse; with strong coupling, almost a line at 45 degrees.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1169&quot; height=&quot;431&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Desired and image components of the capacitive circuit for &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;x&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.05&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;x=0.05&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, &lt;math&gt;&lt;semantics&gt;&lt;mn&gt;0.5&lt;/mn&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;0.5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mn&gt;5&lt;/mn&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Moreover, unlike quadrature error, the image grows with the tone frequency: two tones of equal amplitude have different images.&lt;/p&gt;
&lt;h3 id=&quot;differential-delay-the-bat-wings&quot;&gt;Differential delay: the “bat wings”&lt;/h3&gt;
&lt;p&gt;If one branch arrives earlier than the other, because of traces of different length or different filters, each tone sees a phase shift that grows with its frequency. For a differential delay &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mi&gt;I&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;/msub&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\Delta\tau=\tau_I-\tau_Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;mfrac&gt;&lt;mi&gt;E&lt;/mi&gt;&lt;mi&gt;D&lt;/mi&gt;&lt;/mfrac&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;true&quot;&gt;|&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mrow&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;tan&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mo&gt;≃&lt;/mo&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\left|\frac{E}{D}\right|=|\tan(\pi f_m\Delta\tau)|\simeq\pi|f_m\Delta\tau|.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;figure class=&quot;figura animacion figura-ancha&quot; data-animacion data-astro-cid-5cnsb532&gt;&lt;video src=&quot;https://blog.francoalcaraz.com/_astro/retardo.B3g3wKvi.mp4&quot; poster=&quot;/_astro/retardo-poster.CSWArA8x_Z1EDzmo.webp&quot; width=&quot;1125&quot; height=&quot;387&quot; muted loop playsinline preload=&quot;none&quot; controls aria-label=&quot;A tilted ellipse, similar to the quadrature-error one. In the inset, the red image vector rotates opposite to the blue one.&quot; data-astro-cid-5cnsb532&gt;&lt;/video&gt;&lt;button type=&quot;button&quot; class=&quot;pausa&quot; data-pausar=&quot;Pause animation&quot; data-reanudar=&quot;Play animation&quot; aria-label=&quot;Pause animation&quot; aria-pressed=&quot;false&quot; hidden data-astro-cid-5cnsb532&gt;&lt;svg class=&quot;i-pausa&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;rect x=&quot;7&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;rect x=&quot;13.8&quot; y=&quot;5.5&quot; width=&quot;3.2&quot; height=&quot;13&quot; rx=&quot;1&quot; data-astro-cid-5cnsb532&gt;&lt;/rect&gt;&lt;/svg&gt;&lt;svg class=&quot;i-play&quot; width=&quot;20&quot; height=&quot;20&quot; viewBox=&quot;0 0 24 24&quot; fill=&quot;currentColor&quot; aria-hidden=&quot;true&quot; data-astro-cid-5cnsb532&gt;&lt;path d=&quot;M8 5.5v13l10.5-6.5z&quot; data-astro-cid-5cnsb532&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;figcaption data-astro-cid-5cnsb532&gt;&lt;p&gt;A 0.5 µs differential delay with a 125 kHz tone: for a single tone it looks like a quadrature error, and the image sits at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;14&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;-14&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; dBc.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;For a single tone, a delay cannot be told apart from a phase error. The difference shows up when the tone changes: the image is zero at &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_m=0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and grows at 20 dB per decade; plotted in dB around zero, it looks like a pair of bat wings. The number worth remembering: for 40 dB of rejection up to 25 MHz, the differential delay must be below about &lt;strong&gt;127 ps&lt;/strong&gt;, and that is with no other errors.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/retardo_normalizado.FrMg5QnD_1NcKB8.webp&quot; alt=&quot;Two plots. On a linear scale, the desired signal drops slightly and the image rises from zero away from f_m equal to zero. In decibels, the image draws a V shaped like bat wings.&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1140&quot; height=&quot;523&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;Desired signal and image versus &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;/msub&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_m\Delta\tau&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, on linear and logarithmic scales.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The most useful diagnostic appears when delay and quadrature error combine: the image null is no longer at &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and moves to&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mrow&gt;&lt;mi&gt;m&lt;/mi&gt;&lt;mo separator=&quot;true&quot;&gt;,&lt;/mo&gt;&lt;mrow&gt;&lt;mi&gt;min&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;mi&gt;π&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;/mrow&gt;&lt;/mfrac&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_{m,\min}=-\frac{\Delta\phi}{2\pi\,\Delta\tau}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;If, when sweeping tones, the image minimum is not at the center, you have both at the same time. Correcting the LO phase brings the minimum back to &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, but the delay is still there.&lt;/p&gt;
&lt;figure class=&quot;figura&quot;&gt;&lt;p&gt;&lt;img src=&quot;https://blog.francoalcaraz.com/_astro/retardo_tres_tonos.Dj07hh7a_ZfOoJC.webp&quot; alt=&quot;Three line spectra with three tones and their images: without errors, with delay and quadrature error (one of the images disappears), and with the quadrature corrected (the images grow with frequency).&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1138&quot; height=&quot;908&quot;&gt;&lt;/p&gt;&lt;figcaption&gt;With &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;τ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0.5&lt;/mn&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\Delta\tau=0.5&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; µs and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mrow&gt;&lt;mi mathvariant=&quot;normal&quot;&gt;Δ&lt;/mi&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;mi&gt;ϕ&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mn&gt;9&lt;/mn&gt;&lt;mi&gt;°&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\Delta\phi=-9°&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;, the image of the 50 kHz tone vanishes (b). After correcting the quadrature, the null returns to &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;f_0&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and the images grow with frequency (c).&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;one-model-for-everything&quot;&gt;One model for everything&lt;/h2&gt;
&lt;p&gt;Offset, gain, phase, symmetric coupling and delay (at a given frequency) all end up in the same form:&lt;/p&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msup&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;t&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;z(t)=\alpha\,b(t)+\beta\,b^*(t)+c.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;&lt;math&gt;&lt;semantics&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\alpha&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is the gain and phase of the desired signal, &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\beta&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; produces the image and &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; is the leakage referred to the LO frame.&lt;sup&gt;&lt;a href=&quot;#user-content-fn-2&quot; id=&quot;user-content-fnref-2&quot; data-footnote-ref aria-describedby=&quot;footnote-label&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;Two practical consequences:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Errors do not add up.&lt;/strong&gt; When two blocks are chained, &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msub&gt;&lt;msubsup&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msubsup&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\alpha=\alpha_2\alpha_1+\beta_2\beta_1^*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; and &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msub&gt;&lt;msub&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;/msub&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msub&gt;&lt;msubsup&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mn&gt;1&lt;/mn&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msubsup&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\beta=\alpha_2\beta_1+\beta_2\alpha_1^*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. The order matters, and so does the physical point where each correction is injected.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The model can be inverted.&lt;/strong&gt; To obtain the desired envelope &lt;math&gt;&lt;semantics&gt;&lt;msub&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/msub&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;z_d&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; at the output, you generate&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;math-bloque&quot;&gt;&lt;math display=&quot;block&quot; class=&quot;tml-display&quot; style=&quot;display:block math&quot;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;msub&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mpadded lspace=&quot;0&quot;&gt;&lt;mi&gt;pre&lt;/mi&gt;&lt;/mpadded&gt;&lt;/msub&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mfrac&gt;&lt;mrow&gt;&lt;msup&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;msub&gt;&lt;mi&gt;z&lt;/mi&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/msub&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;msup&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;mo&gt;−&lt;/mo&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;msup&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mn&gt;2&lt;/mn&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;/mfrac&gt;&lt;mi&gt;.&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;b_{\rm pre}=\frac{\alpha^*(z_d-c)-\beta\,(z_d-c)^*}{|\alpha|^2-|\beta|^2}.&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/div&gt;
&lt;p&gt;That formula corrects gain, phase, cross-mixing and offset at once &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-xu2007&quot; title=&quot;Xu &amp;amp; Wen (2007). Modeling and Compensation of a Non-Ideal I/Q-Modulator&quot; class=&quot;cita&quot; id=&quot;cita-xu2007&quot;&gt;4&lt;/a&gt;]&lt;/span&gt;. Near &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mi&gt;α&lt;/mi&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mi&gt;|&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;|\alpha|=|\beta|&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; the denominator vanishes: that is the strong-coupling case, where the inverse amplifies noise and estimation errors.&lt;/p&gt;
&lt;p&gt;When the errors depend on frequency, the coefficients become responses: &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;Z&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mi&gt;A&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mi&gt;B&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;mo&gt;+&lt;/mo&gt;&lt;mi&gt;C&lt;/mi&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;msup&gt;&lt;mi&gt;B&lt;/mi&gt;&lt;mo class=&quot;tml-med-pad&quot;&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;mrow&gt;&lt;mo fence=&quot;true&quot; form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;(&lt;/mo&gt;&lt;mo form=&quot;prefix&quot; stretchy=&quot;false&quot;&gt;−&lt;/mo&gt;&lt;mi&gt;f&lt;/mi&gt;&lt;mo fence=&quot;true&quot; form=&quot;postfix&quot; stretchy=&quot;false&quot;&gt;)&lt;/mo&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Z(f)=A(f)B(f)+C(f)B^*(-f)&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. That couples each frequency with its mirror, and the correction becomes a matrix of filters. A scalar correction tuned with a single tone does not prove that the whole band is compensated: a delay, for example, needs a phase proportional to frequency (a fractional-delay filter).&lt;/p&gt;
&lt;h2 id=&quot;calibrating-without-fooling-yourself&quot;&gt;Calibrating without fooling yourself&lt;/h2&gt;
&lt;p&gt;A reasonable sequence, with a test tone that separates the signal, the LO and the image in the spectrum &lt;span class=&quot;citas&quot;&gt;[&lt;a href=&quot;#ref-hansen2013&quot; title=&quot;Hansen (2013). Vector Modulation and Frequency Conversion Fundamentals&quot; class=&quot;cita&quot; id=&quot;cita-hansen2013&quot;&gt;5&lt;/a&gt;, &lt;a href=&quot;#ref-nash2009&quot; title=&quot;Nash (2009). AN-1039: Correcting Imperfections in IQ Modulators to Improve RF Signal Fidelity&quot; class=&quot;cita&quot;&gt;3&lt;/a&gt;]&lt;/span&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Check that nothing saturates and measure the uncorrected state.&lt;/li&gt;
&lt;li&gt;Minimize LO leakage by alternating the I and Q DC adjustments.&lt;/li&gt;
&lt;li&gt;With a tone, adjust differential gain and quadrature, alternating, and keep an eye on the desired amplitude.&lt;/li&gt;
&lt;li&gt;Repeat with tones spread across the band, positive and negative, including some near zero (but not at zero, where signal and image coincide).&lt;/li&gt;
&lt;li&gt;If the image changes systematically with frequency, adjust a differential delay or estimate the full matrix, and check the conditioning.&lt;/li&gt;
&lt;li&gt;Measure everything again with all corrections applied together.&lt;/li&gt;
&lt;li&gt;Validate with a representative signal, such as a chirp or a multitone.&lt;/li&gt;
&lt;/ol&gt;
&lt;aside class=&quot;recuadro&quot; data-tipo=&quot;nota&quot;&gt;&lt;p class=&quot;recuadro-titulo&quot;&gt;Measurement traps&lt;/p&gt;&lt;p&gt;The FFT is normalized by the sum of the window (not by the zero-padded length); test tones must be coherent with the window; if there is an observation receiver, its own IQ imbalance must be characterized first, or it will be blamed on the transmitter; and a “zero” image in a model is a mathematical zero, not a measurable infinite rejection.&lt;/p&gt;&lt;/aside&gt;
&lt;h2 id=&quot;in-summary&quot;&gt;In summary&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;In the LO frame, carrier leakage is a &lt;strong&gt;still&lt;/strong&gt; vector and the image is a vector rotating &lt;strong&gt;backwards&lt;/strong&gt;. With that mental picture you can diagnose almost everything.&lt;/li&gt;
&lt;li&gt;Gain, phase, coupling and delay are different paths to the same conjugate term &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;β&lt;/mi&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;msup&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/msup&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;\beta\,b^*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;; what changes is how it depends on frequency, and that dependence is the best clue to which one dominates.&lt;/li&gt;
&lt;li&gt;Minimizing the image is necessary but not sufficient: you also have to preserve the amplitude and phase of the desired signal, and verify across the whole band.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-full-report&quot;&gt;The full report&lt;/h2&gt;
&lt;p&gt;This article summarizes a longer report that develops everything in detail: the modulation and Fourier conventions, the finite-duration linear chirp, the DAC response, the nodal solution of the coupling circuit, the inversion of the frequency-dependent model and the calibration procedure.&lt;/p&gt;
&lt;figure class=&quot;embebido pdf&quot; id=&quot;pdf-report-en&quot;&gt;&lt;span class=&quot;pdf-marca&quot; aria-hidden=&quot;true&quot;&gt;PDF&lt;/span&gt;&lt;span class=&quot;pdf-texto&quot;&gt;&lt;span class=&quot;pdf-titulo&quot;&gt;IQ Modulation: Fundamentals, Analysis of Non-Idealities and Compensation Techniques&lt;/span&gt;&lt;span class=&quot;pdf-detalle tabular&quot;&gt;53 pages · 1.3 MB&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pdf-acciones&quot;&gt;&lt;a href=&quot;https://blog.francoalcaraz.com/media/iq-modulation/34b572f0-report-en.pdf&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Open&lt;/a&gt;&lt;a href=&quot;https://blog.francoalcaraz.com/media/iq-modulation/34b572f0-report-en.pdf&quot; download=&quot;report-en.pdf&quot;&gt;Download&lt;/a&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;p&gt;The first version of these notes dates from 2015. This is a rewrite: all figures and animations were computed from the model equations; they are simulations, not measurements of real hardware.&lt;/p&gt;
&lt;section data-footnotes class=&quot;notas&quot;&gt;&lt;h2 class=&quot;notas-titulo&quot; id=&quot;footnote-label&quot;&gt;Notes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;user-content-fn-1&quot;&gt;
&lt;p&gt;Some implementations add &lt;math&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;mrow&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;mi&gt;sin&lt;/mi&gt;&lt;mo&gt;⁡&lt;/mo&gt;&lt;mspace width=&quot;0.1667em&quot;&gt;&lt;/mspace&gt;&lt;/mrow&gt;&lt;/mrow&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q\sin&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt; instead of subtracting it. That is a different convention: to carry the formulas over, flip the sign of &lt;math&gt;&lt;semantics&gt;&lt;mi&gt;Q&lt;/mi&gt;&lt;annotation encoding=&quot;application/x-tex&quot; data-pagefind-ignore&gt;Q&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;. What you should not do is mix both in the same derivation.&lt;a href=&quot;#user-content-fnref-1&quot; data-footnote-backref aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&quot;user-content-fn-2&quot;&gt;
&lt;p&gt;It is called a &lt;em&gt;widely linear&lt;/em&gt; model because it contains both the complex variable and its conjugate.&lt;a href=&quot;#user-content-fnref-2&quot; data-footnote-backref aria-label=&quot;Back to reference 2&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;&lt;section class=&quot;referencias&quot; aria-labelledby=&quot;referencias&quot;&gt;&lt;h2 id=&quot;referencias&quot; class=&quot;referencias-titulo&quot;&gt;References&lt;/h2&gt;&lt;ol&gt;&lt;li id=&quot;ref-lyons2000&quot; value=&quot;1&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[1]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Lyons, R. (2000). &lt;i&gt;Quadrature Signals: Complex, But Not Complicated&lt;/i&gt;. DSP Training.  &lt;a href=&quot;#cita-lyons2000&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 1&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-maxim2012&quot; value=&quot;2&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[2]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Integrated, M. (2012). Equalizing Techniques Flatten DAC Frequency Response. &lt;i&gt;Application note 3853&lt;/i&gt;.  &lt;a href=&quot;#cita-maxim2012&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 2&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-nash2009&quot; value=&quot;3&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[3]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Nash, E. (2009). &lt;i&gt;AN-1039: Correcting Imperfections in IQ Modulators to Improve RF Signal Fidelity&lt;/i&gt;. Analog Devices.  &lt;a href=&quot;#cita-nash2009&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 3&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-xu2007&quot; value=&quot;4&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[4]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Xu, X., &amp;amp; Wen, K. (2007). Modeling and Compensation of a Non-Ideal I/Q-Modulator. &lt;i&gt;Master&amp;#39;s thesis, Chalmers University of Technology (report EX083/2007)&lt;/i&gt;.  &lt;a href=&quot;#cita-xu2007&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 4&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li id=&quot;ref-hansen2013&quot; value=&quot;5&quot;&gt;&lt;span class=&quot;ref-numero&quot; aria-hidden=&quot;true&quot;&gt;[5]&lt;/span&gt;&lt;span class=&quot;ref-texto&quot;&gt;Hansen, J. (2013). &lt;i&gt;Vector Modulation and Frequency Conversion Fundamentals&lt;/i&gt;. Agilent Technologies.  &lt;a href=&quot;#cita-hansen2013&quot; class=&quot;ref-volver&quot; aria-label=&quot;Back to citation 5&quot;&gt;↩&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;&lt;p&gt;&lt;em&gt;This piece has interactive parts: &lt;a href=&quot;https://blog.francoalcaraz.com/en/iq-modulation/&quot;&gt;read it on the site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</content:encoded><category>Article</category><category>engineering</category></item></channel></rss>