#include "DSP281x_Device.h"
#include "DSP281x_Examples.h"
// Select the global Q value to use:
#define GLOBAL_Q 29
long GlobalQ = GLOBAL_Q; // Used for GEL & Graph Debug.
#include "IQmathLib.h"
#define I 3.141592654
void Cal(void);
_iq input,output;
void main(void)
{
InitSysCtrl();
DINT;
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
EnableInterrupts();
for(;;)
{
Cal();
}
}
void Cal(void)
{ for(i=0;i<180;i++)
{
input=_IQ29(0.25*PI);
output=_IQ29sin(PI/3);
}
}
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |