[an error occurred while processing this directive]
Чем больше читаете, тем больше вероятность что сделаете ерунду.
(«Телесистемы»: Конференция «Цифровые сигнальные процессоры (DSP) и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено AntZ 28 октября 2003 г. 12:41
В ответ на: Про Software AGC отправлено skif 28 октября 2003 г. 12:02

Вся теория AGC может быть изложена коротко.
Я много парился, в конце концов сделал отличный AGC из пяти строчек, по типу приведенного ниже. Если есть голова - сможете улучшить модель под Ваши требования.

Assume yin is the input to the AGC (say a speech signal) and yout is the AGC output.

loop forever
{
/* Voltage controlled amplifier is just a multiplier here */
yout=yin*iout

/* error */
err=spoint-abs(yout)

/* Integrate */
iout1=iout
iout=iout1+gain*err
}

The gain needs to found by trial and error. If gain is too big you will get instability
and if too small it will be too slow to respond. try gain=0.001 for starters and increase it. In fact the gain limit is a function of the size of yin. spoint = 1 will do for a set-point.

All an AGC is is a voltage controlled amplifier (a multiplier here), a rectifier, a setpoint and a low-pass filter. The filter here is an integrator so as to get zero steady-state errror to a step change in
amplitude. If you wnat to get fancy you can have two integrators and phase-lead compensator though it is difficult to keep stable for large dynamic ranges.

Спасибо ребятам из comp.dsp

Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru