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-06-2005, 11:56 AM
Roland Moschel
Guest
 
Posts: n/a
Default Audio Limiter with EzKit Lite ADDS 2189M

Hi there,

is there any example code to build an Audio Limiter with the
EZKIT LITE 2189M Evaluation Board ?


Any suggestions ?

Thanks in advance


Roland
Reply With Quote
  #2 (permalink)  
Old 02-06-2005, 09:38 PM
Jaime Andrés Aranguren Cardona
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

Hi,

I don't know if the full code is available, and I honestly don't believe it
is.

What would you need for the system? Maybe you can get some examples for
relevant blocks of the processing algorithm.

--
Jaime Andrés Aranguren Cardona
[email protected]
SanJaaC Electronics
Soluciones en DSP
www.sanjaac.com

(Remove "nospam" from e-mail address)

"Roland Moschel" <[email protected]> escribió en el mensaje
news:[email protected]..
> Hi there,
>
> is there any example code to build an Audio Limiter with the
> EZKIT LITE 2189M Evaluation Board ?
>
>
> Any suggestions ?
>
> Thanks in advance
>
>
> Roland



Reply With Quote
  #3 (permalink)  
Old 02-06-2005, 10:46 PM
Roland Moschel
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

Hi,
I want to use the kit as a hearing protection
behind an headphone amplifier.
It sould be able to eliminate short
loudness peaks within the audio signal relatively fast.

best regards

Roland

On Sun, 6 Feb 2005 15:38:12 -0500, "Jaime Andrés Aranguren Cardona"
<[email protected]> wrote:

>Hi,
>
>I don't know if the full code is available, and I honestly don't believe it
>is.
>
>What would you need for the system? Maybe you can get some examples for
>relevant blocks of the processing algorithm.


Reply With Quote
  #4 (permalink)  
Old 02-07-2005, 12:19 AM
Jaime Andrés Aranguren Cardona
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

Good...

What I meant was this: maybe you won't get the full code already done for
you, ar at least it won't be publicily availabe. But if you say for example:

- I need FIR filters.
- I need FFT processing.
- I need RMS calculation.
- I need adaptive filtering.

etc.... Maybe it will be easier, and code for those "blocks" IS already
publicily available.

I hope this helps.

--
Jaime Andrés Aranguren Cardona
[email protected]
SanJaaC Electronics
Soluciones en DSP
www.sanjaac.com

(Remove "nospam" from e-mail address)

"Roland Moschel" <[email protected]> escribió en el mensaje
news:[email protected]..
> Hi,
> I want to use the kit as a hearing protection
> behind an headphone amplifier.
> It sould be able to eliminate short
> loudness peaks within the audio signal relatively fast.
>
> best regards
>
> Roland
>
> On Sun, 6 Feb 2005 15:38:12 -0500, "Jaime Andrés Aranguren Cardona"
> <[email protected]> wrote:
>
> >Hi,
> >
> >I don't know if the full code is available, and I honestly don't believe

it
> >is.
> >
> >What would you need for the system? Maybe you can get some examples for
> >relevant blocks of the processing algorithm.

>



Reply With Quote
  #5 (permalink)  
Old 02-07-2005, 04:03 AM
John S. Dyson
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

In article <1107731740.dd01ec3978f48444e79be4791b890680@teran ews>,
"Jaime Andrés Aranguren Cardona" <[email protected]> writes:
> Good...
>
> What I meant was this: maybe you won't get the full code already done for
> you, ar at least it won't be publicily availabe. But if you say for example:
>
> - I need FIR filters.
> - I need FFT processing.
> - I need RMS calculation.
> - I need adaptive filtering.
>
> etc.... Maybe it will be easier, and code for those "blocks" IS already
> publicily available.
>
> I hope this helps.
>

For a peak limiter, given extremely variable analog source, I'd be
tempted to use a FET (or other device) that is capable of providing
gain control for extreme cases BEFORE digitization. The control signal
could be provided by the DSP device, and would be applied before
the A/D conversion. Maybe a LDR (light dependent resistor) type scheme
would have better SNR and perhaps less distortion, but would respond
more slowly. For a FET, a careful shaping of the control voltage
(along with the traditional linearization) would help to mitigate some
of the defects of a FET device.

