??? 11/11/06 09:36 Read: times |
#127768 - Eh? Endian issue. Responding to: ???'s previous message |
Dear Friends,
I could finally make alfredos code work for my applicaion. It was Variable Endian issue. Alfredos code assumed little endian where as my MSP430 compiler uses Big endian type variables. This is the code segment that had issue. [pre] temp= (long) x * y; temphi= *((uint *) (&temp)); /* bytes 3 and 2 of temp */ templo= *((uchar *) (&temp) + 2); /* byte 1 of temp */ temphi= temphi << 2; [/pre] Now, I want to extend the code to use 12bit data samples instead of 10bit and also want to make it 128 point FFT. Thanks & Regards, Prahlad Purohit. |