systemdependent,
but time-invariant, constant value.
Sep 20, 2012 11 UCM-FM1288 V06
5.0 Debugging Support Information
Table 3: Debugging Signals Index Address Signal Description 1 0x0000 Mic0 signal Mic0 input signal 2 0x0001 Mic1_signal Mic1 input signal 3 0x0002 Linein_signal Linein input signal 4 0x01da Lineout_dac Analog lineout signal 5 0x01db Spkout_dac Analog spkout signal 6 0x0004 Lineout_digital I2s/pcm lineout signal
7 0x0007 Fe_vad The VAD to indicate the far end signals into mic(echo)
8 0x0008 Fe_vad_big The VAD to indicate the big far end signals into mic(big echo)
9 0x0009 Fe_vad_li The VAd to indicate the far end signals 10 0x000b Vad01 subband vad0 for 172Hz ~672Hz 11 0x000c Vad02 subband vad0 for 672Hz ~1359Hz 12 0x000d Vad03 subband vad0 for 1297Hz ~2391Hz 13 0x000e Vad04 subband vad0 for 2328Hz ~4000Hz 14 0x000f Vad05 subband vad0 for 4000Hz ~6800Hz
15 0x0010 Td_lf_vad The VAD to indicate the low frequency double
talk
16 0x0011 Aec_wrong_vad_cntr Counter to show AEC wrong or not 17 0x0012 DR_bin_cnt The VAD to indicate the far end signals, looser than Fe_vad_li.
18 0x0013 Fe_vad_li_fq The VAD to indicate the far end signals 19 0x0018 Vad0_pop The modulated near end voice VAD 20 0x0019 Noise_pow_avg The noise average power
21 0x001a Idle_noise_pow The noise power after noise suppression 22 0x23f1 Signal_pass[0] The sending signal of main channel before AEC
23 0x23f3 Signal_pass[2] The sending signal of main channel before BEAM2 with micgain0 applied
24 0x23f5 Signal_pass[4] The sending signal of main channel before NS 25 0x23f6 Signal_pass[5] The sending signal of reference channel before NS
27 0x23f7 Signal_pass[6] The sending signal of main channel after NS 28 0x23f8 Signal_pass[7] The sending signal of reference channel after NS, the estimated noise
29 0x23f2 Signal_pass[1] The receiving signal before FENS 30 0x23f4 Signal_pass[3] The receiving signal after FENS 31 0x23ff Signal_pass[14] The reference signal to AEC
Sep 20, 2012 12 UCM-FM1288 V06
If I2S are not available for some product design, or only the analog signal can be passed
out, SAMTuner is suggested to be used for debugging and tuning with vad information. Para[0x232c, vad_info_bitset] shows VAD info. Each bit of this parameter holds a certain VAD info which is associated with the GUI-based SAMTuner for easy tunings.
Para[0x3807 ~ DM0x380a] provides the current max values of all inputs and outputs, the information is refreshed in every sample. You can set Para[0x3807 ~ DM0x380a] to zeros to clear this information for a second tuning.
Para[0x3813, debug_flag] is a very important debug flag that can be used for tuning. ? Turn off the modules on the data path that are of no concern to you so that they will not affect the debug information you need.
? Set Para[0x230c,mic_volume] as 0x100 unit gain to see the original signal. ? Setting Para[0x3813,debug_flag] as one of the above table can pass the corresponding signal multiple mic_volume to line-out.
? Note that if Para[0x3813,debug_flag] is set as 0, lineout is normal lineout signal. So if you want to get mic0 input signal (address=0), need to set them as the following: ? Para[0x22EE, _mic_revert_mode] = 1 (and remember to restore it to zero for normal operation).
? Para[0x3813,debug_flag] =1
Sep 20, 2012 13 UCM-FM1288 V06
5.1 Bypass modes
Table 4: Signal Paths and Gains of Bypass Modes mode Uplink Downlink path gain path gain
1 mic0-> chi0_tx 0 db chi0_rx->spk 0 db
2 Mic1-> chi0_tx 0 db chi0_rx->spk 0 db 3 mic0/mic1-> i2s0_tx 0 db i2s0_rx->spk 0 db 0x10 Mic0-> spk 0 db Lin->lineout(PCM) 0 db Table 5: Bypass Modes key parameters Address Name Description Default Value
0x22FA _dv_enable_b Device enable. D0: MIC0 D1: MIC1 D2: MICBIAS D3: Analog spkout D4: Analog Line in D5: Analog Line out
D8: PCM/I2S select, =1, PCM enable
D11: DPLL track enable/disable, =1, track enable; =0, track disable D15: Reserved 0x003F
0x2300 _line_pass =0: normal mode;
=1:PCM-mono bypass mode. mic0->chi0_tx without gain,chi0_rx ->spk without gain. =2:PCM-mono bypass mode. mic1->chi0_tx without gain,chi0_rx -> spk without gain. =3:IIS bypass mode. MIC0/1 to I2S L/R Trans channel without gain, I2S L or R Recv data to SPK out without gain.
=0x10: MIC0 -> SPK, and LIN->Lout (PCM) without gain. 0x0000
0x2301 _sample_rate Overall sampling rate. Bit [0:3] : =2: 16KHz normal mode, CODEC and PCM/I2S are both set to 16Kz.
=0x12: CODEC 16KHz and PCM/I2S are set to 8KHz 0x0012
Sep 20, 2012 14 UCM-FM1288 V06
6.0 Performance Tuning
This section discusses the performance tuning procedure in detail. First the Gain Flow and the VADs will be introduced. There are different gains and VADs designed at various locations on the signal path, the user must have an overall idea about gain flow and VADs in advance. And then the detailed Performance Tuning Procedures will be provided, the tuning sequence is conformant to that designed using with the GUI based SAMTuner.