//Sin1500MATL.c Generates sine from table created with MATLAB
 
#include "sin1500.h"	     //sin(1500) created with MATLAB
short i=0;

interrupt void c_int11()
{
 output_sample(sin1500[i]);  //output each sine value
 if (i < 127) ++i;           //incr index until end of table
    else i = 0;
 return;			     //return from interrupt
}
 
void main()
{  
 comm_intr();                //init DSK, codec, McBSP
 while(1);                   //infinite loop
}