A method for generating signals of arbitrary frequency and waveform

By combining an oscillator, a counter, a memory, and a D/A converter, a simplified process for generating signals of arbitrary frequency and waveform is achieved, solving the problem of high generation difficulty in existing technologies and improving the applicability and efficiency of the generation.

CN113824402BActive Publication Date: 2026-01-02BEIJING DINGLIXIN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110953810.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2026-01-02
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

There is a lack of effective means to generate signals of arbitrary frequency and waveform, and existing technologies are complex and difficult to implement.

Method used

By combining an oscillator, a counter, a memory, and a D/A converter, and using a binary counter and memory address input, arbitrary frequency and waveform signals are generated. Through the cooperation of the memory and the D/A converter, the predicted frequency and waveform data are output.

Benefits of technology

It simplifies the steps for generating arbitrary frequency and waveform signals, reduces the difficulty, and improves the applicability and efficiency of the generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113824402B_ABST
    Figure CN113824402B_ABST
Patent Text Reader

Abstract

The application discloses a method for generating signals of arbitrary frequency and waveform, comprising the following steps: step one, an initial signal with a preset frequency is generated by an oscillation source; step two, a binary counter processes the initial signal, and the processed signal is sent to a memory storing frequency division times and waveform data in an address input mode; and step three, the memory outputs data to a D / A converter for D / A conversion, and the D / A converter outputs a signal with a preset frequency and waveform data previously stored in the memory. Compared with the prior art, the application has the advantages that the overall steps are reasonable and clear, the cooperation of the oscillation source, the counter, the memory and the D / A converter realizes the production of signals of arbitrary frequency and waveform, the difficulty in obtaining signals of arbitrary frequency and waveform in the prior art is greatly reduced, the steps are simplified, the applicability is good, and the application is convenient to popularize.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to a method for generating arbitrary frequency and waveform signal. BACKGROUND

[0002] Frequency analysis is a method of decomposing a function, waveform, or signal into its frequency components to obtain a spectrum in mathematics, physics, and signal processing.

[0003] Waveform represents the shape, form of a signal, which can be the movement of a wave on a physical medium, or the abstract representation of other physical quantities. In many cases, the form of the medium of wave propagation cannot be directly observed with the naked eye. In these cases, the term "waveform" refers to the graphical abstraction of the distribution of the corresponding physical quantity over time or space. As the most typical example, an oscilloscope can be used to show the voltage variation between two probes on a display device. After expanding this concept, waveform can also describe the curve graph of the function corresponding to the change of any physical quantity over time. SUMMARY

[0004] The technical problem to be solved by the present application is the lack of a means for generating arbitrary frequency and waveform signals.

[0005] To solve the above technical problem, the technical solution provided by the present application is: a method for generating arbitrary frequency and waveform signals, comprising the following steps:

[0006] Step one, the oscillation source generates an initial signal with a preset frequency;

[0007] Step two, the binary counter processes the initial signal, and the processed signal is sent to the memory storing the frequency division times and waveform data in the form of address input;

[0008] Step three, the memory outputs data to the D / A converter for D / A conversion, and the D / A converter outputs the signal with the known frequency and waveform data pre-stored in the memory.

[0009] The present application has the advantages compared with the prior art that the overall steps are reasonable and clear, and through the cooperation of the oscillation source, the counter, the memory, and the D / A converter, the production of arbitrary frequency and waveform signals is realized, which greatly reduces the difficulty of obtaining arbitrary frequency and waveform signals in the prior art, simplifies the steps, has good applicability, and is convenient for promotion.

[0010] As an improvement, the memory capacity is M, M is a binary integer, and its value satisfies 2 n , n = 1, 2…n; the frequency of the oscillation source is f z ; the frequency of the signal to be obtained is f o ; and the frequency of the memory output data is f zThe frequency of f o The number of storage units occupied by a cycle of the frequency signal is K

[0011] As an improvement, f o The integer value of the number of storage units K occupied by a cycle of the frequency signal is k1, k2, and the actual corresponding output frequency is f When k1, k2 are large enough, f0≈f o1 ≈f o2 .

