Part Number: TMS320F28069
_iq Result;
void main(void)
{
// Convert the ADC result into global IQ format valued between 0.0 and 1.0
Result = _IQ12toIQ( (_iq)AdcResult.ADCRESULT0 );
// Optional: scale by ADC full-scale range to get 0.0 to 3.3
// (if you prefer to think/scale in terms of voltage)
Result = _IQmpy( _iq(3.3), Result);
}
In floating point maths, we multiply ADCresult obtained by 3.3 and then divide by 4096. Why is this not applicable while using IQmath?