mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-21 06:14:05 +00:00
Decrease delay after band change
This commit is contained in:
parent
9bd8c99980
commit
9b14e48b35
2 changed files with 4 additions and 3 deletions
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
|
||||
|
||||
|
|
|
|||
1
si5351.h
1
si5351.h
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue