Other Parts Discussed in Thread: TMS320C5505
工具/软件:Code Composer Studio
您好!
我使用的是 TMS320C5505。
我正在使用此芯片处理语音/音乐信号。
我想使用 TMS320C5505实现"自动增益控制"。
是否可以使用基于软件的方法实现"自动增益控制"。 如果有任何基于硬件的方法、请同时提出建议。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: TMS320C5505
工具/软件:Code Composer Studio
您好!
我使用的是 TMS320C5505。
我正在使用此芯片处理语音/音乐信号。
我想使用 TMS320C5505实现"自动增益控制"。
是否可以使用基于软件的方法实现"自动增益控制"。 如果有任何基于硬件的方法、请同时提出建议。
尊敬的 Lali:
感谢您的建议。 按照您的建议、我为 C55x 安装了 AER
现在、我可以在 C:\ti\aer_c55l_obj_17_0_0\packages/ti\mas\aer 中看到 agc.h 文件
请建议如何继续。 我是否需要将此文件添加到代码的 main.c 中。
此外、添加 AGC.h 后、我是否需要添加任何指令或在 main.c 或 aic3204_init.c 中设置一些寄存器
我的 main.c 如下所示:
#include "stdio.h"
#include "usbstk5505.h"
#include "usbstk5505_led.h"
#include "aic3204.h"
#include "pll.h"
#include "DSPLib.h"
#include "立体声.h"
int16 left_input;
int16 right_input;
int16 left_output;
int16 right_output;
int16 mono_input;
#define SAMOESS_PER_second 192000
unsigned long int i = 0;
unsigned int Step = 0;
unsigned int LastStep = 99;
unsigned int key = 0;
void main( void )
{
/*初始化 BSL */
USBSTK5505_init();
/*初始化 PLL */
PLL_FREQUENCY 设置(100);
/*初始化代码的硬件接口和 I2C */
aic3204_hardware_init();
/*初始化 AIC3204编解码器*/
aic3204_init();
asm (" BCLR XF");
对于(i = 0 ;i < samples_per_sond * 6000 ;i++ )
{
aic3204_codec_read (&left_input、&right_input);//配置为每两个通道一个中断。
LEFT_OUTPUT = LEFT_INPUT;
aic3204_codec_write (left_output、right_output);
}
/*禁用 I2S 并将编解码器置于复位状态*/
aic3204_disable();
SW_breakpoint;
}
/*---------------------------------------------- *
* *
* main.c 结束 *
* *
******************************************************************************************************* *
我想要对 LEFT_INPUT 应用自动增益控制、以便在输入幅度较小时、在 LEFT_OUTPUT 上观察到的信号较大。
您能不能建议我在安装 agc.h 后如何继续
感谢你的帮助。 我使用的是 TMS320C5505 EVM 板。
此致、
Satyajit