A sine-to-multi-frequency square wave circuit
By constructing a circuit architecture of power conversion-voltage comparison-signal driving-frequency division output, the problems of high power consumption, poor quality, threshold drift and weak anti-interference ability of sine wave to square wave circuits in the prior art are solved, realizing low power consumption and high quality multi-frequency square wave output, which is suitable for mixed digital and analog signal systems and communication systems.
Patent Information
- Application Number
- CN202522719834.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-23
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2035-12-23
AI Technical Summary
Existing sine wave to square wave circuits suffer from problems such as high static power consumption, poor square wave quality, threshold drift, lack of frequency division function, and weak anti-interference capability, making it difficult to meet the high-precision, low-power, and multi-functional application requirements of mixed-signal systems, communication systems, and other scenarios.
It adopts a combined circuit architecture of power conversion unit, voltage comparison unit, drive unit, frequency division unit and output interface, including operational amplifier, dual D-type flip-flop and monostable flip-flop, to realize the direct conversion of sine wave to frequency divider, frequency divider and reverse frequency divider square wave.
It achieves low-power, high-quality multi-frequency square wave output, adapting to various application scenarios such as clock synchronization and frequency synthesis, improving the versatility and practicality of the circuit, and reducing system complexity and cost.
Smart Images

Figure CN225003485U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of electronic circuit technology, and in particular relates to a sine wave to multi-frequency square wave circuit. Background Technology
[0002] This invention relates to the field of electronic circuit technology, specifically to a sine wave to multi-frequency square wave conversion circuit, which is particularly suitable for applications requiring precise waveform conversion and frequency division, such as mixed-signal systems, communication system modulation, clock synchronization, and frequency synthesis.
[0003] In fields such as electronic information and communication engineering, the widespread application of mixed-signal systems has made the signal conversion between sine waves and square waves a critical technical aspect. For example, during the modulation process of communication systems, the transmit power spectrum must meet strict industry standards to avoid interference with its own transmission and reception and that of other communication systems. The presence of higher harmonics can cause the modulation spectrum to deviate from preset requirements. Therefore, extracting the fundamental frequency component from a square wave or quasi-square wave and achieving accurate sine wave to square wave conversion is one of the core requirements for ensuring the stable operation of such systems. Furthermore, in scenarios such as clock synchronization and frequency synthesis, it is often necessary to generate square waves of different frequencies based on the original sine wave signal to adapt to the working rhythm of different modules, further enhancing the functional requirements of waveform conversion circuits.
[0004] In existing technologies, sine wave to square wave waveform conversion circuits generally use CMOS inverters (such as the 74HC04 series) or Schmitt triggers (such as the 74HC14) as core components. The core design idea is to use a resistor divider network to set the DC bias point of the inverter, making it operate in the amplification region, thereby achieving the conversion from sine wave to square wave. The specific technical solution is as follows: Resistor voltage divider network: Two resistors are connected in series between the power supply voltage (VCC) and ground (GND). The node formed by the voltage divider provides a DC bias voltage to the inverter. This bias voltage is usually designed to be 1 / 2 VCC to ensure that the inverter has a symmetrical switching threshold. AC-coupled input: A sinusoidal signal is input to the input terminal of the inverter through a DC blocking capacitor. At the same time, the DC potential at the input terminal of the inverter is clamped to a preset bias voltage by means of a bias resistor or by directly using the voltage divider network mentioned above, so that the inverter operates in the transition region (i.e., amplification state). Signal conversion principle: When the input sinusoidal voltage crosses the threshold voltage of the inverter, the output level of the inverter flips, thereby converting the continuously changing sinusoidal signal into a discrete square wave signal.
[0005] However, the aforementioned existing technical solutions have significant drawbacks in practical applications, severely affecting the circuit's performance and applicability: First, significant static power consumption. Due to the forced bias effect of the resistor divider network, the PMOS and NMOS transistors inside the inverter are simultaneously in a weak conduction state (saturation region), forming a DC path from the power supply to ground, resulting in a substantial increase in static current and unnecessary power loss, making it particularly unsuitable for power-sensitive portable devices or long-term operating systems; Second, poor output square wave quality. CMOS inverters have limited gain in the transition region, limited by transistor on-resistance and load capacitance, resulting in relatively smooth rising and falling edges of the output square wave, easily causing timing jitter, making it difficult to meet the requirements of high-precision signal processing scenarios; Third, threshold drift problem exists. The actual threshold voltage of a CMOS inverter is easily affected by chip process deviations and changes in ambient temperature, causing the duty cycle of the output square wave to deviate from the ideal value of 50%, resulting in asymmetry and affecting the working stability of subsequent circuits; Fourth, no frequency division function. This solution can only convert sine waves to square waves of the same frequency, and cannot directly generate low-frequency square waves. When applied to scenarios requiring multi-frequency square waves, such as clock synchronization and frequency synthesis, additional frequency divider circuits are required, increasing system complexity and cost. Fifth, its anti-interference capability is weak. CMOS inverters operating in the amplification region are quite sensitive to power supply noise and input signal noise. Even slight signal disturbances can cause the output level to flip incorrectly, reducing the reliability of the circuit in complex electromagnetic environments.
[0006] In summary, existing sine wave to square wave circuits based on CMOS inverter bias have significant shortcomings in terms of power consumption, square wave quality, threshold stability, functional scalability, and anti-interference capability. They are difficult to meet the high-precision, low-power, and multi-functional application requirements of mixed-signal systems, communication systems, and other scenarios. Therefore, developing a sine wave to multi-frequency square wave circuit with better performance has important practical significance and application value. Utility Model Content
[0007] The purpose of this invention is to address the technical problems of existing CMOS inverter biasing schemes, such as high static power consumption, poor square wave quality, threshold drift, lack of frequency division function, and weak anti-interference ability, by providing a sine wave to multi-frequency square wave circuit.
[0008] In view of this, the present invention provides a sine wave to multi-frequency square wave conversion circuit, comprising: Input interface JP1 is used to input sine wave signals; The power conversion unit includes a first power chip and a second power chip. The first power chip is connected to an external 24V DC power supply and outputs a 15V voltage. The second power chip is connected to the 15V voltage and outputs a 5V voltage. The voltage comparison unit employs an operational amplifier, which is powered by the 15V voltage. Its input terminal is connected to the input interface JP1 and is used to shape the sine wave signal into a square wave signal of the same frequency. The driving unit includes a transistor and a voltage divider resistor group. One end of the voltage divider resistor group is connected to the output terminal of the operational amplifier, and the other end is connected to the base of the transistor. The transistor is powered by the 5V voltage and outputs a clock trigger signal CLK1. The frequency divider unit includes a dual D-type flip-flop and a monostable multivibrator. The dual D-type flip-flop is connected to the 5V power supply, and its first clock input terminal CLK1 is connected to the collector of the transistor. The input terminal of the monostable multivibrator is connected to the first output terminal Q1 of the dual D-type flip-flop, and its output terminal is connected to the second data input terminal D2 of the dual D-type flip-flop. The second clock input terminal CLK2 of the dual D-type flip-flop is connected to its own first inverting output terminal / Q1, which is used for frequency division by two and frequency division by four. The output interface JP3 is connected to the second output terminal Q2 and the second inverting output terminal / Q2 of the dual D-type flip-flop, and is used to output a divided-two square wave signal, a divided-four square wave signal, and a square wave signal that is the opposite of the divided-four square wave signal.
[0009] Furthermore, the voltage divider resistor group includes resistor R12 and resistor R7. One end of resistor R12 is connected to the output terminal of the operational amplifier, and the other end is connected to one end of resistor R7 and the base of the transistor. The other end of resistor R7 is grounded.
[0010] Furthermore, an external resistor and capacitor are connected between the 1Rext / 1Cext pins of the monostable multivibrator and the 5V voltage.
[0011] Furthermore, it also includes a voltage regulator unit, which includes Zener diodes V1 and V2. Zener diode V1 is connected in parallel with the output terminal of the first power chip, and Zener diode V2 is connected in parallel with the output terminal of the second power chip.
[0012] Furthermore, the resistance values of resistors R12 and R7 in the voltage divider resistor group are 2KΩ; the external resistors of the voltage comparison unit are R1 and R2, which are 15KΩ; R3 and R4, which are 47KΩ; R5, which is 620KΩ; R8 and R9, which are 100KΩ; R10 and R11, which are 2MΩ; R13, R14 and R15, which are 20KΩ; and R21, which is 100Ω; the external capacitors are C1, C2, C5, C6 and C19, which are 0.1μF; C4, which is 100pF; C9, which is 0.01μF; C22, which is 10μF; C7, which is 0.47μF; and C8, which is 33μF.
[0013] Furthermore, the reset terminal RES1 and set terminal SET1 of the dual D-type flip-flop are both grounded; the negative trigger input terminal 1A and direct clear terminal 1CLR of the monostable multivibrator are both grounded, and the positive trigger input terminal 1B is connected to the first output terminal Q1 of the dual D-type flip-flop.
[0014] The beneficial effects of this utility model are: This application constructs an integrated circuit architecture of "power conversion - voltage comparison - signal driving - frequency division output" to achieve direct conversion from sine wave to 2-division square wave, 4-division square wave and reverse 4-division square wave. It overcomes the technical defects of existing CMOS inverter biasing schemes, such as lack of frequency division function, high static power consumption, poor square wave quality, threshold drift and weak anti-interference ability. The multi-frequency square wave output adapts to the application needs of multiple scenarios such as clock synchronization and frequency synthesis, and improves the versatility and practicality of the circuit. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the overall structure of a sine wave to multi-frequency square wave circuit proposed in this utility model.
[0016] In the picture: JP1: Input terminal for sine wave signal; JP2: Input terminal for external 24V DC power supply; JP3: Output terminal for the converted square wave; R1, R2: 15KΩ resistors; C4: A 100pF capacitor; V1, V2 (BZT52C10WF): Zener diodes; R8, R9: 100KΩ resistors; R3, R4: 47KΩ resistors; R5: A 620KΩ resistor; R10, R11: 2MΩ resistors; C1, C2, C5, C6, C19: 0.1uF capacitors; R6, R7: 2KΩ resistors; R12, R13, R14, R15: 20KΩ resistors; R21: A 100Ω resistor; C9: A 0.01uF capacitor; C22: A 10uF capacitor; C7: A 0.47uF capacitor; C8: A 33uF capacitor; V3(MGDS04): 24V to 15V DC power supply module; V4(78M05): 15V to 5V DC power supply module; D2(CD4013): Dual D-type flip-flop; D1 (74LS123): Monostable multivibrator; V9 (BC846A): NPN transistor; N1A(LM124): Four-channel operational amplifier; 1 / 2X: A square wave signal with half the frequency; 1 / 4X: A square wave signal with a frequency of one-quarter. QD: A square wave signal with the same frequency but opposite direction as the waveform of 1 / 4X; Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0018] In the description of this application, it should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. For ease of description, the dimensions of the various parts shown in the drawings are not drawn to actual scale. Techniques, methods, and devices known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and devices should be considered part of the specification. In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters in the following drawings denote similar items; therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.
[0019] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and are not limited in number; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0020] It should be noted that in the description of this application, the directional terms such as "front, back, up, down, left, right", "horizontal, vertical, horizontal" and "top, bottom" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description. Unless otherwise stated, these directional terms do not indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the scope of protection of this application. The directional terms "inner" and "outer" refer to the inner and outer contours relative to the outline of each component itself.
[0021] It should be noted that, in this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0022] Reference Figure 1 A sine wave to multi-frequency square wave converter circuit, comprising: Input interface JP1 is used to input sine wave signals; Input interface JP2 is the input terminal for an external 24V DC power supply. It is connected to the input terminal of the MGDS04 chip in the power conversion unit to provide the original power supply for the circuit. The power conversion unit includes a first power chip and a second power chip. The first power chip is connected to an external 24V DC power supply and outputs a 15V voltage. The second power chip is connected to the 15V voltage and outputs a 5V voltage. The voltage comparison unit employs an operational amplifier, which is powered by the 15V voltage. Its input terminal is connected to the input interface JP1 and is used to shape the sine wave signal into a square wave signal of the same frequency. The driving unit includes a transistor and a voltage divider resistor group. One end of the voltage divider resistor group is connected to the output terminal of the operational amplifier, and the other end is connected to the base of the transistor. The transistor is powered by the 5V voltage to enhance the driving capability of the square wave signal and output a clock trigger signal CLK1. The frequency divider unit includes a dual D-type flip-flop and a monostable multivibrator. The dual D-type flip-flop is powered by the 5V voltage. Its first clock input terminal CLK1 is connected to the collector of the transistor. The input terminal of the monostable multivibrator is connected to the first output terminal Q1 of the dual D-type flip-flop, and its output terminal is connected to the second data input terminal D2 of the dual D-type flip-flop. The second clock input terminal CLK2 of the dual D-type flip-flop is connected to its own first inverting output terminal / Q1, which is used to realize frequency division by two and frequency division by four. The output interface JP3 is connected to the second output terminal Q2 and the second inverting output terminal / Q2 of the dual D-type flip-flop, and is used to output a divided-two square wave signal, a divided-four square wave signal, and a square wave signal that is the opposite of the divided-four square wave signal.
[0023] This application constructs an integrated circuit architecture of "power conversion - voltage comparison - signal driving - frequency division and shaping - output" to achieve direct conversion from sine wave to 2-division square wave, 4-division square wave and reverse 4-division square wave. It overcomes the technical defects of existing CMOS inverter biasing schemes, such as lack of frequency division function, high static power consumption, poor square wave quality, threshold drift and weak anti-interference ability. The multi-frequency square wave output adapts to the application needs of multiple scenarios such as clock synchronization and frequency synthesis, and improves the versatility and practicality of the circuit.
[0024] In the example of this application, the first power chip is an MGDS04 DC power module, and the second power chip is a 78M05 DC power module.
[0025] As a preferred example of this utility model, the cascaded configuration of the MGDS04 DC power supply module and the 78M05 DC power supply module enables the step-by-step conversion of the external 24V power supply to 15V and 5V, respectively matching the operating voltage requirements of the operational amplifier (15V power supply) and the digital chip (5V power supply). The two chips have stable conversion efficiency and low output voltage ripple, providing a reliable reference power supply for subsequent signal shaping and frequency division stages. This effectively avoids waveform distortion and frequency division logic errors caused by voltage fluctuations, ensuring the overall stability and reliability of the circuit.
[0026] In the example of this application, the operational amplifier is an LM124 quad operational amplifier, and the operational amplifier does not introduce negative feedback and is configured for use as a voltage comparator; When the LM124 operational amplifier is configured as a voltage comparator, positive feedback is introduced through an external resistor. Its hysteresis characteristic is used to suppress power supply noise and input signal noise, and to avoid square wave erroneous flipping.
[0027] As a preferred example of this utility model, the LM124 quad operational amplifier is configured as a voltage comparator without negative feedback. Its open-loop high-gain characteristic enables rapid shaping from a sine wave to a square wave, resulting in a steep edge on the output square wave, thus solving the technical problems of smooth edges and timing jitter in existing CMOS inverter solutions. When there is no signal, the LM124 only generates nanoampere-level leakage current, which significantly reduces the static power consumption compared to CMOS inverters, enabling low-power operation of the circuit. At the same time, the switching threshold can be adjusted by external resistor voltage division to avoid threshold drift caused by process deviations and temperature changes, ensuring a stable square wave duty cycle (close to 50%).
[0028] In the example of this application, the transistor is a BC846ANPN type transistor, which adopts a common-emitter connection.
[0029] As a preferred example of this utility model, the BC846ANPN transistor adopts a common-emitter configuration, which can effectively amplify the square wave signal output by the LM124, improve the signal driving capability, and ensure that the subsequent frequency divider units (CD4013, 74LS123) can stably receive the trigger signal. The transistor has almost no power consumption in the off state, which, combined with the low leakage current characteristics of the LM124, further optimizes the low power consumption performance of the circuit. Its fast switching response speed can avoid waveform delay or distortion during signal driving, ensuring the integrity and transmission reliability of the square wave signal.
[0030] In the example of this application, the voltage divider resistor group includes resistor R12 and resistor R7. One end of resistor R12 is connected to the output terminal of the operational amplifier, and the other end is connected to one end of resistor R7 and the base of the transistor. The other end of resistor R7 is grounded.
[0031] As a preferred example of this utility model, the voltage divider network composed of resistors R12 and R7 can match the base drive voltage requirements of the BC846A transistor, ensuring that the high / low level output of the LM124 can reliably control the transistor's conduction and cutoff, avoiding drive failure caused by voltage mismatch. This voltage divider structure also has a current limiting protection function, which can prevent excessive base current from damaging the transistor, improving the circuit's durability and lifespan. At the same time, it ensures that the square wave level does not attenuate during the drive process, laying a stable foundation for the accurate implementation of the subsequent frequency division function.
[0032] In the example of this application, the dual D-type flip-flop is a CD4013 chip, and the monostable multivibrator is a 74LS123 chip.
[0033] As a preferred example of this utility model, the CD4013 dual D-type flip-flop integrates two independent flip-flops with a compact structure. The first flip-flop achieves frequency division by two, and the second flip-flop achieves frequency division by four, overcoming the technical deficiency of existing CMOS inverter solutions that can only convert at the same frequency. This meets the requirements for low-frequency square waves in scenarios such as clock synchronization and frequency synthesis. The 74LS123 monostable multivibrator works in conjunction with the CD4013 to shape the square wave after frequency division, improving the accuracy and repeatability of the pulse width and reducing waveform jitter. Both chips are mature and general-purpose devices with stable functions and strong compatibility, ensuring the reliability of the frequency division logic while reducing circuit design and mass production costs.
[0034] In the example of this application, an external resistor and capacitor are connected between the 1Rext / 1Cext pin of the 74LS123 chip and the 5V voltage to improve the accuracy and repeatability of the pulse width.
[0035] As a preferred example of this utility model, an external resistor and capacitor are connected between the 1Rext / 1Cext pins of the 74LS123 chip and the 5V voltage. The output pulse width can be flexibly set by adjusting the resistor and capacitor parameters to adapt to the different requirements of square wave quality in different application scenarios. Precise pulse width control can further optimize the square wave regularity, reduce the distortion of the waveform after frequency division, and ensure the stability of the duty cycle of the four-frequency divided square wave. The retriggable feature of the 74LS123 enables it to quickly respond to changes in the input signal, avoid pulse loss or erroneous output caused by signal fluctuations, and improve the circuit's adaptability to input signals and anti-interference capability.
[0036] In the example of this application, a voltage regulator unit is also included, which includes Zener diodes V1 and V2. Zener diode V1 is connected in parallel with the output terminal of the first power chip, and Zener diode V2 is connected in parallel with the output terminal of the second power chip, for stabilizing 15V and 5V output voltages.
[0037] As a preferred example of this utility model, Zener diodes V1 and V2 are connected in parallel to the 15V and 5V power supply output terminals, respectively. This effectively suppresses voltage fluctuations and power supply noise during power conversion, preventing operational amplifiers, triggers, and other core components from malfunctioning due to voltage instability. By filtering power supply noise, the circuit's anti-interference capability is indirectly improved, reducing square wave erroneous flipping caused by power supply disturbances and ensuring the accuracy of waveform conversion and frequency division. This voltage regulator unit has a simple structure and low cost, achieving voltage stability without complex control logic, significantly improving the circuit's robustness and environmental adaptability.
[0038] In the example of this application, the resistance values of resistors R12 and R7 in the voltage divider resistor group are 2KΩ; the external resistors of the voltage comparison unit are R1 and R2, which are 15KΩ; R3 and R4, which are 47KΩ; R5, which is 620KΩ; R8 and R9, which are 100KΩ; R10 and R11, which are 2MΩ; R13, R14, and R15, which are 20KΩ; and R21, which is 100Ω; the external capacitors are C1, C2, C5, C6, and C19, which are 0.1μF; C4, which is 100pF; C9, which is 0.01μF; C22, which is 10μF; C7, which is 0.47μF; and C8, which is 33μF.
[0039] As a preferred example of this utility model, the resistance and capacitance values of each external resistor and capacitor are precisely matched. The voltage divider resistor ensures accurate bias voltage, the filter capacitor effectively filters out high-frequency noise, and the pulse shaping capacitor optimizes waveform quality, enabling the various functional units of the circuit to work together to achieve optimal performance. The clearly defined resistance and capacitance parameters provide a standardized basis for mass production, avoiding inconsistencies in product performance due to parameter deviations and ensuring consistency and reliability in mass production. The resistance and capacitance parameters are precisely matched with the electrical characteristics of core components such as LM124, BC846A, and CD4013, maximizing the advantages of low power consumption, high response, and high stability of the core components and ensuring the full realization of the overall technical effect of the circuit.
[0040] In the example of this application, the reset terminal RES1 and the set terminal SET1 of the dual D-type flip-flop are both grounded; the negative trigger input terminal 1A and the direct clear terminal 1CLR of the monostable multivibrator are both grounded, and the positive trigger input terminal 1B is connected to the first output terminal Q1 of the dual D-type flip-flop.
[0041] As a preferred example of this utility model, the reset terminal RES1 and set terminal SET1 of the dual D-type flip-flop are both grounded (low level), ensuring that the first flip-flop is only controlled by the clock signal CLK1 and the data terminal D1, avoiding frequency division logic disorder caused by reset / set signal interference; the negative trigger input terminal 1A and the direct clear terminal 1CLR of the monostable multivibrator are both grounded (low level), so that it only responds to the Q1 signal of the positive trigger input terminal 1B, ensuring accurate triggering of the pulse shaping function and avoiding waveform distortion caused by false triggering; by clearly defining the level setting of the control pins, the circuit logic is simplified, no additional control signals are required, the circuit complexity is reduced, and the reliability and stability of the frequency divider and frequency divider functions are improved.
[0042] The embodiments of this application have been described above with reference to the accompanying drawings. Unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other. This application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A sine wave to multi-frequency square wave converter circuit, characterized in that, include: Input interface JP1 is used to input sine wave signals; The power conversion unit includes a first power chip and a second power chip. The first power chip is connected to an external 24V DC power supply and outputs a 15V voltage. The second power chip is connected to the 15V voltage and outputs a 5V voltage. The voltage comparison unit employs an operational amplifier, which is powered by the 15V voltage. Its input terminal is connected to the input interface JP1 and is used to shape the sine wave signal into a square wave signal of the same frequency. The driving unit includes a transistor and a voltage divider resistor group. One end of the voltage divider resistor group is connected to the output terminal of the operational amplifier, and the other end is connected to the base of the transistor. The transistor is powered by the 5V voltage and outputs a clock trigger signal CLK1. The frequency divider unit includes a dual D-type flip-flop and a monostable multivibrator. The dual D-type flip-flop is connected to the 5V power supply, and its first clock input terminal CLK1 is connected to the collector of the transistor. The input terminal of the monostable multivibrator is connected to the first output terminal Q1 of the dual D-type flip-flop, and its output terminal is connected to the second data input terminal D2 of the dual D-type flip-flop. The second clock input terminal CLK2 of the dual D-type flip-flop is connected to its own first inverting output terminal / Q1, which is used for frequency division by two and frequency division by four. The output interface JP3 is connected to the second output terminal Q2 and the second inverting output terminal / Q2 of the dual D-type flip-flop, and is used to output a divided-two square wave signal, a divided-four square wave signal, and a square wave signal that is the opposite of the divided-four square wave signal.
2. The sine wave to multi-frequency square wave circuit according to claim 1, characterized in that, The voltage divider resistor group includes resistor R12 and resistor R7. One end of resistor R12 is connected to the output terminal of the operational amplifier, and the other end is connected to one end of resistor R7 and the base of the transistor. The other end of resistor R7 is grounded.
3. The sine wave to multi-frequency square wave circuit according to claim 1, characterized in that, An external resistor and capacitor are connected between the 1Rext / 1Cext pin of the monostable multivibrator and the 5V voltage.
4. The sine wave to multi-frequency square wave circuit according to claim 1, characterized in that, It also includes a voltage regulator unit, which includes Zener diodes V1 and V2. Zener diode V1 is connected in parallel with the output terminal of the first power chip, and Zener diode V2 is connected in parallel with the output terminal of the second power chip.
5. The sine wave to multi-frequency square wave circuit according to claim 1, characterized in that, The resistance values of resistors R12 and R7 in the voltage divider resistor group are 2KΩ; the external resistors of the voltage comparison unit are R1 and R2, which are 15KΩ; R3 and R4, which are 47KΩ; R5, which is 620KΩ; R8 and R9, which are 100KΩ; R10 and R11, which are 2MΩ; R13, R14 and R15, which are 20KΩ; and R21, which is 100Ω; the external capacitors are C1, C2, C5, C6 and C19, which are 0.1μF; C4, which is 100pF; C9, which is 0.01μF; C22, which is 10μF; C7, which is 0.47μF; and C8, which is 33μF.
6. The sine wave to multi-frequency square wave circuit according to claim 1, characterized in that, The reset terminal RES1 and set terminal SET1 of the dual D-type flip-flop are both grounded; the negative trigger input terminal 1A and direct clear terminal 1CLR of the monostable multivibrator are both grounded, and the positive trigger input terminal 1B is connected to the first output terminal Q1 of the dual D-type flip-flop.
