erikkaashoek
5ba6bdbe45
Saveconfig working and console command 64 bit frequencies
5 years ago
erikkaashoek
a04d69b011
Converted to 64 bit frequencies
5 years ago
erikkaashoek
defcf7e5cf
Runtime calculate spur table from IF
5 years ago
erikkaashoek
94fd6e083d
Power levels multiple SPI speeds
5 years ago
erikkaashoek
0fdb646c0f
Modulation working
5 years ago
erikkaashoek
238b60093e
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
ea41a86487
Add level quick buttons and high output keypad
5 years ago
erikkaashoek
6fcbe77e68
Full range high input
5 years ago
erikkaashoek
c27fd5b7e5
Added frequency correction
5 years ago
erikkaashoek
8f81361bcd
SCANRAW zero level reduced
5 years ago
erikkaashoek
8443630550
FAST scanning working
5 years ago
erikkaashoek
3191fccaad
Remote control working
5 years ago
erikkaashoek
99e579fe00
Linearity test added back in
5 years ago
erikkaashoek
eda12805a1
Repaired marker bug
5 years ago
erikkaashoek
4f9c9aad73
First step of adding harmonic mixing and maxFreq now 4.29GHz
5 years ago
erikkaashoek
d8fe3b6936
Selftest more of less working
5 years ago
erikkaashoek
d87d2a2e07
Display test added
5 years ago
erikkaashoek
2687191e19
Many improvements
5 years ago
erikkaashoek
894a149025
Spur reduce updates and much more
5 years ago
erikkaashoek
147565a985
Updated filters
5 years ago
erikkaashoek
330ef9e919
ADf tuning
5 years ago
erikkaashoek
b47a95b1bd
First tuning
5 years ago
erikkaashoek
0339a46c90
Revert "Port IO corrected"
...
This reverts commit 816924b15f .
5 years ago
erikkaashoek
816924b15f
Port IO corrected
5 years ago
erikkaashoek
82fc1cbd10
Modulo setting has direct effect
5 years ago
erikkaashoek
8edff4d95b
Offset working and freq checked
5 years ago
erikkaashoek
9e2749ede0
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
0ccc1b1526
Solved store/load bug
5 years ago
erikkaashoek
0e022889e0
Eliminate float attenuate value
5 years ago
erikkaashoek
606ec95b5f
Slider span
5 years ago
erikkaashoek
a964f3d8f3
Help text, size compression and '0' readability
5 years ago
erikkaashoek
edb87de448
Slider update
5 years ago
erikkaashoek
bca0f83a46
Updated slider
5 years ago
erikkaashoek
a37a40228e
Split LO and RX drive
5 years ago
erikkaashoek
5168a191e3
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
ac6dd84250
Added external amp in output mode
5 years ago
erikkaashoek
8921e10de4
Double click for bottom quick menu bug solved
5 years ago
erikkaashoek
7024300315
Pre/Post?Mid trigger added
5 years ago
erikkaashoek
5901b61126
Reduce differences
5 years ago
erikkaashoek
c4a9d02bd5
Trigger working
5 years ago
erikkaashoek
efe18e0baf
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
b93dcefa05
Updated spur removal setting and marker quick menu
5 years ago
erikkaashoek
d359f83202
Repaired waterfall
5 years ago
erikkaashoek
789216e3e7
Updated sub stepping
5 years ago
erikkaashoek
faff36713b
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
561547a48e
More status panel space
5 years ago
erikkaashoek
ab3ee6451d
Added ultra setting switch
5 years ago
erikkaashoek
41994127e8
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
be2fb2e466
Added quick menu
5 years ago
erikkaashoek
b8c04980a9
Added attack and decay
5 years ago
erikkaashoek
16c5d0f250
Proto updates
5 years ago
erikkaashoek
2d2f52d52f
Added ultra and extra_lna
5 years ago
erikkaashoek
183b932157
Update modes
5 years ago
erikkaashoek
ea384b4313
Reduce warnings
5 years ago
erikkaashoek
94b78af0a8
More cleaning
5 years ago
erikkaashoek
fbc6238cbd
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
6f87211a66
Remove __ULTRA_SA__
5 years ago
erikkaashoek
48f9ea33a8
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
4dfbcca1ed
Reduce version specifics
5 years ago
erikkaashoek
5a0154b592
Reduce differences and remove unneeded parts
5 years ago
erikkaashoek
0da4d0a0e6
Lowe output mode working
5 years ago
erikkaashoek
acf2b1f180
Basic High Output mode working
5 years ago
erikkaashoek
22fe92f79b
Corrected PLL calculations
5 years ago
erikkaashoek
965823a6cb
Solved SPI bug
5 years ago
erikkaashoek
ecb9455f47
Revert "Revert "Broken scan""
...
This reverts commit 3707c681d8 .
5 years ago
erikkaashoek
3707c681d8
Revert "Broken scan"
...
This reverts commit 9f33d285b0 .
5 years ago
erikkaashoek
9f33d285b0
Broken scan
5 years ago
erikkaashoek
c2ce6e10c9
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
352e80b965
Trace colors repaired
5 years ago
erikkaashoek
0e9d3b3f30
Merge branch 'DiSlord_palette_color'
5 years ago
DiSlord
52b4f2bd58
Use "palette" index for draw all on display
...
Colors stored in config
Now possible change any color by 'color' command and store for use
5 years ago
erikkaashoek
b246d33550
Spur IF corrected
5 years ago
erikkaashoek
312c959bfe
Move pause and resume to bottom of stack
5 years ago
erikkaashoek
94cfd46996
Added marker to ref level
5 years ago
erikkaashoek
7d6d1d33d0
Merge debugged
5 years ago
erikkaashoek
168a43a6d1
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
38fd765666
A lot of changes
...
- Store actual frequency in config
- Measure FM deviation
- Center zoom updated to work with dragged marker
- Improved touch calibration markers
5 years ago
erikkaashoek
915038233f
Auto center mode added
5 years ago
erikkaashoek
d7dd5f13e0
All working!!!!!
5 years ago
erikkaashoek
35e8016926
All working
5 years ago
erikkaashoek
353f338c4a
SI4486 and ADF4350 working
5 years ago
erikkaashoek
62d83ee44f
Added sample mean calculation
5 years ago
erikkaashoek
94e620bf0d
Add IF2
5 years ago
erikkaashoek
d55ead2ea8
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
aca8f2dbcc
THD measurement added
5 years ago
erikkaashoek
57dcf7529c
Updated
5 years ago
erikkaashoek
424051821f
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
ae3a69cfbf
Serial integrated
5 years ago
erikkaashoek
a56056903b
User settable modulation frequency
5 years ago
erikkaashoek
5904e600ee
User settable modulation frequency
5 years ago
erikkaashoek
db328ff327
Add menu option to set marker frequency
5 years ago
erikkaashoek
b0f5097d92
Waterfall big, small or off
5 years ago
erikkaashoek
dae01ca925
Add hamband and gridlines setting
5 years ago
erikkaashoek
8f259d91c3
Disable HAM_BAND
5 years ago
erikkaashoek
bf6accf142
Added Ham band coloring
5 years ago
erikkaashoek
28b6712338
Some code size squeezing
5 years ago
erikkaashoek
cafe2b7a47
Added 3 measurements
5 years ago
erikkaashoek
a534f5fad4
Repair load preset
5 years ago
erikkaashoek
79a60450c8
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
3e428150de
Mirror masking added
5 years ago
erikkaashoek
6dfe1be073
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
8daad51f74
Correct frequencies
5 years ago
erikkaashoek
c488f83e10
Sweeping with ADF works
5 years ago
erikkaashoek
0e7c601c71
Marker search now deactivates tracking
5 years ago
erikkaashoek
ac7e09efdd
Marker PEAK SEARCH added
5 years ago
erikkaashoek
6d97e655c3
SI4463 switchable
5 years ago
erikkaashoek
52ec1cebca
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
cd3bfac519
Make PE4302 optional
5 years ago
erikkaashoek
117ecb525a
First step remove SI4432
5 years ago
erikkaashoek
385259b0ad
Merge branch 'master' into tinySA-V4-SI4463
5 years ago
erikkaashoek
0aec13e49e
Make SI4432 optional
5 years ago
erikkaashoek
e2d5f52dc0
First stage SI4463 RSSI working
5 years ago
erikkaashoek
e875c8f1ef
Repaired config save
5 years ago
erikkaashoek
58be2b410c
Merge branch 'master' into tinySA-V4
5 years ago
DiSlord
b7be1adf4b
Cleanup save flash code, more simple savearea settings
5 years ago
erikkaashoek
a63df47b8b
Corrected leveloffset error
5 years ago
erikkaashoek
9dbce30497
I2C, I2S, si5351 and tlv320aic3204 added
5 years ago
DiSlord
042ecdba01
Fix lost hardware send/read data mode
...
Change HEIGHT_SCROLL to 250 (if set to 260 - get crash?? need more research problem)
5 years ago
DiSlord
5abf8b900e
Implement share SPI bus
5 years ago
DiSlord
b49f3edadf
Fix save slot area place (last 20k)
5 years ago
DiSlord
bd76bbbf25
Fix size on waterfall
...
Waterfall code need some change for support different sweep points count
5 years ago
DiSlord
7ff0be62ac
Initial commit for H4 tinySA version
5 years ago
DiSlord
8e0b201fc2
Add delta symbol for delta markers
...
Add different marker icon size, and use cell_blit_bitmap for draw it
Change # symbol for big font
5 years ago
DiSlord
7dd31965f0
Not store unused font glyph (index < 0x17)
...
Add 10x14 bold font
Now all ili9341_drawstring_size replaced by use this font
Change some text for align in menus vs new font
5 years ago
DiSlord
037453fc8d
Remove usage blit16bitWidthBitmap
...
Now need use blit8BitWidthBitmap for draw image
Now big bitmap image need define as uint8_t bitmap array, for more easy use _BMP16, _BMP24, _BMP32 macro
Redefine bitmaps arrays vs this macro
Now bitmap image can be any width and height
Now any bitmap image can be draw transparent on cell
Result code more compact
5 years ago
DiSlord
1518e4bfd8
Formatting
...
Use defines for font chars
5 years ago
DiSlord
4ef8543322
More menu buttons use ADV mode
5 years ago
DiSlord
fd831b5f96
Next step for UI mod:
...
Cleanup UI code
In most cases use UI_FUNCTION_ADV_CALLBACK for mod menu settings
Add Auto/Manual icon
Fix some bugs
5 years ago
DiSlord
8900f87160
Initial iteration of 3d button UI
5 years ago
DiSlord
326ec09f0f
Enable fullscreen 3d keyboard
6 years ago
DiSlord
cb3b0af6ee
Code cleanup
...
Add base definition for menu callback and adv_callback functions
adv_callback - allow more better mod menu draw and process in one place (less error and less code size)
6 years ago
erikkaashoek
eb85400e0e
Added deviceid command. Use saveconfig to store
6 years ago
DiSlord
5a46a6486f
Run trace command in sweep thread
...
Change grid text format to 7.3
6 years ago
erikkaashoek
71172efaf3
speed menu improvements
6 years ago
DiSlord
72ab183296
UI draw update
...
>Multiline text - now possible output multiline in one print (for 2 line buttons for example)
>But syntax is "1_line_text\n2_line_text" possible 3 line and bigger (need only more bigger height for output)
6 years ago
DiSlord
3f71a176d3
More simple keyboard data
6 years ago
erikkaashoek
27e0159ce2
Add fast speedup menu option
6 years ago
DiSlord
84572dec56
get_signal_path_loss correction use integer values
6 years ago
DiSlord
5991b6ab88
Use integer as return value for perform
...
For tiniSA.exe need use Level/ Db = 32
Zero level defined as 128
6 years ago
DiSlord
755ee83f26
Define color for grid info
...
Need allow in future user select it by command (add palette)
6 years ago
DiSlord
588c69442f
not need display menu on keyboard input (so add really full screen keyboard)
...
move size definitions to header
6 years ago
DiSlord
6833ea601a
Fix waterfall for 145 points
...
Prepare for 3d buttons update (fix keyboard draw buttons)
6 years ago
DiSlord
bf5c624a79
Define RSSI value types and macro for conversions
6 years ago
DiSlord
fd68556db7
Move function description to another header
6 years ago
DiSlord
2387c78ef6
setting.frequency_step now uint32_t
6 years ago
DiSlord
047a8320d0
Prepare variable sweep points support
...
Need only add fixes to waterfall mode
6 years ago
DiSlord
324e543877
use int16_t for fast search trigger and as result of SI4432_RSSI()
6 years ago
DiSlord
934ab41d8b
More defines for use set FG BG color, direct call function more compact
6 years ago
DiSlord
3abc1ba504
Better right align text in grid
6 years ago
DiSlord
27f85e8405
Implement show grid values at right of screen
6 years ago
DiSlord
f491e4b39b
Merge branch 'master' of https://github.com/erikkaashoek/tinySA into DiSlord_test_branch
6 years ago
DiSlord
6501c3dd74
Better responsive touch, also use averaging for touch X/Y read
...
Define and use ADC channels name (for easy use on another boards)
6 years ago
erikkaashoek
beaf183930
Merge branch 'DiSlord_test_branch'
6 years ago
erikkaashoek
1897953749
Selftest 3 working again
6 years ago
DiSlord
7213afd3e2
Code cleanup
6 years ago
erikkaashoek
39e1a02220
Trigger line to BLUE and status panel trigger text to green in NORAL mode
6 years ago
erikkaashoek
3087d5f39b
Merge branch 'DiSlord_test_branch'
6 years ago
DiSlord
08f4235008
Not use for trigger level stored trace
6 years ago
erikkaashoek
37495e9750
Add UP/DOWN trigger option and optimize constants
6 years ago
DiSlord
12fcfc560b
Small text fixes
6 years ago
erikkaashoek
68d43e7fc0
Sweep time updates in output mode
...
This includes showing the actual sweep time in output mode so you can see when you have selected an impossible sweep time. The form does not auto refres so the new time is only visible after hitting a button
6 years ago
erikkaashoek
e680d7e8aa
Updated sweep time logic and corrected first sweep after update
6 years ago
DiSlord
5acc180a92
Use variable for count sweep time
6 years ago
erikkaashoek
2186d202c3
vbw also vbw_x10 and repaired remaining rbw
6 years ago
DiSlord
5d0cd17718
Merge branch 'master' of https://github.com/erikkaashoek/tinySA into DiSlord_test_branch
...
# Fixed Conflicts:
# sa_core.c
6 years ago
erikkaashoek
a4b0230139
Added offset_delay
6 years ago
DiSlord
3a2d52b90e
Small fix setRBW parameter type
6 years ago
DiSlord
0dedf0b19d
Rewrite RBW and actualRBW use code
...
Now values is uint16 (float before)
And value = x10 in kHz (possibly better use uint32_t and in Hz)
Only one part of code i think need more fix:
VBW use still float
6 years ago
erikkaashoek
e9626c21ff
Merge branch 'DiSlord_test_branch'
6 years ago
erikkaashoek
311d0bda42
Massive sweep time redesign
6 years ago
DiSlord
a2ff8edabd
Small style fixes
...
SPI_BUFFER_SIZE depend from CELLWIDTH and CELLHEIGHT
6 years ago
erikkaashoek
54e3eb5537
Updated sweep time prediction
6 years ago
erikkaashoek
d0a7c0649b
Added measuring of minimum sweep times
6 years ago
DiSlord
11c5938807
Change use time from float to uint32 type
...
Now time settings stored as uSec value
6 years ago
DiSlord
744a8db67d
More compact shiftIn and shiftOut
...
Add buffer shiftInBuf and shiftOutBuf in/out
Replace int freq on uint32_t
Fix in SI4432_Set_Frequency Freq_Band overflow
6 years ago
erikkaashoek
2bd78e6ce4
Add normalize button, no auto attenuate when subtracting storage
6 years ago
erikkaashoek
c12b661905
Brighther red and S for seconds
6 years ago
erikkaashoek
992973eee2
Change colors for new gamma
6 years ago
erikkaashoek
ff6623958c
Rename step_atten to atten_step
6 years ago
DiSlord
d4044808e8
Add waterfall palette (not used by default) for enable need #define _USE_WATERFALL_PALETTE in nanovna.h (more info see in waterfall.c)
...
Add gradient calculation for waterfall (enabled by default)
Now HEIGHT = (GRIDY*NGRIDY), GRIDY variable integer value and depend from render area height
It allow save size and more better align render area
More constants fixes for 4`display
Fix full screen redraw on menu back or select next
6 years ago
erikkaashoek
c14584c6a9
Improved compatibility with 4inch code
6 years ago
erikkaashoek
0a24a6e37b
Prepare for 4 inch display
6 years ago
erikkaashoek
4a2c18e98c
Selftest error screens can be captured
6 years ago
DiSlord
b32733749d
Use defined constants for button size in redraw request
6 years ago
DiSlord
cfb21b2f5d
Move (and add new) some menu size variables to nanovna.h
...
Better use this values and font size for draw menu buttons
Increase right menu button width from 60 to 70
Decrease menu button height from 30 to 28
6 years ago
erikkaashoek
303405afd7
Variable size font
6 years ago
erikkaashoek
63e8cee471
Calculate correct CW sweep time when spur is on
6 years ago
erikkaashoek
3db1738e0b
Change to levelchange and sweeptime cmd added
6 years ago
erikkaashoek
2c3a268c47
Levelsweep warp error and show UI after cmd mode switch
6 years ago
erikkaashoek
88a9a0a866
Add output and f cmd and repair TIME status mismatch in high mode
6 years ago
erikkaashoek
72653930d5
Attenuation and output levels in 0.5dB steps
6 years ago
erikkaashoek
2925336314
Correct delta unit and fast trigger sweeps
6 years ago
erikkaashoek
e8ce011f5d
dBc, shift waterfall and do not reset cal output
6 years ago
erikkaashoek
3b61c73a11
Replace LCD size constants
6 years ago
erikkaashoek
8584158b58
Fast sweep added
6 years ago
erikkaashoek
c136d58853
output default off, help text improved, use %.3F format
6 years ago
erikkaashoek
879ae21538
zero span auto reflevel and display trigger level after setting
6 years ago
erikkaashoek
e48a37b504
Selftest 4 and sample repeat bugs
6 years ago
erikkaashoek
8f31d8fafd
Reflevel multiple of scale
6 years ago
erikkaashoek
7f0efbfdf9
Scale entry and trace command afapted
6 years ago
erikkaashoek
a8a7209f9c
Output sweep time repaired and output on/off implemented
6 years ago
erikkaashoek
492fbbed7f
Scaling linear units implemented
6 years ago
erikkaashoek
87555f8c3e
Sweep time calculation and delayed scale increase
6 years ago
erikkaashoek
be66fab7f6
Sweep speed improvement and better sweep time calculation
6 years ago
erikkaashoek
9bb9f92b98
Add auto indicators and tri-state switches
6 years ago
erikkaashoek
70cb7cbe5a
Update of auto leveling in linear mode
6 years ago
erikkaashoek
67851716ba
Status panel to 30 pixels
6 years ago
erikkaashoek
c1c1681c29
Keep reflevel
6 years ago
erikkaashoek
58e2dd8dfb
Display sweep time in zero span mode
6 years ago
erikkaashoek
eb706a2728
Input sweep time setting added
6 years ago
erikkaashoek
7100b9aee0
Level offset and sweep time added
6 years ago
erikkaashoek
5ce6439211
Command levelsweep added
6 years ago
erikkaashoek
3493e82d83
Small ui corrections
6 years ago
erikkaashoek
068bfacbcf
correction table added to config
6 years ago
erikkaashoek
c0e152f6c0
Small UI improvements and additional units
6 years ago
erikkaashoek
29821f98de
New menu working
6 years ago
erikkaashoek
1b7d416e63
Enable execution of single selftest
6 years ago
erikkaashoek
330aa3c6ec
LINEARITY measurement added
6 years ago
erikkaashoek
40d5ceac61
Own_microsecond_delay busy loop
6 years ago
erikkaashoek
315b028020
Updated ULTRA mode
6 years ago
erikkaashoek
4ea1157b8b
Extended trigger and level rounding
6 years ago
erikkaashoek
302aa0fcaf
NGRIDY to 10 and added comments
6 years ago
erikkaashoek
ae63eaf7d2
Add trigger option
6 years ago
erikkaashoek
e0c71046f5
Better actual power and corrected <vbwSteps error
6 years ago
erikkaashoek
10d77ee691
stored trace now also saved to flash
6 years ago
erikkaashoek
7f43e46fd9
Some small UI requests
6 years ago
erikkaashoek
0827aaa16d
PC control working
6 years ago
erikkaashoek
eef33fa47f
Prepare for PC application
6 years ago
erikkaashoek
6c272d1f75
Small UI changes
6 years ago
erikkaashoek
d7763cec48
Add spur menu and cleanup code
6 years ago
erikkaashoek
2898c02d36
Load/Store of settings added
6 years ago
erikkaashoek
faea96b1c9
cmd selftest
6 years ago
erikkaashoek
1f7a0357a5
Making ULTRA_SA an option
6 years ago
erikkaashoek
20d9c2bbd6
Harmonic mode implemented
6 years ago
erikkaashoek
aa6c062341
Modify marker menu created adn ADF4351 core added
6 years ago
erikkaashoek
feb6f5e81a
Harmonic made optional
6 years ago
erikkaashoek
8bffd8ba36
Added harmonic mixer
6 years ago
erikkaashoek
2d430a4f58
Small improvements
6 years ago
erikkaashoek
a6b9e48921
Waterfall improvement and extra measurements
6 years ago
erikkaashoek
3aa934bad8
Tracking generator output and cleaning up UI
6 years ago
erikkaashoek
5b661b9093
Hangup in offset keypad solved
6 years ago
erikkaashoek
1a2664943f
Many marker and measurement related updates
6 years ago
erikkaashoek
e3d96b9bed
Auto reflevel and auto attenuation added
6 years ago
erikkaashoek
85e17da3bf
RBW power calibration table added and calibration completed
6 years ago
erikkaashoek
7d64766513
Optimize stack usage by shifting test and calibrate to lowest level
6 years ago
erikkaashoek
62e0120f22
Measurements working
6 years ago
erikkaashoek
ca687ea11b
Intermediate commit on UI change
6 years ago
erikkaashoek
bd50a9d3e5
Small bug fixes
6 years ago
erikkaashoek
0a03ff0a2f
Added full marker tracking
6 years ago
erikkaashoek
b3e8065857
Small memory optim
6 years ago
erikkaashoek
ae326020e3
Merge branch 'master' into tinySA
6 years ago
erikkaashoek
f0f6004bac
Added MAX_DECAY average
6 years ago
erikkaashoek
4b5e4dffdf
Small speed improvements
6 years ago
erikkaashoek
dea4d02631
Cleanup settings
6 years ago
erikkaashoek
6a627149d6
Test and calibrate updated
6 years ago
erikkaashoek
37befeb947
Self test extended
6 years ago
erikkaashoek
8dcf6a6b59
Force top level menu on screen
6 years ago
erikkaashoek
8989861112
3D buttons
6 years ago
erikkaashoek
e0a100af56
Clean up code
6 years ago
erikkaashoek
9c129b1310
Output modulation added
6 years ago
erikkaashoek
9fb0638def
Full screen mode menu
6 years ago
erikkaashoek
44eb6027a9
No stepping during output mode
6 years ago
erikkaashoek
f2137f4f97
All except waterfall working
6 years ago
erikkaashoek
4353721ec5
First running port
6 years ago
TT
1656342eeb
feat: add bandwidth setting of detector
6 years ago
TT
0d407577f8
style: uniform code style and untabify
6 years ago
DiSlord
fdb3886b0f
Move define to str macro in nanovna.h (it allow output define valuer in error messages)
6 years ago
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)
6 years ago
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
6 years ago
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
6 years ago
DiSlord
eebb625b9d
Always update marker info
6 years ago
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
6 years ago
DiSlord
45f04420cb
Implement info command, move info_about[] to main.c
...
Command enabled by default: ENABLE_INFO_COMMAND
This feature not increase flash size
6 years ago
DiSlord
fc6e090595
Add vbat_offset to config
...
Implement vbat_offset command (if defined ENABLE_VBAT_OFFSET_COMMAND)
Reduce code size
6 years ago
DiSlord
bb7127fdd0
Remove variable, use speep_mode flag
6 years ago
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
6 years ago
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)
6 years ago
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
6 years ago
TT
f1cc60e99e
feat: add lever mode for electrical delay
6 years ago
TT
18c5ca9157
feat: add lever operation of electrical delay
6 years ago
TT
7f5948c4b8
chore: add scope name onto struct and enum
6 years ago
DiSlord
153585ff1f
Move more address constants to nanovna.h
6 years ago
DiSlord
ccb3693516
Huge reduce flash usage (about 5k), remove cal_data and _frequencies properties from data section
...
Use void loadDefaultProps() for load default properties (default loaded also on error load from flash)
Move some constants to nanovna.h
6 years ago
DiSlord
d386b0823c
Write clearScreen and use it in code
...
More hard coded values fixes
6 years ago
DiSlord
b7934745ca
Restore main thread stack size (stack usage code optimization give good result)
...
Decrease sweep thread stack size from 640 to 512 (also stack usage code optimization give good result)
Little change 16x22 font
ui.c
Use definition for some hard coded values
Fix button "Correction" not reset after use "reset"
Define menu button and input num size
#define MENU_BUTTON_WIDTH 60
#define MENU_BUTTON_HEIGHT 30
#define NUM_INPUT_HEIGHT 30
Reduce button height from 32 to 30 pixels (fix in stimulus menu "<back" button overwrite by input num field)
Little code change
6 years ago
DiSlord
d2431f0cdc
Increase screen render (in some cases up to 2x speedup), decrease stack usage (code size less on 1500 bytes)
...
Write simple profiling definitions
START_PROFILE
STOP_PROFILE
Use it for detect sys tick amount and output to screen
main.c
Reduce VNA_SHELL_MAX_LENGTH to 48, and made shell_line as static (reduce stack usage)
Remove BaseSequentialStream *chp from command calls (use static shell_stream), it reduce code size and stack usage
Use VNA_SHELL_FUNCTION definition for all commands
Remove chMtxLock(&mutex);chMtxUnlock(&mutex); from commands, and define command flag for use it in calls
Apply default scale from trace_info on trace change
Led blink outside from main sweep cycle (better look, and less noise)
Some size fixes
chprintf.c
Implement small memory stream object, only put function and plot_printf(char *str, int size, const char *fmt, ...)
Use it in all code (little increase speed, and huge decrease size)
Restore USE_EXCEPTIONS_STACKSIZE = 0x180 (possible not need, but not good tested)
plot.c
Made huge screen render profile (add some comments)
Not use cell clipping on draw cell data (use constants increase speed, decrease stack usage (not need put it to stack))
Clip cell if need only on screen flush
Use new plot_printf, remove chsnprintf usage
Apply code style
============================================================================================================
Interesting fact
Usage memset(spi_buffer, DEFAULT_BG_COLOR, (h*CELLWIDTH)*sizeof(uint16_t)); dramatically decrease render speed
possibly it fill buffer by 8 bit data, so slow
Usage
uint32_t *p = (uint32_t *)spi_buffer;
while (count--) {
p[0] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[1] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[2] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p[3] = DEFAULT_BG_COLOR|(DEFAULT_BG_COLOR<<16);
p+=4;
}
gives x10 speed perfomance
Draw polar and smit grid very slow (but i don`t know how increase it except use bitmaps, but it need about 5-8k flash size and file prepare)
On long lines render slow down, but clipping use more calculation, and not give good result
Need made stack usage check
6 years ago
DiSlord
5ee23be06f
Add definition of spi_buffer size
...
Add check cell and spi_buffer size
6 years ago
DiSlord
1177d87498
Increase main thread stack size (if used as shell, if run some commands get stack limit, example "trace 0 x" command)
...
Decrease interrupt stack size
Use __ROR instruction in flash.c for checksum rotate
Fix erase background for frequencies string in plot.c
Implement getStringIndex function for parse string arguments, now Usage show correct information about used arg, and more easy use strings definitions
Example:
Need check if string "on" in avaible arguments list "load|open|short|thru|isoln|done|on|off|reset|data|in"
getStringIndex("on", "load|open|short|thru|isoln|done|on|off|reset|data|in") return 6
If not found return -1
Not need use if (strcmp() == ...) else ....
This usage save some amount of size
6 years ago
TT
7d2708afce
feat: paramterize number of y-grid, revert to 8
6 years ago
TT
8e8bc6924e
fix: update checksum
6 years ago
TT
10e5578c8c
Merge branch 'levermode' into DiSlord-master
6 years ago
TT
93d1233d8b
feat: change the operations to select lever mode
6 years ago
DiSlord
02a5715bb4
Big code redisign (increase CELL draw size, more faster screen render), also save about 4-5kB flash size
...
Try remove all hardcoded values from code (use definition if set)
Some error fix
main.c:
Rewrite Shell, now it run on main thread and require less RAM (not need stack)
(possible run it as thread if define VNA_SHELL_THREAD
Remove not used trace_info[].scale_unit in set_trace_scale/get_trace_scale (it just divede on set and multiple on get, better use it for default scale set)
Replace some hardcoded values
MARKERS_MAX
SAVEAREA_MAX
TRACES_MAX
plot.c
Rewrite CELLWIDTH and CELLHEIGHT use, now possible set any CELL width and height (CELLWIDTH * CELLHEIGHT <= spi_buffer size)
Free RAM from shell stack use fore increase spi_buffer size now it have 2048 pixel (64x32)
Rewrite cell index and markmap use (now correct use cell size, and more faster), correct use CELLWIDTH and CELLHEIGHT in calculation
Fore set update area use invalidateRect (still need use some hardcoded values :( )
Rewrite cell_draw_line
Rewrite many hardcoded size definitions
Refrence point now draw as bitmap (less size, more costumable)
Fix drag marker (now correct search closest index in search_nearest_index)
Rewrite plot_into_index, now correct use size definitions, moe
ui.c
Small rewrite keyboard definitions, for use less flash size
Define KP_WIDTH, KP_HEIGHT for set key size
Better look some big font symvols
All:
use static fore some local functions (use less space on calls)
replace tabs on spaces (code style)
Use M_PI from math.h fore define pi value
Fix printf on print HEX values
6 years ago
DiSlord
e9f65b1426
Huge rework chsnprintf function (basic functional more compact and faster):
...
I can`t upload my version chprintf.c to ChibiOS\os\hal\lib\streams upload it to root :(
now support print float and Suffix if use example %.1F on 1.234e-3 print 1.234m, %F print 1.23m
now support + flag %+d on 8 print +8, %+d on -8 print -8
now support freq output if use %q example %q on 1234567890 print 1.234 567 890 GHz, %.8q print 1.234567GHz
fix rounding errors on print float example if print use %.2f on 2.199 print 2.20 (before 2.19)
Use it in code - made more compact (save about 2k bytes) and easy display values (set output more digits after . for some values)
Made some font glyph more compact, allow 3px glyph
More correct create frequencies table on big span (not use float operations), also produce more compact code
Use double value input from keyboard (not lost Hz on input)
Set sweep_points as uint Optimize set_sweep_frequency size
Fix freq commands broken after freq set as uint32 (add str to uint32 functions for freq bigger then 2 147 483 647):
cmd_freq
cmd_offset
cmd_threshold
cmd_scan
cmd_sweep
Define _isdigit macro (replace isdigit() function, its too big)
Rewrite std universal atoi() to more compact my_atoi and write new unsigned variant my_atoui
6 years ago
TT
ae38c9794d
view: pack smith marker value
6 years ago
TT
14dfe97557
fix: revert color of traces to the original
6 years ago
DiSlord
a46a20028f
Remove unused global variable (fgrid)
...
Set areasize as int16
6 years ago
ВшЫдщкв
5a4d02208f
define POINTS_COUNT in nanovna.h
...
fix 'micro' char in font
fix draw STOP distance in frequency field
fix x position calc in plot_into_index
fix frequencies delta defined as int in plot.c
fix frequencies defined as int in ui.c
6 years ago
ВшЫдщкв
df5a655cd0
Remove comment, fix last add
6 years ago
DiSlord
e7bdead77a
Merge branch 'master' into master
6 years ago
TT
066027f5b5
fix: prototype mismatch
6 years ago
ВшЫдщкв
6f666cf31b
Change Font size (more readable)
...
Rework display spi driver:
use DMA for read, write
add blitBitmap functions
Use DMA for color fill
More correct SPI bus control
Move color definitions to nanovna.h
Some code optimization for speed and size (save about 3k bytes)
Change grid Y resolution to 10
Fix convert from float to int (fix some rounding errors on plot)
Disable unused HAL serial
Change battery icon
6 years ago
TT
18a1ca4e6e
feat: add marker tracking
6 years ago
TT
e1ba0c77f0
chore: store velocity factor in float
6 years ago
TT
c4495b6d58
chore: add reserved room in properties and config
6 years ago
TT
fcb0be6def
fix: remove upper limit of signed int32 for frequency setting
6 years ago
TT
75ea464c91
chore: delta symbol
6 years ago
TT
0bfa2c073e
feat: add marker smith value format menu
6 years ago
TT
a534a89c89
feat: add marker delta mode
6 years ago
TT
1422e5fd49
feat: show each markers when multiple markers are active
6 years ago
TT
a3eb29ea04
feat: add marker operation groupdelay->edelay
6 years ago
TT
c7af840f53
feat: add feedback of lever mode
6 years ago
TT
3f209e4986
feat: add marker search
6 years ago
TT
47fec0b024
remove buffer used only in dump command
6 years ago
TT
0124e1b32d
chore: update codec control
6 years ago
TT
7adba06333
chore: reduce foot-print of numfont20x24
6 years ago
TT
dcbcfe162c
chore: shrink 5x7 font
6 years ago
TT
3fc17e18f9
fix: break sweep loop on frequency change
6 years ago
TT
f7e712798a
chore: remove warnings
6 years ago
TT
bfd45c715d
fix: fix digit loss of sweep frequency
6 years ago
TT
94659a22ba
feat: add threshold command
6 years ago
TT
516319b354
fix: plot only if sweep completed
6 years ago
TT
47f48d83e4
fix: omit drawing screen from usb thread
6 years ago
cho45
1120d5c33b
Fix timedomain transform (based on acd944d5fa1c8bfd016b27c65e92e14e81f755c8 by @erikkaashoek )
6 years ago
cho45
aa4faa5a6e
rename TDR -> TD
6 years ago
cho45
6bad9de606
change menu name to 'TRANSFORM'
6 years ago
cho45
8f0bfacf3d
setting velocity factor
6 years ago
cho45
95ab399567
save domain mode
6 years ago
cho45
889d675836
TDR feature
6 years ago
cho45
a9457dbd0a
show battery indicator (requires implementing D2 on board)
6 years ago
cho45
5e9756e4e0
append `reset dfu` command and `CONFIG` -> `ENTER DFU`
6 years ago
cho45
39b7fdf95e
append version info screen to UI
6 years ago
TT
3e841920fb
refactor: introduce trace_info
6 years ago
cho45
f9a5d2e3ef
Add REAL IMAG R X trace format
6 years ago
cho45
1c4718ae4a
implement capture command
6 years ago
TT
b823a8060d
ui: enable and all off in marker selection
6 years ago
TT
e626c581ee
feat: add sample command to evalutate dynamic range
6 years ago
TT
b815a5b2fe
menu: add feedback at correction/pause menu item
6 years ago
TT
dd724da327
view: add left arrow on menu items
6 years ago
TT
0807816e09
ui: add pad icon, electrical delay unit
6 years ago
TT
c4edf2a6eb
omit: unused buffer refiq
6 years ago
TT
b64826b76a
add numeric input support scale and electrical delay
8 years ago
TT
7228ebd5fa
add numeric input (WIP)
8 years ago
TT
5d1934d85f
support electrical delay
8 years ago
TT
5a441edc6b
update marker position on sweep frequency change
8 years ago
TT
043972e6ca
fix segv on active trace 4, apply error term inside sweep loop, show active trace on marker info
8 years ago
TT
8ce6b7b6e0
omit redraw_all to fix to be ignored first push
8 years ago
TT
c121731b04
draw delta frequency of two markers
8 years ago
TT
774a11ae74
add interpolation on cal
8 years ago
TT
b42749e57d
fix jump of touch sense, add touchtest command, draw on touch cal, fix gap of drag marker position
9 years ago
TT
095b250137
implemented correlation detection, worked, but no good result
9 years ago
TT
f97c50957c
delete unused var
9 years ago
TT
373e56f006
add clearconfig command
9 years ago
TT
295ec105e6
set scale and refpos temporally
9 years ago
TT
cb50a0e6c3
add toggle sweep operation
9 years ago
TT
4845bde486
change from active to active_props
9 years ago
TT
c083fb9298
add refpos indicator, make marker able to be sticking out
9 years ago
TT
5ebb3330ff
add menu item delay (but not work)
9 years ago
TT
3852f9cb21
move menu_color and touch_cal to config
9 years ago
TT
7943a3fe96
add dragging marker
9 years ago
TT
9037593831
add save and restore dac value in flash
9 years ago
TT
9f5259556c
split config and properties
9 years ago
TT
a76698c166
add menu item of marker all off
9 years ago
TT
74cfdb93a3
arrange code, add notice at head of each file
9 years ago
TT
0bf87f42aa
work touch menu operation
9 years ago
TT
8038df8c66
change adc driver not to use chibios hal
9 years ago
TT
8d39e43471
rename freq_start/stop
9 years ago
TT
6d0ea0e1dd
remove fstart/fstop
9 years ago
TT
aa91bc23fc
add CW, mod freq from limits
9 years ago
TT
a50517bf3f
add keypad for freq and scale, add save menu
9 years ago
TT
d84a212a3b
add channel menu, narrow and ensure selection, reverse marker moving direction
9 years ago
TT
4e55ca4f70
add atof of my own
9 years ago
TT
69c41aa57e
add wait_dsp function, add trace all off command, fix hang on ploting polar with trace 0
9 years ago
TT
25dd4bf182
add grid control, etc
9 years ago
TT
121691b5e1
add polar_grid, experimental smith_grid2
9 years ago
TT
9a63892480
add menu structure and behavior
9 years ago
TT
052460d145
add cal status indicator
9 years ago
TT
04d1ec19ab
add impedance and L/C parameter value on marker of smith chart
9 years ago
TT
f0eaa108ad
save trace and marker data
9 years ago
TT
38d6a50047
add areas to save/recall
9 years ago
TT
faaf6dd353
fix marker info drawing disorder
9 years ago
TT
5498d63751
make controlable marker with lever switch, test menu display
9 years ago
TT
23f2b7f695
optimize drawing rectangular grid
9 years ago
TT
bc6ce2963c
add some comments, order code
9 years ago
TT
6ff0acecdf
add micro and pi
9 years ago
TT
539653b52a
add ohm char font, change face of zero "0"
9 years ago
TT
3eb8125086
add marker command
9 years ago
TT
be967b006c
rearrange marker info
9 years ago
TT
00a4b70bf7
split code into plot.c
9 years ago
TT
17188a0418
shrink stack size, add marker info temporally
9 years ago
TT
0d6c718a47
change command name from data to dump, add data command to fetch array, marker position
9 years ago
TT
520ebef659
add open capacitance model (constant)
9 years ago
TT
ab87c813a1
add band pass filter on tlv320aic3204
9 years ago
TT
e4f46c69c0
add trace command
9 years ago
TT
0fe058aca7
add save/recall feature
9 years ago
TT
86fae97c9b
add SOLT/E-Resp calibration and command
9 years ago
TT
9dda579abe
add preliminaly calibration
9 years ago
TT
01057921f6
adjust memory allocation for keep caldata
9 years ago
TT
b5abce3dfc
change to cell drawing method
9 years ago
TT
82a8f19c25
add smith plot, spi dma transfer
9 years ago