The gain control could be provided by a Gilbert cell-type device
or a FET. A linearized FET might be especially useful in this
case, becuase it would have little effect when gain reduction isn't
applied, and the variations between FETS might be able to be calibrated
out. (The control signal could come from a D/A from the DSP board.)
(I'd initially suggest a series resistor and a parallel FET, and providing
a max of perhaps 10dB of loss so as to avoid nonlinearity and minimizing
SNR loss.) If the peaks go beyond 10dB (maybe 16dB) above full scale,
then there would be problems worse than occasional overload.

For stereo, you'd likely need two of the D/As, because each FET would
need to be calibrated.

Maybe this isn't practical, maybe it is...

Unless the digital input has 20bits of A/D or more, I'd be a little worried
about throwing away dynamic range... Well, maybe the gain control device
would also throw away dynamic range??!?!?! Perhaps there is no perfect
solution? If the A/D provides 20bits of resolution, then using an analog
gain control would likely be overkill and would likely decrease quality,
I guess?

John

Reply With Quote
  #6 (permalink)  
Old 02-09-2005, 04:54 AM
Mark
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

An uncompensated shunt JFET has the worst distortion at 6 dB
attenuation and it is pretty bad distortion. The distortion is
minimized by using the smallest possible signal and......

There is an elegant way to reduce this distortion. You use a resistor
network (or other method) and apply 1/2 the audio signal that is on the
drain to the gate. This linearizes the JFET VCA.

See Fig 1 here:
http://sound.westhost.com/project67.htm

That is the purpose of the 2 1Meg resisotrs conected ot the gate.


Mark

Reply With Quote
  #7 (permalink)  
Old 02-09-2005, 07:22 PM
John S. Dyson
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

In article <[email protected] .com>,
"Mark" <[email protected]> writes:
> An uncompensated shunt JFET has the worst distortion at 6 dB
> attenuation and it is pretty bad distortion. The distortion is
> minimized by using the smallest possible signal and......
>
> There is an elegant way to reduce this distortion. You use a resistor
> network (or other method) and apply 1/2 the audio signal that is on the
> drain to the gate. This linearizes the JFET VCA.
>
> See Fig 1 here:
> http://sound.westhost.com/project67.htm
>
> That is the purpose of the 2 1Meg resisotrs conected ot the gate.
>

When I used the term 'linearized fet', I meant using the 50% feedback
thing... The best way that I have done it is by using a buffer so as
to avoid any feedthrough of the control signal. If you use too high
a resistor value, then there are some negative HF effects, but too
low and you'll get control feedthrough. With a buffer (which I don't
know if you have shown a buffered version), then most of the problems
are gone.

The linearized fet thing is pretty well known (e.g. Siliconix app note.)


John


Reply With Quote
  #8 (permalink)  
Old 02-09-2005, 10:40 PM
John S. Dyson
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

In article <cudkc9$2phu$[email protected]>,
[email protected] (John S. Dyson) writes:
> In article <[email protected] .com>,
> "Mark" <[email protected]> writes:
>> An uncompensated shunt JFET has the worst distortion at 6 dB
>> attenuation and it is pretty bad distortion. The distortion is
>> minimized by using the smallest possible signal and......
>>
>> There is an elegant way to reduce this distortion. You use a resistor
>> network (or other method) and apply 1/2 the audio signal that is on the
>> drain to the gate. This linearizes the JFET VCA.
>>
>> See Fig 1 here:
>> http://sound.westhost.com/project67.htm
>>
>> That is the purpose of the 2 1Meg resisotrs conected ot the gate.
>>

> When I used the term 'linearized fet', I meant using the 50% feedback
> thing... The best way that I have done it is by using a buffer so as
> to avoid any feedthrough of the control signal. If you use too high
> a resistor value, then there are some negative HF effects, but too
> low and you'll get control feedthrough. With a buffer (which I don't
> know if you have shown a buffered version), then most of the problems
> are gone.
>
> The linearized fet thing is pretty well known (e.g. Siliconix app note.)
>

PS: it looks like it is the buffered and linearized version (good.)

I wouldn't normally wish to use a FET, but with the possibility of
proper calibration with control from an A/D from a DSP, then the
FET matching issue is dealt with by automatic calibration.

So, this would be a nearly ideal solution, where the linearized FET can
provide (moderately) good high level dynamic range and the matching issues
can be mitigated.

