FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2008, 10:23 AM
Ignacy
Guest
 
Posts: n/a
Default PCM - read signal frequency

Hello

I've to write a piece of software which can read frequency of input
signal form sound card.
Right now I know how to read PCM (using ALSA). Next I think I have to
do some kind of FFT on the samples I've read. I think about using
fftw3 library, maybe somene already had an eperience with this kind of
problem? Any other solutions will be appreciatted, I've also read
about soundmodem modules, but couldn't find any good documentation how
to use it)

To read PCM I'm using unsigned 16 bits mode, mono and 8kHz sample
rate,
Signal frequency vary from 1,3kHz to 2.3kHz (+/i 10kHz) with sub-
carrier 1.7kHz.
Lower is used for logical "1", higher for logical "0".

Maybe You can tell me how to use a raw PCM samples and convert them
for example to C's tables with integer values or any other more useful
form.

Thanks form advice.
Ignacy
Reply With Quote
  #2 (permalink)  
Old 02-08-2008, 06:07 PM
Jerry Avins
Guest
 
Posts: n/a
Default Re: PCM - read signal frequency

Ignacy wrote:
> Hello
>
> I've to write a piece of software which can read frequency of input
> signal form sound card.
> Right now I know how to read PCM (using ALSA). Next I think I have to
> do some kind of FFT on the samples I've read. I think about using
> fftw3 library, maybe somene already had an eperience with this kind of
> problem? Any other solutions will be appreciatted, I've also read
> about soundmodem modules, but couldn't find any good documentation how
> to use it)


Google "frequency estimation".

> To read PCM I'm using unsigned 16 bits mode, mono and 8kHz sample
> rate,
> Signal frequency vary from 1,3kHz to 2.3kHz (+/i 10kHz) with sub-
> carrier 1.7kHz.
> Lower is used for logical "1", higher for logical "0".
>
> Maybe You can tell me how to use a raw PCM samples and convert them
> for example to C's tables with integer values or any other more useful
> form.


The raw PCM is already integer The MSB is the sign. You need to be sure
that the numbers are sign-extended (the sign bit propagated all the way
to the left) if there more bits in your integer representation than come
from the ADC.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
finding frequency of voice signal [email protected] DSP 0 02-02-2008 06:56 AM
How to trigger write signal and read sigal ZHI FPGA 0 07-03-2006 01:07 AM
Length of signal vs. frequency resolution M.L. DSP 5 03-23-2006 01:38 AM
Shift frequency of an audio signal Frank DSP 13 04-08-2004 09:56 PM
Quadratic interpolation of the signal frequency (DFT) Andrzej Kaczor DSP 0 07-20-2003 04:26 PM


All times are GMT +1. The time now is 01:43 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved