Decrease delay after band change

This commit is contained in:
DiSlord 2020-06-21 08:04:04 +03:00
parent 9bd8c99980
commit 9b14e48b35
2 changed files with 4 additions and 3 deletions

View file

@ -52,11 +52,11 @@ static uint8_t clk_cache[3] = {0, 0, 0};
#define DELAY_BANDCHANGE_3_4 4
// Delay after set new PLL values, and send reset (on band 1 unstable if less then 900, on 2000-5000 no amplitude spike on change)
#define DELAY_RESET_PLL_BEFORE 1000
#define DELAY_RESET_PLL_AFTER 4000
#define DELAY_RESET_PLL_AFTER 3500
#else
// Debug timer set
uint16_t timings[8]={2,3,2,3,4,1000, 4000};
uint16_t timings[8]={2,2,2,3,4,1000, 3500};
void si5351_set_timing(int i, int v) {timings[i]=v;}
#define DELAY_NORMAL timings[0]
// Delay for bands (depend set band 1 more fast (can change before next dsp buffer ready, need wait additional interval)

View file

@ -64,6 +64,7 @@
#define SI5351_PLL_RESET_A (1<<5)
#define SI5351_REG_183_CRYSTAL_LOAD 183
#define SI5351_CRYSTAL_LOAD__PF (0<<6)
#define SI5351_CRYSTAL_LOAD_6PF (1<<6)
#define SI5351_CRYSTAL_LOAD_8PF (2<<6)
#define SI5351_CRYSTAL_LOAD_10PF (3<<6)