[go: up one dir, main page]

CN106301343B - A kind of customized multi-protocols digital audio and video signals generating system of level and method - Google Patents

A kind of customized multi-protocols digital audio and video signals generating system of level and method Download PDF

Info

Publication number
CN106301343B
CN106301343B CN201610696718.8A CN201610696718A CN106301343B CN 106301343 B CN106301343 B CN 106301343B CN 201610696718 A CN201610696718 A CN 201610696718A CN 106301343 B CN106301343 B CN 106301343B
Authority
CN
China
Prior art keywords
digital audio
protocol
digital
module
fpga
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610696718.8A
Other languages
Chinese (zh)
Other versions
CN106301343A (en
Inventor
宋志刚
唐丽萍
王建中
薛沛祥
缪国锋
陈庆磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 41 Research Institute
Original Assignee
CETC 41 Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CETC 41 Research Institute filed Critical CETC 41 Research Institute
Priority to CN201610696718.8A priority Critical patent/CN106301343B/en
Publication of CN106301343A publication Critical patent/CN106301343A/en
Application granted granted Critical
Publication of CN106301343B publication Critical patent/CN106301343B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements
    • H03K19/017509Interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Analogue/Digital Conversion (AREA)
  • Television Receiver Circuits (AREA)

Abstract

本发明公开了一种电平自定义多协议数字音频信号发生系统,包括上位机、FPGA、数字模拟转换器,所述上位机与FPGA连接,所述FPGA与数字模拟转换器连接;FPGA包括状态码存储器、波形生成模块、幅度调整模块、数据编码模块、时钟分频模块及协议输出模块。本发明的有益效果是搭建了可以实现多种数字音频协议标准的硬件电路,并可以对输出逻辑电平进行自定义,可以实现对被测试设备逻辑电平兼容性能的定量测试分析。

The invention discloses a level self-defining multi-protocol digital audio signal generation system, which includes a host computer, an FPGA, and a digital-to-analog converter. The host computer is connected to the FPGA, and the FPGA is connected to the digital-to-analog converter; the FPGA includes a state Code memory, waveform generation module, amplitude adjustment module, data encoding module, clock frequency division module and protocol output module. The beneficial effect of the invention is that a hardware circuit capable of realizing various digital audio protocol standards is built, and the output logic level can be customized, and quantitative testing and analysis of the logic level compatibility performance of the tested equipment can be realized.

Description

一种电平自定义多协议数字音频信号发生系统及方法A level custom multi-protocol digital audio signal generation system and method

技术领域technical field

本发明涉及音频分析领域,尤其是一种电平自定义多协议数字音频信号发生系统及方法。The invention relates to the field of audio analysis, in particular to a level-defining multi-protocol digital audio signal generation system and method.

背景技术Background technique

目前,数字音频领域拥有多种不同类型的数字音频接口,主流的接口标准包括消费类数字音频接口S/PDIF数字音频互联和专业类数字音频接口AES/EBU数字音频接口两个标准。目前的音频分析仪的数字音频发生和分析功能主要针对S/PDIF接口和AES/EBU接口两个标准的信号发生和分析。在测试过程中音频分析仪产生满足对应数字音频协议标准的数字信号输入到数字音频接收设备中,以检测数字音频接收设备解码性能。音频分析仪输出不同逻辑电平的数字信号来测试数字音频接收设备对电平的兼容能力。At present, there are many different types of digital audio interfaces in the digital audio field. The mainstream interface standards include two standards: consumer digital audio interface S/PDIF digital audio interconnection and professional digital audio interface AES/EBU digital audio interface. The digital audio generation and analysis function of the current audio analyzer is mainly aimed at the generation and analysis of the signals of the two standards of the S/PDIF interface and the AES/EBU interface. During the test, the audio analyzer generates digital signals that meet the corresponding digital audio protocol standards and inputs them into the digital audio receiving device to detect the decoding performance of the digital audio receiving device. The audio analyzer outputs digital signals of different logic levels to test the level compatibility of digital audio receiving equipment.

通用的音频分析仪采用专用的数字音频协议编码芯片产生数字音频信号,通用音频分析仪的原理框图如图1所示,工作原理如下:CPU将数字音频协议参数及数字音频数据写入专业数字音频编码芯片对应的寄存器中,启动信号输出功能。编码芯片输出的数字音频信号经电平选择电路,将逻辑电平产生电路产生的固定电平施加到数字信号上,实现不同逻辑电平不同数字音频协议的编码输出。The general audio analyzer uses a dedicated digital audio protocol encoding chip to generate digital audio signals. The functional block diagram of the general audio analyzer is shown in Figure 1. The working principle is as follows: the CPU writes the digital audio protocol parameters and digital audio data into the professional digital audio In the register corresponding to the coding chip, start the signal output function. The digital audio signal output by the encoding chip passes through the level selection circuit, and the fixed level generated by the logic level generation circuit is applied to the digital signal to realize the encoding output of different logic levels and different digital audio protocols.

通用音频分析仪数字音频信号发生方案电路复杂,需要设计专门的逻辑电平产生电路;数字音频标准单一,每种数字音频标准均需专门的编码芯片实现数字音频信号生成;灵活性差,仅能够输出+5V、+3.3V、+2.5V、+1.8V及+1.2V等几种典型逻辑电平,在测试接收设备逻辑电平兼容能力时仅能给出典型逻辑电平的定性指标,无法给出具体的逻辑电平兼容性的量化指标。The digital audio signal generation scheme of the general audio analyzer is complicated, and a special logic level generation circuit needs to be designed; the digital audio standard is single, and each digital audio standard requires a special encoding chip to realize the digital audio signal generation; the flexibility is poor, and it can only output Several typical logic levels such as +5V, +3.3V, +2.5V, +1.8V and +1.2V can only give qualitative indicators of typical logic levels when testing the logic level compatibility of receiving equipment, but cannot give Quantitative indicators of specific logic level compatibility.

发明内容Contents of the invention

本发明的目的是为克服上述现有技术的不足,提供一种电平自定义多协议数字音频信号发生系统及方法。The object of the present invention is to provide a system and method for generating a level-definable multi-protocol digital audio signal in order to overcome the above-mentioned deficiencies in the prior art.

为实现上述目的,本发明采用下述技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种电平自定义多协议数字音频信号发生系统,包括上位机、FPGA、数模转换器,所述上位机与FPGA连接,所述FPGA与数模转换器连接;A level self-defining multi-protocol digital audio signal generation system, comprising a host computer, an FPGA, and a digital-to-analog converter, the host computer is connected to the FPGA, and the FPGA is connected to the digital-to-analog converter;

所述FPGA包括状态码存储器、波形生成模块、幅度调整模块、数据编码模块、时钟分频模块及协议输出模块;The FPGA includes a state code memory, a waveform generation module, an amplitude adjustment module, a data encoding module, a clock frequency division module and a protocol output module;

所述状态码存储器,其与上位机输入连接,用于存储数字音频编码中的状态码;The state code memory, which is connected to the input of the host computer, is used to store the state code in the digital audio coding;

所述波形生成模块,用于生成波形数据;The waveform generation module is used to generate waveform data;

所述数据编码模块,用于将状态码存储器存储的状态码和波形生成模块生成波形数据进行协议编码;The data encoding module is used to perform protocol encoding on the status code stored in the status code memory and the waveform data generated by the waveform generation module;

所述时钟分频模块,用于产生协议输出模块所需的位时钟;The clock frequency division module is used to generate the bit clock required by the protocol output module;

所述幅度调整模块,用于对数据编码模块生成的数据进行幅度调整,存放在临时RAM存储器中进行存储;The amplitude adjustment module is used to adjust the amplitude of the data generated by the data encoding module and store it in a temporary RAM memory;

所述协议输出模块,其在时钟分频模块提供的位时钟的驱动下,依次将幅度调整后的数据传输至数模转换器。The protocol output module, driven by the bit clock provided by the clock frequency division module, sequentially transmits the amplitude-adjusted data to the digital-to-analog converter.

优选的,所述信号调理电路包括增益调整电路和单端差分切换电路;Preferably, the signal conditioning circuit includes a gain adjustment circuit and a single-ended differential switching circuit;

所述增益调整电路,用于对数模转换器输出的信号电平进行增益调整,使输出电平满足0~5V的范围;The gain adjustment circuit is used to adjust the gain of the signal level output by the digital-to-analog converter, so that the output level meets the range of 0-5V;

所述单端差分切换电路,用于切换输出音频信号的传输方式,满足不同音频协议标准的要求。The single-ended differential switching circuit is used to switch the transmission mode of the output audio signal, so as to meet the requirements of different audio protocol standards.

优选的,所述数模转换器采用高精度数模转换器。Preferably, the digital-to-analog converter is a high-precision digital-to-analog converter.

基于电平自定义多协议数字音频信号发生系统的方法,包括以下步骤:The method for customizing a multi-protocol digital audio signal generation system based on levels comprises the following steps:

步骤一,在上位机软件设置界面中选择数字音频信号的协议标准,上位机根据选定的协议标准将对应的数字音频协议编码程序代码通过FPGA动态加载接口电路;Step 1, select the protocol standard of the digital audio signal in the host computer software setting interface, and the host computer dynamically loads the interface circuit with the corresponding digital audio protocol encoding program code through the FPGA according to the selected protocol standard;

步骤二,上位机软件设置界面对数字音频协议标准中每个帧的每个通道状态码进行配置,并将配置信息发送至FPGA的状态码存储器中存放,其中,帧是带有通道状态码和数字音频波形数据的数据流,数字音频协议标准定义了一个数据流中帧的个数和结构、每个通道状态码在每个帧中的位置以及数字音频数据的长度和格式。Step 2, the upper computer software setting interface configures each channel status code of each frame in the digital audio protocol standard, and sends the configuration information to the status code memory of the FPGA for storage. The data stream of digital audio waveform data, the digital audio protocol standard defines the number and structure of frames in a data stream, the position of each channel status code in each frame, and the length and format of digital audio data.

步骤三,FPGA内部进行数字音频协议编码设置,从状态码存储器中依次读取每个帧的通道状态码,并和波形生成模块产生的波形数据进行组合编码,获取数字音频编码数据流;Step 3: The digital audio protocol encoding setting is performed inside the FPGA, and the channel status code of each frame is sequentially read from the status code memory, and combined with the waveform data generated by the waveform generation module to obtain the digital audio encoding data stream;

步骤四,FPGA根据上位机设定的逻辑电平,对数字音频编码数据流进行幅度调整并存储在临时RAM存储器中,在时钟分频电路输出的位时钟驱动下,输出至数字模拟转换器中;Step 4: According to the logic level set by the host computer, the FPGA adjusts the amplitude of the digital audio coded data stream and stores it in the temporary RAM memory, and outputs it to the digital-to-analog converter driven by the bit clock output by the clock frequency division circuit ;

步骤五,数字模拟转换器接收幅度调整后的数字音频数据流,并进行数模转换,输出单端或者差分数字音频信号波形,并输出至信号调理电路;Step 5, the digital-to-analog converter receives the amplitude-adjusted digital audio data stream, performs digital-to-analog conversion, and outputs a single-ended or differential digital audio signal waveform, and outputs it to the signal conditioning circuit;

步骤六,信号调理电路接收单端或者差分数字音频信号波形,并对单端或者差分数字音频信号波形进行整形滤波,输出符合数字音频信号协议标准的数字音频信号。Step 6: The signal conditioning circuit receives single-ended or differential digital audio signal waveforms, performs shaping and filtering on the single-ended or differential digital audio signal waveforms, and outputs digital audio signals conforming to digital audio signal protocol standards.

优选的,所述步骤二中,所述配置信息包括每一帧每个通道的每一位状态码。Preferably, in the second step, the configuration information includes each bit status code of each channel of each frame.

优选的,所述步骤二中,所述数字音频信号的协议标准包括AES/EBU或S/PDIF通用数字音频协议以及其他标准的数字音频协议。Preferably, in the second step, the protocol standard of the digital audio signal includes AES/EBU or S/PDIF general digital audio protocol and other standard digital audio protocols.

优选的,所述步骤四中,FPGA利用幅度校准算法对数字音频数据流进行幅度调整。Preferably, in the step four, the FPGA uses an amplitude calibration algorithm to adjust the amplitude of the digital audio data stream.

本发明的有益效果是:The beneficial effects of the present invention are:

1.本发明采用高精度数模转换器芯片,输出电压线性度好,精度高,可以实现0~+5V电压之间任意逻辑电平;1. The present invention adopts a high-precision digital-to-analog converter chip, which has good output voltage linearity and high precision, and can realize any logic level between 0-+5V voltage;

2.本发明可以实现0~+5V电压的连续输出,因此可以给出被测试设备对逻辑电平的兼容能力,能够测试得到逻辑高电平的最大值和最小值以及逻辑低电平的最大值和最小值等参数的量化指标,可以实现定量分析。2. The present invention can realize the continuous output of 0~+5V voltage, so it can provide the compatibility of the tested equipment to the logic level, and can test the maximum and minimum values of the logic high level and the maximum value of the logic low level. Quantitative indicators of parameters such as value and minimum value can realize quantitative analysis.

附图说明Description of drawings

图1是通用音频分析仪数字音频信号发生原理框图;Fig. 1 is the principle block diagram of digital audio signal generation of general audio analyzer;

图2是电平自定义多协议数字音频信号发生系统原理框图;Fig. 2 is a functional block diagram of the level self-defining multi-protocol digital audio signal generation system;

图3是FPGA内部电路框图。Figure 3 is a block diagram of the FPGA internal circuit.

具体实施方式Detailed ways

下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

如图2所示,一种电平自定义多协议数字音频信号发生系统,包括上位机、FPGA、数模转换器,所述上位机与FPGA连接,所述FPGA与数模转换器连接;As shown in Figure 2, a kind of level self-defining multi-protocol digital audio signal generation system comprises host computer, FPGA, digital-to-analog converter, and described host computer is connected with FPGA, and described FPGA is connected with digital-to-analog converter;

如图3所示,所述FPGA包括状态码存储器、波形生成模块、幅度调整模块、数据编码模块、时钟分频模块及协议输出模块;As shown in Figure 3, the FPGA includes a state code memory, a waveform generation module, an amplitude adjustment module, a data encoding module, a clock frequency division module and a protocol output module;

所述状态码存储器,其与上位机输入连接,用于存储数字音频编码中的状态码;The state code memory, which is connected to the input of the host computer, is used to store the state code in the digital audio coding;

所述波形生成模块,用于生成波形数据;The waveform generation module is used to generate waveform data;

所述数据编码模块,用于将状态码存储器存储的状态码和波形生成模块生成波形数据进行协议编码;The data encoding module is used to perform protocol encoding on the status code stored in the status code memory and the waveform data generated by the waveform generation module;

所述时钟分频模块,用于产生协议输出模块所需的位时钟;The clock frequency division module is used to generate the bit clock required by the protocol output module;

所述幅度调整模块,用于对数据编码模块生成的数据进行幅度调整,存放在临时RAM存储器中进行存储;The amplitude adjustment module is used to adjust the amplitude of the data generated by the data encoding module and store it in a temporary RAM memory;

所述协议输出模块,其在时钟分频模块提供的位时钟的驱动下,依次将幅度调整后的数据传输至数模转换器。The protocol output module, driven by the bit clock provided by the clock frequency division module, sequentially transmits the amplitude-adjusted data to the digital-to-analog converter.

优选的,所述信号调理电路包括增益调整电路和单端差分切换电路;Preferably, the signal conditioning circuit includes a gain adjustment circuit and a single-ended differential switching circuit;

所述增益调整电路,用于对数模转换器输出的信号电平进行增益调整,使输出电平满足0~5V的范围;The gain adjustment circuit is used to adjust the gain of the signal level output by the digital-to-analog converter, so that the output level meets the range of 0-5V;

所述单端差分切换电路,用于切换输出音频信号的传输方式,满足不同音频协议标准的要求。The single-ended differential switching circuit is used to switch the transmission mode of the output audio signal, so as to meet the requirements of different audio protocol standards.

优选的,所述数模转换器采用高精度数模转换器。Preferably, the digital-to-analog converter is a high-precision digital-to-analog converter.

基于电平自定义多协议数字音频信号发生系统的方法,包括以下步骤:The method for customizing a multi-protocol digital audio signal generation system based on levels comprises the following steps:

步骤一,在上位机软件设置界面中选择数字音频信号的协议标准,上位机根据选定的协议标准将对应的数字音频协议编码程序代码通过FPGA动态加载接口电路;Step 1, select the protocol standard of the digital audio signal in the host computer software setting interface, and the host computer dynamically loads the interface circuit with the corresponding digital audio protocol encoding program code through the FPGA according to the selected protocol standard;

步骤二,上位机软件设置界面对数字音频协议标准设置配置信息,并将配置信息发送至FPGA的状态码存储器中存放;Step 2, the upper computer software setting interface sets the configuration information for the digital audio protocol standard, and sends the configuration information to the status code memory of the FPGA for storage;

步骤三,FPGA内部进行数字音频协议编码设置,从状态码存储器中依次读取每个帧的通道状态码,并和波形生成模块产生的波形数据进行组合编码,获取数字音频编码数据流;Step 3: The digital audio protocol encoding setting is performed inside the FPGA, and the channel status code of each frame is sequentially read from the status code memory, and combined with the waveform data generated by the waveform generation module to obtain the digital audio encoding data stream;

步骤四,FPGA根据上位机设定的逻辑电平,对数字音频编码数据流进行幅度调整并存储在临时RAM存储器中,在时钟分频电路输出的位时钟驱动下,输出至数字模拟转换器中;Step 4: According to the logic level set by the host computer, the FPGA adjusts the amplitude of the digital audio coded data stream and stores it in the temporary RAM memory, and outputs it to the digital-to-analog converter driven by the bit clock output by the clock frequency division circuit ;

步骤五,数字模拟转换器接收幅度调整后的数字音频数据流,并进行数模转换,输出单端或者差分数字音频信号波形,并输出至信号调理电路;Step 5, the digital-to-analog converter receives the amplitude-adjusted digital audio data stream, performs digital-to-analog conversion, and outputs a single-ended or differential digital audio signal waveform, and outputs it to the signal conditioning circuit;

步骤六,信号调理电路接收单端或者差分数字音频信号波形,并对单端或者差分数字音频信号波形进行整形滤波,输出符合数字音频信号协议标准的数字音频信号。Step 6: The signal conditioning circuit receives single-ended or differential digital audio signal waveforms, performs shaping and filtering on the single-ended or differential digital audio signal waveforms, and outputs digital audio signals conforming to digital audio signal protocol standards.

优选的,所述步骤二中,所述配置信息包括每一帧每个通道的每一位状态码。Preferably, in the second step, the configuration information includes each bit status code of each channel of each frame.

优选的,所述步骤二中,所述数字音频信号的协议标准包括AES/EBU或S/PDIF通用数字音频协议以及其他标准的数字音频协议。Preferably, in the second step, the protocol standard of the digital audio signal includes AES/EBU or S/PDIF general digital audio protocol and other standard digital audio protocols.

优选的,所述步骤四中,FPGA利用幅度校准算法对数字音频数据流进行幅度调整。Preferably, in the step four, the FPGA uses an amplitude calibration algorithm to adjust the amplitude of the digital audio data stream.

所述幅度校准算法具体为:首先根据设定的输出逻辑电平和增益调整电路对输出信号进行分段标定,然后比较设置电压与万用表测量的实际输出电压之间的差值,计算出幅度调整系数和偏置值,将其存储在板载EEPROM中;进行幅度调整时需根据设定的输出逻辑电平调用EEPROM中存储的调整系数和偏置量,即可输出准确的逻辑电平。The amplitude calibration algorithm is specifically as follows: first, the output signal is calibrated in sections according to the set output logic level and the gain adjustment circuit, and then the difference between the set voltage and the actual output voltage measured by the multimeter is compared to calculate the amplitude adjustment coefficient and offset value, which are stored in the onboard EEPROM; when adjusting the amplitude, the adjustment coefficient and offset value stored in the EEPROM must be called according to the set output logic level, and the accurate logic level can be output.

本发明采用高精度数模转换器芯片,输出电压线性度好,精度高,可以实现0~+5V电压之间任意逻辑电平。The invention adopts a high-precision digital-to-analog converter chip, has good output voltage linearity and high precision, and can realize any logic level between 0-+5V voltage.

通用音频分析仪数字音频发生方案仅采用+5V、+3.3V、+2.5V等几种典型逻辑电平输出信号。在测试过程中,用户仅能够在这几种逻辑电平下判断被测试设备是否兼容,能够识别该逻辑电平,则判断为兼容,否则判断为不兼容,仅可以定性分析。The general audio analyzer digital audio generation scheme only uses several typical logic level output signals such as +5V, +3.3V, +2.5V. During the test, the user can only judge whether the device under test is compatible under these several logic levels. If the logic level can be identified, it will be judged as compatible, otherwise it will be judged as incompatible, and only qualitative analysis can be performed.

本发明可以实现0~+5V电压的连续输出,因此可以给出被测试设备对逻辑电平的兼容能力,能够测试得到逻辑高电平的最大值和最小值以及逻辑低电平的最大值和最小值等参数的量化指标,可以实现定量分析。The invention can realize the continuous output of 0-+5V voltage, so it can provide the compatibility of the tested equipment to the logic level, and can test the maximum and minimum values of the logic high level and the maximum and minimum values of the logic low level. Quantitative indicators of parameters such as the minimum value can realize quantitative analysis.

上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific implementation of the present invention has been described above in conjunction with the accompanying drawings, it does not limit the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, those skilled in the art do not need to pay creative work Various modifications or variations that can be made are still within the protection scope of the present invention.

Claims (6)

1.一种电平自定义多协议数字音频信号发生系统,其特征是,包括上位机、FPGA、数字模拟转换器,所述上位机与FPGA连接,所述FPGA与数字模拟转换器连接;1. A level self-defining multi-protocol digital audio signal generation system is characterized in that, comprising host computer, FPGA, digital-analog converter, described host computer is connected with FPGA, and described FPGA is connected with digital-analog converter; 所述FPGA包括状态码存储器、波形生成模块、幅度调整模块、数据编码模块、时钟分频模块及协议输出模块;The FPGA includes a state code memory, a waveform generation module, an amplitude adjustment module, a data encoding module, a clock frequency division module and a protocol output module; 所述状态码存储器,其与上位机输入连接,用于存储数字音频编码中的状态码;The state code memory, which is connected to the input of the host computer, is used to store the state code in the digital audio coding; 所述波形生成模块,用于生成波形数据;The waveform generation module is used to generate waveform data; 所述数据编码模块,用于将状态码存储器存储的状态码和波形生成模块生成波形数据进行协议编码;The data encoding module is used to perform protocol encoding on the status code stored in the status code memory and the waveform data generated by the waveform generation module; 所述时钟分频模块,用于产生协议输出模块所需的位时钟;The clock frequency division module is used to generate the bit clock required by the protocol output module; 所述幅度调整模块,用于对数据编码模块生成的数据进行幅度调整,存放在临时RAM存储器中进行存储;The amplitude adjustment module is used to adjust the amplitude of the data generated by the data encoding module and store it in a temporary RAM memory; 所述协议输出模块,其在时钟分频模块提供的位时钟的驱动下,依次将幅度调整后的数据传输至数字模拟转换器;The protocol output module, driven by the bit clock provided by the clock frequency division module, sequentially transmits the data after amplitude adjustment to the digital-to-analog converter; 一种电平自定义多协议数字音频信号发生系统还包括信号调理电路;所述信号调理电路包括增益调整电路和单端差分切换电路;A level self-defining multi-protocol digital audio signal generation system also includes a signal conditioning circuit; the signal conditioning circuit includes a gain adjustment circuit and a single-ended differential switching circuit; 所述增益调整电路,用于对所述数字模拟转换器输出的信号电平进行增益调整;The gain adjustment circuit is used to adjust the gain of the signal level output by the digital-to-analog converter; 所述单端差分切换电路,用于切换输出音频信号的传输方式。The single-ended differential switching circuit is used to switch the transmission mode of the output audio signal. 2.如权利要求1所述的电平自定义多协议数字音频信号发生系统,其特征是,所述数字模拟转换器采用高精度数字模拟转换器。2. The level self-defining multi-protocol digital audio signal generation system as claimed in claim 1, wherein the digital-to-analog converter adopts a high-precision digital-to-analog converter. 3.基于权利要求1至2任一所述系统的电平自定义多协议数字音频信号发生方法,其特征是,包括以下步骤:3. The level self-defining multi-protocol digital audio signal generation method based on the arbitrary described system of claim 1 to 2, is characterized in that, comprises the following steps: 步骤一,在上位机软件设置界面中选择数字音频信号的协议标准,上位机根据选定的协议标准将对应的数字音频协议编码程序代码通过FPGA动态加载接口电路;Step 1, select the protocol standard of the digital audio signal in the host computer software setting interface, and the host computer dynamically loads the interface circuit with the corresponding digital audio protocol encoding program code through the FPGA according to the selected protocol standard; 步骤二,上位机软件设置界面对数字音频协议标准设置配置信息,并将配置信息发送至FPGA的状态码存储器中存放;Step 2, the upper computer software setting interface sets the configuration information for the digital audio protocol standard, and sends the configuration information to the status code memory of the FPGA for storage; 步骤三,FPGA内部进行数字音频协议编码设置,从状态码存储器中依次读取每个帧的通道状态码,并和波形生成模块产生的波形数据进行组合编码,获取数字音频编码数据流;Step 3: The digital audio protocol encoding setting is performed inside the FPGA, and the channel status code of each frame is sequentially read from the status code memory, and combined with the waveform data generated by the waveform generation module to obtain the digital audio encoding data stream; 步骤四,FPGA根据上位机设定的逻辑电平,对数字音频编码数据流进行幅度调整并存储在临时RAM存储器中,在时钟分频电路输出的位时钟驱动下,输出至数字模拟转换器中;Step 4: According to the logic level set by the host computer, the FPGA adjusts the amplitude of the digital audio coded data stream and stores it in the temporary RAM memory, and outputs it to the digital-to-analog converter driven by the bit clock output by the clock frequency division circuit ; 步骤五,数字模拟转换器接收幅度调整后的数字音频数据流,并进行数模转换,输出单端或者差分数字音频信号波形,并输出至信号调理电路;Step 5, the digital-to-analog converter receives the amplitude-adjusted digital audio data stream, performs digital-to-analog conversion, and outputs a single-ended or differential digital audio signal waveform, and outputs it to the signal conditioning circuit; 步骤六,信号调理电路接收单端或者差分数字音频信号波形,并对单端或者差分数字音频信号波形进行整形滤波,输出符合数字音频信号协议标准的数字音频信号。Step 6: The signal conditioning circuit receives single-ended or differential digital audio signal waveforms, performs shaping and filtering on the single-ended or differential digital audio signal waveforms, and outputs digital audio signals conforming to digital audio signal protocol standards. 4.如权利要求3所述的电平自定义多协议数字音频信号发生方法,其特征是,所述步骤二中,所述配置信息包括每一帧每个通道的每一位状态码。4. The level self-defining multi-protocol digital audio signal generation method as claimed in claim 3, characterized in that, in said step 2, said configuration information includes each bit status code of each channel of each frame. 5.如权利要求3所述的电平自定义多协议数字音频信号发生方法,其特征是,所述步骤二中,所述数字音频信号的协议标准包括AES/EBU或S/PDIF通用数字音频协议。5. level self-defining multi-protocol digital audio signal generation method as claimed in claim 3, is characterized in that, in described step 2, the protocol standard of described digital audio signal comprises AES/EBU or S/PDIF general digital audio frequency protocol. 6.如权利要求3所述的电平自定义多协议数字音频信号发生方法,其特征是,所述步骤四中,FPGA利用幅度校准算法对数字音频数据流进行幅度调整。6. the self-defining multi-protocol digital audio signal generation method of level as claimed in claim 3 is characterized in that, in described step 4, FPGA utilizes amplitude calibration algorithm to carry out amplitude adjustment to digital audio data flow.
CN201610696718.8A 2016-08-17 2016-08-17 A kind of customized multi-protocols digital audio and video signals generating system of level and method Expired - Fee Related CN106301343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610696718.8A CN106301343B (en) 2016-08-17 2016-08-17 A kind of customized multi-protocols digital audio and video signals generating system of level and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610696718.8A CN106301343B (en) 2016-08-17 2016-08-17 A kind of customized multi-protocols digital audio and video signals generating system of level and method

Publications (2)

Publication Number Publication Date
CN106301343A CN106301343A (en) 2017-01-04
CN106301343B true CN106301343B (en) 2018-11-20

Family

ID=57662353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610696718.8A Expired - Fee Related CN106301343B (en) 2016-08-17 2016-08-17 A kind of customized multi-protocols digital audio and video signals generating system of level and method

Country Status (1)

Country Link
CN (1) CN106301343B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104163B (en) * 2018-09-30 2020-10-27 深圳市始足知识产权服务有限公司 Bridge project management system based on Internet of things

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592707A (en) * 2009-07-08 2009-12-02 天津渤海易安泰电子半导体测试有限公司 Analog and digital mixed signal chip test card
CN105116183A (en) * 2015-08-24 2015-12-02 中国科学院微电子研究所 Multi-Channel Waveform Signal Generator
CN105259442A (en) * 2015-10-30 2016-01-20 江苏省电力公司电力科学研究院 UPFC control protection system testing device and method with isochronous transmission function on the basis of multiple protocols

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005127765A (en) * 2003-10-22 2005-05-19 Toshiba Corp Semiconductor test module and semiconductor device testing method.

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101592707A (en) * 2009-07-08 2009-12-02 天津渤海易安泰电子半导体测试有限公司 Analog and digital mixed signal chip test card
CN105116183A (en) * 2015-08-24 2015-12-02 中国科学院微电子研究所 Multi-Channel Waveform Signal Generator
CN105259442A (en) * 2015-10-30 2016-01-20 江苏省电力公司电力科学研究院 UPFC control protection system testing device and method with isochronous transmission function on the basis of multiple protocols

Also Published As

Publication number Publication date
CN106301343A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN101126771B (en) Intelligent triggering method and system of digital storage oscilloscope
CN109298657B (en) A method of time-varying signal power detection and automatic gain control based on FPGA
CN104316737A (en) FPGA-based offset adjustable waveform generation circuit and FPGA-based offset adjustable waveform generation method
CN107145468A (en) Signal generating and reading device and control method
CN104034928A (en) Multi-path signal source based on PCI and FPGA
JP2014236225A (en) Semiconductor device and method of operating semiconductor device
CN103728553A (en) Method for verifying electric energy measuring chip
CN102262172B (en) Power monitoring method and device
WO2017113920A1 (en) Circuit and method for improving precision of analog-to-digital conversion in single-chip microcomputer
CN108318850A (en) A kind of more acquisition channel testers of electronic mutual inductor and its method of calibration
CN100381955C (en) System and method for calibrating analog signal measuring apparatus automatically
CN106301343B (en) A kind of customized multi-protocols digital audio and video signals generating system of level and method
CN103018514A (en) Virtual oscilloscope device based on sound card
CN103901243A (en) High-trigger-accuracy oscilloscope
CN106483486B (en) A kind of continuous wave power probe power calibration system and method
CN204832341U (en) Portable sweep generator of low -cost wide band
CN207198217U (en) A kind of multifunctional virtual oscillograph based on expansible platform
CN107273322B (en) Parallel data output method and device
CN105203986A (en) Digital power source tracing method and system
CN113285719A (en) Audio digital-to-analog conversion circuit
CN104835500B (en) Method and device for acquiring audio information
US7233875B2 (en) Test set for testing a device and methods for use therewith
CN202978893U (en) Frequency dividing circuit of I2S interface clock circuit
CN214375920U (en) High-speed data acquisition system based on FPGA
CN104980130A (en) FPGA-based OSERDES2 square wave rise time changing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181120