ttrftech / NanoVNA

Very Tiny Palmtop Vector Network Analyzer
1.06k stars 296 forks source link

Speedup and fix Si5351 clock generator #125

Closed DiSlord closed 4 years ago

DiSlord commented 4 years ago
DiSlord commented 4 years ago

Found some problems on remote connect, try to find problem

DiSlord commented 4 years ago

Revert Start/stop generation feature (unstable on segment scan from CPU) All others seems ok, try test it

DiSlord commented 4 years ago

I think gain_table need ajust by band and freq range si5351 drop amplitude on increase freq,

 * For FREQ_HARMONICS = 300MHz - band range is:
 *  +-----------------------------------------------------------------------------------------------------------------------+
 *  |     Band 1      |   Band 2     |    Band 3    |   Band 2     |                       Band 3                           |
 *  +-----------------------------------------------------------------------------------------------------------------------+
 *  |            Direct mode  x1 :  x1              |           x3 : x5         |    x5-x7    |    x7-x9     |    x9-x11    |
 *  +-----------------------------------------------------------------------------------------------------------------------+
 *  | 50kHz - 100MHz  | 100 - 150MHz | 150 - 300MHz |  300-450MHz  | 450-900MHz | 900-1500MHz | 1500-2100MHz | 2100-2700MHz |
 *  +-----------------------------------------------------------------------------------------------------------------------+
 *  |              f = 50kHz-300MHz                 | f=100-150    | f=150-300  | f=150-300   | f=214-300    | f=233-300    |
 *  |             of = 50kHz-300MHz                 |of= 60- 90    |of= 90-180  |of=128-215   |of=166-234    |of=190-246    |
 *  +-----------------------------------------------------------------------------------------------------------------------+

Possibly need add gain calibration for CH1 and CH2 by step for example 50 MHz, this not need huge flash size

DiSlord commented 4 years ago

Add info command (some soft require it to work)