A fully digital high-frequency cavity ignition detection device

By using the accompanying signal DDS1 and counter 1 and counter 2 in the FPGA, combined with the D flip-flop and the enable signal controlled by the CPU, a fully digital high-frequency cavity spark detection is realized, which solves the problems of detection difficulties, false triggering and temperature effects. problem, improves detection speed and reliability, and is suitable for multiple modes.

CN111896797BActive Publication Date: 2024-09-06CHINA INSTITUTE OF ATOMIC ENERGY
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202010840462.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-20
Publication Date
2024-09-06
Estimated Expiration
2040-08-20

AI Technical Summary

Technical Problem

The existing technology has problems in high-frequency cavity ignition detection, such as difficulty in detection, easy false triggering during pulse mode debugging, variable set values ​​due to temperature effects, long time consumption in FPGA calculation of signal amplitude and digital delay.

Method used

Design a fully digital high-frequency cavity ignition detection device, using FPGA to digitally process the two-way cavity sampling signals, using the accompanying signal DDS1 and counter 1, counter 2, through the D flip-flop and the enable signal controlled by the CPU. Realize rapid detection and determine the occurrence of spark through spark comparator to avoid misjudgment.

Benefits of technology

It achieves fast and accurate spark detection, reduces system complexity and misjudgment rate, improves system flexibility and reliability, is suitable for continuous wave and pulse modes, and overcomes the temperature drift and nonlinear distortion problems of traditional analog circuits. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111896797B
    Figure CN111896797B
Patent Text Reader

Abstract

The present invention proposes a fully digital high-frequency cavity spark detection device, comprising two cavity sampling signals, which are input into FPGA for subsequent digital processing, one cavity sampling signal is input into FPGA for amplitude and phase control, and the entire signal path is a loop; the other cavity sampling signal is formed into a square wave signal 2 by a comparator, and is input into a counter 2 of the FPGA for counting; a DDS1 with the same frequency as the output RF signal is provided in the FPGA as a companion signal, the companion signal is formed into a square wave signal 1 by a comparator, and is input into a counter 1 of the FPGA for counting, the counter 1 and the counter 2 share an enable signal, the enable signal comes from a D flip-flop in the FPGA, and the output ends of the counter 1 and the counter 2 are connected to the spark comparator; the present invention solves the problems of easy false triggering when using an analog detector for detection, temperature drift of a traditional analog circuit, and long time consumption when using a traditional FPGA to calculate the signal amplitude.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of accelerators, and in particular relates to a full-digital high-frequency cavity ignition detection device. Background Art

[0002] In the cyclotron system, a high-frequency cavity is used to accelerate particles in periodic cyclotron motion. Between the acceleration gaps of the high-frequency cavity is a high-frequency, high-voltage electric field that is synchronized with the particle cyclotron period. Since the acceleration gap is generally narrow, the acceleration voltage value is high, and the cavity is in a high vacuum state when the accelerator is running, sparks are likely to occur between the acceleration gaps. When sparks occur, the acceleration voltage is instantly short-circuited by the arc, and the particle acceleration effect is lost. At the same time, the cavity is mismatched, and the forward power transmitted by the transmitter is reflected back to the transmitter by the mismatched cavity, which can easily cause damage to the transmitter.

[0003] Traditional ignition detection methods such as Figure 1 As shown, an analog detector is generally used to detect the envelope of the cavity sampling signal. The core function of the analog detector is a diode + capacitor, and its function is to detect the envelope. Under normal circumstances, the detection envelope of the cavity is flat. If a spark occurs, the envelope shape will break. The shape after the break is not 90 degrees vertical, but has a certain slope. Therefore, in addition to detecting the envelope, the analog detector must further detect the slope. In this way, the entire analog detection process includes three functional units: an analog detector, a differential circuit (for calculating the slope), and a slope comparison. These three parts are all analog circuits.

