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 03-09-2007, 11:09 AM
[email protected]
Guest
 
Posts: n/a
Default Quadrature tone decoder

Hi all,

I made a quadrature tone decoder like this :

I first sampling the input signal at 300 kS/s from an 8 bit ADC

Then I mix this signal with sine and cosine at the frequency I want to
decode (22 kHz)
Then I have a decimate filter to sampling at 60 kHz, then I can
lowwpass filter at cutoof frequency of 500 Hz with an IIR filter to
remove the other tone frequency
then I compute the square of the two I and Q branch and compute I²+Q²,
so if the tone 22kHz is present I have a constant continue value and
zero if the tone is not present

My problem is that I have a little amplitude offset on the ouput of
the decimation filter and when I compute the square, I don't have a
constant amplitude on I²+Q² due to the offset, I have a ripple at very
low frequency 0,5 Hz

Is there a solution to remove this offset ? I don't know why I have
this little amplitude offset

Thanks

Reply With Quote
  #2 (permalink)  
Old 03-09-2007, 03:28 PM
Vladimir Vassilevsky
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder



[email protected] wrote:

> Hi all,
>
> I made a quadrature tone decoder like this :
> I first sampling the input signal at 300 kS/s from an 8 bit ADC
>
> Then I mix this signal with sine and cosine at the frequency I want to
> decode (22 kHz)
> Then I have a decimate filter to sampling at 60 kHz, then I can
> lowwpass filter at cutoof frequency of 500 Hz with an IIR filter to
> remove the other tone frequency
> then I compute the square of the two I and Q branch and compute I²+Q²,
> so if the tone 22kHz is present I have a constant continue value and
> zero if the tone is not present


Here is how I would do it:

1. Sample the signal at 88 KHz.
2. Multiply the signal by 1 1 -1 -1 1 1 -1 -1.... pattern for Q and -1 1
1 -1 -1 1 1 -1 -1... pattern for I.
3. Accumulate, get I^2 + Q^2.

A simple 8-bit microcontroller like PIC or AVR would do.


> My problem is that I have a little amplitude offset on the ouput of
> the decimation filter and when I compute the square, I don't have a
> constant amplitude on I²+Q² due to the offset, I have a ripple at very
> low frequency 0,5 Hz



> Is there a solution to remove this offset ? I don't know why I have
> this little amplitude offset


Yes, there is a solution, and I can do it for you.


Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com


Reply With Quote
  #3 (permalink)  
Old 03-09-2007, 05:21 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder

My input signal is a frequency multiplex with tone up to 74 kHz, so I
need to sample at 300 kHz to make a NCO with about 4 samples...

And then, in your solution you don't have a low pass filter that
reject others tones, my tones are speparated by 1 kHz so I need a 500
Hz low pass filter

So I need to decimate before low pass filter at this low frequency
(500 Hz), I cannot make a IIR filter with 300 kHz frequency sampling
and 500 Hz cut off


Reply With Quote
  #4 (permalink)  
Old 03-09-2007, 05:47 PM
Vladimir Vassilevsky
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder



[email protected] wrote:

> My input signal is a frequency multiplex with tone up to 74 kHz, so I
> need to sample at 300 kHz to make a NCO with about 4 samples...


No problem here: 74kHz will be aliased to 14kHz and fitered out.

> And then, in your solution you don't have a low pass filter that
> reject others tones, my tones are speparated by 1 kHz so I need a 500
> Hz low pass filter


Make a CIC filter with a span of 1ms.

>
> So I need to decimate before low pass filter at this low frequency
> (500 Hz), I cannot make a IIR filter with 300 kHz frequency sampling
> and 500 Hz cut off


It is not a problem at all to make an IIR with 300kHz sample rate and
500Hz cutoff. However the approach that you took is extremely inefficient.

Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com
Reply With Quote
  #5 (permalink)  
Old 03-09-2007, 06:03 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder

why do you think my approach is ineficient ?

