Shift below 2MHz and avoid static spur table

SI443_RBW_update
erikkaashoek 4 years ago
parent 462544b996
commit d7fc65af50

@ -291,6 +291,15 @@ RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
include $(RULESPATH)/rules.mk
#include $(CHIBIOS)/memory.mk
ifeq ($(TARGET),F303)
clean:
rm -f -rf build/tinySA4.* build/lst/*.* build/obj/*.*
else
clean:
rm -f -rf build/tinySA.*
endif
flash: build/ch.bin
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin

@ -3458,7 +3458,7 @@ again: // Spur redu
else
{
#ifdef TINYSA4
if (actual_rbw_x10 < RBW_FOR_STATIC_TABLE && setting.mode == M_LOW )
if (actual_rbw_x10 < RBW_FOR_STATIC_TABLE && setting.mode == M_LOW && lf > static_spur_table[0] - RBW_FOR_STATIC_TABLE * 100)
local_IF = 977400000; // static spur table IF
else
local_IF = config.frequency_IF1;
@ -3602,7 +3602,8 @@ again: // Spur redu
else
{
#ifdef TINYSA4
// local_IF = local_IF - 800000 + actual_rbw_x10*100; // No spure removal and no spur, center in IF but avoid mirror
if (lf<2000000) // below 2MHz
local_IF += DEFAULT_SPUR_OFFSET-(actual_rbw_x10 > 1000 ? 200000 : 0); // Shift to avoid zero Hz peak
#else
local_IF = local_IF; // + DEFAULT_SPUR_OFFSET/2; // No spure removal and no spur, center in IF
#endif

Loading…
Cancel
Save

Powered by TurnKey Linux.