主题中讨论的其他部件: OMAP-L138
您好,
我想在TLV320AIC20K中测试模拟和数字回送,
我们设计了基于OMAP-L138的处理器,具有TLV320AIC20K编解码器McASP接口。 我能够使用I2C接口对芯片进行编程。 我想测试模拟和数字回送。 请提供帮助。
此致
Vinod
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.
您好,
我想在TLV320AIC20K中测试模拟和数字回送,
我们设计了基于OMAP-L138的处理器,具有TLV320AIC20K编解码器McASP接口。 我能够使用I2C接口对芯片进行编程。 我想测试模拟和数字回送。 请提供帮助。
此致
Vinod
你好,Vinod,
很抱歉耽误你的时间,我不在办公室。
您能否提供用于配置设备的注册设置? 我想 验证您的设置,看看是否有问题。 关于代码编写器工具,您可能需要从Code Composer 小组获得帮助。
此致,
-Diego Mel é ndez López ñ a
音频应用工程师
你(们)好
初始化代码如下所示
静态无效AIC31I2S配置(void)
{
volatile unsigned int delay = 0xFFF;
// HWREG (SOC_SYSCFG_0_regs + SYSCFG0_PINMUX (19))|= 0x800万;
GPIODIRModeSet (SOC_GPIO _0_regs,97,GPIO _DIR_OUTPUT);
DELAY = 0xFFF; while (DELAY --);
GPIOPinWrite (SOC_GPIO _0_regs,97,GPIO PIN低);
DELAY = 0xFFF; while (DELAY --);
GPIOPinWrite (SOC_GPIO _0_regs,97,GPIO PIN高);
I2CCodecIfInit (SOC_I2C_0_regs,INT_CHANGE_I2C,0x40);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x00,0x00);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x02,0x20);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x01);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x67);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x80);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0xC0);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x04,0x1);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x04,0x8A);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,PGA);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0x41);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0x80);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0xC0);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite(SOC_I2C_0_regs, 0x06, 0x02/*0x04*/);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite(SOC_I2C_0_regs, 0x06, 0x82/*0x82*/);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite(SOC_I2C_0_regs, 0x01, 0x41);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x00,0x00);
I2CCodecIfInit (SOC_I2C_0_regs,INT_CHANGE_I2C,0x41);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x00,0x00);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x02,0x20);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x01);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x67);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0x80);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x03,0xC0);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x04,0x1);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x04,0x8A);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,PGA);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0x41);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0x80);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x05,0xC0);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x06,0x02);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x06,0x82);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x01,0x41);
DELAY = 0xFFF; while (DELAY --);
CodecRegWrite (SOC_I2C_0_regs,0x00,0x00);
}
此致
Vinod