TI中文支持网
TI专业的中文技术问题搜集分享网站

TLV320AIC3120的D/A问题

将C5515与这个codec连接,5515通过I2C对codec寄存器进行配置,DSP生成正弦波通过DA恢复出来,现在就配置了D/A这一块,配置是参照datasheet配置的,用示波器看时钟和数据都有,但是用示波器查看输出端的波形时,只有插上耳机才会有输出波形,不插耳机,看不到输出波形,并且插上耳机,并没有响声。请问这是什原因,谢谢!

KW X:

亲;是在DA口量的还是输出口量的?耳机口内是否有开关?频率是多少?

chunhua tan1:

回复 KW X:

亲,是在DA的输出口测量的,采样频率是44.1k,DSP给codec发送的信号频率是1k,插上耳机后,也在耳机那里测量也有信号,拔掉耳机测量就没有信号了!下面是寄存器的配置:

AIC3120_rset( 0, 0x00 ); //选择PAGE 0 AIC3120_rset( 1, 0x01 ); //启动软件复位

/*程序时钟设置,Program PLL clock dividers P, J, D, R (if PLL is used)*/ AIC3120_rset( 27, 0x0d ); //mode is i2s, word length is 16, MASTER mode AIC3120_rset( 28, 0x00 ); // Data ofset = 0 AIC3120_rset( 4, 0x03 ); //PLL_clkin = MCLK,codec_clkin = PLL_CLK AIC3120_rset( 6, 0x07 ); //J = 7 AIC3120_rset( 7, 0x02 ); //D = 560, D(13:8) = 10 AIC3120_rset( 8, 0x30 ); //D(7:0) = 00110000 AIC3120_rset( 30, 0x8C ); // For 32 bit clocks per frame in Master mode ONLY AIC3120_rset( 5, 0x91 ); //启动锁相环(如果使用锁相环),PLL Power up, P = 1, R = 1 EZDSP5515_waitusec(10000); //Wait for PLL to come up AIC3120_rset( 13, 0x00 ); //DOSR = 128, DOSR(9:8) = 0 AIC3120_rset( 14, 0x80 ); //DOSR(7:0) = 128 AIC3120_rset( 11, 0x85 ); //Power up NDAC and set NDAC value to 5 AIC3120_rset( 12, 0x83 ); //Power up MDAC and set MDAC value to 3 AIC3120_rset( 18, 0x85 ); //Power up NADC and set NADC value to 5 AIC3120_rset( 19, 0x83 ); //Power up MADC and set MADC value to 3 AIC3120_rset( 20, 0x80 ); //AOSR for AOSR = 128 decimal or 0x0080 for decimation filters 1 to 6

/*DAC ROUTING and Power Up*/ AIC3120_rset( 0, 0x00 ); //选择PAGE 0 AIC3120_rset( 60, 0X07 ); //DAC Processing PRB_P7, change the processor as needed AIC3120_rset( 116, 0x00); AIC3120_rset( 68, 0x00 ); AIC3120_rset( 65, 0x00 ); AIC3120_rset( 0, 0x01 ); //选择PAGE 1 AIC3120_rset( 33, 0x4E ); //De-pop, Power on = 1.22s, Step time = 3.9 ms AIC3120_rset( 31, 0xD4 ); //HPL and HPR Power up, current limit, CM = 1.65V 0xD4 AIC3120_rset( 35, 0x40 );  AIC3120_rset( 40, 0x0E );  //HPL and HPR unmute and gain 0db AIC3120_rset( 36, 0x00 );  AIC3120_rset( 37, 0x00 ); AIC3120_rset( 0, 0x00 ); //选择PAGE 0 AIC3120_rset( 60, 0x0B ); AIC3120_rset( 0, 0x08 ); AIC3120_rset( 1, 0x04 ); AIC3120_rset( 0, 0x00 ); //选择PAGE 0 AIC3120_rset( 63, 0xD6 ); AIC3120_rset( 64, 0x00 );

chunhua tan1:

回复 Flora Wang:

是1k的正弦波,关键是耳机插上才有波形,不插耳机没有波形,不知道这是什么问题。

Flora Wang:

回复 chunhua tan1:

你好:

检查下你耳机的接线,或上传耳机部分的原理图,输出部分肯定有问题.

chunhua tan1:

回复 Flora Wang:

你好:

      我再次检查了耳机的接线,确实是耳机接线没接对,谢谢!

赞(0)
未经允许不得转载:TI中文支持网 » TLV320AIC3120的D/A问题
分享到: 更多 (0)