The port seems to be exactly ly the one I did. And it has the same problem. long in[1024]; long out[1024]; memset(&in, 0, sizeof(in)); memset(&out, 0, sizeof(out)); /*Generate sin wawe, Fs=800, f=80, amp=32767*/ gSin(in, 1024, 800, 80, 0, 32767); test_fft = str91x_DSP_INIT(); test_fft->calc_cr4fft_1k(out, in, 1024); When testing this, with a simple sin-wave, I don't get the expected result. I just get a lot of random data. Please help me! [ This message was edited by: erila107 on 30-05-2007 10:35 ]