[0004] The first difficulty of the ignition detection method using an analog detector is that the ignition is completed instantly, and it is difficult to complete the slope calculation. In actual use, the cavity ignition signal is required to be in the microsecond level, and the microsecond level signal is very difficult to obtain. In actual detection, it is impossible to put the circuit on the cavity and wait for the cavity to ignite, and then adjust the circuit, because the ignition is completed instantly. It is very difficult to calculate what is the slope of the ignition and what is not the slope of the ignition in such a short time. The second difficulty: All analog circuits have problems. Once the temperature changes, the working characteristics of the device will change. Some changes are large, and some changes are small. The test board for ignition has finally measured and determined the slope curve of the ignition and used it as the set value, but the set value will change with the temperature. The slope changes from winter to summer, which will cause misjudgment. The third difficulty is that not all modes of accelerator debugging are continuous mode. Sometimes it is debugged in pulse mode. The pulse mode has half of the time and half of the time without time, with a 50% duty cycle. The pulse itself contains a very steep falling edge, which is very easy to be falsely triggered. The signal is triggered when it reaches a certain power and is mistakenly judged as the power during ignition.

[0005] The prior art has tried to use FPGA to implement spark detection to solve the problem of false detection of analog detectors. However, the current implementation of spark detection in FPGA is basically to digitize the analog method or to translate the analog method in a digital way: a detector, slope calculation, and comparator are also set in the FPGA. If the threshold is exceeded, it is considered a spark, and if it is not exceeded, it is not considered a spark. However, digitization in FPGA is very complicated. Using FPGA to calculate the signal amplitude is a relatively time-consuming process. It cannot be completed in 1-2 clocks. The process is relatively slow, and the subsequent circuit brings more delays. Because the digital circuit itself is flexible and the delay is higher than that of the analog circuit, the cavity spark protection requires the shortest time possible. The faster the detection, the more effective the protection measures. It is meaningless to wait until the spark is over, and it may trigger continuous sparks again, and the next spark is unknown. In short, the digital method that is not widely used by everyone is still due to the problem of digital delay itself, or because the FPGA translation process generates a lot of unnecessary delays, and spark detection is the most annoying delay, so most spark detection still uses analog methods. There is still a problem with using the traditional falling edge to determine ignition. If a cavity is replaced and the time parameters of that cavity are different, then it needs to be calibrated again. Summary of the invention

[0006] In order to solve the problems existing in the prior art, the present invention proposes a fully digital high-frequency cavity ignition detection device, aiming to solve the problems of the prior art such as difficulty in detection when using analog detectors, easy false triggering when using pulse mode debugging, easy change of set values ​​due to temperature, and long time consumption and digital delay when using FPGA to calculate signal amplitude.

[0007] In order to solve the technical problems, the present invention proposes the following technical solutions.

[0008] A fully digital high-frequency cavity spark detection device includes two cavity sampling signals, which are input into FPGA for subsequent digital processing, wherein one cavity sampling signal is input into FPGA for amplitude and phase control, and the control object is DDS, and DDS is then converted into digital-to-analog, and the analog signal after the conversion into digital-to-analog is returned to the cavity through a filter, a switch, an amplifier, and a directional coupler, and the entire signal path is a loop; the other cavity sampling signal is formed into a square wave signal 2 through a comparator, and is input into a counter 2 of FPGA for counting; the characteristic is that: a DDS 1 with the same frequency as the output RF signal is also provided in the FPGA as a companion signal, and the companion signal is formed into a square wave signal 1 after passing through the comparator , input into the counter 1 of FPGA for counting, the counter 1 and counter 2 share an enable signal, the enable signal comes from a D flip-flop in FPGA, the clock of the D flip-flop is square wave signal 2, the output end of the D flip-flop is the enable signal of counter 1 and counter 2, the input end of the D flip-flop comes from the GPIO controlled by the CPU, the CPU controls the GPIO to set a high level to enable the cavity ignition detection; the output ends of the counter 1 and counter 2 are connected to the ignition comparator, the ignition comparator outputs the difference between counter 1 and counter 2 to the CPU interrupt program and hardware processing circuit, the hardware circuit will quickly shut down the output of the main DDS, and the CPU interrupt program restores the detection circuit to prepare for the next ignition detection.

