FM2010 Parameter Tuning Guide
Revision 1.3
Revison history
Rev 1.0 01/12/06 1
st
release
Rev. 1.1 06/14/06 1) add run time HW line_out PGA gain, remove spk_out PGA gain
2) add parameters associated with line_out equalizer
3) fix typo on pin name of vad_led
Rev.1.2 10/10/06 1) fix error on x1E33 definition
2) remove contents referring to UART
3) remove contents referring to USB
4) add PLL divider setting
5) add pwdn_device_off
6) remove contents referring to Line_in AGC
7) remove contents referring to CHI
Rev.1.21 12/05/06 1) change on dsp_mips description
2) add HW PGA gains for ANA_COM mode
Rev. 1.22 12/18/06 1) fix error in HW_lineout_pgagain definition and defaut value
Rev. 1.3 01/03/06 1) add strap_option_status
Note: Some of the parameter may be added later on, the existing parameter address
will remain unchanged.
ForteMedia Confidential
1
FM2010 Parameter Tuning Guide
Revision 1.3
FM2010 Parameter Tuning Guide
Parameters associate with device enable/format
1. 0x1E30 (dv_enable)
2.
0x1E32 (mic_revert_mode)
3.
0x1E33 (Pwd_led4)
4.
0x1E39 (Ana_comm_high)
5.
0x1E3A (dv_flag)
6.
0x1E3B (mic_hpf_type)
7.
0x1E41 (num_of_mics)
8.
0x1E52 (dsp_mips)
9.
0x1E58 (PLL_div)
10.
0x1E60 (PLL_xtal_type)
11. 0x1E70 (pwdn_device_off)
Parameters associate with HW gain
1. 0x1E34 (mic_pgagain) -- initialization stage only
2.
0x1E35 (linein_pgagain) -- initialization stage only
3.
0x1E36 (lineout_pgagain) -- initialization stage only
4.
0x3FC0 (HW_mic_pgagain) -- run time only
5.
0x3FC1 (HW_linein_pgagain) -- run time only
6.
0x3FC6 (HW_lineout_pgagain) -- run time only
7.
0x1E4A (ana_mic_pgagain) -- initialization stage only
8.
0x1E4B (ana_linein_pgagain) -- initialization stage only
9.
0x1E4C (ana_lineout_pgagain) -- initialization stage only
Parameters associated with SW process on/off
1. 0x1E44 (kl_config)
2.
0x1E45 (sp_flag)
3. 0x1E46 (ft_flag)
4.
0x1E4F (fft_ifft)
5.
0x1E51 (pwrdwn_set)
6.
0x1E61 (mic_test_flag)
Parameters associated with SW gain, and has no effect on algorithm
1. 0x1E3D (mic_volume)
2.
0x1E40 (mic_mute)
3.
0x1E59 (lout_clip_th)
4.
0x1E9B (micgain0)
Parameters associated with mic-in auto calibration
enable: bit 2 of 0x1E46
1. 0x1E9C (micgain1)
2.
0x1EF3 (vad12_diff_ceil)
3.
0x1EF4 (vad12_diff_max)
Parameters associated with mic-in AGC
enable: bit 15 of 0x1E45
1 0x1EA3 (micagc_ref_low)
2
0x1EA4 (micagc_ref_high)
3
0x1E9F (micagc_minagc)
4
0x1EA0 (micagc_maxagc)
ForteMedia Confidential
2
FM2010 Parameter Tuning Guide
Revision 1.3
Parameter associated with noise paste back
enable: bit 0 of 0x1E46
1. 0x1E9A (noisegain)
Parameter associated with Line_out Dynamic Range Control
enable: bit6 of 0x1E44
1. 0x1E07 (lout_drc_slant)
2.
0x1E08 (lout_drc_level)
Parameters associated with Line_out Equalizer
1. 0x1EC9 (linout_equal0)
2.
0x1ECA (linout_equal1)
3.
0x1ECB (linout_equal2)
4.
0x1ECC (linout_equal3)
5.
0x1ECD (linout_equal4)
Parameters associate with acoustic echo cancellation
1. 0x1E4D (AEC ref gain)
2. 0x1E86 (pf_z_factor_exp_high)
3.
0x1E87 (pf_z_factor_exp_low)
4.
0x1E88 (fe_th_yout)
5.
0x1E8C (fe_vad_th_big)
6.
0x1E90 (AEC_nw_shift)
7.
0x1E91 (AEC_fe_vad_shift)
8. 0x1E63 (AEC_delay_length)
9.
0x1EC5 (fevad_gain_limit)
10.
0x1EC6 (fq_fevad_gain_low)
11.
0x1EC7 (fq_fevad_gain_high)
Parameters associate with big echo cancellation
enable: bit 14 of 0x1E45
1. 0x1ED8 (inv_const1)
2.
0x1EDA (clipth1)
3.
0x1EDB (clipth2)
4.
0x1EDE (yout_des_con0_high)
5.
0x1EDF (yout_des_con0_low)
Parameters associate with half duplex control
1. 0x1E57 (mic_sat_th)
2.
0x1E5A (yout_sat_th)
3.
0x1E5C (st_hd_time)
Parameters associate with noise suppression
1. 0x1E47 (mic_nss_level)
2.
0x1E48 (mic_ns_lowband_gain)
3.
0x1E49 (mic_ns_highband_gain)
4.
0x1EBD (fq_beta_v) -- 2-mic only
5.
0x1EBE (fq_beta_uv) -- 2-mic only
ForteMedia Confidential
3
FM2010 Parameter Tuning Guide
Revision 1.3
Parameter associated with VAD (2-mic only)
1. 0x1E8B (pf_coef_gain)
2.
0x1ED4 (VAD0_ceil_low)
3.
0x1ED5 (VAD0_ceil_high)
4.
0x1ED6 (vad0_rat_thrd_fe)
5.
0x1ED7 (vad0_rat_thrd_nofe)
6.
0x1EED (vad3_rat_thrd)
7. 0x1EEE (vad3_mult)
8.
0x1EFC (vad1 _rat_thrd)
9.
0x1EFE (vad1_add_thrd)
10.
0x1F06 (VAD2_rat_thrd)
11.
0x1F07 (VAD2_add_thrd)
Read only parameter for status
1. 0x1E65 (frame_counter)
2.
0x1E5E (watchdog_count)
3.
0x1E5F (mic_sat_count)
4. 0x1E80 (vad_led_flag)
5.
0x3FE1 (strap_option_status)
6.
0xB82 ( ref mic calibration gain)
7.
0x1B9E (mic-in_AGC_gain)
ForteMedia Confidential
4
FM2010 Parameter Tuning Guide
Revision 1.3
There are four categories of parameters, the
1
st
category can only be changed at initialization, the 2
nd
category
can be changed at run time only with precaution, the 3
rd
category has to be preset according to the
application and physical placement of micropone and speaker, the
4
th
category is read only status. When the
system is powered up or reset, the SW will initialize the proper register according to the strap options, then
wait in a loop for further instruction if it’s in external host mode (i.e., EEPROM, Serial Host Interface).
Once SW get the “GO” instruction (i.e., 0x1E3A = 0x0000), the initialization is considered done. The
system will be in “run” mode.
Parameters can only be changed at initialization stage
1. Dv_enable
Address: 0x1E30 (default value 0x0233)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - 1 - - - 1 1 - - 1 1
D15:D10 - Reserved.
D9 - Parser enable, 1: enable, 0: disable.
D8 - Reserved.
D7:D6 - Reserved.
D5 - Analog line-out enable, 1: enable, 0: disable.
D4 - Analog line-in enable, 1: enable, 0: disable.
D3 - Reserved.
D2 - Reserved.
D1 - Mic_1 enable, 1: enable, 0: disable.
D0 - Mic_0 enable, 1: enable, 0:disable.
2. Mic_revert_mode
Address: 0x1E32 (default value 0x0)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
D15:D0 - 1: enable, 0: disable.
When mic_revert_mode is enabled, mic1 will be used for mic – lineout path instead of mic0.
3. Pwd_led4
Address: 0x1E33 (default value 0x0)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - - - - - - - - 0
D15:D1 - Reserved.
D0 - 1: pin 17 PWD_LED_ is set to LED_, 0: pin 17 PWD_LED_ is set to PWD_.
4. Mic_pgagain
Address: 0x1E34 (default value 0x8B)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - 1 0 0 0 1 0 1 1
D15:D8 - Reserved.
D7:D4 – Mic_1_gain, PGA gain of mic1.
D3:D0 – Mic_0_gain, PGA gain of mic0.
Microphone/line-in Gain Table
ForteMedia Confidential
5