you need a constant clock for the AD- conversion. I have implemented the Goertzel algorithm within a timer clock ISR. Works great!!
Wolfgang, Yeah, the Goertzel algorithm is awesome. I already have it running perfectly in Matlab. Could you upload your project so I can see how you did the constant clock with the AD conversion? I am also interested in seeing how you got the algorithm working with the timer ISR. Many thanks!!!
here is a my program for decoding morsecode in an early state. It uses 3 Goertzel filters.
Have a look at:
main.c line 599 - some Goertzel defines
ADC_Int.c line 27ff definitions
77 ff the Goertzels
The program compiles with Creator 3.0 SP1. It is intended for CY8CKIT-003, but you can see the principles for PSoC5 too. There are many things you must not read, it's very specific...
Best Easter- greetings from Germany!
Morse5ES1.cywrk.Archive01.zip 989.8 K