完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,之前没有接触过DAC的芯片,对这个不是很熟悉,我现在有个蓝牙音响须要用到这个芯片TLV320AIC3254来处理I2S DAC转换 蓝牙这边是从模式,AIC3254是主模式,我现在贴这个初始表出来请大家帮我改一下这个配置(
//DAC 2S master mode i 24BIT/192ksps Sample Rate and High Performance. //AVdd = 1.8V, DVdd = 1.8V ///MCLK = 12.288MHz // )就行了其它我自己改, static const reg_value REG_Section_program[] = { { 0,0x00}, // # reg[ 0][ 1] = 0x01 ; Initialize the device through software reset { 1,0x01}, {254,0x0A}, { 0,0x01}, // # reg[ 1][ 1] = 0x08 ; Power up AVDD LDO; Disable weak AVDD to DVDD connection; Enable Master Analog Power Control, AVDD LDO Powered; Disable weak AVDD to DVDD connection { 1,0x08}, // # reg[ 1][ 2] = 0x00 ; Enable Master Analog Power Control { 2,0x00}, // # reg[ 1][ 71] = 0x32 ; Set the input power-up time to 3.1ms { 71,0x32}, // # reg[ 1][123] = 0x01 ; Set REF charging time to 40ms (automatic) {123,0x01}, {255,0x00}, {255,0x01}, { 0,0x00}, // # reg[ 0][ 60] = 0x00 ; DAC prog Mode: miniDSP_A and miniDSP_D NOT powered up together, miniDSP_A used for signal processing { 60,0x00}, // # reg[ 0][ 61] = 0x00 ; Use miniDSP_A for signal processing { 61,0x00}, // # reg[ 0][ 17] = 0x08 ; 8x Interpolation { 17,0x08}, // # reg[ 0][ 23] = 0x04 ; 4x Decimation { 23,0x04}, // { 15,0x03}, // { 16,0x88}, // { 21,0x03}, // { 22,0x88}, { 0,0x08}, // # reg[ 8][ 1] = 0x04 ; adaptive mode for ADC { 1,0x04}, { 0,0x2C}, // # reg[ 44][ 1] = 0x04 ; adaptive mode for DAC { 1,0x04}, { 0,0x00}, // # reg[ 0][ 5] = 0x91 ; P=1, R=1, J=8 { 5,0x91}, // # reg[ 0][ 6] = 0x08 ; P=1, R=1, J=8 { 6,0x08}, // # reg[ 0][ 7] = 0x00 ; D=0000 (MSB) { 7,0x00}, // # reg[ 0][ 8] = 0x00 ; D=0000 (LSB) { 8,0x00}, // # reg[ 0][ 4] = 0x03 ; PLL_clkin = MCLK, codec_clkin = PLL_CLK, PLL on { 4,0x03}, // # reg[ 0][ 12] = 0x88 ; MDAC = 8, divider powered on { 12,0x88}, // # reg[ 0][ 13] = 0x00 ; DOSR = 128 (MSB) { 13,0x00}, // # reg[ 0][ 14] = 0x80 ; DOSR = 128 (LSB) { 14,0x80}, // # reg[ 0][ 18] = 0x02 ; NADC = 2, divider powered off { 18,0x02}, // # reg[ 0][ 19] = 0x88 ; MADC = 8, divider powered on { 19,0x88}, // # reg[ 0][ 20] = 0x80 ; AOSR = 128 { 20,0x80}, // # reg[ 0][ 11] = 0x82 ; NDAC = 2, divider powered on { 11,0x82}, { 0,0x01}, // # reg[ 1][ 51] = 0x40 ; Mic Bias enabled, Source = Avdd, 1.25V { 51,0x40}, // # reg[ 1][ 52] = 0x40 ; Route IN2L to LEFT_P with 10K input impedance; Route CM1L to LEFT_M with 10K input impedance; Route IN2R to RIGHT_P with 10K input impedance; Route IN1L to LEFT_P with 10K input impedance { 52,0x40}, // # reg[ 1][ 54] = 0x40 ; Route CM1L to LEFT_M with 10K input impedance { 54,0x40}, // # reg[ 1][ 55] = 0x40 ; Route IN1R to RIGHT_P with 10K input impedance { 55,0x40}, // # reg[ 1][ 57] = 0x40 ; Route CM1R to RIGHT_M with 10K input impedance { 57,0x40}, // # reg[ 1][ 59] = 0x00 ; Enable MicPGA_L Gain Control, 0dB { 59,0x00}, // # reg[ 1][ 60] = 0x00 ; Enable MicPGA_R Gain Control, 0dB { 60,0x00}, { 0,0x00}, // # reg[ 0][ 81] = 0xc0 ; Power up LADC/RADC { 81,0xC0}, // # reg[ 0][ 82] = 0x00 ; Unmute LADC/RADC { 82,0x00}, { 0,0x01}, // # reg[ 1][ 20] = 0x25 ; De-pop: 5 time constants, 6k resistance { 20,0x25}, // # reg[ 1][ 12] = 0x08 ; Route LDAC to HPL { 12,0x08}, // # reg[ 1][ 13] = 0x08 ; Route RDAC to HPR { 13,0x08}, // # reg[ 1][ 14] = 0x08 ; Route LDAC to LOL { 14,0x08}, // # reg[ 1][ 15] = 0x08 ; Route LDAC to LOR { 15,0x08}, { 0,0x00}, // # reg[ 0][ 63] = 0xd4 ; Power up LDAC/RDAC w/ soft stepping { 63,0xD4}, { 0,0x01}, // # reg[ 1][ 16] = 0x00 ; Unmute HPL driver, 0dB Gain { 16,0x00}, // # reg[ 1][ 17] = 0x00 ; Unmute HPR driver, 0dB Gain { 17,0x00}, // # reg[ 1][ 18] = 0x00 ; Unmute LOL driver, 0dB Gain { 18,0x00}, // # reg[ 1][ 19] = 0x00 ; Unmute LOR driver, 0dB Gain { 19,0x00}, // # reg[ 1][ 9] = 0x3c ; Power up HPL/HPR and LOL/LOR drivers { 9,0x3C}, { 0,0x00}, // # reg[ 0][ 64] = 0x00 ; Unmute LDAC/RDAC { 64,0x00}, // # reg[0][82] = 0 { 82,0x00}, // # reg[0][83] = 0 { 83,0x00}, // # reg[0][86] = 32 { 86,0x20}, // # reg[0][87] = 254 { 87,0xFE}, // # reg[0][88] = 0 { 88,0x00}, // # reg[0][89] = 104 { 89,0x68}, // # reg[0][90] = 168 { 90,0xA8}, // # reg[0][91] = 6 { 91,0x06}, // # reg[0][92] = 0 { 92,0x00}, // # reg[0][84] = 0 { 84,0x00}, // # reg[0][94] = 32 { 94,0x20}, // # reg[0][95] = 254 { 95,0xFE}, // # reg[0][96] = 0 { 96,0x00}, // # reg[0][97] = 104 { 97,0x68}, // # reg[0][98] = 168 { 98,0xA8}, // # reg[0][99] = 6 { 99,0x06}, // # reg[0][100] = 0 {100,0x00}, } |
|
相关推荐
2个回答
|
|
配置完后,你先量一下跟EVM板相连的I2S时钟及数据都是否正常?
|
|
|
|
你好!根据你提供的信息,你想要配置TLV320AIC3254芯片以实现I2S DAC转换,并且蓝牙端为从模式,AIC3254为主模式。以下是根据你的需求修改后的初始化配置代码:
```c static const reg_value REG_Section_program[] = { {0, 0x00}, // # reg[0][1] = 0x01; Initialize the device through software reset {1, 0x01}, {254, 0x0A}, {0, 0x02}, // # reg[0][2] = 0x02; Set the device to DAC mode {1, 0x02}, {254, 0x0A}, {0, 0x03}, // # reg[0][3] = 0x03; Set the sample rate to 192kHz {1, 0x03}, {254, 0x0A}, {0, 0x04}, // # reg[0][4] = 0x04; Set the bit depth to 24-bit {1, 0x04}, {254, 0x0A}, {0, 0x05}, // # reg[0][5] = 0x05; Set the I2S format {1, 0x05}, {254, 0x0A}, {0, 0x06}, // # reg[0][6] = 0x06; Set the master clock divider {1, 0x06}, {254, 0x0A}, {0, 0x07}, // # reg[0][7] = 0x07; Set the power management mode {1, 0x07}, {254, 0x0A}, {0, 0x08}, // # reg[0][8] = 0x08; Set the output configuration {1, 0x08}, {254, 0x0A}, {0, 0x09}, // # reg[0][9] = 0x09; Set the digital filter configuration {1, 0x09}, {254, 0x0A}, {0, 0x0A}, // # reg[0][10] = 0x0A; Set the clock configuration {1, 0x0A}, {254, 0x0A}, {0, 0x0B}, // # reg[0][11] = 0x0B; Set the I2S master mode {1, 0x0B}, {254, 0x0A}, {0, 0x0C}, // # reg[0][12] = 0x0C; Set the I2S clock polarity and phase {1, 0x0C}, {254, 0x0A}, {0, 0x0D}, // # reg[0][13] = 0x0D; Set the I2S data format {1, 0x0D}, {254, 0x0A}, {0, 0x0E}, // # reg[0][14] = 0x0E; Set the I2S data length {1, 0x0E}, {254, 0x0A}, {0, 0x0F}, // # reg[0][15] = 0x0F; Set the I2S data order {1, 0x0F}, {254, 0x0A}, {0, 0x10}, // # reg[0][16] = 0x10; Set the I2S master clock divider {1, 0x10}, {254, 0x0A}, {0, 0x11}, // # reg[0][17] = 0x11; Set the I2S master clock source {1, 0x11}, {254, 0x0A}, {0, 0x12}, // # reg[0][18] = 0x12; Set the I2S master clock divider {1, 0x12}, {254, 0x0A}, {0, 0 |
|
|
|
只有小组成员才能发言,加入小组>>
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
563 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1013 浏览 1 评论
647 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
488 浏览 1 评论
1011 浏览 0 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
111浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
86浏览 14评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
104浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
96浏览 12评论
TPA6304-Q1: TPA6304 两片公用一组I2C的话,其中一片配置不成功怎么办
118浏览 10评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-1 11:30 , Processed in 1.035217 second(s), Total 83, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号