1) Use a FET gain control element, where the 50% feedback scheme is
used, but the gain control voltage comes from the DSP board (perhaps
filtered?) The 50% feedback should best be provided in the analog
domain.

2) The FET gain control element should be in a SHUNT config, and should
be laid out to provide a max of a few dB loss (maybe 10-15dB.) Most
likely, the amount of peak limiting (when needed) should be just enough
to stop clipping... The peak limiting should sound/work better than
clipping, but it might be nicer if the peak limiter has limited effect
on sound quality.

3) When handling 'peak' limiting, the delay of the D/A control voltage
for the gate input (which is summed with the 50% feedback) needs to be
considered, or the feedback might/will be unstable.

4) Each of the audio channels should have the gain control seperately
controlled so that each channel can be properly calibrated.

5) Fast transitions of the gain control signal can inject some feedthough
and the effect on the sound is ugly. If there is some limiting of
slew rate of the gain control voltage, then the associated delay might
need to be considered.

In normal circumstances, the FET should be set for 0dB (or nearly so)
loss.

Given the FET will likely start being somewhat nonlinear somewhere in
the 0.1V - 1V range (depending upon Vp and other design parameters), it
is incredibly important to limit the normal input voltage to that range,
and might be a good thing to make up for the signal level loss for
better full scale usage of the A/D. When making up for the lost gain,
there will be some delay in that preamp (very low noise, low gain) and
it can affect the stability of the gain control feedback loop. WIth
a very high Vp component, there will be a little more room for high
signal levels, but even with 50% feedback, it won't be perfect.

MAYBE, with the use of a fancy DSP, the entire gain control signal (including
the 50% feedback) might be able to be created IN THE DSP. This might
allow for compensating higher order effects (than just the 50% thing.)

John
Reply With Quote
  #9 (permalink)  
Old 02-09-2005, 10:55 PM
Andor
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M

John wrote:

"
MAYBE, with the use of a fancy DSP, the entire gain control signal
(including
the 50% feedback) might be able to be created IN THE DSP. This might
allow for compensating higher order effects (than just the 50% thing.)
"
Why not implement the whole effect in a DSP? That would nicely close
the loop on this thread and take us back to the OP's question.

Now, as to where one can find such code: I would try the FAQ
(http://www.bdti.com/faq/dsp_faq.htm)

Regards,
Andor

Reply With Quote
  #10 (permalink)  
Old 02-10-2005, 04:48 AM
Mark
Guest
 
Posts: n/a
Default Re: Audio Limiter with EzKit Lite ADDS 2189M


Andor wrote:
> John wrote:
>
> "
> MAYBE, with the use of a fancy DSP, the entire gain control signal
> (including
> the 50% feedback) might be able to be created IN THE DSP. This might
> allow for compensating higher order effects (than just the 50%

thing.)
> "
> Why not implement the whole effect in a DSP? That would nicely close
> the loop on this thread and take us back to the OP's question.
>
> Now, as to where one can find such code: I would try the FAQ
> (http://www.bdti.com/faq/dsp_faq.htm)
>
> Regards,
> Andor


I think we got off the whole DSP method becuase a previous poster was
ocncerned that the A/D may have insufficient dynamic range to accpet
the unliminted input signal. Using a DSP controlled analog VCA seems
like a neat idea.

John, yeah, I first saw the 50% feedback trick many years ago in a
Siliconix app note. I have some other issues regarding the number of
poles in the control loop feedback that I'd like to bounce off you. I
have always found that you can't have more than a one pole filter on
the control voltage. If you use tewo or mor pole you get bad overshoot
in the gain control tracking during a transient input. And of course a
one pole filter does not do a good job of removing the audio so you get
some distortion due to tthe modulaiton.

Can you e-mail me at
mkolber "at" motorola "dot" com
email addr

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
ADSP 21161N EZKIT Lite ( VDSP++ 3.5) Rashmi P DSP 6 06-04-2004 06:09 AM
Connecting the ADSP 21061 EZKit - Lite w/o Serial Port Hari DSP 8 02-29-2004 04:23 AM
Blackfin EZ-kit lite audio codec from C Søren Skovgaard Christensen DSP 0 10-31-2003 02:23 PM
Low Pass Filter design using ADSP21061 EZkit Lite Suman DSP 1 07-18-2003 10:40 AM
Low Pass Filter design using ADSP21061 EZkit Lite Suman DSP 1 07-15-2003 12:16 PM


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