[0009] The companion signal DDS1 is a signal independent of DDS, and its frequency is designed to be the same as the main DDS. When ignition is started, only the feedback signal is short-circuited, but the main DDS and the companion signal DDS1 still exist; the companion signal DDS1 is equivalent to a supervisory function, following DDS at all times, and this companion signal will never disappear.

[0010] The enable signal is controlled by the CPU. When the system works in pulse mode, the CPU controls the enable signal to be enabled when there is a pulse and disabled when there is no pulse. When there is no pulse signal time at a 50% duty cycle, the CPU will not allow the enable signal to work, so there will be no false triggering problem.

[0011] The clock square wave signal 2 of the D flip-flop comes from the feedback signal of the cavity. The square wave signal 2 is generated only when there is a pulse signal in the cavity, and the square wave signal 2 is not generated when there is no pulse signal in the cavity. This avoids the situation where the D flip-flop enables counter 1 and counter 2 when there is no pulse signal in the cavity and no ignition occurs, causing counters 1 and 2 to generate counts, thereby causing misjudgment.

[0012] The ignition comparator ignition detection method is: subtract counter 2 from the value of counter 1, record it as result 1, and judge whether the value of result 1 is greater than 1. If it is greater than 1, the ignition indication signal is set high to determine that ignition has occurred in the cavity; if it is less than 1, the ignition indication signal is set to 0 to determine that no ignition has occurred in the cavity.

[0013] By adjusting the phase of DDS1, the phase difference between the accompanying signal and the cavity feedback signal can be adjusted, thereby adjusting the response time of the ignition detection circuit; when the accompanying signal and the cavity feedback signal are in phase, the response time of the detection circuit is the shortest, and the ignition can be detected after it occurs; when the phase difference between the accompanying signal and the cavity feedback signal is 359 degrees, the response time of the detection circuit is the longest, which is the period T of the RF signal.

[0014] Advantages and effects of the present invention

[0015] 1 The present invention overcomes the long-standing prejudice in this field, that is, the prejudice of using slope calculation to judge ignition. A new type of ignition detection method is proposed. Especially for the all-digital low-level system, the design principle of the present invention can be used to integrate the ignition detection into the all-digital low-level system, without the need to use a separate analog detection circuit. The present invention uses a very simple circuit to deal with the detection of a very complex physical process: by setting the accompanying signal DDS1, counter 1, counter 2, enable signal, CPU control enable signal, and ignition comparator in the FPGA, and organically combining them together, supporting and relying on each other, to achieve very fast detection. The significance is: the simpler the circuit, the faster the response, the faster the response and the lower the delay, and ultimately the purpose of the invention is achieved.

[0016] 2. The present invention adopts a fully digital circuit to realize cavity spark detection, which is not only applicable to continuous wave mode, but also to pulse mode, thereby reducing system complexity and improving system reliability.

[0017] 3. The present invention solves the problems of temperature drift and nonlinear distortion of traditional analog circuits. The technical solution adopted by the present invention detects the spark of the cavity in the digital domain, which greatly improves the flexibility and application scope of the system.

[0018] 4. Compared with the traditional system, the present invention greatly saves hardware resources, improves the integration level, and improves the reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is the principle diagram of the envelope detector of the prior art;

[0020] Figure 2 This is a block diagram of the detection device of the present invention;

[0021] Figure 3 It is a timing diagram when ignition occurs in the cavity of the present invention. DETAILED DESCRIPTION

[0022] Design principle of the present invention:

