CN101093624B - Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform - Google Patents
Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform Download PDFInfo
- Publication number
- CN101093624B CN101093624B CN2007100229646A CN200710022964A CN101093624B CN 101093624 B CN101093624 B CN 101093624B CN 2007100229646 A CN2007100229646 A CN 2007100229646A CN 200710022964 A CN200710022964 A CN 200710022964A CN 101093624 B CN101093624 B CN 101093624B
- Authority
- CN
- China
- Prior art keywords
- analog
- digital
- chip
- conversion
- signal
- 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
Links
Images
Landscapes
- Analogue/Digital Conversion (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
基于实验平台实现多种模数/数模转换的方法,用一块高精度AD芯片对输入的模拟信号实现理想抽样,再用一块FPGA芯片或CPLD芯片实现信号的量化和编码,完成模数转换,数模转换为模数转换对应的逆过程,依次对输入的数字信号译码,逆量化,最后恢复为模拟信号。本发明通过高精度AD芯片和大规模可编程器件功能上的新结合,可以实现已知的所有模数/数模转换方式,并可对抽样、量化和编码三个过程分别独立进行编程,通过示波器和频谱仪观察实验效果,具有优异的可编程性和可观察性,另外,本发明完全的开放性使其还可用于新的模数/数模转换方式的开发研究。
Based on the experimental platform to achieve a variety of analog-to-digital/digital-to-analog conversion methods, a high-precision AD chip is used to ideally sample the input analog signal, and then an FPGA chip or CPLD chip is used to quantify and encode the signal to complete the analog-to-digital conversion. The digital-to-analog conversion is the inverse process corresponding to the analog-to-digital conversion, which sequentially decodes the input digital signal, dequantizes it, and finally restores it to an analog signal. The present invention can realize all known analog-to-digital/digital-to-analog conversion methods through the new combination of high-precision AD chips and large-scale programmable devices, and can independently program the three processes of sampling, quantization and encoding, through The oscilloscope and spectrum analyzer have excellent programmability and observability for observing the experimental effect. In addition, the complete openness of the present invention makes it also applicable to the development and research of new analog-to-digital/digital-to-analog conversion methods.
Description
技术领域technical field
本发明属于通信电子技术领域,涉及模拟信号和数字信号的转换,具体涉及一种基于实验平台实现多种模数/数模转换的方法。The invention belongs to the technical field of communication electronics and relates to the conversion of analog signals and digital signals, in particular to a method for realizing multiple analog-to-digital/digital-to-analog conversions based on an experimental platform.
背景技术Background technique
数字通信系统因具有抗干扰能力强、差错可控、易于信号处理等许多突出的优点而日渐成为通信的发展方向和主流,但自然界的许多信息都是模拟信号,例如话音、图像等,因此模数/数模转换显得尤为重要。所谓模数变换,就是将模拟信号转化成数字信号,典型的方法分三个步骤进行:抽样,对模拟信号在时域上进行的操作,完成时间上离散化;量化,对模拟信号的抽样值进行量化,使幅度变成有限种取值;编码,用一组二进制数字代码来代替有限种的取值。而数模变换是模数变换的逆过程,它对接收到的数字信号进行译码和低通滤波等处理,恢复出原模拟信号。Digital communication system has gradually become the development direction and mainstream of communication due to its outstanding advantages such as strong anti-interference ability, error controllability, and easy signal processing. However, many information in nature are analog signals, such as voice, image, etc., so analog Digital/digital-to-analog conversion is particularly important. The so-called analog-to-digital conversion is to convert an analog signal into a digital signal. The typical method is divided into three steps: sampling, the operation of the analog signal in the time domain, and completing the time discretization; quantization, the sampling value of the analog signal Quantization, so that the amplitude becomes a limited number of values; encoding, using a set of binary codes to replace the limited number of values. The digital-to-analog conversion is the inverse process of the analog-to-digital conversion. It performs decoding and low-pass filtering on the received digital signal to restore the original analog signal.
随着通信技术的快速发展,对现代通信原理实验系统的总体要求是:1、多功能性,即在同一个实验系统、平台或装置上能够进行多种不同层次和不同方式或方法的通信原理实验;2、可重现性和可创新性,即通信原理实验全过程中,实验者在系统级和模块级层次上,不仅可以自行选择设置实验系统上已有的通信方式或方法,重现前人的成果,验证相关原理,也可在实验系统上自行设计,开创新的通信功能;3、具有与通信理论、原理完全相对应的可演示性和可观察性功能,比如模拟信号数字化的典型方式之一脉冲编码调制。其数字化过程中三个步骤——抽样、量化、编码,都应该可以通过实验系统观察到。With the rapid development of communication technology, the overall requirements for the modern communication principle experiment system are: 1. Multi-functionality, that is, a variety of communication principles at different levels and in different ways or methods can be carried out on the same experimental system, platform or device Experiment; 2. Reproducibility and innovation, that is, during the whole process of the communication principle experiment, the experimenter can not only choose to set the existing communication methods or methods on the experimental system at the system level and module level, but also reproduce The results of predecessors can verify relevant principles, and can also be designed on the experimental system to create new communication functions; 3. Demonstration and observability functions that completely correspond to communication theories and principles, such as analog signal digitization One of the typical ways is pulse code modulation. The three steps in the digitization process—sampling, quantization, and encoding—should be observable through experimental systems.
图1所示为通信原理实验系统功能方框图,其各组成模块子系统,除模数/数模变换部分(图中为信源编码器/译码器)外,都相对容易研制成满足上述要求的各实验子系统,但是最基础的部分——模数/数模转换模块到目前为止却还未能做到满足上述要求。以现有投入使用的通信原理教学实验系统为例,如合众达公司的SEED-DTK_FPD实验箱,用TI推出的一款高性能的立体声音频Codec芯片TLV320AIC23B进行实验,但是TLV320AIC23B的模数转换(ADCs)和数模转换(DACs)部件高度集中在芯片内部,用户只能对采样率、采样长度和采样位数进行一些有限的选择,无法观察到模拟信号数字化过程各个环节的波形,如因采样率改变产生的不同结果以及不同量化方式产生的精确度不同的量化噪声等,而且用户不能完全参与模拟信号数字化过程中每一步骤的自行设计。再如捷辉公司的JH5001A型通信原理实验箱,只限于语音信号,以PCM为例,该实验系统仅能验证抽样定理和PCM编译码原理,对于如何依据信号的统计特性不同选取最优的量化方法,以及比较不同量化方法所产生的不同量化信噪比和观察PCM的抽样、量化、编码各个阶段的波形等无法进行实验,并且不能自行设计新的模数/数模转换方法进行实验验证。此外,申请号为200520022910.6的开放式通信原理实验平台,其开放性仅限于调制解调、纠错编译码部分,而模数、数模变换子系统仍简单采用普通的模数、数模集成芯片实现,故模数、数模变换方法是相对固定的,而且其平台结构复杂庞大,转换过程中的每一个步骤不易分割,不能自由控制和更改相应的参数进行实验,从而无法对模数、数模变换系统的每一步骤进行跟踪观察或设计,降低了实验系统的实验效果。Figure 1 shows the functional block diagram of the communication principle experiment system. Its component module subsystems, except for the analog-to-digital/digital-to-analog conversion part (the source encoder/decoder in the figure), are relatively easy to develop to meet the above requirements The various experimental subsystems, but the most basic part - the analog-to-digital/digital-to-analog conversion module has not been able to meet the above requirements so far. Take the existing communication principle teaching experiment system put into use as an example, such as the SEED-DTK_FPD experiment box of Hezhongda Company, a high-performance stereo audio Codec chip TLV320AIC23B launched by TI is used for experiments, but the analog-to-digital conversion of TLV320AIC23B ( ADCs) and digital-to-analog conversion (DACs) components are highly concentrated inside the chip, the user can only make some limited choices on the sampling rate, sampling length and number of sampling bits, and cannot observe the waveforms of each link in the digitization process of the analog signal, such as due to sampling Different results from rate changes and quantization noises with different accuracies from different quantization methods, etc., and users cannot fully participate in the self-design of each step in the process of digitizing analog signals. Another example is the JH5001A communication principle experiment box of Jiehui Company, which is only limited to voice signals. Taking PCM as an example, this experimental system can only verify the sampling theorem and the principle of PCM coding and decoding. How to choose the optimal quantization according to the different statistical characteristics of the signal method, as well as comparing different quantization signal-to-noise ratios produced by different quantization methods and observing the waveforms of each stage of sampling, quantization, and encoding of PCM, etc. cannot be tested, and a new analog-to-digital/digital-to-analog conversion method cannot be designed for experimental verification. In addition, the openness of the open communication principle experiment platform with application number 200520022910.6 is limited to modulation and demodulation, error correction, coding and decoding, while the analog-to-digital and digital-to-analog conversion subsystems still simply use common analog-to-digital and digital-to-analog integrated chips Therefore, the modulus and digital-to-analog conversion methods are relatively fixed, and the platform structure is complex and huge, and each step in the conversion process is not easy to separate, and the corresponding parameters cannot be freely controlled and changed for experiments, so it is impossible to conduct experiments on the modulus and digital Each step of the analog conversion system is tracked and observed or designed, which reduces the experimental effect of the experimental system.
现有的通信原理实验系统的模数/数模转换子系统之所以不能满足上述通信实验教学对实验系统的要求,是因其模数/数模转换部分均由模数/数模集成芯片简单构成实现,而现有的模数/数模变换芯片如MAX132,MAX1400,虽然能分别实现从模拟信号到数字信号和从数字信号到模拟信号的转变,但只能固定的实现一种模数/数模变换方法,如PCM或DM,而不能将两种或两种以上模数变换方法在一块芯片上实现,并且不能根据信号的信息特征选择不同的量化方法,或灵活地选择不同的编码方式,其所构成的通信原理实验系统的模数/数模变换子系统的实验功能演示性不完整,设计自由度小,实验效果欠佳。The reason why the analog-to-digital/digital-to-analog conversion subsystem of the existing communication principle experiment system cannot meet the requirements of the above-mentioned communication experiment teaching for the experimental system is that the analog-to-digital/digital-to-analog conversion part is simple by the analog-to-digital/digital-to-analog integrated chip However, existing analog-to-digital/digital-to-analog conversion chips, such as MAX132 and MAX1400, can only achieve a fixed analog-to-digital/ Digital-to-analog conversion methods, such as PCM or DM, cannot implement two or more analog-to-digital conversion methods on one chip, and cannot choose different quantization methods according to the information characteristics of the signal, or choose different encoding methods flexibly , the experimental function demonstration of the analog-to-digital/digital-to-analog conversion subsystem of the communication principle experimental system constituted by it is incomplete, the degree of freedom in design is small, and the experimental effect is not good.
发明内容Contents of the invention
本发明要解决的技术问题是:现有模数/数模实验系统开放性不足,使用自由度小,演示性不完整。提供一种基于实验平台实现多种模数/数模转换的方法,使用器件少,能在同一系统中实现多种模数/数模转换方式,可自由选择采样率、量化算法和编码方式,并可通过示波器、频谱分析仪观察转化过程。The technical problem to be solved by the present invention is: the openness of the existing modulus/digital-analog experiment system is insufficient, the degree of freedom of use is small, and the demonstration is incomplete. Provide a method based on the experimental platform to realize multiple analog-to-digital/digital-to-analog conversions. It uses fewer devices and can realize multiple analog-to-digital/digital-to-analog conversion methods in the same system. The sampling rate, quantization algorithm and encoding method can be freely selected. And the conversion process can be observed through an oscilloscope and a spectrum analyzer.
本发明的技术方案是:基于实验平台实现多种模数/数模转换的方法,包括模数转换模块和数模转换模块,模数转换模块先用一块高精度AD芯片对输入的模拟信号实现理想抽样,再用一块FPGA芯片或CPLD芯片实现信号的量化和编码,完成模数转换,其中,改变高精度AD芯片的时钟信号得到不同的抽样速率,对FPGA芯片或CPLD芯片编程实现不同的量化和编码方法,由此可达成多种模式的模数转换,数模转换为模数转换对应的逆过程,依次对输入的数字信号译码,逆量化,最后恢复为模拟信号,模数转换模块和数模转换模块所有芯片使用统一的时钟信号。The technical scheme of the present invention is: realize the method for multiple analog-to-digital/digital-to-analog conversions based on the experimental platform, including an analog-to-digital conversion module and a digital-to-analog conversion module, and the analog-to-digital conversion module first uses a high-precision AD chip to realize the input analog signal Ideal sampling, and then use an FPGA chip or CPLD chip to realize the quantization and coding of the signal, and complete the analog-to-digital conversion. Among them, changing the clock signal of the high-precision AD chip to obtain different sampling rates, and programming the FPGA chip or CPLD chip to achieve different quantization And encoding method, thus can achieve a variety of modes of analog-to-digital conversion, digital-to-analog conversion to the inverse process corresponding to analog-to-digital conversion, sequentially decode the input digital signal, inverse quantize, and finally restore it to an analog signal, the analog-to-digital conversion module All chips of the digital-to-analog conversion module use a unified clock signal.
本发明模拟信号进行模数转换前用滤波器滤掉噪声,数摸转换后低通滤波滤出原模拟信号,由单片机或计算机编程下载到FPGA芯片或CPLD芯片,单片机或计算机还提供并控制所有芯片的时钟信号。抽样、量化、译码、逆量化后的信号分别输入一数模转化芯片,如图2和图3中的测试点1,测试点2,测试点3和测试点4,用示波器或频谱分析仪观察芯片输出的波形或频谱。The analog signal of the present invention filters out the noise with a filter before the analog-to-digital conversion, after the digital-to-analog conversion, the low-pass filter filters out the original analog signal, and downloads it to the FPGA chip or CPLD chip by the single-chip microcomputer or computer programming, and the single-chip microcomputer or computer also provides and controls all Chip clock signal. The signals after sampling, quantization, decoding, and inverse quantization are respectively input into a digital-to-analog conversion chip, such as
本发明通过高精度AD转换器实现理想抽样,为之后FPGA/CPLD芯片实现各种量化、编码方法提供了基础。本发明原理如图4所示,模拟信号,常见的包括单频正弦波信号、语音信号和图像信号等,首先通过模拟滤波器,滤掉多余的噪声,继而进入模数转换模块,通过编程用单片机或计算机控制时钟信号输入端,改变采样速率;用单片机或计算机下载编写的程序或系统提供的样本程序到FPGA/CPLD芯片中,实现不同的数字化方式或量化方法以及不同的编码方法;用双踪示波器和/或频谱分析仪观察抽样或量化后信号的时域特性和频域特性。数模变换为对应模数变换的逆过程,根据模数转换使用的量化、译码方式,用FPGA/CPLD芯片相应的译码、逆量化,再由高精度DA芯片恢复出模拟信号,并用滤波器滤去信号传输过程中受到的噪声,译码、逆量化后信号的时域特性和频域特性也可用双踪示波器和/或频谱分析仪观察。The invention realizes ideal sampling through a high-precision AD converter, and provides a basis for realizing various quantization and encoding methods by FPGA/CPLD chips. The principle of the present invention is shown in Figure 4. Analog signals, commonly including single-frequency sine wave signals, voice signals, and image signals, first pass through analog filters to filter out redundant noise, and then enter the analog-to-digital conversion module. Single-chip microcomputer or computer controls the clock signal input terminal to change the sampling rate; use single-chip microcomputer or computer to download the program written or the sample program provided by the system to the FPGA/CPLD chip to realize different digitization methods or quantization methods and different encoding methods; Use a trace oscilloscope and/or a spectrum analyzer to observe the time-domain and frequency-domain characteristics of the sampled or quantized signal. Digital-to-analog conversion is the inverse process of corresponding analog-to-digital conversion. According to the quantization and decoding methods used in analog-to-digital conversion, the FPGA/CPLD chip is used for corresponding decoding and inverse quantization, and then the high-precision DA chip restores the analog signal, and uses filtering The filter filters out the noise received during signal transmission, and the time-domain and frequency-domain characteristics of the decoded and inverse-quantized signal can also be observed with a dual-trace oscilloscope and/or a spectrum analyzer.
为使整个系统使用方便,还设计一个友好的人机界面,整个实验系统由单片机控制,并通过计算机以人机界面的方式进行演示、设计、编程或参与性的实验。In order to make the whole system easy to use, a friendly man-machine interface is also designed. The whole experimental system is controlled by a single-chip microcomputer, and the demonstration, design, programming or participatory experiments are performed through the computer in the form of a man-machine interface.
本发明的有益效果是:通过高精度AD芯片和大规模可编程器件功能上的新结合,可以实现已知的所有模数/数模转换方式,其次,本发明可以对抽样、量化和编码三个过程分别独立进行编程,用户可以根据需要自由更改采样率、量化精度和编码方式,并可以通过双踪示波器和频谱仪观察实验效果,提供了一个便于深入观察学习、灵活使用的教学实验系统,具有优异的可编程性和可观察性,另外,本发明完全的开放性使其还可用于新的模数/数模转换方式的开发研究。The beneficial effects of the present invention are: through the new combination of high-precision AD chip and large-scale programmable device function, all known analog-to-digital/digital-to-analog conversion modes can be realized; The two processes are independently programmed, and the user can freely change the sampling rate, quantization accuracy and encoding method according to the needs, and can observe the experimental effect through the dual-trace oscilloscope and spectrum analyzer, providing a teaching experiment system that is convenient for in-depth observation and learning, and flexible use. It has excellent programmability and observability. In addition, the complete openness of the present invention makes it also applicable to the development and research of new analog-to-digital/digital-to-analog conversion methods.
附图说明Description of drawings
图1为通信原理实验系统功能方框图。Figure 1 is a functional block diagram of the communication principle experiment system.
图2为本发明模数转换模块示意图。Fig. 2 is a schematic diagram of the analog-to-digital conversion module of the present invention.
图3为本发明数模转换模块示意图。Fig. 3 is a schematic diagram of the digital-to-analog conversion module of the present invention.
图4为本发明原理示意图。Fig. 4 is a schematic diagram of the principle of the present invention.
图5为本发明一个具体实施硬件示意图。FIG. 5 is a schematic diagram of hardware for a specific implementation of the present invention.
图6为本发明实施例PCM模数转换中抽样后信号及两种不同的量化结果。FIG. 6 shows the sampled signal and two different quantization results in the PCM analog-to-digital conversion according to the embodiment of the present invention.
图7为DPCM系统原理框图。Figure 7 is a block diagram of the DPCM system.
图8为本发明实施例DPCM模数转换中信号抽样后波形图。FIG. 8 is a waveform diagram of signals after sampling in DPCM analog-to-digital conversion according to an embodiment of the present invention.
图9为本发明实施例DPCM模数转换中信号量化后波形图。FIG. 9 is a waveform diagram of signals after quantization in DPCM analog-to-digital conversion according to an embodiment of the present invention.
图10为本发明实施例DPCM数模转换后恢复出的原信号。Fig. 10 is the original signal recovered after DPCM digital-to-analog conversion according to the embodiment of the present invention.
图11为DM系统原理框图。Figure 11 is a functional block diagram of the DM system.
图12为本发明实施例DM模数转换中信号抽样后波形图。FIG. 12 is a waveform diagram of a signal sampled in DM analog-to-digital conversion according to an embodiment of the present invention.
图13为本发明实施例DM模数转换中信号量化后波形图。FIG. 13 is a waveform diagram of signals after quantization in DM analog-to-digital conversion according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明可实现多种模数/数模转换方式,其中,可以是现有成熟的模数/数模转换方式,也可以作为实现或测试新的模数/数模转换方法的实验平台。图5为本发明的一个具体实施硬件示意图。其中高精度AD转换芯片选择ADI公司AD7678,其转换精度为18位,高精度DA芯片选择同系列的AD760,其转换精度为18位;FPGA芯片选择Altera公司的EP2C8;普通DA芯片选择典型的DAC 0832;总控制器选择80C51系列单片机,观测仪器为TDS2012双踪示波器、E4438C频谱仪。下面结合图5所示的实验系统,以脉冲编码调制(PCM),差分脉冲编码调制(DPCM)和增量调制(DM)转换方法为例,分别举例说明该系统的功能和效果。The invention can realize various analog-to-digital/digital-analog conversion methods, among which, it can be an existing mature analog-to-digital/digital-to-analog conversion method, and can also be used as an experimental platform for realizing or testing a new analog-to-digital/digital-to-analog conversion method. FIG. 5 is a schematic diagram of hardware for a specific implementation of the present invention. Among them, the high-precision AD conversion chip chooses AD7678 of ADI Company, and its conversion precision is 18 bits; the high-precision DA chip chooses AD760 of the same series, and its conversion precision is 18 bits; the FPGA chip chooses EP2C8 of Altera Company; the common DA chip chooses a
PCM转换方式,输入一段模拟语音信号m(t),其最大值|m(t)|<0.2V,频率(300,3400Hz):PCM conversion mode, input an analog voice signal m(t), its maximum value |m(t)|<0.2V, frequency (300, 3400Hz):
1、抽样:用18位高精度AD转换器实现理想抽样,即抽样后的脉冲的脉宽τ趋于零,抽样速率16kHz,以高精度多位二进制数字信号表示抽样后模拟信号,由于抽样速率大小可由开关或计算机程序控制,通过示波器或频谱仪观察各种抽样速率下抽样后信号的时域波形或频域波形,还可直观地对抽样定理进行了解;1. Sampling: Use an 18-bit high-precision AD converter to achieve ideal sampling, that is, the pulse width τ of the sampled pulse tends to zero, and the sampling rate is 16kHz. The sampled analog signal is represented by a high-precision multi-bit binary digital signal. Due to the sampling rate The size can be controlled by a switch or a computer program, and the time-domain waveform or frequency-domain waveform of the sampled signal at various sampling rates can be observed through an oscilloscope or a spectrum analyzer, and the sampling theorem can also be intuitively understood;
2、量化:把抽样后取无限多种可能值的信号通过量化器量转换为有限种可能的值。图6为抽样后信号以及两种不同的量化结果的比较,其中量化方法1为8比特均匀量化器;量化方法2为4比特均匀量化器。用户可以在计算机上自己设计量化器,根据计算机对输入信号统计特征或幅度特性的分析,选择或设计量化器的量化级数,量化台阶和量化区间,编程并将程序下载到系统中的FPGA内,实现不同量化精度或性能的量化器,通过双踪示波器和频谱仪观察量化后的时域和频域波形;2. Quantization: Convert the signal that takes an infinite variety of possible values after sampling into a limited number of possible values through a quantizer. FIG. 6 is a comparison of the sampled signal and two different quantization results, wherein the
3、编码:把量化后的信号电平值映射为二进制码组,完成模拟信号到数字信号的转换。用户在计算机上编程设计编码器,将编写好的程序下载到实验平台的FPGA芯片,实现相应编码功能。在PCM中一般采用二进制码。常用的二进制码型有三种:自然二进制码、折叠二进制码和格雷二进制码。如图6所示,抽样后信号经量化方法1,以前十位为例,采用自然二进制编码的二进制码组为:3. Coding: Map the quantized signal level value into a binary code group to complete the conversion from analog signal to digital signal. The user programs and designs the encoder on the computer, and downloads the written program to the FPGA chip of the experimental platform to realize the corresponding encoding function. Binary codes are generally used in PCM. There are three commonly used binary code types: natural binary code, folded binary code and Gray binary code. As shown in Figure 6, the sampled signal is quantized by
第1位: 0 1 1 1 1 0 1 01st place: 0 1 1 1 1 0 1 0
第2位: 0 1 1 1 1 0 0 02nd place: 0 1 1 1 1 0 0 0
第3位: 0 1 1 1 0 1 1 03rd place: 0 1 1 1 0 1 1 0
第4位: 0 1 1 1 0 1 1 14th place: 0 1 1 1 0 1 1 1
第5位: 0 1 1 1 1 0 0 05th place: 0 1 1 1 1 0 0 0
第6位: 0 1 1 1 1 0 1 06th place: 0 1 1 1 1 0 1 0
第7位: 0 1 1 1 1 0 0 07th place: 0 1 1 1 1 0 0 0
第8位: 0 1 1 1 0 1 1 08th place: 0 1 1 1 0 1 1 0
第9位: 0 1 1 1 0 1 1 19th place: 0 1 1 1 0 1 1 1
第10位:0 1 1 1 1 0 0 010th digit: 0 1 1 1 1 0 0 0
编码方式可采用等长度的二进制代码对量化后的信号样值进行编码,也可采用变长二进制代码,如霍夫曼(Huffman)、Lempel-Ziv等编码方法完成编码。The encoding method can use equal-length binary codes to encode the quantized signal samples, or can use variable-length binary codes, such as Huffman (Huffman), Lempel-Ziv and other encoding methods to complete the encoding.
数模转换部分为与模数转换对应的逆过程,其译码和逆量化过程亦具有可编程性和可观测性。用户可以在原理层次上进行分步骤观察、学习及体验式操作,例如对抽样定理的学习和加深理解;另一方面,也可进行研究开发式操作,例如编写新的量化算法程序下载到FPGA/CPLD芯片中,通过失真度显示、模拟波形显示和扬声器的效果来验证用户设计的量化方法的优劣。The digital-to-analog conversion part is the inverse process corresponding to the analog-to-digital conversion, and its decoding and inverse quantization processes are also programmable and observable. Users can conduct step-by-step observation, learning and experiential operations at the principle level, such as learning and deepening understanding of sampling theorem; on the other hand, they can also conduct research and development operations, such as writing new quantization algorithm programs and downloading them to FPGA/ In the CPLD chip, the quality of the quantization method designed by the user is verified through the distortion degree display, the analog waveform display and the effect of the speaker.
DPCM转换为一种用差值编码的模数转换方法,图7为DPCM的原理方框图,xn表示当前的信源样值,预测器的输入代表重建信号。预测器的输出为差值作为量化器输入,eqn为量化器输出,量化后的每个预测误差eqn被编码成二进制数字序列,通过信道传送到目的地。该误差eqn同时被加到本地预测值而得到在接收端装有与发送端相同的预测器,它的输出与eqn相加产生信号既是所要求的预测器的激励信号,也是所要求的解码器输出的重建信号。本实施例以一段语音信号为模拟信号源,经过16KHz抽样后,其波形如图8所示,根据DPCM的原理框图编写量化程序和编码程序,采用4电平量化,量化后波形如图9所示,最后由解码器输出的语音重建信号如图10所示。DPCM is converted into an analog-to-digital conversion method using difference coding. Figure 7 is a schematic block diagram of DPCM, x n represents the current source sample value, and the input of the predictor Represents the reconstructed signal. The output of the predictor is difference As the input of the quantizer, e qn is the output of the quantizer, and each quantized prediction error e qn is encoded into a sequence of binary numbers and transmitted to the destination through the channel. The error e qn is simultaneously added to the local predictor and get The receiving end is equipped with the same predictor as the sending end, and its output Adding to e qn yields Signal Both the required excitation signal for the predictor and the required reconstruction signal for the output of the decoder. In this embodiment, a section of speech signal is used as the analog signal source. After sampling at 16KHz, its waveform is shown in Figure 8. The quantization program and encoding program are written according to the principle block diagram of DPCM, and 4-level quantization is adopted. The waveform after quantization is shown in Figure 9. Shown, the final speech reconstruction signal output by the decoder is shown in Figure 10.
增量调制(DM),是一种用差值编码的模数转换方法,只用一位编码表示相邻样值的相对大小,从而反映出抽样时刻波形的变化趋势。图11为DM的原理方框图,具体转换过程为:抽样用高精度的AD转换器件实现,采样率由用户使用开关或编程控制,可以随意增加或减小抽样速率,通过示波器或频谱仪观察各种抽样速率情况下已抽样信号的时域波形或频域波形,相邻抽样值的差值反映模拟信号的变化规律,相邻样值差不是大于零就是小于零,分别用“1”码和“0”码代表相邻样值差大于零和小于零,这样就完成了量化和编码。与之对应,译码过程即是根据收到的“1”、“0”分别对应上升一个量化阶和下降一个量化阶,然后通过滤波器还原出原始的语音信号。本实施例抽样率为16kHz,图12为模拟信号抽样后波形图,图13为信号量化后波形图,用户可以对量化器的输出波形观察分析并和理论波形相比较,验证实验效果。Delta modulation (DM) is an analog-to-digital conversion method that uses difference coding, and only uses one bit coding to represent the relative size of adjacent samples, thus reflecting the changing trend of the waveform at the sampling moment. Figure 11 is a schematic block diagram of DM. The specific conversion process is as follows: the sampling is realized by a high-precision AD conversion device, the sampling rate is controlled by the user using a switch or programming, and the sampling rate can be increased or decreased at will. The time-domain waveform or frequency-domain waveform of the sampled signal at the sampling rate, the difference between adjacent sampled values reflects the change law of the analog signal, and the difference between adjacent sampled values is either greater than zero or less than zero, using "1" code and " The 0" code represents that the difference between adjacent samples is greater than zero and less than zero, thus completing quantization and encoding. Correspondingly, the decoding process is to increase and decrease a quantization step according to the received "1" and "0", respectively, and then restore the original speech signal through the filter. The sampling rate of this embodiment is 16kHz. Figure 12 is the waveform diagram of the analog signal after sampling, and Figure 13 is the waveform diagram of the signal after quantization. The user can observe and analyze the output waveform of the quantizer and compare it with the theoretical waveform to verify the experimental effect.
本发明实验系统不仅可以实现现有的模数/数模转换方法,还可以作为设计新的模数/数模转换方法的开发、创新、研究实验平台。The experimental system of the invention can not only realize the existing analog-to-digital/digital-to-analog conversion method, but also serve as an experimental platform for developing, innovating and researching a new analog-to-digital/digital-to-analog conversion method.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100229646A CN101093624B (en) | 2007-05-29 | 2007-05-29 | Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007100229646A CN101093624B (en) | 2007-05-29 | 2007-05-29 | Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101093624A CN101093624A (en) | 2007-12-26 |
CN101093624B true CN101093624B (en) | 2010-04-07 |
Family
ID=38991859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007100229646A Expired - Fee Related CN101093624B (en) | 2007-05-29 | 2007-05-29 | Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101093624B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9722633B2 (en) * | 2015-02-11 | 2017-08-01 | Mitsubishi Electric Research Laboratories, Inc. | Method and system for reliable data communications with adaptive multi-dimensional modulations for variable-iteration decoding |
CN105827241A (en) * | 2016-03-17 | 2016-08-03 | 苏州易瑞得电子科技有限公司 | Intelligent signal control method and controller |
CN108447364A (en) * | 2018-05-22 | 2018-08-24 | 同济大学 | A Portable Multifunctional Time Domain Sampling Theorem Experimental Device |
-
2007
- 2007-05-29 CN CN2007100229646A patent/CN101093624B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101093624A (en) | 2007-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101160723B (en) | System and method for tri-level logic data shuffling for oversampling data conversion | |
CN106559078B (en) | Variable length dynamic element matching in digital to analog converters | |
US6255974B1 (en) | Programmable dynamic range sigma delta A/D converter | |
CN111654285B (en) | Digital background calibration method for capacitor mismatch and gain error of pipeline SAR ADC | |
US20100149012A1 (en) | System and method for area-efficient three-level dynamic element matching | |
CN105391450A (en) | Efficient analog to digital converter | |
CN107135004B (en) | An Adaptive Real-time Lossless Compression Method for Seismic Data Streams | |
US11901919B2 (en) | On chip test architecture for continuous time delta sigma analog-to-digital converter | |
CN101093624B (en) | Method of Realizing Multiple Analog-to-Digital/Digital-to-Analog Conversion Based on Experimental Platform | |
CN106712771A (en) | Signal processing circuit and method applied to analogue-to-digital and digital-to-analogue conversions | |
US7053808B2 (en) | Suppressing digital-to-analog converter (DAC) error | |
Mbihi et al. | A novel FPGA-based multi-channel signal acquisition system using parallel duty-cycle modulation and application to biologic signals: design and simulation | |
Myderrizi et al. | Current-steering digital-to-analog converters: functional specifications, design basics, and behavioral modeling | |
Rauth et al. | Analog-to-digital conversion. part 5 | |
Thao et al. | Lower bound on the mean-squared error in oversampled quantization of periodic signals using vector quantization analysis | |
Huang et al. | A simplified FRI sampling system for pulse streams based on constraint random modulation | |
WO2020172769A1 (en) | Data converter, related analog-digital converter and digital-analog converter, and chips | |
CN111490787B (en) | Sigma-delta modulator and method for reducing nonlinearity and gain error | |
CN105989200B (en) | The emulation mode and device of analog-digital converter | |
Balestrieri et al. | Digital to analog converters: a metrological overview | |
CN110880937B (en) | N bit analog-to-digital converter based on progressive approximation architecture | |
US20070293158A1 (en) | Test apparatus and method for a wireless transceiver | |
Williston | Digital signal processing: world class designs | |
Barrandon et al. | Behavioral modeling and simulation of mixed signal front-end for software defined radio terminals | |
Vogel et al. | Behavioral Modelling of Time-Interleaved ADCs using Matlab |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20071226 Assignee: Changshu Honglin Electronic Co., Ltd. Assignor: Univ. of Science and Engineering, PLA Contract record no.: 2013320000034 Denomination of invention: Method for implementing diversiform A-D /D-A conversion based on experimental platform Granted publication date: 20100407 License type: Common License Record date: 20130131 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100407 Termination date: 20160529 |