Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE
Hi Team,
Our customer has a couple of questions concerning the IQMath library for C2000:
2. In one of the sample codes the ADC data is being read like this: _IQ16toIQ((_iq)AdcRegs.ADCRESULT0));
_IQ12toIQ((_iq)AdcMirror.ADCRESULT0));
_IQ12toIQ((_iq)AdcRegs.ADCRESULT0>>4));
3. In the same sample code there were these two lines as well:
4. I am working on an inverter. After the entire control has been executed and the value of modulation index has been obtained, should I convert the modulation index from IQ format to floating point and then assign to CMPA or CMPB of any of the 6 epwm registers?
5. How may I execute the "if statement" in IQ format?
6. Do I define the global-Q value in my code or should I change it in the IQmath.h header file?
7. Do I need FPU32 library support or softlib in the "specify floating point support" option in the below screenshot? Or should I keep FPU32 library support and include IQmath.h in the code?

Pardon for the long list of questions but hope you can help us. Thanks in advance!
Kind Regards,
Jejomar

