Other Parts Discussed in Thread: TMS320F2812, CONTROLSUITE
Hi
I am using a fixed point DSP (TMS320F2812) for my application. I am using a sine look-up table and so I have to use IQ math. I am using the following equations.
s1 = _IQ30mpy(m4,_IQ30(0.8));
EvaRegs.CMPR1 = T1-_IQsat(_IQ30mpy(_IQ30mpy(sine_table[i],s1),T1/2),T1,0);
m4 is also in IQ30 format and T1 is my period register value.
I am getting s1 in 32 bit format but registers are 16 bit only.
How can I make IQ30 in int format instead of long int?