Commit graph

36 commits

Author SHA1 Message Date
DiSlord 922b66abdb Move offset variable to si5351.c (better use it as independent library)
Define and move constants in nanovna.h, and use it
Fix command 'marker' - display marker freq (not current freq)
2020-03-14 15:18:14 +03:00
DiSlord 88617a31fe In ili9341.c remove tabs, add palette mode blit function
In plot.c prepare for 8bit/pixel mode (test, allow increase cell buffer size by use 4 or 8bit/pixel mode, but not need for now)
main.c little change wait execute shell command in sweep thread
2020-03-13 22:42:28 +03:00
DiSlord 51b5cce016 Fix Random jitters at band 1 and band change on some freq ranges
Improve frequency stability on band change (100 MHz, 150MHz, 300 MHz, 450MHz)

Restore freq cache in CW mode
2020-03-11 20:11:46 +03:00
DiSlord a2d90a5e91 Try not lost data on dsp (Less noise on small signals)
Use int64_t acc for values
Use double on calculation

Not cache freq on si5351_set_frequency_with_offset (to fast change in rare cases on cw mode, and process wrong DSP block) as i write before need change DSP delay tactic
2020-03-09 01:25:46 +03:00
DiSlord 77b5d0bcc8 Select CH0 reflect channel before set freq (in some rare cases dsp started but CH not ready)
Little code optimization
Add commented 600kHz I2C bus timings (work, give x1.5 speed, but need change DSP ready timings not by wait_count, need use chVTGetSystemTimeX() its better)
2020-03-08 22:48:36 +03:00
DiSlord e896f32803 Replace function wait_dsp(delay) by definition:
DSP_START(delay)
//================================================
// Place some code thats need execute while delay
//================================================
DSP_WAIT_READY

Fix Band table description

Add power stabilization delay on sweep start
2020-03-07 20:57:43 +03:00
DiSlord 12d53738bc Revert some changes:
Start/stop generation feature (unstable on segment scan from CPU)
 Calibration on paused sweep (need more stack, need find better solution)
 Variable use optimization
2020-03-07 17:19:43 +03:00
DiSlord a43b6e3acc si5351.c and si5351.h
Cleanup and optimize  code
Add comments, fix definitions
Fix rounding errors
Fix band 1 stability

mcuconf.h
Set I2C bus clock to SYSCLK (more fast)
Apply 400kHz bus I2C clock timings for 8MHz and 48Mhz clock

main.c
Remove and reset some variables
Add separate sweep for calibration (allow calibrate if sweep paused)

Increase main thread stack (need for run calibrate, possibly need execute some commands in sweep threads for reduce stack usage)
2020-03-07 14:54:51 +03:00
DiSlord b77e1d6680 Big work around si5351 generator
Improve sweep speed about 60%
Stop generation on pause sweep
Remove all hack for si5351
Reduce code size
Fix integer overflow on big freq values

Additional
Change I2C

Others:
 move marker_tracking variable to ui config
 move some definition to correct place
 reduce tlv320aic3204 code size
 Speedup marker move from lever (BUTTON_REPEAT_TICKS = 625)

Need test stability
2020-03-05 22:36:44 +03:00
DiSlord cc3370c962 si5351.c
Remove unused function from header
Set static calls for functions (less size)
Set static constants (less size)
2020-02-28 18:57:18 +03:00
TT fcb0be6def fix: remove upper limit of signed int32 for frequency setting 2020-01-18 12:07:21 +09:00
TT 6a88f8ed8f feat: improve frequency accuracy 2019-12-10 03:00:06 +09:00
TT f6e9c6f434 fix: adjust delay 2019-10-22 09:36:41 +09:00
TT 07de5cd579 enhancement: adjust delay 2019-10-08 07:38:38 +09:00
TT f7e712798a chore: remove warnings 2019-10-06 07:56:25 +09:00
TT 3a6de231c6 fix: remove glitch on interpolation 2019-10-05 21:11:19 +09:00
TT 94659a22ba feat: add threshold command 2019-10-05 19:56:38 +09:00
TT 3b953f061b feat: adjust gain and frequency band, enpower LO drive strength. 2019-08-12 23:07:10 +09:00
TT a4ef290126 experiment: x5 harmonic mode 2019-08-12 20:53:49 +09:00
TT c6a4b651d0 feat: add controling stimulus power and gain by frequency 2019-08-10 13:04:48 +09:00
TT 10a58f9580 feat: extend to 900MHz 2019-07-25 06:23:27 +09:00
TT 2f7177ad47 expand frequency range 40kHz 2017-02-02 05:40:39 +09:00
TT 87858d5e5d add argument rdiv in si5351 setupMultisynth 2017-02-02 05:18:29 +09:00
TT c9e00287a3 make smooth frequency sweep 2017-01-28 02:47:55 +09:00
TT 7d7b752569 fix delay on frequency change 2017-01-16 23:48:45 +09:00
TT 74cfdb93a3 arrange code, add notice at head of each file 2017-01-01 20:03:21 +09:00
TT b5abce3dfc change to cell drawing method 2016-10-13 20:25:31 +09:00
TT b2e3fe770d set sweep on draw, adjust grid 2016-09-30 09:42:49 +09:00
TT c1decf606b use float to calc gamma, cleanup 2016-09-28 22:48:53 +09:00
TT a5fd502ba0 add band change handling 2016-09-24 10:25:13 +09:00
TT c84d5f0fa5 make fast si5351 i2c control, add scan command 2016-09-19 13:13:42 +09:00
TT 57efd8b7e7 add gcd division, change led blink 2016-09-17 23:48:18 +09:00
TT 7b3b28f8af add gain/offset/power command, clean up si5351a control 2016-09-10 18:24:44 +09:00
TT a2e09a7923 support >150MHz, fix failure on frequency change 2016-09-06 09:02:57 +09:00
TT 011d9774f5 add >150MHz support 2016-09-05 08:33:05 +09:00
TT 59020b8cfc initial commit 2016-09-05 07:29:43 +09:00