[0012] As an improvement, the memory with a capacity of M stores data of f o with a frequency of n times, then M = n × k, M is a binary integer, and n is a decimal integer, obtained from the formula n is a decimal number, and after rounding, n' is obtained, then in the memory capacity M, f o1 , f o2 with a frequency of n' times are obtained, which cannot satisfy M = n' × k1, M = n' × k2, and the values of k1, k2 are fitted in M, that is, a part of the units in M store k1 as the period of the memory data, and another part store k2 as the period of the memory data, then the formula M = n1 × k1 + n2 × k2, n' = n1 + n2 is satisfied, and the associated equation is: The values of n1, n2 are obtained, that is, M = n1 × k1 + n2 × k2 is established, where n1, n2 are positive integers, if n1, n2 are not positive integers, adjust k1, k2 until the appropriate n1, n2 are found.

[0013] As an improvement, M = n1 × k1 + n2 × k2 represents that in the M storage units, f with a frequency of n1 times is stored with k1 as the period, and f with a frequency of n2 times is stored with k2 as the period, and the data of k1, k2 determine the frequencies of f o1 , f o2 , and the data stored in k1, k2 determine the output waveforms of f o1 , f o2 .

[0014] As an improvement, the counter scans the address input end of the memory M through the binary counter mode with f z as the oscillation frequency, and the output of M will continuously and periodically output the corresponding values of f o1 n1 times, and f o2 n2 times, in a reciprocating manner.

[0015] As an improvement, the D / A converter passes through the output end of the memory, and the output period of the D / A converter is k1, k2 and the frequency is f o1 , f o2and the waveform is determined by the data stored in k1, k2. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 is a flowchart of a method for generating signals of arbitrary frequency and waveform.

[0017] As shown in the figure: 1, oscillator, 2, counter, 3, memory, 4, D / A converter. DETAILED DESCRIPTION

[0018] The application will be further described in detail below with reference to the accompanying drawings.

[0019] The application in the specific implementation, a method for generating signals of arbitrary frequency and waveform, comprising the following steps:

[0020] Step one, the oscillator 1 generates an initial signal with a preset frequency;

[0021] Step two, the binary counter 2 processes the initial signal, and the processed signal is sent to the memory with frequency division times and waveform data in the form of address input;

[0022] Step three, the memory 3 outputs data to the D / A converter 4 for D / A conversion, and the D / A converter 4 outputs the signal with the known frequency and waveform data pre-stored in the memory.

[0023] The memory 3 has a capacity of M, M is a binary integer, and its value satisfies 2 n , n = 1, 2…n; the frequency of the oscillator 1 is f z ; the frequency of the signal to be obtained is f o ; the frequency of the data output by the memory 3 is the frequency of f z , so f o The number of storage units occupied by a period of f

[0024] The number of storage units occupied by a period of f o is k1, k2, and the actual output frequency is When k1 and k2 are large enough, f0≈f o1 ≈f o2 .

[0025] The memory 3 with a capacity of M has data of f o frequency n times, so M = n × k, M is a binary integer, and n is a decimal integer. According to the formula n is a decimal number, and n' is obtained after rounding. In the memory 3 with a capacity of M, f o1 , fo2 The obtained data cannot satisfy M=n'xk1, M=n'xk1, the values of k1, k2 are fitted in M, that is, a part of the cells in M store k1 as the periodic memory data, and another part stores k2 as the periodic memory data, thus satisfying the formula M=n1xk1+n2xk2, n'=n1+n2, and the associated equation is: The values of n1, n2 are obtained, that is, M=n1xk1+n2xk2 is established, wherein n1 and n2 are positive integers, if n1 and n2 are not positive integers, k1 and k2 are adjusted until appropriate n1 and n2 are found.

[0026] M=n1xk1+n2xk2 represents that the data n1 is stored in the M memory cells with k1 as the period The data n2 is stored with k1 as the period The data of k1 and k2 determine the frequencies of f o1 , f o2 The data stored in k1 and k2 determine the output waveform of f o1 , f o2 .

