Have a look at the warning in line 41 (Declaration of SineTable).
You just declared a pointer, but did not reserve any storage for the array. So an assignment SinTable[i] will destroy some data in sram.
or, if you like dynamic allocations:
SineTable = malloc(TABLESIZE); // do not forget to increase Heap size!!!
Thankyou Bob for your reply.
Yes now i used char SineTable;
Now the data is coming but, the speed is very slow.
Can you tell me why i am getting this much slow speed?
1 of 1 people found this helpful
On every interrupt, which occurs 7680 times a second, you are re-calculating the sine table. Change your program, so that you just calculate all values once, and then in the interrupt handler transfer them to IDAC.