[0023] 1. Design principle of accompanying signal DDS1. The core of the present invention lies in the accompanying signal DDS1. The accompanying signal DDS1 is a signal independent of DDS, but its frequency is designed to be the same as that of the main DDS. The ignition only short-circuits the feedback signal, and the main DDS and the accompanying signal DDS1 still exist. The purpose of the ignition protection is to cut off the output of the main DDS when the cavity ignites, so as to avoid continuing to provide power to the cavity when the cavity is short-circuited. It is equivalent to a supervisory role, following DDS at all times, and this accompanying signal will never disappear. When the cavity ignites, counter 2 stops counting, and the ignition comparator makes an ignition judgment based on the count difference between counter 1 and counter 2. The present invention is different from the traditional analog method and the traditional FPGA envelope falling edge slope method. We do not need to calculate the falling edge, but directly stare at the signal. If there is a signal, there is it, and if there is no signal, there is no signal. Moreover, since DDS1 accompanies the real-time tracking of the signal, the comparison of the difference between the two counters is real-time comparison. Furthermore, the circuit does not rely on the characteristic physical time of the cavity ignition at the subtle level, bypassing the entire physical process. When the signal is gone, the ignition occurs, thus avoiding the contradiction that the characteristic physical time of the ignition is very short, while the calculated ignition slope time exceeds the characteristic physical time of the ignition.

[0024] 2. The principle that this detection device is not prone to misjudgment. Why is it that analog circuits are prone to misjudgment when working in a pulse mode, but the present invention will not misjudge when the cavity ignition signal is gone? Reason 1: The present invention has an enable signal in the FPGA, and the enable signal is controlled by the CPU. The CPU works when it allows it to work, and stops when it does not allow it. The pulse signal is the signal applied to the cavity. Ignition will only occur when there is a pulse signal, and will not occur when there is no pulse signal. Therefore, when there is no pulse or the pulse is not working, the CPU will not allow the enable signal to work. The pulse control signal is connected to the enable signal when the pulse is working. Only when the pulse has a signal can it be determined whether there is ignition. When the signal time does not appear at 50% duty cycle, the CPU will not allow the enable signal to work, so there will be no problem of false triggering; Reason 2: The clock square wave signal 2 of the D flip-flop comes from the feedback signal of the cavity. The square wave signal 2 will only be generated when there is a pulse signal in the cavity, and the square wave signal 2 will not be generated when there is no pulse signal in the cavity. In this way, when there is no pulse signal in the cavity and no ignition occurs, the counter 2 generates a count due to the clock signal of the square wave signal 2, thereby avoiding misjudgment. In short, the clock signal of the D flip-flop and the input signal from the CPU to the D flip-flop ensure that counter 2 will only count when there is a pulse signal, and will not count when there is no pulse signal, thus avoiding the problem of misjudging ignition due to counter 2 counting when no ignition occurs.

[0025] 3. The faster the counter frequency, the faster the response. The longest delay of the circuit is a signal cycle, so the faster the frequency and the smaller the T, the earlier the spark can be detected.

[0026] Based on the above invention principle, the present invention designs a fully digital high-frequency cavity ignition detection device.

[0027] The detection device is Figure 2As shown, a fully digital high-frequency cavity spark detection device includes two cavity sampling signals, which are input into FPGA for subsequent digital processing, wherein one cavity sampling signal is input into FPGA for amplitude and phase control, and the control object is DDS, and DDS is then converted into digital-to-analog, and the analog signal after the digital-to-analog conversion is returned to the cavity through a filter, a switch, an amplifier, and a directional coupler, and the entire signal path is a loop; the other cavity sampling signal is formed into a square wave signal 2 through a comparator, and is input into the counter 2 of the FPGA for counting; the characteristic is that: a DDS1 with the same frequency as the output RF signal is also provided in the FPGA as a companion signal, and the companion signal is formed into a square wave signal after passing through the comparator 1. Input to counter 1 of FPGA for counting. Counter 1 and counter 2 share an enable signal, which comes from a D flip-flop in FPGA. The clock of the D flip-flop is a square wave signal 2. The output of the D flip-flop is the enable signal of counter 1 and counter 2. The input of the D flip-flop comes from GPIO controlled by CPU. CPU controls GPIO to set high level to enable cavity ignition detection. The output of counter 1 and counter 2 is connected to the ignition comparator. The ignition comparator outputs the difference between counter 1 and counter 2 to the CPU interrupt program and hardware processing circuit. The hardware circuit will quickly shut down the output of the main DDS, and the CPU interrupt program will restore the detection circuit to prepare for the next ignition detection.