[0027] When the counter 2 scans the address input end of the memory 3 M in the binary counter mode with f z as the oscillation frequency, the output of M will be continuously and periodically output f o1 corresponding to the value n1, and f o2 corresponding to the value n2, and the output is reciprocated.

[0028] The D / A converter 4 passes through the output end of the memory 3, and the D / A converter 4 outputs a signal with a period of k1, k2 and a frequency of f o1 , f o2 , and the waveform is determined by the data stored in k1 and k2.

[0029] The working principle of the application is: the application proposes a method for generating a signal with an arbitrary frequency and waveform, comprising the following steps:

[0030] Step one, the oscillation source 1 generates an initial signal with a preset frequency;

[0031] Step two, the binary counter 2 processes the initial signal, and the processed signal is sent to the memory with frequency division times and waveform data in the address input mode;

[0032] Step three, the memory 3 outputs data to the D / A converter 4 for D / A conversion, and the D / A converter 4 outputs a signal with a known frequency and waveform data pre-stored in the memory.

[0033] Among them, memory 3 has a capacity of M, where M is a binary integer whose value satisfies 2... n n = 1, 2…n; select oscillation source 1 with frequency f z The desired signal frequency is f. o The frequency of the data output by the memory 3 is f. z The frequency of f, therefore o The number of storage units occupied by one cycle of a frequency signal is Then the f o If the integer values ​​of the number of storage units K occupied by one cycle of the frequency signal are k1 and k2, then the actual corresponding output frequency is... When k1 and k2 are sufficiently large, f0 ≈ f o1 ≈f o2 The memory 3 with a capacity of M stores f. o If the frequency data is n times, then M = n × k, where M is a binary integer and n is a decimal integer, derived from the formula... If n is a decimal, rounding it down gives n′. Then, f is selected separately from memory capacity M. o1 f o2 The obtained data cannot satisfy M = n′ × k1 or M = n′ × k1. Fitting the values ​​of k1 and k2 into M, i.e., storing k1 as periodic memory data in one part of M and k2 as periodic memory data in another part, satisfies the formulas M = n1 × k1 + n2 × k2 and n′ = n1 + n2. The related equations are: Find the values ​​of n1 and n2, i.e., M = n1 × k1 + n2 × k2 holds true, where n1 and n2 are positive integers. If n1 and n2 are not positive integers, adjust k1 and k2 until suitable n1 and n2 are found. Here, M = n1 × k1 + n2 × k2 indicates that the value of k1 is stored periodically in memory location M. The data is stored n1 times, with a period of k1 values. The data is processed n2 times, and the data of k1 and k2 determine f. o1 f o2 The data stored in frequencies k1 and k2 determine f o1 f o2 The output waveform.

[0034] When counter 2 is f z When the oscillation frequency is scanned to the address input of memory 3M using a binary counter, the output of M will continuously and periodically output the value f pre-stored in memory 3M. o1 For the corresponding value n1 times, f o2 The corresponding value n2 is output repeatedly. The D / A converter 4 outputs through the output terminal of memory 3, with periods k1 and k2 and a frequency of f. o1 fo2 and the waveform is determined by the data stored in k1, k2.

[0035] Embodiment:

[0036] Take M = 512k, f z = 4194304 Hz, f o = 4186 Hz,

[0037] Select k1 = 1002, k2 = 1003,

[0038] n1 = 281, n1 = 242, The maximum relative error is The numerical value is about one thousandth, which meets the requirements, and k1, k2 correspond to the data stored in the output waveform unit.

[0039] Take k1, k2 as an example of a sine wave with a period of k1, k2, and the data stored in k1, k2 is k1 = 1002, k2 = 1003. Corresponding to k1 = 1002, the data stored from the first unit to the 1002th unit is as follows:

[0040] First unit:

[0041] Second unit:

[0042] n unit:

[0043] 1002 unit:

[0044] Corresponding to k1 = 1003, the data stored from the first unit to the 1003th unit is as follows:

