微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > cc3200 3254配置问题

cc3200 3254配置问题

时间:10-02 整理:3721RD 点击:

大家好

一下代码为cc3200  的 sdk中wifi_audio_app部分代码,是用来配置aic3254的采样率的,

可是这段代码对照datasheet我没有看明白,现在请假大家?

如果我需要修改成8k 16bit  2怎么做?  或者大家教我方法

bitClk = bitsPerSample * bitRate * noOfChannels;
if(bitClk == 512000)
{
AudioCodecPageSelect(TI3254_PAGE_0);

AudioCodecRegWrite(TI3254_CLK_MUX_REG, 0x03); // PLL Clock is CODEC_CLKIN
AudioCodecRegWrite(TI3254_CLK_PLL_P_R_REG, 0x94); // PLL is powered up, P=1, R=4
AudioCodecRegWrite(TI3254_CLK_PLL_J_REG, 0x2A); // J=42
AudioCodecRegWrite(TI3254_CLK_PLL_D_MSB_REG, 0x00); // D = 0

AudioCodecRegWrite(TI3254_CLK_NDAC_REG, 0x8E); // NDAC divider powered up, NDAC = 14
AudioCodecRegWrite(TI3254_CLK_MDAC_REG, 0x81); // MDAC divider powered up, MDAC = 1
AudioCodecRegWrite(TI3254_DAC_OSR_MSB_REG, 0x01); // DOSR = 0x0180 = 384
AudioCodecRegWrite(TI3254_DAC_OSR_LSB_REG, 0x80); // DOSR = 0x0180 = 384

AudioCodecRegWrite(TI3254_CLK_NADC_REG, 0x95); // NADC divider powered up, NADC = 21
AudioCodecRegWrite(TI3254_CLK_MADC_REG, 0x82); // MADC divider powered up, MADC = 2
AudioCodecRegWrite(TI3254_ADC_OSR_REG, 0x80); // AOSR = 128 ((Use with PRB_R1 to PRB_R6, ADC Filter Type A)
}

请大伙帮忙,谢谢热心人

请参考一下http://e2e.ti.com/support/wireless_connectivity/f/968/p/408599/1451993#1451993 这里有告诉你如何更改codec的设置。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top