sine wave generator

Look at changing the PWM frequency to 40KHz. This is much better than using a loop. Otherwise you can get a NE555 to generate it for you.
Also 25uS is 25 micro seconds 10 -6 where as the delay function gets a number in milli seconds 10 -3.