This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28027: IQmath issue

Part Number: TMS320F28027
Other Parts Discussed in Thread: TMS320F28021,

Hi team,

Here's an issue from the customer may need your help:

iqtmp =_IQ(spwmiqvar.spwm_cnt)+_IQ(SIN_B);

spwmiqvar.sinvale =_IQsin(spwmiqvar.sina);

spwmiqvar.sinb =_IQmpy(spwmiqvar.M_FACTOR,spwmiqvar.sinvale);

spwm_value=1000+1000*_IQtoF(spwmiqvar.sinb);

These IQ operations cause printf to have no output and the while function of main function is not executed, and the program is very slow. However, if comment out any of the two statements above, it can be executed properly. Is it because IQ execution is time consuming and causes an interrupt to overflow? Spwmiqvar.spwm_cnt is the uint16_t type data, other are decimal numbers.

Could you help check this case? Thanks.

Best Regards,

Cherry