1 October 2026 in Journal of Instrumentation
During long-term operation of the RF system in the Hefei Light Source II (HLS II) storage ring, a prescribed phase relationship must be maintained between the reference signal (Ref) and the cavity-voltage sampling signal (Pt). After the RF system is powered on or recovers from a fault, this phase relationship must be rapidly and reliably restored to support low-level RF (LLRF) closed-loop control. Conventional phase-detection circuits based on dedicated detector chips may provide insufficient phase resolution for this application and require additional circuitry to determine the phase-lead or phase-lag relationship. To address these limitations, an FPGA-based tapped-delay-line time-to-digital converter (TDC) is developed for direct phase detection of the 204.030 MHz Ref and Pt signals. The proposed design combines three staggered CARRY4 chains with multiple-measurement averaging and directly determines the relative phase direction. Code-density characterization gives an average TDC bin width of 3.82 ps, corresponding to a theoretical phase resolution of approximately 0.28 ∘ . In bench tests with known input phase settings, the average phase-measurement root-mean-square error (RMSE) is 0.2065 ∘ . The system was further evaluated using actual accelerator RF signals over a continuous 75 h interval. The directly measured RF phase difference exhibits an RMS deviation of 0.6319 ∘ about its mean value. This value characterizes the aggregate long-term phase fluctuation under actual operating conditions and remains below the 1 ∘ RMS phase-stability requirement of the HLS II LLRF system. The results demonstrate that the proposed detector satisfies the requirements for online Ref-Pt phase-difference measurement and phase-direction discrimination.