sine wave using SPI

It takes about 100 instructions to send a byte via software spi. So your case, it should be around 200 instructions or 12us per step. Times 24 steps gets you to about 300us for the whole cycle.

That's about 3Khz.