/***************************************************************** * ale_fixpt_dsplib.c - C program for implementing ALE using * assembly routine from DSPLIB ****************************************************************** * System configuration: * * d(n) --------------------------- * | / | * d(n-1)|----------------| out(n) V * ---->| ALE (LMS-FIR) |-----> |+| * |----------------| - | * /___________________| * ******************************************************************/ #include #include #include #include "newtest.h" DATA err[NX]; short i; short oflag; #define STEP 1310 /*66(2*0.001); 676(2*0.01); 1310(2*0.02) */ void main(void) { asm(" STM #0, SWWSR"); /* clear */ for (i=0;i= 4) { oflag=dlms(x,h,r,&dp,des,STEP, NH, NX/4); oflag=dlms(&x[NX/4],h,&r[NX/4],&dp,&des[NX/4],STEP,NH,NX/4); oflag=dlms(&x[NX/2],h,&r[NX/2],&dp,&des[NX/2],STEP,NH,NX/4); oflag=dlms(&x[(3*NX)/4],h,&r[(3*NX)/4],&dp,&des[(3*NX)/4],STEP,NH,NX/4); } */ /* (iii) 2 sample/block mode since need delayed error */ for (i=0; i