[0028] The companion signal DDS1 is a signal independent of DDS, and its frequency is designed to be the same as the main DDS. When ignition is started, only the feedback signal is short-circuited, but the main DDS and the companion signal DDS1 still exist; the companion signal DDS1 is equivalent to a supervisory function, following DDS at all times, and this companion signal will never disappear.

[0029] The enable signal is controlled by the CPU. When the system works in pulse mode, the CPU controls the enable signal to be enabled when there is a pulse and disabled when there is no pulse. When there is no pulse signal time at a 50% duty cycle, the CPU will not allow the enable signal to work, so there will be no false triggering problem.

[0030] The clock square wave signal 2 of the D flip-flop comes from the feedback signal of the cavity. The square wave signal 2 is generated only when there is a pulse signal in the cavity, and the square wave signal 2 is not generated when there is no pulse signal in the cavity. This avoids the situation where the D flip-flop enables counter 1 and counter 2 when there is no pulse signal in the cavity and no ignition occurs, causing counters 1 and 2 to generate counts, thereby causing misjudgment.

[0031] The ignition comparator ignition detection method is: subtract counter 2 from the value of counter 1, record it as result 1, and judge whether the value of result 1 is greater than 1. If it is greater than 1, the ignition indication signal is set high to determine that ignition has occurred in the cavity; if it is less than 1, the ignition indication signal is set to 0 to determine that no ignition has occurred in the cavity.

[0032] By adjusting the phase of DDS1, the phase difference between the accompanying signal and the cavity feedback signal can be adjusted, thereby adjusting the response time of the ignition detection circuit; when the accompanying signal and the cavity feedback signal are in phase, the response time of the detection circuit is the shortest, and the ignition can be detected after it occurs; when the phase difference between the accompanying signal and the cavity feedback signal is 359 degrees, the response time of the detection circuit is the longest, which is the period T of the RF signal.

[0033] Embodiment 1

[0034] In a fully digital low-level control system of an accelerator, the RF signal frequency is about 73MHz. DDS1 is designed to output a 73MHz signal as a companion signal, which is input into the comparator and then enters the counter 1 in the FPGA. The cavity sampling signal passes through the attenuator to form a signal with appropriate amplitude, which is input into the comparator and then enters the counter 2 in the FPGA. After the CPU enables spark detection, counters 1 and 2 start working. When the cavity sparks, the amplitude of the cavity sampling signal decreases rapidly to 0, the pulse signal disappears after passing through the comparator, and counter 2 stops counting. At this time, counter 1 is still counting, and the count value is greater than the value of counter 2 plus 1. The judgment circuit detects that the difference between counter 1 and counter 2 is greater than 1, sets the spark detection signal high, and notifies the subsequent circuit module to perform protection operations. When the phase of DDS1 is adjusted to make the phase of the companion signal consistent with the cavity feedback signal, the cavity spark can be detected at the moment of sparking. When the phase difference between the companion signal and the cavity feedback signal is 359 degrees, the system response time is the longest, which is 1 / 73MHz, about 13.69ns.

[0035] like Figure 3 As shown, this is a timing diagram when the cavity ignites. The first row is at a high level when ignited. The second row corresponding to the high level of the first row is the cavity feedback signal, which is at a low level at this time. The third row corresponding to the high level of the first row is the cavity accompanying signal, which always exists and does not disappear due to ignition, so it is a high level. The sixth and seventh row counter signals correspond to the high level of the first row when ignition occurs. One count is 13 and the other count is 15, which are greater than 1, so it is determined to be an ignition.

[0036] It should be emphasized that the embodiments described in the present invention are illustrative rather than restrictive, and thus the present invention includes but is not limited to the embodiments described in the specific implementation manner.

Claims

