Digital realization method for sine wave signal

A realization method, sine wave technology, applied in the direction of electrical digital data processing, digital function generator, digital data processing components, etc., can solve the problem of flexible adjustment of sine wave frequency f, unchangeable number of sampling points N, and increased error accumulation and other issues, to achieve the effect of reducing calculation time, reducing cumulative error, and reducing storage space occupation

Active Publication Date: 2016-09-28
洛阳码兔网络科技有限公司
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, since the new value is generated using the previous function value, there will be cumulative error, especially in the second half of the sine wave, the cumulative error will become larger and larger, and when the number of sampling points N is not large enough, the cumulative error will be will further increase
At the same time, since the values ​​of sin(θ) and cos(θ) must be preset before the calculation of the recursive formula, the number of sampling points N cannot be changed. At the sampling frequency f s In the case of fixed, it affects the flexible adjustment of the frequency f of the sine wave

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Digital realization method for sine wave signal
  • Digital realization method for sine wave signal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] In order to further explain the technical means and effects that the present invention adopts to achieve the intended purpose of the invention, below in conjunction with the accompanying drawings and preferred embodiments, a digital implementation method for a sine wave signal proposed according to the present invention, its specific implementation, Structure, characteristic and effect thereof are as follows in detail.

[0062] The digital realization method of a kind of sine wave signal of the present invention, combines figure 1 As shown, on the hardware circuit structure, it includes: keyboard input circuit, DSP controller, interface circuit, DAC conversion circuit and UA operational amplifier; on the software structure, it includes the angle value θ and the sine function sin(θ). Among them: the main purpose of the keyboard input circuit is to set the frequency and amplitude of the sine wave signal, as well as the sampling frequency. The DSP controller calculates th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a digital realization method for a sine wave signal. The method specifically comprises the steps of firstly setting parameters and calculating a sampling point number N in a sine wave signal period and an angle value theta occupied by one sampling point; secondly calculating numerical values of sin(theta) and cos(theta) as well as sin(2theta) and cos(2theta); thirdly calculating a discrete point numerical value f0 of the sine wave signal; fourthly transmitting the discrete point numerical value f0 of the sine wave signal into a DAC conversion circuit to generate a continuous sine wave current signal; and finally converting the continuous sine wave current signal into a continuous sine wave voltage signal by utilizing a UA operational amplifier so as to realize output of the sine wave signal. According to the digital realization method for the sine wave signal, a calculation program is simplified and calculation time of a DSP controller is shortened; an accumulative error caused by continuous recursive calculation is effectively reduced, the occupied storage space is small, and the cost is low; and initial sine function value and cosine function value can be conveniently calculated and the frequency of the sine wave signal can be flexibly adjusted.

Description

technical field [0001] The invention belongs to the field of realization of wave signals, in particular to a digital realization method of sine wave signals. Background technique [0002] Sine wave signal generators have been widely used in signal processing systems in the fields of communication, instrumentation, and industrial control. There are many digital implementation methods for generating sine wave signals based on DSP controller, the difference mainly lies in the difference of generation algorithm and software. There are three commonly used methods: look-up table method, Taylor series expansion method and iteration method. [0003] The look-up table method is the most direct digital implementation method. The designer can pre-calculate all possible sine function values ​​according to the needs of the operation, and arrange these results into a data table. The function value of . The table look-up method is characterized by fast speed and easy frequency and ampli...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F1/02
CPCG06F1/022
Inventor 姬宣德白旭灿邵麦顿赵小明段晓明
Owner 洛阳码兔网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products