[0045] First unit:

[0046] Second unit:

[0047] n unit:

[0048] 1003 unit:

[0049] Wherein, k1 is repeated 281 times, and k2 is repeated 242 times. As long as different waveform data is stored in k1, k2, any desired waveform can be output.

[0050] In addition, the terms "first", "second", etc. are used only to describe the purpose and should not be construed as indicating or implying relative importance or implying a specified number thereof. Therefore, the features defined as "first", "second" can explicitly or implicitly include one or more features, and the meaning of "multiple" in the description of the present application is two or more, unless otherwise explicitly specified.

[0051] In the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connecting", "fixing" and the like should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be the communication between two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0052] In the present application, unless otherwise explicitly specified and limited, the first feature "on" or "under" the second feature can include that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, the first feature "on", "above" and "on" the second feature includes that the first feature is directly above and obliquely above the second feature, or only indicates that the first feature is higher than the second feature in horizontal height. The first feature "under", "below" and "below" the second feature includes that the first feature is directly above and obliquely above the second feature, or only indicates that the first feature is lower than the second feature in horizontal height.

[0053] In the description of the present application, the description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In the present application, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0054] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments without departing from the principles and spirit of the present application within the scope of the present application.

Claims

1. A method of generating a signal of arbitrary frequency and waveform, characterized by The method comprises the following steps: Step 1: an initial signal with a preset frequency is generated by a vibration source (1); Step 2: a binary counter (2) processes the initial signal, and the processed signal is sent to a memory storing frequency division times and waveform data in the form of address input; Step 3: the memory (3) outputs data to a D / A converter (4) for D / A conversion, and the D / A converter (4) outputs a signal with a preset frequency and waveform data pre-stored in the memory; The memory (3) has a capacity of M, M is a binary integer, and its value satisfies 2 n , n = 1, 2…n; the frequency of the selected oscillation source (1) is f z ; the frequency of the signal to be obtained is f o ; the frequency of the output data of the memory (3) is the frequency of f z , so the frequency signal occupies a number of storage units in one cycle of f o ​ The f o The integer value of the number of storage units K occupied by one cycle of the frequency signal is k1, k2, and the actual corresponding output frequency is When k1, k2 are large enough, f0≈f o1 ≈f o2; The memory (3) with the memory capacity M has f o frequency data n times, then M=n×k, M is a binary integer, n is a decimal integer, and the formula n is obtained as a decimal number, and n ′ is obtained after rounding, then f o1 is selected in the memory (3) with the capacity M o2 The obtained data cannot satisfy M=n ′ ×k1, M=n ′ ×k1, and the values of k1 and k2 are fitted in M, that is, a part of the units in M store k1 as periodic memory data, and another part stores k2 as periodic memory data, so that the formula M=n1×k1+n2×k2 is satisfied, n ′ =n1+n2, and the correlation equation is: The values of n1 and n2 are obtained, that is, M=n1×k1+n2×k2 is established, wherein n1 and n2 are positive integers, and if n1 and n2 are not positive integers, k1 and k2 are adjusted until appropriate n1 and n2 are found. M = n1 x k1 + n2 x k2 indicates that the data n1 is stored in the M memory unit with k1 value as a period, and the data n2 is stored with k1 value as a period n2 times The data of k1, k2 determines the output waveform of f o1 , f o2 The data stored in the frequency k1, k2 of f o1 , f o2 determines the output waveform.​ 2. The method of claim 1, wherein: The counter (2) scans the address input of the memory (3) M in binary counter mode at an oscillation frequency f z When the address input of the memory (3) M is scanned in binary counter mode at an oscillation frequency f o1 Corresponding to the value n1, f o2 Corresponding to the value n2, the output is reciprocated.

3. The method of claim 1, wherein: The D / A converter (4) outputs a signal with a period of k1, k2 and a frequency of f o1 , f o2 and a waveform determined by the data stored in k1, k2.

Citation Information

Patent Citations

  • Highly-efficient swept-frequency signal generation method matching with FFT processing

    CN107528543A