A direct digital frequency synthesis circuit and control method thereof
By designing a direct digital frequency synthesis circuit including parameter allocation circuit and accumulator control circuit, the problem of high hardware consumption in the prior art and inability to change the output waveform in real time is solved, and a variety of high-precision waveform generation and real-time waveform are realized. Adjustment.
Patent Information
- Application Number
- CN202411179870.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The existing direct digital frequency synthetic circuits consume a lot of hardware and cannot change the output waveform in real time. The output waveform types are limited and the accuracy is low.
A direct digital frequency synthesis circuit is designed, including parameter allocation circuit, accumulator control circuit, accumulator, digital-to-analog conversion circuit and low-pass filter. The accumulator is controlled to generate a variety of high-precisions through parameter allocation circuit and accumulator control circuit. Waveform and can change the output waveform in real time.
It reduces hardware overhead, realizes the generation of a variety of high-precision waveforms, and can change the output waveforms in real time, improving the flexibility and efficiency of the system.
Smart Images

Figure CN118708017B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a direct digital frequency synthesis circuit and a control method thereof. Background Art
[0002] Direct Digital Frequency Synthesizer (DDFS) circuit can generate various waveforms, but the existing technology still has the following problems: large hardware consumption, inability to change the output waveform in real time, limited output waveform types, low accuracy, etc. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to provide a direct digital frequency synthesis circuit and a control method thereof to solve at least one problem existing in the prior art.
[0004] To achieve the above object, an embodiment of the present application provides a direct digital frequency synthesis circuit in one aspect, the direct digital frequency synthesis circuit comprising: a parameter allocation circuit, an accumulator control circuit, an accumulator, a digital-to-analog conversion circuit and a low-pass filter;
[0005] Wherein, the parameter distribution circuit is respectively connected to the accumulator control circuit, the accumulator and the input end of the digital-to-analog conversion circuit;
[0006] The accumulator is also connected to the input ends of the accumulator control circuit and the digital-to-analog conversion circuit respectively;
[0007] The output end of the digital-to-analog conversion circuit is connected to the input end of the low-pass filter.
[0008] In some embodiments, a first terminal of the parameter allocation circuit is connected to a coefficient pin of the accumulator control circuit, a second terminal of the parameter allocation circuit is connected to an enable pin of the accumulator control circuit, a third terminal of the parameter allocation circuit is connected to an operation pin of the accumulator control circuit, and a fourth terminal of the parameter allocation circuit is connected to a current state pin of the accumulator control circuit;
[0009] The current state pin of the accumulator control circuit is also connected to the output end of the accumulator and the input end of the digital-to-analog conversion circuit respectively;
[0010] The data bit width pin of the accumulator is connected to the input end of the digital-to-analog conversion circuit;
[0011] The output end of the accumulator control circuit is connected to the input end of the accumulator.
[0012] In some embodiments, an output terminal of the low pass filter is connected to a communication device.
[0013] A control method for a direct digital frequency synthesis circuit, the method is used to control a direct digital frequency synthesis circuit as described above, the method comprising the following steps:
[0014] Determining the current state of the accumulator using a parameter assignment circuit;
[0015] Determining a target parameter corresponding to the current state using the parameter allocation circuit;
[0016] The accumulator control circuit is used to control the accumulator to generate a level signal corresponding to the target parameter.
[0017] In some embodiments, determining the current state of the accumulator using the parameter allocation circuit comprises the following steps:
[0018] Using the parameter distribution circuit to read the current accumulated value of the accumulator through the current state pin controlled by the accumulator control circuit;
[0019] The parameter allocation circuit is used to determine whether the current state of the accumulator is an accumulation state, a decrement state or a pause state according to the current accumulation value of the accumulator and the stored historical state.
[0020] In some embodiments, the determining the target parameter corresponding to the current state by using the parameter allocation circuit comprises the following steps:
[0021] If the current state is the accumulation state, sending the rising edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit;
[0022] If the current state is the cumulative-decreasing state, sending the falling-edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit;
[0023] If the current state is the pause state, a pause parameter corresponding to the pause state is determined according to the enable pin or the coefficient pin of the accumulator control circuit.
[0024] In some embodiments, the using the accumulator control circuit to control the accumulator to generate a level signal corresponding to the target parameter comprises the following steps:
[0025] If the target parameter is the rising edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a rising edge signal;
[0026] If the target parameter is the falling edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a falling edge signal;
[0027] If the target parameter is the pause parameter, the signal of the enable pin or the signal of the coefficient pin is turned off so that the accumulator maintains the current output level signal.
[0028] To achieve the above object, another aspect of an embodiment of the present application provides a control device for a direct digital frequency synthesis circuit, the device is used to control a direct digital frequency synthesis circuit as described above, the device comprising:
[0029] a state determination unit, for determining a current state of the accumulator using a parameter allocation circuit;
[0030] a parameter determination unit, configured to determine a target parameter corresponding to the current state using the parameter allocation circuit;
[0031] A signal generating unit is used to control the accumulator to generate a level signal corresponding to the target parameter by using the accumulator control circuit.
[0032] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above method when executing the computer program.
[0033] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0034] The embodiments of the present application include at least the following beneficial effects:
[0035] The direct digital frequency synthesis circuit of the present application includes a parameter allocation circuit, an accumulator control circuit, an accumulator, a digital-to-analog conversion circuit and a low-pass filter. Compared with the prior art, the present application removes the waveform lookup table, reduces hardware overhead, and on the basis of removing the waveform lookup table, the parameter allocation circuit and the accumulator control circuit can still control the accumulator to generate a variety of high-precision waveforms, and the output waveform can be changed in real time by adjusting the target parameters assigned to the accumulator control circuit by the parameter allocation circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 An example diagram of pulse width jitter provided in an embodiment of the present application;
[0038] Figure 2 An example diagram of a linear waveform provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of the structure of a direct digital frequency synthesis circuit provided in an embodiment of the present application;
[0040] Figure 4 A flow chart of a control method of a direct digital frequency synthesis circuit provided in an embodiment of the present application;
[0041] Figure 5 An example diagram of a linear edge waveform synthesized without the need for a waveform lookup table provided in an embodiment of the present application;
[0042] FIG6( a ) is a comparison diagram of 2-step nonlinear edge waveforms provided in an embodiment of the present application;
[0043] FIG6( b ) is a comparison diagram of the nonlinear edge waveforms of the four steps provided in the embodiment of the present application;
[0044] Figure 7 A schematic diagram of the structure of a control device for a direct digital frequency synthesis circuit provided in an embodiment of the present application;
[0045] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0047] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0048] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0050] Before describing the embodiments of the present application in detail, some related technologies involved in the embodiments of the present application are first described. The related technologies involved in the embodiments of the present application are applicable to the following explanations:
[0051] 1. Difficulty in generating low duty cycle pulses: In the DDFS synthesis method, if you want to generate an extremely low duty cycle pulse, you first need to write the waveform data of the extremely low duty cycle pulse into the waveform lookup table. Assuming that the waveform lookup table capacity is 4k (4096), the waveform table data of the waveform lookup table is: the data of most storage cells is "0", and the data of very few consecutive cells is "1". Assuming a pulse with a duty cycle of 0.2, as the frequency control word increases, the jitter of the pulse width will become more and more serious. When the frequency control word is large to a certain extent, pulse loss will occur. For example, Figure 1 As shown. Even when the frequency control word is small, the pulse width may not be consistent. Therefore, in order to solve the above problem, the related art limits the synthesized pulse frequency to certain points (integer factors of the clock frequency), but the above clock frequency is a fixed value and cannot cover the various clock frequencies actually required. Some other related technologies use control functions to generate low duty cycle pulses, but the settings are complicated, the functions are insufficient, and the pulse width and edge time cannot be dynamically adjusted.
[0052] 2. The existence of the waveform lookup table causes the system operating speed to decrease: Traditional DDFS and related circuits based on DDFS have a phase / amplitude conversion process, which is mainly completed by the waveform lookup table. Because the access speed to the memory is often lower than the operating speed of the sequential logic, the existence of the waveform lookup table greatly affects the system speed.
[0053] 3. Low utilization efficiency of waveform lookup table: If the waveform to be synthesized needs to be changed, for example, the rising edge / high level / falling edge / low level time needs to be changed, the waveform lookup table must also be rewritten. Figure 2 As shown, Figure 2 The rising / falling edges of several waveforms are linear, but the rising / falling time and pulse width are different. However, under the implementation method of the relevant technology, it is necessary to write waveform lookup tables separately to synthesize the corresponding waveforms; or, write multiple waveforms in the waveform lookup table, but the capacity of the waveform lookup table will be increased or the number of points of each waveform will be reduced, thereby causing the quality of the synthesized waveform to deteriorate.
[0054] The embodiment of the present application provides a direct digital frequency synthesis circuit, the direct digital frequency synthesis circuit comprising: a parameter distribution circuit, an accumulator control circuit, an accumulator, a digital-to-analog conversion circuit and a low-pass filter;
[0055] Wherein, the parameter distribution circuit is respectively connected to the accumulator control circuit, the accumulator and the input end of the digital-to-analog conversion circuit;
[0056] The accumulator is also connected to the input ends of the accumulator control circuit and the digital-to-analog conversion circuit respectively;
[0057] The output end of the digital-to-analog conversion circuit is connected to the input end of the low-pass filter.
[0058] Reference Figure 3 As a further optional implementation, a first end of the parameter allocation circuit is connected to a coefficient pin of the accumulator control circuit, a second end of the parameter allocation circuit is connected to an enable pin of the accumulator control circuit, a third end of the parameter allocation circuit is connected to an operation pin of the accumulator control circuit, and a fourth end of the parameter allocation circuit is connected to a current state pin of the accumulator control circuit;
[0059] The current state pin of the accumulator control circuit is also connected to the output end of the accumulator and the input end of the digital-to-analog conversion circuit respectively;
[0060] The data bit width pin of the accumulator is connected to the input end of the digital-to-analog conversion circuit;
[0061] The output end of the accumulator control circuit is connected to the input end of the accumulator.
[0062] Figure 3 The components are described as follows: parameter distribution circuit 1, accumulator control circuit 2, accumulator 3, digital-to-analog conversion circuit 4 and low-pass filter 5.
[0063] Specifically, Figure 3 The pins and parameters are described as follows:
[0064] Fcwr: rising edge accumulator step parameter, used to determine the slope of the rising edge;
[0065] Fcwf: Falling edge accumulator step parameter, used to determine the slope of the falling edge;
[0066] Hd: high level delay time, used to determine the duration of the high level of the waveform;
[0067] Ld: low level delay time, used to determine the duration of the low level of the waveform;
[0068] Fb (current state pin): current state of the accumulator;
[0069] Fcw (coefficient pin): accumulation coefficient, used to determine the speed of accumulation / decrement of the accumulator;
[0070] En (enable pin): addition / subtraction enable, when it is 1, the accumulator performs addition / subtraction operation;
[0071] + / - (operation pin): controls the accumulator to perform addition / subtraction operations;
[0072] clk: clock signal.
[0073] It can be understood that the low-pass filter of the embodiment of the present application can output a synthesized waveform. Therefore, further, the output end of the low-pass filter of the embodiment of the present application can be connected to a communication device to provide various synthesized waveforms for the communication device.
[0074] The frequency of the output waveform of the direct digital frequency synthesis circuit is determined by the following formula (tuning formula):
[0075] ;
[0076] in F r is the frequency control word, j is the phase width of the accumulator, f clk is the clock frequency, f out is the frequency of the output waveform.
[0077] The period of the accumulator output waveform is determined by the following formula:
[0078] ;
[0079] Among them, gcd() means finding the greatest common divisor.
[0080] The direct digital frequency synthesis circuit of this embodiment can generate any continuous waveform. In addition to sine waves, it can also be used to generate various analog square waves, such as step waves or narrow pulse waves, etc. It can not only be used to generate carrier signals, but also generate various high-precision test signals or comparison signals, etc.
[0081] Reference Figure 4 The embodiment of the present application further provides a control method for a direct digital frequency synthesis circuit, the method is used to control a direct digital frequency synthesis circuit as described above, the method comprising S400~S420:
[0082] S400: Determine the current state of the accumulator using the parameter allocation circuit.
[0083] Further, S400 may include:
[0084] Using the parameter distribution circuit to read the current accumulated value of the accumulator through the current state pin controlled by the accumulator control circuit;
[0085] The parameter allocation circuit is used to determine whether the current state of the accumulator is an accumulation state, a decrement state or a pause state according to the current accumulation value of the accumulator and the stored historical state.
[0086] S410: Determine a target parameter corresponding to the current state using the parameter allocation circuit.
[0087] Further, S410 may include:
[0088] If the current state is the accumulation state, sending the rising edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit;
[0089] If the current state is the cumulative-decreasing state, sending the falling-edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit;
[0090] If the current state is the pause state, a pause parameter corresponding to the pause state is determined according to the enable pin or the coefficient pin of the accumulator control circuit.
[0091] S430: Utilize the accumulator control circuit to control the accumulator to generate a level signal corresponding to the target parameter.
[0092] Further, S420 may include:
[0093] If the target parameter is the rising edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a rising edge signal;
[0094] If the target parameter is the falling edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a falling edge signal;
[0095] If the target parameter is the pause parameter, the signal of the enable pin or the signal of the coefficient pin is turned off so that the accumulator maintains the current output level signal.
[0096] Next, the solution of the embodiment of the present application will be introduced and explained in conjunction with specific application examples:
[0097] Different control words are assigned to the "accumulation" and "decrementation" states of the accumulator, thereby controlling the slope of the rising / falling edge, and different pause times are assigned to the pause state of the accumulator, thereby adjusting the duty cycle of the pulse.
[0098] Still refer to Figure 3 To explain, the parameter allocation circuit determines the target parameter to be sent to the accumulator based on the current output of the accumulator and various input parameters (Fcwr, Fcwf, Hd, Ld).
[0099] The parameter allocation circuit determines whether the accumulator is currently in the accumulation state, decrement state, or pause state based on the current accumulated value of the accumulator and the stored historical state, and then determines the target parameter that needs to be sent to the accumulator control circuit:
[0100] If the current state is the accumulation (rising edge) state, assign Fcwr to Fcw;
[0101] If the current state is the cumulative decrease (falling edge) state, assign Fcwf to Fcw;
[0102] If the current state is the pause state, an enable signal is output to the accumulator control circuit (pause accumulation / decrement). The pause time is determined by the following conditions:
[0103] If it is the ascending phase, the pause time is Hd;
[0104] If it is the descending phase, the pause time is Ld.
[0105] The accumulator control circuit controls the accumulator to generate a rising edge and then generate a high level; or controls the falling edge and then generates a low level according to the current output of the accumulator and the target parameter, enable signal and direction signal sent by the parameter allocation circuit.
[0106] Specifically, the accumulator control circuit controls the accumulator to enter the following state according to the input parameters:
[0107] 1) Accumulate and generate a rising edge;
[0108] 2) Decrement and generate a falling edge;
[0109] 3) Pause, generate high level / middle level / low level.
[0110] The accumulator control circuit can be paused in the following ways:
[0111] 1) Turn off the enable signal of the accumulator, the accumulator enters the pause state, and maintains the current accumulated value;
[0112] 2) Turn off the Fcw of the accumulator to make it 0, and the accumulator enters the idling state. Although the accumulator is accumulating, each accumulated value is 0, that is, the current accumulated value is maintained.
[0113] Through this embodiment, a waveform with any linear edge with clock accuracy can be synthesized without the need for a waveform lookup table, and the parameters can be adjusted in real time, including waveforms with extremely low duty cycles. The synthesized waveform example is shown in FIG. Figure 5 shown.
[0114] Next, a further explanation:
[0115] This embodiment can also realize nonlinear edge waveform:
[0116] By adding other accumulation-pause control logic during the accumulation process, a nonlinear edge waveform can also be obtained, as shown in Figure 6(a) and Figure 6(b). Figure 6(a) is a comparison diagram of the nonlinear edge waveforms of 2 steps, and Figure 6(b) is a comparison diagram of the nonlinear edge waveforms of 4 steps. The solid line waveform is the nonlinear edge waveform, and the dotted line waveform is the original waveform.
[0117] The added accumulation-pause logic is: storing some amplitude information and time information in the parameter allocation circuit, and outputting a pause signal after the accumulator reaches the above amplitude, and the accumulator pauses for the set time.
[0118] It can be seen from FIG6(a) and FIG6(b) that, due to the existence of the accumulation slope, the sine wave generated by the accumulation-pause method is closer to the standard sine wave than the step-step wave.
[0119] If multiple accumulation-pause control logics are added at different stages of the accumulation process, a more accurate waveform can be achieved, such as a high-precision standard sine wave.
[0120] A data storage function can be added to the control logic of the synthesized nonlinear edge waveform to store a small amount of nonlinear edge waveform. The more data is stored, the more complex the control logic is, and the closer the obtained waveform is to the original waveform. This embodiment can be applied to scenarios with low waveform requirements and hardware filters, such as various frequency shift keying communications (FSK), Sunspec communications, etc.
[0121] This embodiment can remove the waveform finder and directly use the accumulator to synthesize the required waveform, which at least includes the following beneficial effects:
[0122] 1) Removing the waveform finder can increase the overall speed of the circuit.
[0123] 2) The accumulator itself can be used to synthesize a variety of waveforms.
[0124] 3) By using the parameter distribution circuit and the accumulator control circuit to implement the control logic, the corresponding step waveform can be generated to simulate the function waveform, such as a sine waveform. In conjunction with the low-pass filter, the synthesis of the sine wave can be achieved in a low-cost manner. The direct digital frequency synthesis circuit of this embodiment can be applied to simple communication systems, such as Sunspec communication of photovoltaic systems, to implement 131.25kHz and 143.75kHz FSK control frames with simple hardware resources.
[0125] 4) The waveform finder is removed, the hardware consumption is small, and more waveform channels can be implemented under limited hardware resources. It can be implemented on the chip, which can effectively reduce the chip area.
[0126] 5) Compared with the pulse waveform implemented by MCU / DSP software, this embodiment can synthesize a waveform with higher frequency accuracy and higher edge accuracy by increasing the accumulator width.
[0127] Reference Figure 7 The embodiment of the present application further provides a control device for a direct digital frequency synthesis circuit, which can implement the control method of the direct digital frequency synthesis circuit described above, and the device includes:
[0128] a state determination unit, for determining a current state of the accumulator using a parameter allocation circuit;
[0129] a parameter determination unit, configured to determine a target parameter corresponding to the current state using the parameter allocation circuit;
[0130] A signal generating unit is used to control the accumulator to generate a level signal corresponding to the target parameter by using the accumulator control circuit.
[0131] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0132] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned knowledge extraction method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0133] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0134] See also Figure 8 , Figure 8 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0135] The processor 801 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0136] The memory 802 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 802, and the processor 801 calls and executes the knowledge extraction method of the embodiment of this application;
[0137] Input / output interface 803, used to implement information input and output;
[0138] The communication interface 804 is used to realize the communication interaction between the device and other devices. The communication can be realized through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0139] A bus 805 that transmits information between various components of the device (e.g., the processor 801, the memory 802, the input / output interface 803, and the communication interface 804);
[0140] The processor 801 , the memory 802 , the input / output interface 803 and the communication interface 804 are connected to each other in communication within the device via a bus 805 .
[0141] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the above-mentioned knowledge extraction method is implemented.
[0142] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0143] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0144] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0145] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0146] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0148] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0149] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0150] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0151] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0154] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.
Claims
1. A direct digital frequency synthesis circuit, characterized in that: The direct digital frequency synthesis circuit comprises: a parameter distribution circuit, an accumulator control circuit, an accumulator, a digital-to-analog conversion circuit and a low-pass filter; Wherein, the parameter distribution circuit is respectively connected to the accumulator control circuit, the accumulator and the input end of the digital-to-analog conversion circuit; The accumulator is also connected to the input ends of the accumulator control circuit and the digital-to-analog conversion circuit respectively; The output end of the digital-to-analog conversion circuit is connected to the input end of the low-pass filter; A first end of the parameter allocation circuit is connected to a coefficient pin of the accumulator control circuit, a second end of the parameter allocation circuit is connected to an enable pin of the accumulator control circuit, a third end of the parameter allocation circuit is connected to an operation pin of the accumulator control circuit, and a fourth end of the parameter allocation circuit is connected to a current state pin of the accumulator control circuit; The current state pin of the accumulator control circuit is also connected to the output end of the accumulator and the input end of the digital-to-analog conversion circuit respectively; The data bit width pin of the accumulator is connected to the input end of the digital-to-analog conversion circuit; The output end of the accumulator control circuit is connected to the input end of the accumulator.
2. A direct digital frequency synthesis circuit according to claim 1, characterized in that: The output end of the low-pass filter is connected to the communication device.
3. A control method for a direct digital frequency synthesis circuit, characterized in that: The method is used to control a direct digital frequency synthesis circuit as claimed in claim 1, and the method comprises the following steps: Determining the current state of the accumulator using a parameter assignment circuit; Determining a target parameter corresponding to the current state using the parameter allocation circuit; Using the accumulator control circuit to control the accumulator to generate a level signal corresponding to the target parameter; Wherein, a first end of the parameter allocation circuit is connected to a coefficient pin of the accumulator control circuit, a second end of the parameter allocation circuit is connected to an enable pin of the accumulator control circuit, a third end of the parameter allocation circuit is connected to an operation pin of the accumulator control circuit, and a fourth end of the parameter allocation circuit is connected to a current state pin of the accumulator control circuit; The current state pin of the accumulator control circuit is also connected to the output end of the accumulator and the input end of the digital-to-analog conversion circuit respectively; The data bit width pin of the accumulator is connected to the input end of the digital-to-analog conversion circuit; The output end of the accumulator control circuit is connected to the input end of the accumulator.
4. The control method of a direct digital frequency synthesis circuit according to claim 3, characterized in that: Determining the current state of the accumulator by using the parameter allocation circuit comprises the following steps: Using the parameter distribution circuit to read the current accumulated value of the accumulator through the current state pin controlled by the accumulator control circuit; The parameter allocation circuit is used to determine whether the current state of the accumulator is an accumulation state, a decrement state or a pause state according to the current accumulation value of the accumulator and the stored historical state.
5. The control method of a direct digital frequency synthesis circuit according to claim 4, characterized in that: The step of using the parameter allocation circuit to determine the target parameter corresponding to the current state comprises the following steps: If the current state is the accumulation state, sending the rising edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit; If the current state is the cumulative-decreasing state, sending the falling-edge accumulator step parameter to the accumulator control circuit via the coefficient pin of the accumulator control circuit; If the current state is the pause state, a pause parameter corresponding to the pause state is determined according to the enable pin or the coefficient pin of the accumulator control circuit.
6. The control method of a direct digital frequency synthesis circuit according to claim 5, characterized in that: The step of controlling the accumulator to generate a level signal corresponding to the target parameter by using the accumulator control circuit comprises the following steps: If the target parameter is the rising edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a rising edge signal; If the target parameter is the falling edge accumulator step parameter, the accumulator control circuit is used to control the accumulator to generate a falling edge signal; If the target parameter is the pause parameter, the signal of the enable pin or the signal of the coefficient pin is turned off so that the accumulator maintains the current output level signal.
7. A control device for a direct digital frequency synthesis circuit, characterized in that: The device is used to control a direct digital frequency synthesis circuit as claimed in claim 1, and the device comprises: a state determination unit, for determining a current state of the accumulator using a parameter allocation circuit; a parameter determination unit, configured to determine a target parameter corresponding to the current state using the parameter allocation circuit; A signal generating unit is used to control the accumulator to generate a level signal corresponding to the target parameter by using the accumulator control circuit.
8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 3 to 6 when executing the computer program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 3 to 6 is implemented.
Citation Information
Patent Citations
Apparatus for fractional RF signal synthesis with phase modulation
CA2460293A1
Method and system for generating pulse width wave digits with continuously-adjusted wide frequency
CN103888105A
Pulse Output Direct Digital Synthesis Circuit
US20070276891A1
Digital forced oscillation by direct digital synthesis
US20080285698A1
Shape modulation transmit loop with digital frequency control and method for same
US6307441B1
