LibreVNA/Software/VNA_embedded/Application/Drivers
Roger Henderson 6c06293179 add per-point source PLL phase adjustment support
Adds ability to set phase adjustment on Source PLL for each sweep point.
When sourcePhase != 0, the FPGA executes a CDM toggle sequence after
normal PLL register load to apply the specified phase offset.

Changes:
- MAX2871.vhd: add PHASE_ADJUST input and CDM toggle state machine
- Sweep.vhd: extract phase from config, generate phase adjust signal
- SPIConfig.vhd: handle 112-bit config data (was 96-bit)
- top.vhd: wire phase adjustment signals, widen data buses
- SweepConfigMem.xco: update BRAM width to 112 bits
- FPGA.cpp/hpp: add sourcePhase parameter to WriteSweepConfig

Phase formula: phase_degrees = (sourcePhase / M) * 360
For 180° shift: sourcePhase = M/2

Note: SweepConfigMem IP core must be regenerated before FPGA build.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:57:10 +13:00
..
FPGA add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
USB Startup and communication bugfixes 2025-01-06 17:34:46 +01:00
algorithm.cpp improve PLL fractional divider algorithm 2025-08-17 19:37:10 +02:00
algorithm.hpp improve PLL fractional divider algorithm 2025-08-17 19:37:10 +02:00
delay.cpp Fix further sweep timeout issues 2022-06-26 18:47:34 +02:00
delay.hpp Fix integer size bug for Delay::us 2022-06-26 12:46:11 +02:00
Exti.cpp Bugfixes and speed improvements 2020-09-26 23:34:31 +02:00
Exti.hpp embedded code copied from jankae/VNA and adjusted for STM32G4 2020-08-24 19:06:50 +02:00
Flash.cpp fw/flash: add IS25LP support 2021-07-21 15:04:56 -03:00
Flash.hpp 1us delay after CS high on SPI flash 2025-05-31 14:59:14 +02:00
Log.cpp Fix further sweep timeout issues 2022-06-26 18:47:34 +02:00
Log.h Bugfixes and improvements for new hardware 2020-09-14 23:13:32 +02:00
max2871.cpp improve PLL fractional divider algorithm 2025-08-17 19:37:10 +02:00
max2871.hpp WIP: detect integer spurs 2025-02-26 08:55:31 +01:00
Si5351C.cpp Bugfix: remove not used optional parameter 2025-08-17 20:18:38 +02:00
Si5351C.hpp Bugfix: remove not used optional parameter 2025-08-17 20:18:38 +02:00
stm.cpp Working dwell time feature 2025-01-03 14:36:10 +01:00
stm.hpp Fix STM temperature calculation 2022-06-25 19:36:06 +02:00