TAS3308的I2C地址问题
你好,我在做TAS3308的音效项目的时候,当我的I2C地址分配高于222时,发现下载到EVM板上的程序就不能用I2C配置了。I2C映射的coef和实际的参数就对不上号了。但是如果下面的地址表,我去掉一个component,减少两个I2C的地址。就好了。这可能是什么问题呢?请帮忙提点调试建议啊。
当错误代码down下去后,对32的I2C地址 写 ‘00 00 02 02’; Line IN->PWM1口就会有声音发出了。而我程序中的好多参数调整对输出都不起作用。
地址表如下。
Application: PurePath Studio Graphical Development Environment
File Name: me.addr
Date: 2014-12-26 14:46:12
Version: 1.88 build 5
================================================================================
# 0 4 ! (TAS3308AudioApp_1) Clock and SAP control
# 1 4 ! (TAS3308AudioApp_1) Application Version Information
# 2 8 ! (TAS3308AudioApp_1) Status Register
# 3 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 4 8 ! (TAS3308AudioApp_1) I2C Memory Load Control
# 5 8 ! (TAS3308AudioApp_1) I2C Memory Load Data
# 6 4 ! (TAS3308AudioApp_1) Peek/Poke Address
# 7 8 ! (TAS3308AudioApp_1) Peek/Poke Data
# 8 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 9 4 ! (TAS3308AudioApp_1) Mute control
# 10 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 11 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 12 4 ! (TAS3308AudioApp_1) GPIO Control via I2C
# 13 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 14 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 15 4 ! (TAS3308AudioApp_1) Master Download
# 16 4 ! (TAS3308AudioApp_1) Power Down control
# 17 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 18 4 ! (TAS3308AudioApp_1) ADC Mux Control
# 19 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 20 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 21 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 22 4 ! (TAS3308AudioApp_1) SPDIF Control
# 23 4 ! (TAS3308AudioApp_1) Fast Volume Ramp Control
# 24 4 ! (TAS3308AudioApp_1) PWM Control
# 25 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 26 8 ! (TAS3308AudioApp_1) PWM Channel Delay and Offset
# 27 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 28 4 ! (TAS3308AudioApp_1) Reserved by Texas Instruments
# 29 4 ! (TAS3308AudioApp_1) PWM Duty 50 Mode control
# 30 4 ! (TAS3308AudioApp_1) DSP Pgm Coutner Start Addr
# 31 4 ! (TAS3308AudioApp_1) Masterdownload
# 32 20 ! (Subs_2) BiQuad Coefficients for Instance 1
# 33 20 ! (Subs_2) BiQuad Coefficients for Instance 2
# 34 20 ! (GenEq1_4Bq_1) BiQuad Coefficients for Instance 1
# 35 20 ! (GenEq1_4Bq_1) BiQuad Coefficients for Instance 2
# 36 20 ! (GenEq1_4Bq_1) BiQuad Coefficients for Instance 3
# 37 20 ! (GenEq1_4Bq_1) BiQuad Coefficients for Instance 4
# 38 20 ! (Voi2_4Bq_1) BiQuad Coefficients for Instance 1
# 39 20 ! (Voi2_4Bq_1) BiQuad Coefficients for Instance 2
# 40 20 ! (Voi1_4Bq_1) BiQuad Coefficients for Instance 3
# 41 20 ! (Voi1_4Bq_1) BiQuad Coefficients for Instance 4
# 42 20 ! (Room2_8Bq_1) BiQuad Coefficients for Instance 1
# 43 20 ! (Room1_8Bq_1) BiQuad Coefficients for Instance 2
# 44 20 ! (Room1_8Bq_1) BiQuad Coefficients for Instance 3
# 45 20 ! (Room2_8Bq_1) BiQuad Coefficients for Instance 4
# 46 20 ! (Room2_8Bq_1) BiQuad Coefficients for Instance 5
# 47 20 ! (Room1_8Bq_1) BiQuad Coefficients for Instance 6
# 48 20 ! (Room2_8Bq_1) BiQuad Coefficients for Instance 7
# 49 20 ! (Room1_8Bq_1) BiQuad Coefficients for Instance 8
# 50 4 ! (MultI2C_8Ch_1) For Multiplier
# 51 20 ! (Ekstra_2) BiQuad Coefficients for Instance 1
# 52 20 ! (Ekstra_1) BiQuad Coefficients for Instance 2
# 53 20 ! (Ekstra_1) BiQuad Coefficients for Instance 3
# 54 20 ! (Ekstra_2) BiQuad Coefficients for Instance 4
# 55 20 ! (Ekstra_1) BiQuad Coefficients for Instance 5
# 56 20 ! (Ekstra_1) BiQuad Coefficients for Instance 6
# 57 20 ! (Ekstra_2) BiQuad Coefficients for Instance 7
# 58 20 ! (Ekstra_1) BiQuad Coefficients for Instance 8
# 59 8 ! (Max_vol_DRC_1) ae and 1_ae
# 60 16 ! (Max_vol_DRC_1) T1_input and T2_input
# 61 12 ! (Max_vol_DRC_1) k0, k1, and k2
# 62 16 ! (Max_vol_DRC_1) O1_input and O2_input
# 63 16 ! (Max_vol_DRC_1) aa, 1_aa, ad, and 1_ad
# 64 8 ! (Max_vol_DRC_1) DRC enable
# 65 16 ! (Mix4Ch_C_1) Gain function for Channel 1-4
# 66 16 ! (Mix4Ch_C_2) Gain function for Channel 1-4
# 67 4
# 68 4
# 69 4
# 70 4
# 71 4
# 72 4
# 73 4
# 74 4
# 75 4
# 76 4
# 77 4
# 78 4
# 79 4
# 80 4
# 81 4
# 82 4
# 83 4
# 84 4
# 85 4
# 86 4
# 87 4
# 88 4
# 89 4
# 90 4
# 91 8 ! (Late_DRC_1) ae and 1_ae
# 92 16 ! (Late_DRC_1) T1_input and T2_input
# 93 12 ! (Late_DRC_1) k0, k1, and k2
# 94 16 ! (Late_DRC_1) O1_input and O2_input
# 95 16 ! (Late_DRC_2) aa, 1_aa, ad, and 1_ad
# 96 8 ! (Late_DRC_2) DRC enable
# 97 16 ! (Mix4Ch_C_3) Gain function for Channel 1-4
# 98 16 ! (Input_mix_1) Ch1Gain - Ch4Gain
# 99 16 ! (Mix_1) Gain for channels 1-4
# 100 16 ! (Mix_1) Gain for channels 5-8
# 101 4 ! (Volume_1) Volume Level for All Channels for this Volume Instance
# 102 20 ! (Driver_8Bq_2A_1) BiQuad Coefficients for Instance 1
# 103 20 ! (Driver_8Bq_2A_1) BiQuad Coefficients for Instance 2
# 104 20 ! (Driver_8Bq_1A_1) BiQuad Coefficients for Instance 3
# 105 20 ! (Driver_8Bq_1A_1) BiQuad Coefficients for Instance 4
# 106 20 ! (Driver_8Bq_2A_1) BiQuad Coefficients for Instance 5
# 107 20 ! (Driver_8Bq_2A_1) BiQuad Coefficients for Instance 6
# 108 20 ! (Driver_8Bq_2A_1) BiQuad Coefficients for Instance 7
# 109 20 ! (Driver_8Bq_1A_1) BiQuad Coefficients for Instance 8
# 110 20 ! (CrOv_4Bq_2A_1) BiQuad Coefficients for Instance 1
# 111 20 ! (CrOv_4Bq_2A_1) BiQuad Coefficients for Instance 2
# 112 20 ! (CrOv_4Bq_2A_1) BiQuad Coefficients for Instance 3
# 113 20 ! (CrOv_4Bq_1A_1) BiQuad Coefficients for Instance 4
# 114 8 ! (Loudness_1) Gain and Logarithmic Gain
# 115 16 ! (Loudness_1) Offset and Logarithmic Offset
# 116 20 ! (Loudness_1) BiQuad1 Filter Coefficients
# 117 20 ! (Loudness_1) BiQuad2 Filter Coefficients
# 118 4 ! (MultI2C_1A_1) Multiplier
# 119 4 ! (MuxLoudness_2) Mux Control
# 120 16 ! (Mix4Ch_C_4) Gain function for Channel 1-4
# 121 20 ! (CrOv_4Bq_1C_1) BiQuad Coefficients for Instance 1
# 122 20 ! (CrOv_4Bq_2C_1) BiQuad Coefficients for Instance 2
# 123 20 ! (CrOv_4Bq_2C_1) BiQuad Coefficients for Instance 3
# 124 20 ! (CrOv_4Bq_2C_1) BiQuad Coefficients for Instance 4
# 125 20 ! (Driver_8Bq_2C_1) BiQuad Coefficients for Instance 1
# 126 20 ! (Driver_8Bq_1C_1) BiQuad Coefficients for Instance 2
# 127 20 ! (Driver_8Bq_2C_1) BiQuad Coefficients for Instance 3
# 128 20 ! (Driver_8Bq_2C_1) BiQuad Coefficients for Instance 4
# 129 20 ! (Driver_8Bq_1C_1) BiQuad Coefficients for Instance 5
# 130 20 ! (Driver_8Bq_1C_1) BiQuad Coefficients for Instance 6
# 131 20 ! (Driver_8Bq_2C_1) BiQuad Coefficients for Instance 7
# 132 20 ! (Driver_8Bq_1C_1) BiQuad Coefficients for Instance 8
# 133 20 ! (Bq_1) BiQuad Coefficients for Instance 1
# 134 20 ! (Bq_1) BiQuad Coefficients for Instance 2
# 135 20 ! (Bq_1) BiQuad Coefficients for Instance 3
# 136 20 ! (Bq_1) BiQuad Coefficients for Instance 4
# 137 20 ! (Bq_1) BiQuad Coefficients for Instance 5
# 138 20 ! (Bq_1) BiQuad Coefficients for Instance 6
# 139 4 ! (MultI2C_C_1) Multiplier
# 140 20 ! (CrOv_4Bq_2B_1) BiQuad Coefficients for Instance 1
# 141 20 ! (CrOv_4Bq_2B_1) BiQuad Coefficients for Instance 2
# 142 20 ! (CrOv_4Bq_1B_1) BiQuad Coefficients for Instance 3
# 143 20 ! (CrOv_4Bq_1B_1) BiQuad Coefficients for Instance 4
# 144 20 ! (Driver_8Bq_2B_1) BiQuad Coefficients for Instance 1
# 145 20 ! (Driver_8Bq_1B_1) BiQuad Coefficients for Instance 2
# 146 20 ! (Driver_8Bq_1B_1) BiQuad Coefficients for Instance 3
# 147 20 ! (Driver_8Bq_1B_1) BiQuad Coefficients for Instance 4
# 148 20 ! (Driver_8Bq_2B_1) BiQuad Coefficients for Instance 5
# 149 20 ! (Driver_8Bq_1B_1) BiQuad Coefficients for Instance 6
# 150 20 ! (Driver_8Bq_2B_1) BiQuad Coefficients for Instance 7
# 151 20 ! (Driver_8Bq_1B_1) BiQuad Coefficients for Instance 8
# 152 4 ! (MultI2C_2B_1) Multiplier
# 153 20 ! (LRH_1) BiQuad Coefficients for Instance 1
# 154 20 ! (LRH_1) BiQuad Coefficients for Instance 2
# 155 8 ! (Exc_limit_1) ae and 1_ae
# 156 16 ! (Exc_limit_1) T1_input and T2_input
# 157 12 ! (Exc_limit_1) k0, k1, and k2
# 158 16 ! (Exc_limit_1) O1_input and O2_input
# 159 16 ! (Exc_limit_1) aa, 1_aa, ad, and 1_ad
# 160 8 ! (Exc_limit_1) DRC enable
# 161 8 ! (DRCref1Ch_1) ae and 1_ae
# 162 16 ! (DRCref1Ch_2) T1_input and T2_input
# 163 12 ! (DRCref1Ch_1) k0, k1, and k2
# 164 16 ! (DRCref1Ch_1) O1_input and O2_input
# 165 16 ! (DRCref1Ch_2) aa, 1_aa, ad, and 1_ad
# 166 8 ! (DRCref1Ch_1) DRC enable
# 167 16 ! (Mix4Ch_1) Gain function for Channel 1-4
# 168 16 ! (Mix4Ch_2) Gain function for Channel 1-4
# 169 16 ! (Mix_2) Gain function for Channel 1-4
# 170 20 ! (Bq_2) BiQuad Coefficients for Instance 1
# 171 20 ! (Bq_2) BiQuad Coefficients for Instance 2
# 172 20 ! (Bq_2) BiQuad Coefficients for Instance 3
# 173 16 ! (Mix_3) Gain function for Channel 1-4
# 174 8 ! (Soft_1) ae and 1_ae
# 175 16 ! (Soft_1) T1_input and T2_input
# 176 12 ! (Soft_1) k0, k1, and k2
# 177 16 ! (Soft_1) O1_input and O2_input
# 178 16 ! (Soft_1) aa, 1_aa, ad, and 1_ad
# 179 8 ! (Soft_1) DRC enable
# 180 16 ! (Mix_4) Gain function for Channel 1-4
# 181 4 ! (M_BQ1_1) Multiplier
# 182 20 ! (V2X_1) BiQuad Coefficients for Instance 1
# 183 20 ! (V2X_1) BiQuad Coefficients for Instance 2
# 184 20 ! (LRL_X2V_1) BiQuad Coefficients for Instance 1
# 185 20 ! (LRL_X2V_1) BiQuad Coefficients for Instance 2
# 186 20 ! (LRL_X2V_1) BiQuad Coefficients for Instance 3
# 187 20 ! (LRL_X2V_1) BiQuad Coefficients for Instance 4
# 188 16 ! (Crossbar_1) Mixer values for X11, X21, X31, X41
# 189 16 ! (Crossbar_1) Mixer values for X12, X22, X32, X42
# 190 16 ! (Crossbar_1) Mixer values for X13, X23, X33, X43
# 191 16 ! (Crossbar_1) Mixer values for X14, X24, X34, X44
# 192 16 ! (Crossbar_1) Mixer values for X51, X52, X53, X54
# 193 16 ! (Crossbar_1) Mixer values for X55, X15, X25, X35
# 194 16 ! (Crossbar_1) Mixer values for X45, X61, X62, X63
# 195 16 ! (Crossbar_1) Mixer values for X64, X65, X66, X16
# 196 16 ! (Crossbar_1) Mixer values for X26, X36, X46, X56
# 197 16 ! (Crossbar_1) Mixer values for X71, X72, X73, X74
# 198 16 ! (Crossbar_1) Mixer values for X75, X76, X17, X27
# 199 16 ! (Crossbar_1) Mixer values for X37, X47, X57, X67
# 200 4 ! (TAS3308AudioApp_1) Delay Pointer 0 and 1 Length
# 201 4 ! (TAS3308AudioApp_1) Delay Pointer 2 and 3 Length
# 202 4 ! (TAS3308AudioApp_1) Delay Pointer 4 and 5 Length
# 203 4 ! (TAS3308AudioApp_1) Delay Pointer 6 and 7 Length
# 204 4 ! (TAS3308AudioApp_1) Delay Pointer 8 and 9 Length
# 205 4 ! (TAS3308AudioApp_1) Delay Pointer 10 and 11 Length
# 206 4 ! (TAS3308AudioApp_1) Delay Pointer 12 and 13 Length
# 207 4 ! (TAS3308AudioApp_1) Delay Pointer 14 and 15 Length
# 208 4 ! (TAS3308AudioApp_1) Reverb Pointer 0 and 1 Length
# 209 4 ! (TAS3308AudioApp_1) Reverb Pointer 2 and 3 Length
# 210 4 ! (TAS3308AudioApp_1) Reverb Pointer 4 and 5 Length
# 211 4 ! (TAS3308AudioApp_1) Reverb Pointer 6 and 7 Length
# 212 4 ! (TAS3308AudioApp_1) Delay Pointer Update Flag
# 213 16 ! (Crossbar_1) Mixer values for X77, X81, X82, X83
# 214 16 ! (Crossbar_1) Mixer values for X84, X85, X86, X87
# 215 16 ! (Crossbar_1) Mixer values for X18, X28, X38, X48
# 216 16 ! (Crossbar_1) Mixer values for X58, X68, X78, X88
# 217 8 ! (DRC_C_1) ae and 1_ae
# 218 16 ! (DRC_C_1) T1_input and T2_input
# 219 12 ! (DRC_C_1) k0, k1, and k2
# 220 16 ! (DRC_C_1) O1_input and O2_input
# 221 16 ! (DRC_C_1) aa, 1_aa, ad, and 1_ad
# 222 8 ! (DRC_C_1) DRC enable
# 223 4 ! (MultI2C_1A_2) Multiplier
# 224 4 ! (MultI2C_1B_2) Multiplier
# 225 4
# 226 4
# 227 4
# 228 4
# 229 4
# 230 4
# 231 4
# 232 4
# 233 4
# 234 4
# 235 4
# 236 4
# 237 4
# 238 4
# 239 4
# 240 4
# 241 4
# 242 4
# 243 4
# 244 4
# 245 4
# 246 4
# 247 4
# 248 4
# 249 4
# 250 4
# 251 4
# 252 4
# 253 4
# 254 4
# 255 4
嗯, 看来地址是有些限制, 不能随便设置
这个问题好像是处在内存不够上。不是I2C地址不够。因为我们删除掉一些component后发现可以正常运行。只是编译器没有提示内存溢出。
所以想请问一个问题。coef和databuffer除了component的I2C映射了的之外,是不是还需要保留一部分给component本身的运行,这个比例大约需要多少?