title: IQ math calculation
body: <p>Can anyone explain how below conversation works? </p>
  
  <pre><code>clarke1.As =_IQ15toIQ((AdcResult.ADCRESULT0&lt;&lt;3)-_IQ15(0.50))&lt;&lt;1;
  </code></pre>
  
  <p>Piccolo devices have 12-bit ADC and 16-bit ADC registers. The <code>AdcResult.ADCRESULT</code> registers are right justified for Piccolo devices; therefore, the measured phase current value is firstly left shifted by three to convert into Q15 format (0 to 1.0), and then converted to ac quantity (± 0.5) following the offset subtraction. Finally, it is left shifted by one (multiplied by two) to normalize the measured phase current to ± 1.0 pu.</p>
  
  <p>I don't understand this.</p>