LibreVNA/Software/VNA_embedded
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
..
.settings improve GUI synchronization for compound device 2025-05-04 13:01:00 +02:00
Application add per-point source PLL phase adjustment support 2026-01-31 16:57:10 +13:00
Drivers Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
Inc Version number increase + boot LED debug reverted 2022-10-01 23:27:03 +02:00
Middlewares/Third_Party/FreeRTOS/Source Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
Src WIP: rework 2.LO + add dwell time 2025-01-02 19:16:53 +01:00
Startup Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
.cproject Changelog + version bump 2025-05-31 16:05:21 +02:00
.gitignore remove installation dependent IDE settings file 2022-04-05 16:35:42 +02:00
.mxproject Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
.project Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
Makefile Changelog + version bump 2025-05-31 16:05:21 +02:00
STM32G431CBUX_FLASH.ld Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
VNA_embedded Debug into running system.launch Hardfault handler + FPGA abort/interrupt collision fix 2022-11-19 15:46:17 +01:00
VNA_embedded Debug.launch Update to STM32CubeIDE + longer settling time for point 0 2022-03-07 22:51:17 +01:00
VNA_embedded.ioc WIP: rework 2.LO + add dwell time 2025-01-02 19:16:53 +01:00