Currently, it is designed to support single-unit and stereo automatic switching. The switchover is performed only when certain conditions are met. The switchover conditions are related to the signal strength of the station, such as the signal strength, and the signal stability CQI.
Currently, there are two interfaces on the upper layer: stereoMono and setStereoMono.
StereoMono
Query whether the current radio station is played in a stereo or in a single sound.
SetStereoMono
Set whether the current radio station is played in a stereo or in a single sound.
Note:
1. When it is set to a single sound, it will definitely switch to a single sound and keep it unchanged. It will not change as the radio environment changes, unless the upper layer is reset to a stereo sound.
2. When it is set to stereo, the radio station will automatically determine whether it is switched to that station based on the current station environment, that is, it is related to the environment.
For 6628, if you want to change the value of the received signal strength (6620 cannot be changed ):
Calculation formula:
Stereo to mono switch threshold Adjustment:
Variable name: BlendCtrlRSSI_TH
Address: 0x314F in coefficient memory.
TH maximum: 1024
TH minimum value: 0
TH default value: 356
Conversion Formula: threshold =-(SDL (dBm) * 4*16/6 + 384)
The default value of "-69.375dBm" is calculated.
Modify the Code:
Mt6628_fm_lib.c mt6628_SetFreq
Delayms (10 );
Mt6628_write (0xE2, 0x314F );
Mt6628_write (0xE3, TH); // TH setting-75dbm (TH = 0x01A0)
Mt6628_write (0xE1, 0x0002 );