1. A fully digital high-frequency cavity spark detection device, comprising two cavity sampling signals, which are input into FPGA for subsequent digital processing, wherein one cavity sampling signal is input into FPGA for amplitude and phase control, and the control object is DDS, and DDS is then converted into digital analog, and the analog signal after the conversion into digital analog is returned to the cavity through a filter, a switch, an amplifier, and a directional coupler, and the entire signal path is a loop; the other cavity sampling signal is formed into a square wave signal 2 through a first comparator, and is input into a counter 2 of FPGA for counting; it is characterized in that: A DDS1 with the same frequency as the output RF signal is also provided in the FPGA as a companion signal. The companion signal forms a square wave signal 1 after passing through the second comparator and is input into the counter 1 of the FPGA for counting. The counter 1 and the counter 2 share an enable signal, which comes from a D flip-flop in the FPGA. The clock of the D flip-flop is the square wave signal 2. The output end of the D flip-flop is the enable signal of the counter 1 and the counter 2. The input end of the D flip-flop comes from the GPIO controlled by the CPU. The CPU controls the GPIO to set a high level to enable the cavity ignition detection. The output ends of the counter 1 and the counter 2 are connected to the ignition comparator. The ignition comparator outputs the difference between the counter 1 and the counter 2 to the CPU interrupt program and the hardware processing circuit. The hardware circuit will quickly shut down the output of the main DDS, and the CPU interrupt program will restore the detection circuit to prepare for the next ignition detection. The accompanying signal DDS1 is a signal independent of DDS. Its frequency is designed to be the same as the main DDS. When ignition is started, it only short-circuits the feedback signal, but the main DDS and the accompanying signal DDS1 still exist. The accompanying signal DDS1 is equivalent to a supervisory function, following DDS at all times, and this accompanying signal will never disappear. The enable signal is controlled by the CPU. When the system works in pulse mode, the CPU controls the enable signal to be enabled when there is a pulse, and disabled when there is no pulse. When there is no pulse signal time at a 50% duty cycle, the CPU will not allow the enable signal to work, so there will be no false triggering problem.

2. A fully digital high-frequency cavity spark detection device according to claim 1, characterized in that: The clock square wave signal 2 of the D flip-flop comes from the feedback signal of the cavity. The square wave signal 2 is generated only when there is a pulse signal in the cavity, and the square wave signal 2 is not generated when there is no pulse signal in the cavity. This avoids the situation where the D flip-flop enables counter 1 and counter 2 when there is no pulse signal in the cavity and no ignition occurs, causing counters 1 and 2 to generate counts, thereby causing misjudgment.

3. A fully digital high-frequency cavity spark detection device according to claim 1, characterized in that: The ignition comparator ignition detection method is: subtract the value of counter 2 from the value of counter 1, record it as result 1, judge whether the value of result 1 is greater than 1, if it is greater than 1, set the ignition indication signal high, and judge that the cavity has ignited; If it is less than 1, the ignition indication signal is set to 0 to determine that no ignition occurs in the cavity.

4. A fully digital high-frequency cavity spark detection device according to claim 1, characterized in that: By adjusting the phase of DDS1, the phase difference between the accompanying signal and the cavity feedback signal can be adjusted, thereby adjusting the response time of the ignition detection circuit; when the accompanying signal and the cavity feedback signal are in phase, the response time of the detection circuit is the shortest, and the ignition can be detected after it occurs; when the phase difference between the accompanying signal and the cavity feedback signal is 359 degrees, the response time of the detection circuit is the longest, which is the period T of the RF signal.

Citation Information

Patent Citations

  • Method and device for protecting cavity ignition of medical circular accelerator

    CN103025044A

  • Automatic high-voltage forging method of high-voltage accelerator and automatic high-voltage forging system of high-voltage accelerator

    CN103179773A

  • Voltage fault monitoring system and method for electron irradiation accelerator

    CN104502742A

  • Method and device for sparking detection of microwave vacuum window of accelerator

    CN106455290A

  • Method and device for identifying arc faults in an ungrounded power supply system

    CN107367677A