I have to decode 6 tones with 6 tone decoder, and the 6 frequency can
be change

So I have to make a structure that is universal... you know

so i have chosen to sampling at 300 kHz (4 times the upper frequency
74kHz)...

and I think that to cutoof at 500 Hz I need a IIR filter with 24 bits
coeffcients...

I took the idea of James Gilley : "Tone detection with a quadrature
receiver" found on google

best regards...



Reply With Quote
  #6 (permalink)  
Old 03-09-2007, 06:21 PM
Vladimir Vassilevsky
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder



[email protected] wrote:

> why do you think my approach is ineficient ?
>
> I have to decode 6 tones with 6 tone decoder, and the 6 frequency can
> be change
>
> So I have to make a structure that is universal... you know



IEEE Signal Processing Magazine
Volume: 24 Issue: 2 Date: 2007
Efficient Multitone Detection
Vassilevsky, V.L.
Page(s): 144-147


Vladimir Vassilevsky

DSP and Mixed Signal Design Consultant

http://www.abvolt.com

Reply With Quote
  #7 (permalink)  
Old 03-09-2007, 07:13 PM
Clay
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder

On Mar 9, 12:21 pm, Vladimir Vassilevsky <antispam_bo...@hotmail.com>
wrote:
> patrick.me...@dmradiocom.fr wrote:
> > why do you think my approach is ineficient ?

>
> > I have to decode 6 tones with 6 tone decoder, and the 6 frequency can
> > be change

>
> > So I have to make a structure that is universal... you know

>
> IEEE Signal Processing Magazine
> Volume: 24 Issue: 2 Date: 2007
> Efficient Multitone Detection
> Vassilevsky, V.L.
> Page(s): 144-147
>
> Vladimir Vassilevsky
>
> DSP and Mixed Signal Design Consultant
>
> http://www.abvolt.com


Hello Vladimir,

I just checked IExplore, and the new mag is online, so I down loaded
and read your article. Quite interesting! Thanks for alerting me to
it.

Clay



Reply With Quote
  #8 (permalink)  
Old 03-11-2007, 02:27 PM
Rick Lyons
Guest
 
Posts: n/a
Default Re: Quadrature tone decoder

On 9 Mar 2007 10:13:03 -0800, "Clay" <[email protected]> wrote:

>On Mar 9, 12:21 pm, Vladimir Vassilevsky <antispam_bo...@hotmail.com>
>wrote:
>> patrick.me...@dmradiocom.fr wrote:
>> > why do you think my approach is ineficient ?

>>
>> > I have to decode 6 tones with 6 tone decoder, and the 6 frequency can
>> > be change

>>
>> > So I have to make a structure that is universal... you know

>>
>> IEEE Signal Processing Magazine
>> Volume: 24 Issue: 2 Date: 2007
>> Efficient Multitone Detection
>> Vassilevsky, V.L.
>> Page(s): 144-147
>>
>> Vladimir Vassilevsky
>>
>> DSP and Mixed Signal Design Consultant
>>
>> http://www.abvolt.com

>
>Hello Vladimir,
>
>I just checked IExplore, and the new mag is online, so I down loaded
>and read your article. Quite interesting! Thanks for alerting me to
>it.
>
>Clay


Hi Clay,
Yep, I agree. Vladimir has a number of
clever tricks he used to reduce the
computational complexity of his tone detectors.

See Ya',
[-Rick-]

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
Problem writing quadrature decoder Michael FPGA 83 05-29-2008 09:38 PM
Yay! We're done with the quadrature encoder! John_H FPGA 4 05-22-2008 07:15 PM
idle tone in sigma delta modulator - and, the tone has harmonics! spitalny DSP 8 01-02-2006 11:48 PM
quadrature modulator sekhar DSP 7 11-25-2005 02:06 PM
Quadrature Sampling PMD DSP 4 03-20-2005 04:08 PM


All times are GMT +1. The time now is 03:20 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