Edge time adjustable signal generator and method for generating edge time adjustable signal
Through the design of the edge time-adjustable signal generator, the cooperation of interactive components and digital-to-analog conversion components is used to achieve adjustable control of the rising edge and falling edge time, which solves the problem that existing signal generators cannot meet the requirements of data transmission in special scenarios. Issues of reliability and trigger stability enable the effective application of signal generators in special scenarios.
Patent Information
- Application Number
- CN202410697857.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
Existing signal generators cannot meet the requirements for data transmission reliability, trigger stability and clock synchronization in special scenarios.
Design an edge time adjustable signal generator, obtain the set parameter information through the interactive component, the control component calculates the voltage amplitude data based on the rise time information, fall time information, frequency information and duty cycle, and stores it in the register. The digital-to-analog conversion component outputs a signal waveform to achieve adjustable control of rising and falling edge times.
This solution can ensure the reliability of data transmission, flip-flop stability and clock synchronization, and meet the needs of different application scenarios through adjustable rising and falling edge times.
Smart Images

Figure CN118713631A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal technology, and in particular to an edge time adjustable signal generator and a method for generating an edge time adjustable signal. Background Art
[0002] Signal generators are instruments widely used in many fields such as electronic engineering, scientific research, industrial production and medical equipment to generate various electrical signals. With the development of technology, the functions and applications of signal generators are also expanding. Modern signal generators usually have higher frequency ranges, better signal quality and more modulation options. In addition, with the development of digitalization and software-defined radio (SDR) technology, signal generators have become more flexible and intelligent, capable of generating and analyzing more complex and advanced signals. These advances have made the application of signal generators more extensive and in-depth in various fields.
[0003] Although the existing traditional signal generator can set parameters such as amplitude, period, duty cycle, etc. to obtain signal waveforms that meet different requirements. However, in some special scenarios, there are requirements such as reliability of data transmission, stability of triggers, clock synchronization, etc. The existing traditional signal generator is difficult to meet the requirements in these special scenarios. Therefore, how to design a signal generator that can meet these requirements is particularly important. Summary of the invention
[0004] The objectives of the present invention include, for example, providing an edge time adjustable signal generator and a method for generating an edge time adjustable signal, which can obtain rising edge and falling edge signals that meet the requirements to ensure the reliability of data transmission, the stability of the trigger and clock synchronization, etc.
[0005] The embodiments of the present invention can be implemented as follows:
[0006] In a first aspect, the present invention provides an edge time adjustable signal generator, comprising an interactive component, a control component and a digital-to-analog conversion component connected in sequence, wherein the control component comprises a storage space composed of a plurality of registers;
[0007] The interactive component is used to obtain parameter information of the setting, wherein the parameter information includes rise time information, fall time information, frequency information and duty cycle;
[0008] The control component is used to calculate the voltage amplitude data stored in each of the registers based on the rise time information, the fall time information, the frequency information and the duty cycle, store the calculated voltage amplitude data in the corresponding register, and sequentially transmit the voltage amplitude data in each of the registers to the digital-to-analog conversion component according to the set output interval time;
[0009] The digital-to-analog conversion component is used to output a corresponding signal waveform based on the acquired voltage amplitude data.
[0010] In an optional embodiment, the control component maintains a state machine, and the state of the state machine includes a rising state, a high level state, a falling state and a low level state;
[0011] The control component is specifically used to repeatedly execute the state machine multiple times, switching to the rising state, high level state, falling state and low level state in sequence each time the state machine is executed, and when switching to each state, the voltage amplitude data stored in each register corresponding to each state is transmitted to the digital-to-analog conversion component according to the set output interval time.
[0012] In an optional embodiment, the control component is also used to adjust the interval time between the high-level state and the low-level state in a new round of the state machine each time a new round of the state machine is executed, so that the frequency of the signal waveform obtained by the digital-to-analog conversion component based on the voltage amplitude data output by the execution of the new round of the state machine is adjusted.
[0013] In an optional implementation manner, the parameter information further includes voltage parameter information;
[0014] The control component is specifically used for:
[0015] Determine, from the plurality of registers, registers for storing voltage amplitude data of a rising edge phase, a high level phase, a falling edge phase, and a low level phase, respectively, based on the rising time information, the falling time information, the frequency information, and the duty cycle;
[0016] For the registers corresponding to each stage, the voltage amplitude data stored in each register is calculated based on the voltage parameter information.
[0017] In an optional implementation manner, the voltage parameter information includes a maximum voltage value, a minimum voltage value, and a reference voltage value;
[0018] The control component is specifically used for:
[0019] For the register corresponding to the rising edge stage, based on the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0020] For the register corresponding to the high level stage, based on the maximum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0021] For the register corresponding to the falling edge stage, based on the calculated voltage amplitude data of the high level stage, the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0022] For the register corresponding to the low level stage, the voltage amplitude data stored in the register is calculated based on the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0023] In an optional embodiment, the signal generator further comprises an integration circuit connected to the output end of the digital-to-analog conversion component;
[0024] The integration circuit is used to shape the signal waveform output by the digital-to-analog conversion component.
[0025] In an optional embodiment, the integration circuit includes a plurality of RC units, wherein an output end of a preceding RC unit among the plurality of RC units is connected to an input end of a succeeding RC unit;
[0026] Each of the RC units includes a resistor and a capacitor, one end of the resistor is connected to the output end of the digital-to-analog conversion component or the output end of the previous RC unit, and the other end is connected to the first end of the capacitor, the second end of the capacitor is grounded, and the first end of the capacitor serves as the output end of the integration circuit or the output end of the RC unit to which it belongs.
[0027] In an optional embodiment, the signal generator further comprises a drive enhancement circuit connected between the integration circuit and the external load;
[0028] The driving enhancement circuit is used to isolate the integration circuit from the external load.
[0029] In an optional embodiment, the drive enhancement circuit includes an operational amplifier.
[0030] In a second aspect, the present invention provides a method for generating an edge time adjustable signal, which is applied to the edge time adjustable signal generator according to any one of the aforementioned embodiments, and the method comprises:
[0031] Acquire set parameter information through the interactive component, wherein the parameter information includes rise time information, fall time information, frequency information and duty cycle;
[0032] The control component calculates the voltage amplitude data stored in each of the registers based on the rise time information, the fall time information, the frequency information and the duty cycle, stores the calculated voltage amplitude data in the corresponding register, and sequentially transmits the voltage amplitude data in each of the registers to the digital-to-analog conversion component according to the set output interval time;
[0033] The digital-to-analog conversion component outputs a corresponding signal waveform based on the acquired voltage amplitude data.
[0034] The beneficial effects of the embodiments of the present invention include, for example:
[0035] The present invention provides an edge time adjustable signal generator and a method for generating an edge time adjustable signal, wherein an interactive component is used to obtain set parameter information, including rise time information, fall time information, frequency information and duty cycle. A control component is used to calculate the voltage amplitude data stored in each register based on the parameter information, and store the calculated voltage amplitude data in the corresponding register. Furthermore, the voltage amplitude data in each register is sequentially transmitted to a digital-to-analog conversion component according to the set output interval time. The digital-to-analog conversion component is used to output a corresponding signal waveform based on the acquired voltage amplitude data. In this scheme, by obtaining the voltage amplitude data in each register based on the rise time information and the fall time information, the rising edge and the falling edge time can be controlled, and then the reliability of data transmission, the stability of the trigger, the clock synchronization, etc. can be guaranteed based on the rising edge and the falling edge signals that meet the requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A structural block diagram of a signal generator with adjustable edge time provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of state switching of a state machine provided in an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of a signal waveform before and after shaping provided by an embodiment of the present invention;
[0040] Figure 4 Another structural block diagram of the edge time adjustable signal generator provided by an embodiment of the present invention;
[0041] Figure 5 A circuit schematic diagram of an integration circuit provided by an embodiment of the present invention;
[0042] Figure 6 A flow chart of a method for generating a signal with adjustable edge time provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0044] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0046] In the description of the present invention, it should be noted that the features in the embodiments of the present invention can be combined with each other without conflict.
[0047] The embodiment of the present invention provides a signal generator with adjustable edge time, such as Figure 1 As shown, the signal generator includes an interactive component, a control component and a digital-to-analog conversion component which are connected in sequence.
[0048] The interactive component can be connected to the control component through a bus interface such as a serial port or Ethernet, and the interactive component allows the user to set parameter information. The interactive component can obtain corresponding parameter information based on the user's setting operation, and the obtained parameter information includes but is not limited to rise time information, fall time information, frequency information and duty cycle.
[0049] Among them, the rise time information refers to the duration of the rising edge in the generated signal waveform, for example, it can be the time it takes for the voltage amplitude to rise from 10% to 90%. Similarly, the fall time information refers to the duration of the falling edge in the generated signal waveform, such as the time it takes for the voltage amplitude to drop from 90% to 10%. Frequency information refers to the number of cycles repeated in a signal waveform per unit time, such as one second. A complete square wave cycle includes a high level phase period and a low level phase period. The higher the frequency, the shorter the cycle of the waveform. The duty cycle refers to the proportion of the high level duration to the entire cycle time in a complete cycle.
[0050] The interactive component transmits the obtained parameter information to the control component, and the control component can calculate the voltage amplitude data for generating the signal waveform based on the parameter information. Among them, the control component includes a storage space composed of multiple registers, and the voltage amplitude data generated by the control component is stored in each register respectively. The voltage amplitude data is subsequently output from the register to generate the signal waveform.
[0051] Specifically, the control component is used to calculate the voltage amplitude data stored in each register based on the rise time information, fall time information, frequency information and duty cycle in the parameter information, and store the calculated voltage amplitude data in the corresponding register. For example, each register can be used to store the voltage amplitude data within a time period, and the calculated voltage amplitude data can be divided into multiple time periods on the time axis. The voltage amplitude data within each time period is stored in the corresponding register respectively. The voltage amplitude data stored in each register is data in the form of a digital signal.
[0052] On this basis, the control component can sequentially transmit the voltage amplitude data in each register to the digital-to-analog conversion component according to the set output interval time. The set output interval time can be, for example, 1ns. For example, multiple registers are arranged according to numbers, and the stored voltage amplitude data is extracted from each register in the arrangement order at every 1ns interval and output to the digital-to-analog conversion component.
[0053] A digital-to-analog converter (DAC) is a key component for converting digital signals into analog signals, and can convert digital signals into continuous voltage or current signals for use in analog circuits. In this embodiment, the digital-to-analog converter can be used to output a corresponding signal waveform based on the voltage amplitude data obtained from the control component.
[0054] Commonly used digital-to-analog conversion components include ladder DAC, weighted resistor DAC, segmented DAC, current output DAC, and digital potentiometer DAC. When using, you can choose the appropriate type of DAC based on different needs. For example, in scenarios where high resolution is required, you can choose a segmented DAC. In another example, in scenarios where high precision is required, you can choose a ladder DAC or a segmented DAC.
[0055] In this embodiment, the signal waveform output by the digital-to-analog conversion component can be a sine wave, a square wave, a triangle wave, etc.
[0056] The edge time adjustable signal generator provided in this embodiment can obtain the voltage amplitude data in each register based on the rise time information and the fall time information, so as to control the rise time and the fall time. The adjustable rise time and fall time are very important in many application scenarios. For example, when designing high-speed data transmission lines and interfaces, the rise time and fall time of the signal have an important impact on the reliability and rate of data transmission. The adjustable rise time and fall time help engineers optimize the signal waveform, evaluate the integrity of the signal waveform, and ensure that the data is transmitted stably within the specified time.
[0057] For example, in digital circuit design, the rising edge time and falling edge time of the signal affect the stability of the trigger and clock synchronization. By adjusting the rising edge time and falling edge time of the signal generator, the designer can test the timing performance of the circuit under different conditions to ensure that the circuit can work properly under various signal conditions.
[0058] Therefore, in this embodiment, based on the adjustable rising edge time and falling edge time, the reliability of data transmission, the stability of the trigger, clock synchronization, etc. can be guaranteed based on the rising edge and falling edge that meet the requirements.
[0059] In this embodiment, the parameter information also includes voltage parameter information, such as a maximum voltage value, a minimum voltage value, a reference voltage value, etc. The control component calculates the voltage amplitude data stored in each register based on the rise time information, the fall time information, the frequency information and the duty cycle, and stores the calculated voltage amplitude data in the corresponding register, which can be implemented in the following manner:
[0060] Registers for storing voltage amplitude data of a rising edge phase, a high level phase, a falling edge phase and a low level phase are determined from a plurality of registers based on the rising time information, the falling time information, the frequency information and the duty cycle.
[0061] In this embodiment, based on the rising time information and the falling time information, the duration of the rising edge stage and the duration of the falling edge stage in the signal waveform can be determined, and combined with the frequency information and the duty cycle, the duration of the high level stage and the low level stage can be determined. After obtaining the output interval time of each register, it can be determined that each register can be used to store the voltage amplitude data of the corresponding signal waveform in which time period.
[0062] For example, if the starting address of the register is 0, and in the parameter information, the rising time information and the falling time information are 10ns respectively, it means that the rising edge stage and the falling edge stage are 10ns respectively, and the output interval time is 1ns. Then the registers from the starting address 0 to the ending address 9 are registers for storing the voltage amplitude data of the rising edge stage. In addition, combined with the frequency information and the duty cycle, assuming that the frequency is 1MHz and the duty cycle is 50%, it can be determined that the registers from address 10 to address 499 are registers for storing the voltage amplitude data of the high level stage. In this case, it can be determined that the registers from address 500 to address 509 are registers for storing the voltage amplitude data of the falling edge stage. And the registers from address 510 to address 999 are registers for storing the voltage amplitude data of the low level stage.
[0063] On the basis of the above, the control component is used to calculate the voltage amplitude data stored in each register corresponding to each stage based on the voltage parameter information.
[0064] Specifically, when the control component calculates the voltage amplitude data stored in each register based on the voltage parameter, it can be implemented in the following manner:
[0065] The control component calculates the voltage amplitude data stored in the register corresponding to the rising edge stage based on the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0066] Taking the above as an example, after determining that the registers used to store the voltage amplitude data in the rising edge stage are the registers at address 0 to address 9, for the registers in this address segment, the calculation formula for the voltage amplitude data Rise_Reg_Value stored in each register is as follows:
[0067] Rise_Reg_Value=N*(Vmax-Vmin) / Vref*2^(DAC_BIT)
[0068] Wherein, N represents the number of the register in the address segment (such as address 0 to address 9), Vmax represents the maximum voltage value, Vmin represents the minimum voltage value, Vref represents the reference voltage value, and DAC_BIT represents the number of bits of the digital-to-analog conversion component.
[0069] In addition, the control component is used to calculate the voltage amplitude data stored in the register corresponding to the high level stage based on the maximum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0070] Taking the above as an example, after determining that the registers used to store the voltage amplitude data in the high level stage are the registers at address 10 to address 499, for the registers in this address segment, the calculation formula for the voltage amplitude data High_Reg_Value stored in each register is as follows:
[0071] High_Reg_Value=Vmax / Vref*2^(DAC_BIT)
[0072] In addition, the control component is used to calculate the voltage amplitude data stored in the register corresponding to the falling edge stage based on the calculated voltage amplitude data of the high level stage, the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0073] Taking the above as an example, after determining that the registers used to store the voltage amplitude data in the falling edge stage are the registers at addresses 500 to 509, for the registers in this address segment, the calculation formula of the voltage amplitude data Fall_Reg_Value stored in each register is as follows:
[0074] Fall_Reg_Value=High_Reg_Value-N'*(Vmax-Vmin) / Vref*2^
[0075] (DAC_BIT)
[0076] Wherein, N' represents the number of the register in the address segment (eg, address 500 to address 509).
[0077] In addition, the control component is used to calculate the voltage amplitude data stored in the register corresponding to the low level stage based on the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0078] Taking the above as an example, after determining that the registers used to store the voltage amplitude data in the low level stage are the registers at address 510 to address 999, for the registers in this address segment, the calculation formula of the voltage amplitude data Low_Reg_Value stored in each register is as follows:
[0079] Low_Reg_Value=Vmin / Vref*2^(DAC_BIT)
[0080] In this embodiment, after the calculated voltage amplitude data is stored in the corresponding registers, in order to ensure the continuity of the signal, a state machine is maintained inside the control component, and the control component sends the voltage amplitude data to the digital-to-analog conversion component based on the execution of the state machine. The state machine has multiple states, including a rising state, a high level state, a falling state, and a low level state.
[0081] The control component is specifically used to repeatedly execute the state machine multiple times, switching to the rising state, high level state, falling state and low level state in sequence each time the state machine is executed, and when switching to each state, the voltage amplitude data stored in each register corresponding to each state is transmitted to the digital-to-analog conversion component according to the set output interval time.
[0082] Combination Figure 2 As shown in , when the state machine switches to the rising state, high level state, falling state and low level state in sequence, the control component extracts the stored voltage amplitude data from the registers used to store the rising edge stage, high level stage, falling edge stage and low level stage, and sends the extracted voltage amplitude data to the digital-to-analog conversion component.
[0083] In this way, by re-circulating the execution state machine, voltage amplitude data can be continuously sent to the digital-to-analog conversion component to ensure signal continuity.
[0084] Under different scenario requirements, the frequency of the signal waveform may need to be variable. The variable frequency signal can adapt to different communication protocols, data transmission rates and system clock requirements. For example, in wireless communications, variable frequencies allow different channels and modulation methods. In addition, the adjustable frequency of the signal waveform can also optimize the performance of the electronic system, such as reducing power consumption, improving the accuracy of data transmission or improving signal processing efficiency.
[0085] Therefore, based on the above considerations, in this embodiment, the control component is also used to adjust the interval time between the high level state and the low level state in a new round of the state machine each time a new round of the state machine is executed, so that the frequency of the signal waveform obtained by the digital-to-analog conversion component based on the voltage amplitude data output by the new round of the state machine can be adjusted.
[0086] That is, in each round of state machine execution, it is necessary to sequentially go through the rising state, high level state, falling state, and low level state. For example, in the previous round of state machine execution, the frequency of the obtained signal waveform is 1MHz. In the new round of state machine execution, by adjusting the output interval time of the high level state and the low level state, the frequency of the newly obtained signal waveform can be adjusted to 2MHz. Similarly, in the next round of state machine execution, the output interval time of the high level state and the low level state can be adjusted again, and the frequency of the signal waveform obtained in the next round can be adjusted to 1.5MHz.
[0087] In the above manner, the signal generator can output a signal waveform with adjustable frequency, that is, generate a swept frequency signal, thereby improving the flexibility and convenience of the signal waveform, and helping to achieve more efficient and reliable system design and operation.
[0088] In this embodiment, the digital-to-analog conversion component can output a corresponding signal waveform based on the obtained voltage amplitude data. When the digital-to-analog conversion component outputs a signal, it outputs it at every time point. Therefore, the rising slope or falling slope of the waveform output at two adjacent time points in the signal waveform is mainly subject to the characteristics of the digital-to-analog conversion component. In order to ensure that the digital-to-analog conversion component can smoothly output the signal waveform, the update plastic of the digital-to-analog conversion component should be greater than the set value, which can be 1G, for example. In this way, the interval between two adjacent time points of the digital-to-analog conversion component can be less than or equal to 1ns.
[0089] In addition, considering that the digital-to-analog conversion component outputs a waveform at every other time point, the waveform is step-shaped at each time point in the rising edge stage and the falling edge stage, such as Figure 3 As shown in , the quality of the resulting signal waveform is low.
[0090] Based on this consideration, see Figure 4 In this embodiment, the signal generator further includes an integration circuit, which is connected to the output end of the digital-to-analog conversion component. The integration circuit can be used to shape the signal waveform output by the digital-to-analog conversion component. Figure 3 As shown in , the signal waveform output by the digital-to-analog conversion component can obtain a smooth waveform after being shaped by the integration circuit, thereby ensuring the quality of the signal output.
[0091] Specifically, combined Figure 5 As shown in FIG. , in this embodiment, the integration circuit includes a plurality of RC units ( Figure 5 , three RC units are shown as an example, and the output end of the previous RC unit in the plurality of RC units is connected to the input end of the next RC unit.
[0092] Each RC unit includes a resistor (such as Figure 5 R1, R2 or R3) and capacitors (such as Figure 5 C1, C2 or C3 in the figure), one end of the resistor is connected to the output end of the digital-to-analog conversion component or the output end of the previous RC unit, and the other end is connected to the first end of the capacitor. The second end of the capacitor is grounded, and the first end of the capacitor serves as the output end of the integration circuit or the output end of the RC unit to which it belongs.
[0093] In this embodiment, the step-shaped signal waveform can be shaped by the charging and discharging characteristics of the capacitor in each RC unit in the integration circuit to obtain a smooth signal waveform, thereby improving the quality of the signal waveform.
[0094] In practical applications, the signal generator will also be connected to an external load, and the parameters of the RC unit in the integration circuit are generally small. When the signal generator is connected to the external load, load capacitance and load resistance will be introduced, which will cause changes in the RC parameters in the integration circuit, and then cause the rising and falling edges of the signal to slow down, so that the signal waveform that fully meets the requirements cannot be obtained.
[0095] Based on this consideration, in this embodiment, the signal generator further includes a drive enhancement circuit, which is connected between the integration circuit and the external load. The drive enhancement circuit can be used to isolate the integration circuit from the external load.
[0096] In this embodiment, the driving enhancement circuit includes an operational amplifier. Since the input impedance of the operational amplifier is usually very high, it hardly draws current from the signal source, and can effectively isolate the signal source and the external load to prevent the external load from affecting the signal source, that is, to achieve isolation between the integration circuit and the external load, even if the load capacitance of the connected external load is large, it will not affect the output of the integration circuit. In this way, the rising edge slope and the falling edge slope of the signal waveform can meet the requirements.
[0097] The embodiment of the present invention also provides a method for generating a signal with adjustable edge time, such as Figure 6 FIG. 1 is a flow chart of a method for generating a signal with adjustable edge time. The method can be applied to a signal generator in any one of the implementations in the above embodiments and executed by the signal generator. The signal generator is implemented by hardware and software. The method specifically includes the following steps:
[0098] S11, obtaining setting parameter information through the interactive component, wherein the parameter information includes rise time information, fall time information, frequency information and duty cycle.
[0099] S12, the control component calculates the voltage amplitude data stored in each of the registers based on the rise time information, fall time information, frequency information and duty cycle, stores the calculated voltage amplitude data in the corresponding register, and transmits the voltage amplitude data in each of the registers to the digital-to-analog conversion component in sequence according to the set output interval time.
[0100] S13, outputting a corresponding signal waveform based on the acquired voltage amplitude data through a digital-to-analog conversion component.
[0101] The method for generating a signal with adjustable edge time provided in this embodiment can calculate the voltage amplitude data stored in each register based on the rise time information, the fall time information, etc., so as to control the rising edge and the falling edge time, and then obtain the rising edge and the falling edge that meet the requirements to ensure the reliability of data transmission, the stability of the trigger, the clock synchronization, etc.
[0102] In a possible implementation, the control component maintains a state machine, the state of the state machine includes a rising state, a high level state, a falling state and a low level state, and the step of sequentially transmitting the voltage amplitude data in each register to the digital-to-analog conversion component according to the set output interval time includes:
[0103] The state machine is executed repeatedly for multiple times, and is switched to the rising state, high level state, falling state and low level state in sequence each time the state machine is executed, and when switching to each state, the voltage amplitude data stored in each register corresponding to each state is transmitted to the digital-to-analog conversion component according to the set output interval time.
[0104] In a possible implementation, the method further includes:
[0105] Each time a new round of state machine is executed, the interval time between the high level state and the low level state in the new round of state machine is adjusted so that the frequency of the signal waveform obtained by the digital-to-analog conversion component based on the voltage amplitude data output by the execution of the new round of state machine is adjusted.
[0106] In a possible implementation, the parameter information further includes voltage parameter information, and the step of calculating the voltage amplitude data stored in each of the registers based on the rise time information, the fall time information, the frequency information, and the duty cycle, and storing the calculated voltage amplitude data in the corresponding register includes:
[0107] Determine, from the plurality of registers, registers for storing voltage amplitude data of a rising edge phase, a high level phase, a falling edge phase, and a low level phase, respectively, based on the rising time information, the falling time information, the frequency information, and the duty cycle;
[0108] For the registers corresponding to each stage, the voltage amplitude data stored in each register is calculated based on the voltage parameter information.
[0109] In a possible implementation, the voltage parameter information includes a maximum voltage value, a minimum voltage value, and a reference voltage value, and the step of calculating, for registers corresponding to each stage, voltage amplitude data stored in each register based on the voltage parameter information includes:
[0110] For the register corresponding to the rising edge stage, based on the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0111] For the register corresponding to the high level stage, based on the maximum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0112] For the register corresponding to the falling edge stage, based on the calculated voltage amplitude data of the high level stage, the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated;
[0113] For the register corresponding to the low level stage, the voltage amplitude data stored in the register is calculated based on the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
[0114] In a possible implementation, the signal generator further includes an integration circuit connected to an output end of the digital-to-analog conversion component, and the method further includes:
[0115] The signal waveform output by the digital-to-analog conversion component is shaped by the integration circuit.
[0116] In a possible implementation, the integration circuit includes a plurality of RC units, wherein an output end of a preceding RC unit among the plurality of RC units is connected to an input end of a succeeding RC unit;
[0117] Each of the RC units includes a resistor and a capacitor, one end of the resistor is connected to the output end of the digital-to-analog conversion component or the output end of the previous RC unit, and the other end is connected to the first end of the capacitor, the second end of the capacitor is grounded, and the first end of the capacitor serves as the output end of the integration circuit or the output end of the RC unit to which it belongs.
[0118] In a possible implementation, the signal generator further includes a drive enhancement circuit connected between the integration circuit and the external load, and the method further includes:
[0119] The integration circuit and the external load are isolated by the drive enhancement circuit.
[0120] In a possible implementation, the drive enhancement circuit includes an operational amplifier.
[0121] In summary, the edge time adjustable signal generator and the method for generating an edge time adjustable signal provided by the embodiment of the present invention include an interactive component, a control component and a digital-to-analog conversion component connected in sequence, and the control component includes a storage space composed of multiple registers. The interactive component is used to obtain the set parameter information, including rise time information, fall time information, frequency information and duty cycle. The control component is used to calculate the voltage amplitude data stored in each register based on the rise time information, fall time information, frequency information and duty cycle, and store the calculated voltage amplitude data in the corresponding register. In addition, the voltage amplitude data in each register is sequentially transmitted to the digital-to-analog conversion component according to the set output interval time. The digital-to-analog conversion component is used to output the corresponding signal waveform based on the acquired voltage amplitude data.
[0122] In this solution, by obtaining the voltage amplitude data in each register based on the rise time information and the fall time information, the rising edge and the falling edge time can be controlled, and then the reliability of data transmission, the stability of the trigger, the clock synchronization, etc. can be guaranteed based on the rising edge and the falling edge that meet the requirements.
[0123] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A signal generator with adjustable edge time, characterized in that: It includes an interactive component, a control component and a digital-to-analog conversion component connected in sequence, wherein the control component includes a storage space composed of a plurality of registers; The interactive component is used to obtain parameter information of the setting, wherein the parameter information includes rise time information, fall time information, frequency information and duty cycle; The control component is used to calculate the voltage amplitude data stored in each of the registers based on the rise time information, the fall time information, the frequency information and the duty cycle, store the calculated voltage amplitude data in the corresponding register, and sequentially transmit the voltage amplitude data in each of the registers to the digital-to-analog conversion component according to the set output interval time; The digital-to-analog conversion component is used to output a corresponding signal waveform based on the acquired voltage amplitude data.
2. The edge time adjustable signal generator according to claim 1, characterized in that: The control component maintains a state machine, and the state of the state machine includes a rising state, a high level state, a falling state and a low level state; The control component is specifically used to repeatedly execute the state machine multiple times, switching to the rising state, high level state, falling state and low level state in sequence each time the state machine is executed, and when switching to each state, the voltage amplitude data stored in each register corresponding to each state is transmitted to the digital-to-analog conversion component according to the set output interval time.
3. The edge time adjustable signal generator according to claim 2, characterized in that: The control component is also used to adjust the interval time between the high level state and the low level state in the new round of state machine each time a new round of state machine is executed, so that the frequency of the signal waveform obtained by the digital-to-analog conversion component based on the voltage amplitude data output by the execution of the new round of state machine is adjusted.
4. The edge time adjustable signal generator according to claim 1, characterized in that: The parameter information also includes voltage parameter information; The control component is specifically used for: Determine, from the plurality of registers, registers for storing voltage amplitude data of a rising edge phase, a high level phase, a falling edge phase, and a low level phase, respectively, based on the rising time information, the falling time information, the frequency information, and the duty cycle; For the registers corresponding to each stage, the voltage amplitude data stored in each register is calculated based on the voltage parameter information.
5. The edge time adjustable signal generator according to claim 4, characterized in that: The voltage parameter information includes a maximum voltage value, a minimum voltage value and a reference voltage value; The control component is specifically used for: For the register corresponding to the rising edge stage, based on the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated; For the register corresponding to the high level stage, based on the maximum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated; For the register corresponding to the falling edge stage, based on the calculated voltage amplitude data of the high level stage, the maximum voltage value, the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component, the voltage amplitude data stored in the register is calculated; For the register corresponding to the low level stage, the voltage amplitude data stored in the register is calculated based on the minimum voltage value, the reference voltage value and the number of bits of the digital-to-analog conversion component.
6. The edge time adjustable signal generator according to claim 1, characterized in that: The signal generator also includes an integration circuit connected to the output end of the digital-to-analog conversion component; The integration circuit is used to shape the signal waveform output by the digital-to-analog conversion component.
7. The edge time adjustable signal generator according to claim 6, characterized in that: The integration circuit comprises a plurality of RC units, wherein the output end of a preceding RC unit among the plurality of RC units is connected to the input end of a succeeding RC unit; Each of the RC units includes a resistor and a capacitor, one end of the resistor is connected to the output end of the digital-to-analog conversion component or the output end of the previous RC unit, and the other end is connected to the first end of the capacitor, the second end of the capacitor is grounded, and the first end of the capacitor serves as the output end of the integration circuit or the output end of the RC unit to which it belongs.
8. The edge time adjustable signal generator according to claim 6, characterized in that: The signal generator further comprises a drive enhancement circuit connected between the integration circuit and an external load; The driving enhancement circuit is used to isolate the integration circuit from the external load.
9. The edge time adjustable signal generator according to claim 8, characterized in that: The drive enhancement circuit includes an operational amplifier.
10. A method for generating a signal with adjustable edge time, characterized in that: Applied to the edge time adjustable signal generator according to any one of claims 1 to 9, the method comprising: Acquire set parameter information through the interactive component, wherein the parameter information includes rise time information, fall time information, frequency information and duty cycle; The control component calculates the voltage amplitude data stored in each of the registers based on the rise time information, the fall time information, the frequency information and the duty cycle, stores the calculated voltage amplitude data in the corresponding register, and sequentially transmits the voltage amplitude data in each of the registers to the digital-to-analog conversion component according to the set output interval time; The digital-to-analog conversion component outputs a corresponding signal waveform based on the acquired voltage amplitude data.
