Commit graph

186 commits

Author SHA1 Message Date
DiSlord 8453eb8890 Update defines
Allow select any ADC mode, add all settings for it
2020-08-03 20:40:54 +03:00
DiSlord d3ad97c6a9 Update bandwidth string on change 2020-08-03 11:03:15 +03:00
DiSlord 7f34a93067 Simple start analog wathdog
Add 900kHz i2c setting
2020-08-02 11:30:01 +03:00
DiSlord f90b920d5e More comments
Rewrite flash.c for less size
Add cache for check checksum (more faster interpolate, used in multi segments sweep)
More fixes for font and select size of marker icon
More debug functions
2020-08-01 19:44:34 +03:00
DiSlord 6b25d86128 Add base support for dynamic button text
Save some flash size
2020-07-29 20:39:47 +03:00
DiSlord 156e21f4ee Format fixes for frequency value string
More code defines (various mode)
Add debug command for i2c bus speed
2020-07-29 19:41:51 +03:00
DiSlord 0ff1d09f30 Add LCD send command for debug 2020-07-22 23:03:06 +03:00
DiSlord c8fea63042 Remove usage blit8BitWidthBitmap, blit16BitWidthBitmap and cell_drawchar
Now need use universal ili9341_blitBitmap and cell_blit_bitmap
Add definition for various font support
Now Font, Reference and Markers bitmaps draw by universal cell_blit_bitmap
Add big marker bitmaps
Reduce font bitmap count (comment not used)
Now all bitmaps better define by macros:
_BMP8
_BMP16
_BMP24
_BMP32
2020-07-22 22:24:00 +03:00
DiSlord 55ff194b90 Add comments to hanovna.h defines
Add message box function
Use defines from nanovna.h for enable/disable some UI menus
Move edge color to nanovna.h
2020-07-17 22:55:19 +03:00
DiSlord bed63ca84b Add LCD command for debug (disabled as default)
Add defines for more easy change to 48kHz ADC
Add commented touch calibration settings for 4`LCD
2020-07-17 17:36:14 +03:00
DiSlord 0a14a9fff3 Disable 2020-07-14 22:11:15 +03:00
DiSlord ea7836a273 Redefine config menu colors to new gray theme
Remove not used code
Reverse leveler direction on on screen keyboard
2020-07-14 21:30:27 +03:00
DiSlord 507f7fbe52 Add base support checkbox for UI 2020-07-13 16:14:15 +03:00
DiSlord 080e623a14 Small code fixes 2020-07-13 06:56:49 +03:00
DiSlord 17b229d90f Fix unix path 2020-07-11 23:26:03 +03:00
DiSlord 0a09763cbb Small definition update 2020-07-11 18:40:35 +03:00
DiSlord fdf88ae289 Move some definitions too nanovna.h 2020-07-11 18:05:44 +03:00
DiSlord 3522c05375 Comment 2020-07-09 20:43:48 +03:00
DiSlord c9e512fe9c Multiline text output and align 2020-07-09 20:42:45 +03:00
DiSlord 8894110423 Full screen keyboard
Custom buttons draw support
2020-07-03 22:03:54 +03:00
DiSlord 61b3989c28 Add part of SD card code (need some cleanup), disabled (not added diskio part!) 2020-07-01 12:29:25 +03:00
DiSlord 3213a8022c Fix MAX_TRACE_TYPE to 13
Increase digit for show Q factor (use %.3f format)
2020-06-21 08:00:01 +03:00
DiSlord 76223f5e25 Merge branch 'master' of https://github.com/ttrftech/NanoVNA 2020-06-20 12:31:35 +03:00
DiSlord a8f36a4c5d Add compact RTC library (only 500 bytes for all, default RTC lib req ~ 2kB)
For enable use external (LSE) clock generator need un comment in Makefile
#UDEFS+= -DVNA_USE_LSE
By default use internal (LSI) clock generator, but it stop then VNA power off
For enable use external (LSE) clock generator, need install 32.768kHz clock quartz on PC14 and PC15 pins, it allow clock run while power off

For enable use RTC in code uncomment in nanovna.h
#define __USE_RTC__
This enable command 'time'
usage: time [y|m|d|h|min|sec] 0-99
Example set 2020 year run 'time y 20'

Add show current time in version screen
Better use font size constants for all screen size
2020-06-20 12:07:38 +03:00
TT bc1b57c3f0 feat: add format quality factor 2020-06-20 08:08:21 +09:00
DiSlord 66a8a84082 Revert use 8MHz clock for AIC 2020-06-13 19:49:37 +03:00
DiSlord 237a329226 Add sin_cos table for 6 or 12kHz offset for dsp
Add support direct clock for AIC3204 from si5351
Now possible made calibration and not reset old calibration data, just made another calibration (not need reset or disable correction).
  Open - Short calibration depend from self, need recalibrate it together.
  Load calibration possible made alone
  Isoln, Thru also depend from self, need recalibrate it together.
2020-06-04 20:26:06 +03:00
DiSlord 881e46e122 Move ADC channel touch definition to nanovna.h 2020-05-17 23:47:15 +03:00
DiSlord 04a8820192 Remove variable, lost in last merge 2020-05-14 18:24:54 +03:00
DiSlord dedae1ea82
Merge branch 'master' into master 2020-05-14 18:08:30 +03:00
TT fe7a1ac4de fix: keep freq mode in each save slot 2020-05-14 06:53:52 +09:00
DiSlord e6450aa3ea Update header file for future fixes:
Variable sweep_points support
Increase ADC from 48kHz to 96kHz
Some in code definitions for easy compile and platform change
2020-04-29 13:40:53 +03:00
DiSlord 49b52213cf Change config and properties flash address definitions
Show BW settings at bottom of screen
2020-04-04 08:43:32 +03:00
DiSlord e09ee19646 Move bandwidth option from properties to config
Little fixes
2020-04-02 16:36:59 +03:00
DiSlord 20649012df Little speedup and less size fft
Better support other size LCD and font
Fix CH1 unstable at begin sweep
2020-03-30 20:01:51 +03:00
DiSlord 2ed2f96f4a Size fixes
- bandwidth count stored in menu (less error on add new values)
- allow set any bandwidth count from command
- bandwidth command print bandwidth freq on apply
2020-03-21 21:58:51 +03:00
DiSlord ddf51987eb On calibration use max bandwidth setting 2020-03-21 20:23:59 +03:00
DiSlord 22e4df1577 Little rework bandwidth:
- Not reset sweep on request
- Better menu response
- little DSP optimization

Faster i2c bus (now 600kHz, allow more faster add settings)
Add i2c command (disabled by default)
Little fix stat command
2020-03-21 16:15:03 +03:00
TT 1656342eeb feat: add bandwidth setting of detector 2020-03-21 21:03:08 +09:00
TT 0d407577f8 style: uniform code style and untabify 2020-03-21 09:33:33 +09:00
DiSlord fdb3886b0f Move define to str macro in nanovna.h (it allow output define valuer in error messages) 2020-03-14 16:50:35 +03:00
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 3714e05395 Fix artifacts after marker move
(For faster screen update on marker move, all old area update info invalidate after use draw_all_cells(TRUE) on page switch)
Force redraw all cells after end marker move
2020-03-09 22:47:35 +03:00
DiSlord eebb625b9d Always update marker info 2020-03-09 22:28:05 +03:00
DiSlord 04fb661b1a Add flag in config for sweep mode
#define FREQ_MODE_START_STOP    0x0
#define FREQ_MODE_CENTER_SPAN   0x1
Now sweep mode not defined from frequency0 > frequency1 or frequency0 < frequency1
frequency0 always < frequency1

All freq must get by use get_sweep_frequency(mode)

Revert Select CH0 reflect channel before set freq, add additional delay on 0 sweep point
2020-03-09 18:24:31 +03:00
DiSlord 45f04420cb Implement info command, move info_about[] to main.c
Command enabled by default: ENABLE_INFO_COMMAND
This feature not increase flash size
2020-03-08 08:32:38 +03:00
DiSlord fc6e090595 Add vbat_offset to config
Implement vbat_offset command (if defined ENABLE_VBAT_OFFSET_COMMAND)
Reduce code size
2020-03-07 23:37:39 +03:00
DiSlord bb7127fdd0 Remove variable, use speep_mode flag 2020-03-07 22:21:02 +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