Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | fundamental frequency identification

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

fundamental frequency identification - sfol...@iupui.edu - Jul 4 10:07:17 2007



Hello,

I posted a message just a while back regarding the identification of fundamental frequency of a
variable signal.  I appreciate the information that was sent back to me.  However, since I do
not need the entire spectrum; I would like to know if anyone has ever seen an algorithm dealing
only with finding how long it takes a cycle to repeat.  If I know my sampling frequency and I
can identify n-cycles that it took for (let's say the two highest values), then theoretically I
should be able to determine the overall frequency of the waveform.  If anyone has ever
implemented anything like this on a 563xx system I would really appreciate any help.

Thank you,

Sean Foley



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

Re: fundamental frequency identification - Carlo - Jul 5 9:06:43 2007

s...@iupui.edu wrote:

> Hello,
> 
> I posted a message just a while back regarding the identification of 
> fundamental frequency of a variable signal. I appreciate the information 
> that was sent back to me. However, since I do not need the entire 
> spectrum; I would like to know if anyone has ever seen an algorithm 
> dealing only with finding how long it takes a cycle to repeat. If I know 
> my sampling frequency and I can identify n-cycles that it took for 
> (let's say the two highest values), then theoretically I should be able 
> to determine the overall frequency of the waveform.

If the input waveform has a dominant frequency and the other spectral
components are reasonably smaller you might implement a zero crossing
algorithm: find the places at which the signal goes from positive to
negative and viceversa, measure their frequency and divide by two. Of
course a minimum of lowpass filtering/holdoff is needed to avoid
multiple detections around each zero crossing.

Ciao,
Carlo.

--
Carlo Concari
Ricercatore - Assistant professor
Dipartimento di Ingegneria dell'Informazione
Università degli Studi di Parma
c...@unipr.it
http://www.unipr.it/~cacof697



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

Re: fundamental frequency identification - Christian Langen - Jul 5 9:06:56 2007

Dear Sean,

the maximum and minimum values of the signal can be determined by deriving the signal. Here the
zeroes of the derivative give these values.

A more simple alternative would be to determine the zero crossings of the signal itself. You
may rectify the signal by getting the absolute value - if this is beyond a certain threshold
(to be determined) you can consider the signal to be zero.

I can remember a limiter algorithm based on this idea as well - this was published in the AES
(Audio Engineering Society) Journal:

Dan Mapes-Riordan and W. Marshall Leach jr.: The Design of a Digital Signal  Peak Limiter for
Audio Signal Processing, JAES Vol. 36, No. 7/8 1988 July/August, pp. 652-574. 

Counting samples between thos zeroes could be used to determine the fundamental frequency. The
drawback of this algorithm is that the defined fundamental is not defined as precisely as by an
FFT algorithm - it minds me to an anlog octave divider used for electric bass guitars in the
late sevenies - sometimes it added the octave sometimes it was irritated by the signal...

Anoher drawback of this idea is that the minimum signal latency is defined by the lowest
fundamental frequency you want to determine - for instance to determine 20Hz you have to wait
for 50ms. Can this latency be tolerated for a life musical instrument application? I am not
that sure.

Regards

Christian

> Hello,
> 
> I posted a message just a while back regarding the identification of
> fundamental frequency of a variable signal.  I appreciate the information that
> was sent back to me.  However, since I do not need the entire spectrum; I
> would like to know if anyone has ever seen an algorithm dealing only with
> finding how long it takes a cycle to repeat.  If I know my sampling frequency
> and I can identify n-cycles that it took for (let's say the two highest
> values), then theoretically I should be able to determine the overall
> frequency of the waveform.  If anyone has ever implemented anything like this on a
> 563xx system I would really appreciate any help.
> 
> Thank you,
> 
> Sean Foley



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )