Sine wave generating method and device and electronic device

正弦波生成方法和装置以及电子设备

Abstract

本发明涉及一种正弦波生成方法和装置以及电子设备,根据接收到的音频数据信号,获取待生成正弦波的频率以及衰减率,获取预设的输出采样率以及获取到的频率计算该正弦波的采样点数目,在预存的正弦表中确定计算的采样点数目的采样点,及各个确定的采样点对应的电压参数;根据获取到的衰减率、电压参数以及预设的标准电压调节采样点的输出电压,依次输出各个确定的采样点的输出电压,以形成正弦波的一个周期的波形,利用正弦波进行音频数据的通信,提高了音频数据通信的稳定性以及速率。
The invention relates to a sine wave generating method and device and an electronic device. The method includes the steps that according to received audio data signals, the frequency and the attenuation rate of a sine wave to be generated are obtained; according to a preset output sampling rate and the obtained frequency, the number of sampling points of the sine wave is calculated; in a preset sine wave list, the sampling points with the number being calculated and voltage parameters corresponding to the determined sampling points are determined; according to the obtained attenuation rate, the voltage parameters and output voltages of preset standard voltage regulation sampling points, output voltages of the determined sampling points are output sequentially so as to form a periodic waveform of the sine wave. The sine wave is used for audio data communication, and therefore the stability and the speed rate of audio data communication are improved.

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (2)

    Publication numberPublication dateAssigneeTitle
    CN-1666407-ASeptember 07, 2005索尼株式会社Waveform generating device and method, and decoder
    KR-100676376-B1January 24, 2007(주)한성월드칸Sine wave generator for extending the performances of an alternator and method thereof

NO-Patent Citations (2)

    Title
    李爱华: "《基于DSP的正弦信号发生方法》", 《江苏电器》, 30 May 2008 (2008-05-30)
    杨宗长: "《软件正弦波音频信号发生器的设计》", 《电声技术》, 30 January 2004 (2004-01-30), pages 35 - 36

Cited By (0)

    Publication numberPublication dateAssigneeTitle