Suj
Newbie level 3
I have a signal which has 32 samples, Valpha[32] =2.5sin t which i can generate using a function generator , similarly i need to generate Vbeta[32]=2.5cost .. please help on how do i generate a cos wave?? I need to generate sin and cos signals. These signals are then passed to dsPIC30F for further calculations.
This is the formula which i need to implement:
for(i=0;i<32;i++)
{
vp=a*((valpha*sinewave)-(vbeta*coswave));
vq=a*((valpha*coswave)+(vbeta*sinewave));
}
Please help me for a code to implement this on dsPIC30F.
This is the formula which i need to implement:
for(i=0;i<32;i++)
{
vp=a*((valpha*sinewave)-(vbeta*coswave));
vq=a*((valpha*coswave)+(vbeta*sinewave));
}
Please help me for a code to implement this on dsPIC30F.