mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Decrease delay after band change
This commit is contained in:
parent
9bd8c99980
commit
9b14e48b35
6
si5351.c
6
si5351.c
|
|
@ -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)
|
||||
|
|
@ -66,7 +66,7 @@ void si5351_set_timing(int i, int v) {timings[i]=v;}
|
|||
#define DELAY_BANDCHANGE_1_2 timings[3]
|
||||
#define DELAY_BANDCHANGE_3_4 timings[4]
|
||||
// Delay after set new PLL values, and send reset (on band 1-2 unstable if less then 900, on 2000-5000 no amplitude spike on change)
|
||||
#define DELAY_RESET_PLL_BEFORE timings[5]
|
||||
#define DELAY_RESET_PLL_BEFORE timings[5]
|
||||
#define DELAY_RESET_PLL_AFTER timings[6]
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue