Hi,
I am trying to implement a Goertzel Filter using the C674x. My program has an interrupt service routine that handles input and output of audio data, as well as a main function, which I use to set the values of the arrays to zero initially. The main function has a while(1) loop which the program runs everytime it finishes the interrupt service routine. So basically it goes back and forth between Interrupt service routine and while loop. I have declared a global variable flag, to indicate that I have enough data to calculate the Powers of differnt frequency components and compare them. I even calculate the differnt Powers. Now, I want to do the rest of the processing (twist test, magnitude test, and decoding which digit was pressed) in the while loop. However, my main function's while lopp cannot detect the change of the flag set in the interrupt and never enters the if condition. What should I do? Any comments would be greatly appreciated!