[go: up one dir, main page]

CN115603747A - Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium - Google Patents

Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium Download PDF

Info

Publication number
CN115603747A
CN115603747A CN202211211111.8A CN202211211111A CN115603747A CN 115603747 A CN115603747 A CN 115603747A CN 202211211111 A CN202211211111 A CN 202211211111A CN 115603747 A CN115603747 A CN 115603747A
Authority
CN
China
Prior art keywords
quantized
signal
reference signal
threshold judgment
voltage value
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.)
Pending
Application number
CN202211211111.8A
Other languages
Chinese (zh)
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.)
Beijing Lynxi Technology Co Ltd
Original Assignee
Beijing Lynxi Technology Co Ltd
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 Beijing Lynxi Technology Co Ltd filed Critical Beijing Lynxi Technology Co Ltd
Priority to CN202211211111.8A priority Critical patent/CN115603747A/en
Publication of CN115603747A publication Critical patent/CN115603747A/en
Priority to JP2025518573A priority patent/JP2025532305A/en
Priority to PCT/CN2023/120101 priority patent/WO2024067299A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters
    • H03M1/08Continuously compensating for, or preventing, undesired influence of physical parameters of noise
    • H03M1/0854Continuously compensating for, or preventing, undesired influence of physical parameters of noise of quantisation noise

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

The present disclosure provides a quantization method, an analog-to-digital converter, an electronic device, and a computer-readable storage medium, the method including obtaining a signal to be quantized and a reference signal, wherein the reference signal includes a threshold decision section reference signal and a quantization section reference signal; carrying out threshold judgment on the signal to be quantized by utilizing the reference signal of the threshold judgment section, and determining a plurality of sections of effective signals to be quantized; and quantizing any effective signal to be quantized in the multiple effective quantized signals by using the quantized segment reference signals to obtain a quantization result of the signal to be quantized. The quantization speed can be improved according to the embodiments of the present disclosure.

Description

量化方法及模数转化器、电子设备、计算机可读存储介质Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium

技术领域technical field

本公开涉及电子技术领域,特别涉及一种量化方法及模数转化器、电子设备、计算机可读存储介质。The present disclosure relates to the field of electronic technology, and in particular to a quantization method, an analog-to-digital converter, electronic equipment, and a computer-readable storage medium.

背景技术Background technique

单斜式ADC(Analog-to-Digital Converter,模数转换器)是将输入模拟电压信号与单斜坡信号进行比较,将输入电压信息转换为时间信息,再将时间信息转换为数字码,从而实现模拟信号到数字信号的转换。单斜率ADC具有结构简单、可扩展性高、精度高等优点,可被应用于传感器、仪器仪表、图像识别等领域。The single-slope ADC (Analog-to-Digital Converter, analog-to-digital converter) compares the input analog voltage signal with the single-slope signal, converts the input voltage information into time information, and then converts the time information into digital codes, thereby realizing Conversion of analog signals to digital signals. Single-slope ADCs have the advantages of simple structure, high scalability, and high precision, and can be used in sensors, instrumentation, image recognition, and other fields.

发明内容Contents of the invention

本公开提供一种量化方法及模数转化器、电子设备、计算机可读存储介质。The disclosure provides a quantization method, an analog-to-digital converter, electronic equipment, and a computer-readable storage medium.

第一方面,本公开提供了一种量化方法,该方法包括:获取待量化信号和参考信号,其中,所述参考信号包括阈值判断段参考信号和量化段参考信号;In a first aspect, the present disclosure provides a quantization method, which includes: acquiring a signal to be quantized and a reference signal, wherein the reference signal includes a threshold judgment segment reference signal and a quantization segment reference signal;

利用所述阈值判断段参考信号对所述待量化信号进行阈值判断,确定多段有效待量化信号;Perform threshold judgment on the signal to be quantized by using the reference signal of the threshold judgment section to determine multiple valid signals to be quantized;

利用所述量化段参考信号对所述多段有效量化信号中任一段所述有效待量化信号进行量化,获得所述待量化信号的量化结果。Quantizing any segment of the effective signal to be quantized in the plurality of segments of effective quantized signals by using the quantization segment reference signal to obtain a quantization result of the signal to be quantized.

第二方面,本公开提供了一种模数转换器,包括:In a second aspect, the present disclosure provides an analog-to-digital converter, including:

获取模块,用于获取待量化信号和参考信号,其中,所述参考信号包括阈值判断段参考信号和量化段参考信号;An acquisition module, configured to acquire a signal to be quantized and a reference signal, wherein the reference signal includes a threshold judgment segment reference signal and a quantization segment reference signal;

判断模块,用于利用所述阈值判断段参考信号对所述待量化信号进行阈值判断,确定多段有效待量化信号;A judging module, configured to use the threshold judging section reference signal to perform threshold judging on the signal to be quantized, and determine a multi-segment valid signal to be quantized;

量化模块,用于利用所述量化段参考信号对所述多段有效量化信号中任一所述有效待量化信号进行量化,获得所述待量化信号的量化结果。A quantization module, configured to quantize any effective signal to be quantized in the plurality of effective quantized signals by using the quantized segment reference signal, and obtain a quantization result of the signal to be quantized.

第三方面,本公开提供了一种电子设备,该电子设备包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的一个或多个计算机程序,一个或多个所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的量化方法。In a third aspect, the present disclosure provides an electronic device, which includes: at least one processor; and a memory communicated with the at least one processor; wherein, the memory stores information that can be processed by the at least one processor. One or more computer programs executed by the at least one processor, and one or more computer programs are executed by the at least one processor, so that the at least one processor can execute the above quantification method.

第四方面,本公开提供了一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序在被处理器/处理核执行时实现上述的量化方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned quantization method when executed by a processor/processing core.

本公开实施例提供的量化方法,参考信号包括阈值判断段参考信号和量化段参考信号,利用阈值判断段参考信号对待量化信号进行阈值判断,将待量化信号中容易受噪声影响的量化信号确定为无效段量化信号,在量化待量化信号时,不需要对所有的有效待量化信号进行量化,只需要对多段有效待量化信号中任一段有效待量化信号进行量化,即可获得待量化信号的量化结果,从而提高量化的效率。In the quantization method provided by the embodiments of the present disclosure, the reference signal includes a threshold judgment section reference signal and a quantization section reference signal, and the threshold judgment section reference signal is used to perform threshold judgment on the signal to be quantized, and the quantization signal that is easily affected by noise in the to-be-quantized signal is determined as For the invalid segment quantization signal, when quantizing the signal to be quantized, it is not necessary to quantize all the valid signals to be quantized, but only to quantify any effective signal to be quantized in the multi-segment valid signal to be quantized to obtain the quantization of the signal to be quantized As a result, the efficiency of quantization is thereby improved.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.

附图说明Description of drawings

附图用来提供对本公开的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开,并不构成对本公开的限制。通过参考附图对详细示例实施例进行描述,以上和其他特征和优点对本领域技术人员将变得更加显而易见,在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute a limitation to the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:

图1为本公开实施例提供的一种模数转换器的示意图;FIG. 1 is a schematic diagram of an analog-to-digital converter provided by an embodiment of the present disclosure;

图2为本公开实施例中参考信号的波形图;FIG. 2 is a waveform diagram of a reference signal in an embodiment of the present disclosure;

图3为本公开实施例提供的一种量化方法的流程图;FIG. 3 is a flowchart of a quantification method provided by an embodiment of the present disclosure;

图4为本公开实施例提供的另一种参考信号的波形图;FIG. 4 is a waveform diagram of another reference signal provided by an embodiment of the present disclosure;

图5为本公开实施例提供的又一种参考信号的波形图;FIG. 5 is a waveform diagram of another reference signal provided by an embodiment of the present disclosure;

图6为本公开实施例提供的模数转换器的工作时序图;FIG. 6 is a working sequence diagram of an analog-to-digital converter provided by an embodiment of the present disclosure;

图7为本公开实施例提供的一种参考信号和待量化信号的波形图;FIG. 7 is a waveform diagram of a reference signal and a signal to be quantized provided by an embodiment of the present disclosure;

图8为本公开实施例提供的另一种参考信号和待量化信号的波形图;FIG. 8 is a waveform diagram of another reference signal and a signal to be quantized provided by an embodiment of the present disclosure;

图9为本公开实施例提供的模数转换器输出的码值曲线图;FIG. 9 is a graph of code values output by an analog-to-digital converter provided by an embodiment of the present disclosure;

图10为目前的模数转换器输出的码值曲线图;Fig. 10 is a code value curve diagram output by a current analog-to-digital converter;

图11为本公开实施例提供的一种电子设备的框图。Fig. 11 is a block diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式detailed description

为使本领域的技术人员更好地理解本公开的技术方案,以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。In order for those skilled in the art to better understand the technical solution of the present disclosure, the exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

在不冲突的情况下,本公开各实施例及实施例中的各特征可相互组合。In the case of no conflict, various embodiments of the present disclosure and various features in the embodiments can be combined with each other.

如本文所使用的,术语“和/或”包括一个或多个相关列举条目的任何和所有组合。As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

本文所使用的术语仅用于描述特定实施例,且不意欲限制本公开。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加一个或多个其它特征、整体、步骤、操作、元件、组件和/或其群组。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。The terminology used herein is for describing particular embodiments only and is not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that when the terms "comprising" and/or "consisting of" are used in this specification, the stated features, integers, steps, operations, elements and/or components are specified to be present but not excluded to be present or Add one or more other features, integers, steps, operations, elements, components and/or groups thereof. Words such as "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本公开的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having meanings consistent with their meanings in the context of the relevant art and the present disclosure, and will not be interpreted as having idealized or excessive formal meanings, Unless expressly so limited herein.

单斜式ADC可利用斜坡线性下降的参考信号对待量化信号进行量化,在量化过程中,将参考信号和待量化信号进行比较,并对比较结果进行计数,直至比较器发生翻转,将计数结果存入锁存器,从而获得待量化信号的量化结果。The single-slope ADC can quantize the signal to be quantized by using the reference signal that slopes linearly down. into the latch to obtain the quantization result of the signal to be quantized.

相关技术需要对全部待量化信号进行量化,若参考信号的采用频率为n位,则需要2n个时钟周期才能完成量化,量化效率较低。The related technology needs to quantize all the signals to be quantized. If the frequency of the reference signal is n bits, it takes 2 n clock cycles to complete the quantization, and the quantization efficiency is low.

研究表明,待量化信号中存在容易受噪声影响的低信号段,低信号段属于无效待量化信号,对无效待量化信号进行量化,同样降低了量化效率。Studies have shown that there are low-signal segments that are easily affected by noise in the signal to be quantized, and the low-signal segment is an invalid signal to be quantized. Quantizing the invalid signal to be quantized also reduces the quantization efficiency.

基于此,本公开实施例提供一种量化方法,该方法可以提高量化效率。Based on this, an embodiment of the present disclosure provides a quantization method, which can improve quantization efficiency.

图1为本公开实施例提供的一种模数转换器的示意图。如图1所示,模数转换器包括获取模块10,用于获取模数转换器的输入信号,如获取待量化信号和参考信号。FIG. 1 is a schematic diagram of an analog-to-digital converter provided by an embodiment of the present disclosure. As shown in FIG. 1 , the analog-to-digital converter includes an acquisition module 10 configured to acquire an input signal of the analog-to-digital converter, such as acquiring a signal to be quantized and a reference signal.

在一些实施例中,参考信号可以通过参考信号生成子模块11生成,例如,可以将DAC信号作为参考信号生成子模块生成的参考信号;待量化信号是由相应的待量化信号生成子模块12生成、获取的需要进行模数转换的信号。本实施例对参考信号生成子模块11和待量化信号生成子模块12的具体结构不作限定。参考信号生成子模块11和待量化信号生成子模块12的输出端与判断模块20的输入端电连接。In some embodiments, the reference signal can be generated by the reference signal generation submodule 11, for example, the DAC signal can be used as the reference signal generated by the reference signal generation submodule; the signal to be quantized is generated by the corresponding signal to be quantized generation submodule 12 , The acquired signal that needs to be converted from analog to digital. This embodiment does not limit the specific structures of the reference signal generating sub-module 11 and the signal-to-be-quantized generating sub-module 12 . The output ends of the reference signal generation sub-module 11 and the signal-to-be-quantized generation sub-module 12 are electrically connected to the input end of the judgment module 20 .

在一些实施例中,如图2所示,参考信号包括阈值判断段参考信号和量化段参考信号,其中,阈值判断段参考信号用于对待量化信号进行阈值判断,以确定待量化信号中有效待量化信号和无效待量化信号。量化段参考信号用于对待量化信号进行量化处理。In some embodiments, as shown in FIG. 2 , the reference signal includes a threshold judgment section reference signal and a quantization section reference signal, wherein the threshold judgment section reference signal is used to perform threshold judgment on the signal to be quantized, so as to determine the effective waiting period in the signal to be quantized. Quantized signal and invalid signal to be quantized. The quantization segment reference signal is used to perform quantization processing on the signal to be quantized.

在一些实施例中,参考信号还包括采样段参考信号。In some embodiments, the reference signal also includes a sample segment reference signal.

如图2所示,参考信号包括采样段参考信号、阈值判断段参考信号和量化段参考信号,即参考信号被分为三段,采样段参考信号的电压值为恒定值,如V0,阈值判断段参考信号的电压值可以包括多个电压值,如V1和V2,量化段参考信号的电压值为连续变化的值。As shown in Figure 2, the reference signal includes the reference signal of the sampling section, the reference signal of the threshold judgment section and the reference signal of the quantization section, that is, the reference signal is divided into three sections, and the voltage value of the reference signal of the sampling section is a constant value, such as V0, and the threshold judgment The voltage value of the segment reference signal may include multiple voltage values, such as V1 and V2, and the voltage value of the quantized segment reference signal is a continuously changing value.

判断模块20,用于利用阈值判断段参考信号对待量化信号进行阈值判断,确定有效待量化信号。The judging module 20 is configured to make a threshold judgment on the signal to be quantized by using the reference signal of the threshold judgment section to determine a valid signal to be quantized.

其中,阈值判断可以通过比较阈值判断段参考信号的电压值和待量化信号的电压值,并基于电压比对结果确定有效待量化信号和无效待量化信号。Wherein, the threshold judgment can compare the voltage value of the reference signal and the voltage value of the signal to be quantized in the threshold judgment section, and determine the valid signal to be quantized and the invalid signal to be quantized based on the voltage comparison result.

在一些实施例中,判断模块20包括比较器子模块21和计数器子模块22,其中,In some embodiments, the judging module 20 includes a comparator submodule 21 and a counter submodule 22, wherein,

比较器子模块21,用于比较阈值判断段参考信号的电压值和待量化信号的电压值,获得第一比较结果。比较器子模块21的第一输入端INN与待量化信号获取子模块12的输出端电连接,比较器子模块21的第二输入端与参考信号生成子模块11的第二输出端电连接。The comparator sub-module 21 is configured to compare the voltage value of the reference signal of the threshold judgment section with the voltage value of the signal to be quantized to obtain a first comparison result. The first input terminal INN of the comparator sub-module 21 is electrically connected to the output terminal of the signal-to-be-quantized acquisition sub-module 12 , and the second input terminal of the comparator sub-module 21 is electrically connected to the second output terminal of the reference signal generation sub-module 11 .

计数器子模块22,用于基于第一比较结果确定阈值判断结果;计数器子模块22的输入端与比较器子模块21的输出端连接。The counter sub-module 22 is configured to determine the threshold judgment result based on the first comparison result; the input terminal of the counter sub-module 22 is connected to the output terminal of the comparator sub-module 21 .

量化模块30包括比较器子模块21和计数器子模块22,其中,比较器子模块21还用于比较待量化信号的电压值和量化段参考信号的电压值,获得第二比较结果。计数器子模块22还用于基于第二比较结果记录比较器子模块21的翻转。The quantization module 30 includes a comparator submodule 21 and a counter submodule 22, wherein the comparator submodule 21 is also used to compare the voltage value of the signal to be quantized with the voltage value of the quantization segment reference signal to obtain a second comparison result. The counter sub-module 22 is also used to record the inversion of the comparator sub-module 21 based on the second comparison result.

在一些实施例中,如图2所示,阈值判断段参考信号包括采样段参考信号V0,第一阈值判断段参考信号V1和第二阈值判断段参考信号V2。In some embodiments, as shown in FIG. 2 , the threshold judgment segment reference signal includes a sampling segment reference signal V0 , a first threshold judgment segment reference signal V1 and a second threshold judgment segment reference signal V2 .

在一些实施例中,比较器子模块21得到的第一比较结果包括待量化信号的电压值Vx小于第一阈值判断段参考信号的电压值V1,待量化信号的电压值Vx等于第一阈值判断段参考信号的电压值V1,待量化信号的电压值Vx大于第一阈值判断段参考信号的电压值V1,以及待量化信号的电压值Vx小于第二阈值判断段参考信号的电压值V2,待量化信号的电压值Vx等于第二阈值判断段参考信号的电压值V2,待量化信号的电压值Vx大于第二阈值判断段参考信号的电压值V2。In some embodiments, the first comparison result obtained by the comparator sub-module 21 includes that the voltage value Vx of the signal to be quantized is less than the voltage value V1 of the reference signal in the first threshold judgment section, and the voltage value Vx of the signal to be quantized is equal to the first threshold judgment The voltage value V1 of the segment reference signal, the voltage value Vx of the signal to be quantized is greater than the voltage value V1 of the reference signal of the first threshold judgment segment, and the voltage value Vx of the signal to be quantized is smaller than the voltage value V2 of the reference signal of the second threshold judgment segment, to be The voltage value Vx of the quantized signal is equal to the voltage value V2 of the reference signal in the second threshold judgment section, and the voltage value Vx of the signal to be quantized is greater than the voltage value V2 of the reference signal in the second threshold judgment section.

若第一阈值判断段参考信号的电压值V1大于第二阈值判断段参考信号的电压值V2,计数器子模块22确定的阈值判断结果包括:待量化信号的电压值Vx大于第一阈值判断段参考信号的电压值V1;待量化信号的电压值Vx小于或等于第一阈值判断段参考信号的电压值V1,同时,待量化信号的电压值Vx大于或等于第二阈值判断段参考信号的电压值V2;待量化信号的电压值Vx小于第二阈值判断段参考信号的电压值V2,即通过第一阈值判断段参考信号和第二阈值判断段参考信号将待量化信号分为三个区间段。If the voltage value V1 of the reference signal in the first threshold judgment section is greater than the voltage value V2 of the reference signal in the second threshold judgment section, the threshold judgment result determined by the counter submodule 22 includes: the voltage value Vx of the signal to be quantized is greater than the reference signal in the first threshold judgment section. The voltage value V1 of the signal; the voltage value Vx of the signal to be quantized is less than or equal to the voltage value V1 of the reference signal in the first threshold judgment section, and at the same time, the voltage value Vx of the signal to be quantized is greater than or equal to the voltage value of the reference signal in the second threshold judgment section V2; the voltage value Vx of the signal to be quantized is smaller than the voltage value V2 of the reference signal of the second threshold judgment section, that is, the signal to be quantized is divided into three interval sections by the first threshold judgment section reference signal and the second threshold judgment section reference signal.

在本公开实施例中,待量化信号为差分信号,如第一输入信号VIN和第二输入信号VIP的差分信号(VIN-VIP),将接近于0的待量化信号确定为无效待量化信号,即将V1≤Vx≤V2的待量化信号确定为无效待量化信号,其中,Vx是待量化信号的电压值。将Vx<V1和Vx>V2的待量化信号确定为有效待量化信号。In the embodiment of the present disclosure, the signal to be quantized is a differential signal, such as the differential signal (VIN-VIP) of the first input signal VIN and the second input signal VIP, and a signal to be quantized close to 0 is determined as an invalid signal to be quantized, That is, signals to be quantized with V1≦Vx≦V2 are determined as invalid signals to be quantized, where Vx is a voltage value of the signal to be quantized. The signals to be quantized with Vx<V1 and Vx>V2 are determined as valid signals to be quantized.

通过调整第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2,可以控制有效待量化信号和无效待量化信号的区间大小。在一些实施例中,通过调整第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2,可以将无效待量化信号的区间控制在10%的范围,如,当待量化信号的电压值为[-1V,1V]时,可以将无效待量化信号控制在[-0.1V,0.1V]区间内,[-1V,-0.1V]和[0.1V,1V]为有效待量化信号。By adjusting the voltage value V1 of the reference signal in the first threshold judgment section and the voltage value V2 of the reference signal in the second threshold judgment section, the size of the interval between valid signals to be quantized and invalid signals to be quantized can be controlled. In some embodiments, by adjusting the voltage value V1 of the reference signal in the first threshold judgment section and the voltage value V2 of the reference signal in the second threshold judgment section, the range of invalid signals to be quantized can be controlled within a range of 10%, for example, when When the voltage value of the signal to be quantized is [-1V, 1V], the invalid signal to be quantized can be controlled within the interval [-0.1V, 0.1V], [-1V, -0.1V] and [0.1V, 1V] are Valid signal to be quantized.

量化模块30,用于利用量化段参考信号对多段有效量化信号中任一有效待量化信号进行量化,获得待量化信号的量化结果。The quantization module 30 is configured to use the quantization segment reference signal to quantize any effective signal to be quantized in the multi-segment effective quantization signal, and obtain a quantization result of the signal to be quantized.

在一些实施例中,量化模块30包括比较器子模块21和计数器子模块22,即量化模块30和判断模块20共用比较器子模块21和计数器子模块22。在一些实施例中,量化模块30和判断模块20采用不同的比较器子模块21和比较器子模块22。然而,量化模块30和判断模块20共用比较器子模块21和计数器子模块22,可以降低模数转换器的成本和体积。In some embodiments, the quantization module 30 includes a comparator submodule 21 and a counter submodule 22 , that is, the quantization module 30 and the judgment module 20 share the comparator submodule 21 and the counter submodule 22 . In some embodiments, the quantization module 30 and the judging module 20 use different comparator sub-modules 21 and 22 . However, the quantization module 30 and the judging module 20 share the comparator submodule 21 and the counter submodule 22, which can reduce the cost and volume of the analog-to-digital converter.

在阈值判断阶段,利用比较器子模块21对阈值判断段参考信号和待量化信号进行比较,获得第一比较结果,利用计数器子模块22对比较器子模块21得到的第一比较结果进行统计,以确定有效待量化信号。在量化阶段,利用比较器子模块21对量化段参考信号和待量化信号进行比较,获得第二比较结果,利用计数器子模块22对比较器子模块21得到的第二比较结果进行统计,获得待量化信号的量化结果。In the threshold judgment stage, utilize the comparator submodule 21 to compare the reference signal of the threshold judgment section with the signal to be quantized to obtain the first comparison result, and use the counter submodule 22 to count the first comparison result obtained by the comparator submodule 21, To determine the effective signal to be quantified. In the quantization phase, use the comparator sub-module 21 to compare the quantized section reference signal and the signal to be quantized to obtain the second comparison result, and use the counter sub-module 22 to perform statistics on the second comparison result obtained by the comparator sub-module 21 to obtain the to-be-quantized signal. The quantization result of the quantized signal.

比较器子模块21用于比较量化段参考信号的电压值和任一段有效待量化信号的电压值,获得第二比较结果。计数器子模块22用于基于第二比较结果获得待量化信号的量化结果。The comparator sub-module 21 is used to compare the voltage value of the reference signal of the quantization segment with the voltage value of any effective segment of the signal to be quantized to obtain a second comparison result. The counter sub-module 22 is used for obtaining the quantization result of the signal to be quantized based on the second comparison result.

在一些实施例中,比较器子模块21比较量化段参考信号和有效待量化信号,当比较器子模块21发生翻转时,计数器子模块22停止计数。In some embodiments, the comparator sub-module 21 compares the reference signal of the quantization segment and the effective signal to be quantized, and when the comparator sub-module 21 flips, the counter sub-module 22 stops counting.

在一些实施例中,如图2所示,模数转换器还包括共模电压模块40和参考电压模块50,其中,In some embodiments, as shown in FIG. 2, the analog-to-digital converter further includes a common-mode voltage module 40 and a reference voltage module 50, wherein,

共模电压模块40,用于产生比较器子模块21的共模电压VCM,共模电压模块40的输出端与比较器子模块21的第二输入端电连接。The common-mode voltage module 40 is configured to generate the common-mode voltage VCM of the comparator sub-module 21 , and the output terminal of the common-mode voltage module 40 is electrically connected to the second input terminal of the comparator sub-module 21 .

当将共模电压模块40与比较器子模块21的第二输入端电连接时,向比较器子模块21输入共模电压VCM时,对待量化信号参考信号进行采样。When the common-mode voltage module 40 is electrically connected to the second input terminal of the comparator sub-module 21 , when the common-mode voltage VCM is input to the comparator sub-module 21 , the reference signal of the signal to be quantized is sampled.

参考电压模块50,用于产生比较器子模块21的参考电压VREF,参考电压模块的输出端与比较器子模块21的第二输入端电连接。The reference voltage module 50 is configured to generate the reference voltage VREF of the comparator sub-module 21 , the output terminal of the reference voltage module is electrically connected to the second input terminal of the comparator sub-module 21 .

在阈值判断完成后,若计数器子模块22的最高计数值为“1”,则将参考电压模块50与比较器子模块21的第二输入端电连接,否则,则断开参考电压模块50和比较器子模块21的第二输入端电连接。After the threshold judgment is completed, if the highest count value of the counter submodule 22 is "1", then the reference voltage module 50 is electrically connected to the second input terminal of the comparator submodule 21, otherwise, the reference voltage module 50 and the second input terminal of the comparator submodule 21 are disconnected. The second input end of the comparator sub-module 21 is electrically connected.

本公开实施例提供的模数转换器,获取模块获取的参考信号包括阈值判断段参考信号和量化段参考信号,判断模块利用阈值判断段参考信号对待量化信号进行阈值判断,将待量化信号中容易受噪声影响的无效带量化信号去除,确定多段有效待量化信号,量化模块在量化待量化信号时,不需要对所有的有效待量化信号进行量化,只需要对多段有效待量化信号中任一段有效待量化信号进行量化,即可获得待量化信号的量化结果,从而提高量化的效率。In the analog-to-digital converter provided by the embodiments of the present disclosure, the reference signal acquired by the acquisition module includes a threshold judgment section reference signal and a quantization section reference signal, and the judgment module uses the threshold judgment section reference signal to perform threshold judgment on the signal to be quantized, and easily The invalid band quantization signal affected by the noise is removed, and the multi-segment effective signal to be quantized is determined. When the quantization module quantizes the signal to be quantized, it does not need to quantify all the effective signals to be quantized, but only needs to be valid for any segment of the multi-segment effective signal to be quantized. By performing quantization on the signal to be quantized, the quantization result of the signal to be quantized can be obtained, thereby improving the efficiency of quantization.

本公开实施例还提供一种量化方法,该量化方法可以提高量化效率。图3为本公开实施例提供的量化方法的流程图。如图3所示,量化方法包括:Embodiments of the present disclosure also provide a quantization method, which can improve quantization efficiency. Fig. 3 is a flowchart of a quantization method provided by an embodiment of the present disclosure. As shown in Figure 3, quantification methods include:

步骤S301,获取待量化信号和参考信号,其中,参考信号包括阈值判断段参考信号和量化段参考信号,待量化信号和参考信号均是模拟信号。Step S301, acquiring a signal to be quantized and a reference signal, wherein the reference signal includes a reference signal of a threshold judgment section and a reference signal of a quantization section, and both the signal to be quantized and the reference signal are analog signals.

步骤S302,利用阈值判断段参考信号对待量化信号进行阈值判断,确定多段有效待量化信号。Step S302, using the threshold judgment section reference signal to perform threshold judgment on the signal to be quantized, and determine multiple effective sections of the signal to be quantized.

步骤S303,利用量化段参考信号对多段有效量化信号中任一段有效待量化信号进行量化,获得待量化信号的量化结果。Step S303, using the quantization segment reference signal to quantize any segment of the effective signal to be quantized among the multiple segments of the effective quantization signal, and obtain a quantization result of the signal to be quantized.

本公开实施例提供的量化方法,参考信号包括阈值判断段参考信号和量化段参考信号,利用阈值判断段参考信号对待量化信号进行阈值判断,将待量化信号中容易受噪声影响的无效带量化信号去除,确定多段有效待量化信号,在量化待量化信号时,不需要对所有的有效待量化信号进行量化,只需要对多段有效待量化信号中任一段有效待量化信号进行量化,即可获得待量化信号的量化结果,从而提高量化的效率。In the quantization method provided by the embodiments of the present disclosure, the reference signal includes a threshold judgment section reference signal and a quantization section reference signal, and the threshold judgment section reference signal is used to perform threshold judgment on the signal to be quantized, and the invalid band quantization signal that is easily affected by noise in the to-be-quantized signal To determine the multi-segment effective signals to be quantized. When quantizing the signals to be quantized, it is not necessary to quantize all the effective signals to be quantized. The quantization result of the quantized signal is used to improve the efficiency of quantization.

在一些实施例中,参考信号包括一段或多段阈值判断段参考信号,每段阈值判断段参考信号的电压值不同。In some embodiments, the reference signal includes one or more threshold judgment section reference signals, and each threshold judgment section reference signal has a different voltage value.

如图2所示,参考信号包括两段阈值判断段参考信号,其中,第一阈值判断段参考信号的电压值为V1,第二阈值判断段参考信号的电压值为V2,V1≠V2。As shown in FIG. 2 , the reference signal includes two threshold judgment section reference signals, wherein the voltage value of the first threshold judgment section reference signal is V1, and the second threshold judgment section reference signal has a voltage value of V2, V1≠V2.

在一些实施例中,参考信号包括一段阈值判断段参考信号,可以对待量化信号的正向或待量化信号的负向进行判断。例如,利用一段阈值判断段参考信号对待量化信号的正向进行判断,若待量化信号的电压值小于或等于该阈值判断段参考信号的电压值,则该待量化信号为无效待量化信号,否则,为有效待量化信号。再如,利用一段阈值判断段参考信号对待量化信号的负向进行判断,若待量化信号的电压值大于或等于该阈值判断段参考信号的电压值,则该待量化信号为无效待量化信号,否则,为有效待量化信号。In some embodiments, the reference signal includes a threshold judgment segment reference signal, which can be used to judge the positive direction of the signal to be quantized or the negative direction of the signal to be quantized. For example, the positive direction of the signal to be quantized is judged by using a threshold judgment section reference signal, if the voltage value of the signal to be quantized is less than or equal to the voltage value of the reference signal of the threshold judgment section, the signal to be quantized is an invalid signal to be quantized, otherwise , is an effective signal to be quantized. For another example, the negative direction of the signal to be quantized is judged by using a threshold judgment section reference signal, if the voltage value of the signal to be quantized is greater than or equal to the voltage value of the threshold judgment section reference signal, then the signal to be quantized is an invalid signal to be quantized, Otherwise, it is a valid signal to be quantized.

在一些实施例中,参考信号包括多段阈值判断段参考信号。如图4所示,参考信号包括四段阈值判断段参考信号,其中,第一阈值判断段参考信号的电压值为V1,第二阈值判断段参考信号的电压值为V2,第三阈值判断段参考信号的电压值为V3,第四阈值判断段参考信号的电压值为V4,而且,V1≠V2≠V3≠V4。In some embodiments, the reference signal includes a multi-segment threshold judgment segment reference signal. As shown in Figure 4, the reference signal includes four threshold judgment section reference signals, wherein the voltage value of the first threshold judgment section reference signal is V1, the voltage value of the second threshold judgment section reference signal is V2, and the third threshold judgment section reference signal is V2. The voltage value of the reference signal is V3, the voltage value of the reference signal in the fourth threshold judgment section is V4, and V1≠V2≠V3≠V4.

利用第二阈值判断段参考信号的电压值V2和第四阈值判断段参考信号的电压值V4分别对待量化信号的正向和负向进行阈值判断。当待量化信号的电压值大于第二阈值判断段参考信号的电压值V2时,待量化信号为有效待量化信号。当待量化信号的电压值小于或等于第二阈值判断段参考信号的电压值V2,且大于或等于第四阈值判断段参考信号的电压值V4时,待量化信号为无效待量化信号。当待量化信号的电压值小于第四阈值判断段参考信号的电压值V4时,待量化信号为有效待量化信号。Using the voltage value V2 of the reference signal in the second threshold judgment section and the voltage value V4 of the reference signal in the fourth threshold judgment section, threshold judgment is performed on the positive and negative directions of the signal to be quantized, respectively. When the voltage value of the signal to be quantized is greater than the voltage value V2 of the reference signal in the second threshold judgment section, the signal to be quantized is an effective signal to be quantized. When the voltage value of the signal to be quantized is less than or equal to the voltage value V2 of the reference signal in the second threshold judgment section and greater than or equal to the voltage value V4 of the reference signal in the fourth threshold judgment section, the signal to be quantized is an invalid signal to be quantized. When the voltage value of the signal to be quantized is less than the voltage value V4 of the reference signal in the fourth threshold judgment section, the signal to be quantized is an effective signal to be quantized.

在确定待量化信号的电压值大于第二阈值判断段参考信号的电压值V2时,可以参考第一阈值判断段参考信号的电压值V1来提高量化段参考信号的电压值,使得量化段参考信号能够与待量化信号交叉。在该实施例中,利用多个阈值判断的方式,更加准确的确定量化段参考信号的电压值,不必多次调整量化段参考信号的电压值以将量化段参考信号的电压值确定在合适的范围,从而可以更加高效的实现对有效待量化信号的量化效率。When it is determined that the voltage value of the signal to be quantized is greater than the voltage value V2 of the second threshold judgment section reference signal, the voltage value V1 of the first threshold judgment section reference signal can be referred to to increase the voltage value of the quantization section reference signal, so that the quantization section reference signal Can be interleaved with the signal to be quantized. In this embodiment, the voltage value of the quantization segment reference signal is determined more accurately by using multiple threshold judgment methods, and it is not necessary to adjust the voltage value of the quantization segment reference signal multiple times to determine the voltage value of the quantization segment reference signal at an appropriate range, so that the quantization efficiency of the effective signal to be quantized can be realized more efficiently.

需要说明的是,本公开实施例仅列举了参考信号的两种,但本公开并不绝限于此,参考信号可以仅包括一段阈值判断段参考信号,也可以是更多段阈值判断段参考信号。当参考信号包括多段阈值判断段参考信号时,每段阈值判断段参考信号的电压值不同。It should be noted that, the embodiment of the present disclosure only lists two types of reference signals, but the present disclosure is not limited thereto. The reference signal may only include a section of threshold judgment section reference signal, or may be more sections of threshold judgment section reference signal . When the reference signal includes multiple reference signals for threshold judgment segments, the voltage values of the reference signals for each threshold judgment segment are different.

在一些实施例中,如图2所示,参考信号还包括采样段参考信号,在采样段参考信号,模数转换器用于采集待量化信号,不进行阈值判断和量化步骤。In some embodiments, as shown in FIG. 2 , the reference signal further includes a reference signal of a sampling segment. In the reference signal of the sampling segment, an analog-to-digital converter is used to acquire the signal to be quantized, and threshold judgment and quantization steps are not performed.

阈值判断段参考信号包括第一阈值判断段参考信号和第二阈值判断段参考信号,第一阈值判断段参考信号的电压值V1和采样段参考信号的电压值V0之间的第一电压差值与第二阈值判断段参考信号的电压值V2和采样段参考信号的电压值V0之间的第二电压差值相等。换言之,本公开实施例中,第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2相对于采样段参考信号的电压值V0对称。本公开实施例中,第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2也可以不对称,但第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2分别位于采样段参考信号的电压值V0的两侧。如第一阈值判断段参考信号的电压值V1与采样段参考信号的电压值V0一致;或者,第二阈值判断段参考信号的电压值V2与采样段参考信号的电压值V0一致;或者,第一阈值判断段参考信号的电压值V1和第二阈值判断段参考信号的电压值V2也可以是不同的其它数值。The threshold judgment section reference signal includes a first threshold judgment section reference signal and a second threshold judgment section reference signal, the first voltage difference between the voltage value V1 of the first threshold judgment section reference signal and the voltage value V0 of the sampling section reference signal It is equal to the second voltage difference between the voltage value V2 of the reference signal of the second threshold judgment section and the voltage value V0 of the reference signal of the sampling section. In other words, in the embodiment of the present disclosure, the voltage value V1 of the reference signal of the first threshold determination segment and the voltage value V2 of the reference signal of the second threshold determination segment are symmetrical with respect to the voltage value V0 of the reference signal of the sampling segment. In the embodiment of the present disclosure, the voltage value V1 of the reference signal of the first threshold judgment section and the voltage value V2 of the reference signal of the second threshold judgment section may also be asymmetrical, but the voltage value V1 of the reference signal of the first threshold judgment section and the second threshold The voltage value V2 of the reference signal of the judging segment is respectively located on both sides of the voltage value V0 of the reference signal of the sampling segment. For example, the voltage value V1 of the reference signal in the first threshold judgment section is consistent with the voltage value V0 of the reference signal in the sampling section; or, the voltage value V2 of the reference signal in the second threshold judgment section is consistent with the voltage value V0 of the reference signal in the sampling section; or, The voltage value V1 of the reference signal of the first threshold judgment section and the voltage value V2 of the reference signal of the second threshold judgment section may also be different values.

在一些实施例中,步骤S302,利用阈值判断段参考信号对待量化信号进行阈值判断,确定多段有效待量化信号,包括:In some embodiments, step S302, using the threshold judgment segment reference signal to perform threshold judgment on the signal to be quantized to determine multiple effective segments of the signal to be quantized, including:

参考信号从采样段参考信号跳变至第一阈值判断段参考信号时,利用第一阈值判断段参考信号对待量化信号进行阈值判断,获得第一阈值判断结果;参考电压从第一阈值判断段参考信号跳变至第二阈值判断段参考信号时,利用第二阈值判断段参考信号对待量化信号进行阈值判断,获得第二阈值判断结果;基于第一阈值判断结果和第二阈值判断结果对待量化信号进行分段,确定多段有效待量化信号。When the reference signal jumps from the reference signal of the sampling section to the reference signal of the first threshold judgment section, the reference signal of the first threshold judgment section is used to perform threshold judgment on the signal to be quantized to obtain the first threshold judgment result; the reference voltage is referenced from the first threshold judgment section When the signal jumps to the reference signal of the second threshold judgment section, the second threshold judgment section reference signal is used to perform threshold judgment on the signal to be quantized, and a second threshold judgment result is obtained; based on the first threshold judgment result and the second threshold judgment result, the quantized signal is Segmentation is performed to determine multiple effective segments of the signal to be quantized.

本公开实施例中,阈值判断结果包括第一阈值判断结果和第二阈值判断结果,第一阈值判断结果是第一阈值判断段参考信号的电压值与待量化信号的电压值的比对结果,第二阈值判断结果是第二阈值判断段参考信号的电压值与待量化信号的电压值的比对结果。基于第一阈值判断结果和第二阈值判断结果可以将待量化信号分为多段有效待量化信号。In the embodiment of the present disclosure, the threshold judgment result includes a first threshold judgment result and a second threshold judgment result, and the first threshold judgment result is a comparison result between the voltage value of the reference signal in the first threshold judgment section and the voltage value of the signal to be quantized, The second threshold judgment result is a comparison result between the voltage value of the reference signal and the voltage value of the signal to be quantized in the second threshold judgment section. Based on the first threshold judgment result and the second threshold judgment result, the signal to be quantized can be divided into multiple segments of valid signals to be quantized.

在一些实施例中,若第一阈值判断段参考信号的电压值大于或等于第二阈值判断段参考信号的电压值;则基于第一阈值判断结果和第二阈值判断结果,对所述待量化信号进行分段,确定多段有效待量化信号,包括:In some embodiments, if the voltage value of the reference signal in the first threshold judgment section is greater than or equal to the voltage value of the reference signal in the second threshold judgment section; then based on the first threshold judgment result and the second threshold judgment result, the to-be-quantified The signal is segmented to determine multiple valid signals to be quantized, including:

若待量化信号的电压值大于第一阈值判断段参考信号的电压值,则该待量化信号为有效待量化信号;若待量化信号的电压值小于或等于第一阈值判断段参考信号的电压值、且待量化信号的电压值大于或等于第二阈值判断段参考信号的电压值,则该待量化信号为无效待量化信号;若待量化信号的电压值小于第二阈值判断段参考信号的电压值,则该待量化信号为有效待量化信号。If the voltage value of the signal to be quantized is greater than the voltage value of the reference signal in the first threshold judgment section, the signal to be quantized is an effective signal to be quantized; if the voltage value of the signal to be quantized is less than or equal to the voltage value of the reference signal in the first threshold judgment section , and the voltage value of the signal to be quantized is greater than or equal to the voltage value of the reference signal in the second threshold judgment section, then the signal to be quantized is an invalid signal to be quantized; if the voltage value of the signal to be quantized is less than the voltage of the reference signal in the second threshold judgment section value, the signal to be quantized is an effective signal to be quantized.

示例地,待量化信号的电压值Vx大于第一阈值判断段参考信号的电压值V1;待量化信号的电压值Vx小于或等于第一阈值判断段参考信号的电压值V1,同时,待量化信号的电压值Vx大于或等于第二阈值判断段参考信号的电压值V2;待量化信号的电压值Vx小于第二阈值判断段参考信号的电压值V2,即通过第一阈值判断段参考信号和第二阈值判断段参考信号将待量化信号分为三个区间段。For example, the voltage value Vx of the signal to be quantized is greater than the voltage value V1 of the reference signal in the first threshold judgment section; the voltage value Vx of the signal to be quantized is less than or equal to the voltage value V1 of the reference signal in the first threshold judgment section, and at the same time, the signal to be quantized The voltage value Vx of the second threshold judgment section is greater than or equal to the voltage value V2 of the reference signal of the second threshold judgment section; The two-threshold judgment segment reference signal divides the signal to be quantized into three interval segments.

当待量化信号为差分信号时,将接近于0的待量化信号确定为无效待量化信号,即将V1≤Vx≤V2的待量化信号确定为无效待量化信号。将Vx<V1和Vx>V2的待量化信号确定为有效待量化信号。When the signal to be quantized is a differential signal, the signal to be quantized close to 0 is determined as an invalid signal to be quantized, that is, the signal to be quantized with V1≤Vx≤V2 is determined to be an invalid signal to be quantized. The signals to be quantized with Vx<V1 and Vx>V2 are determined as valid signals to be quantized.

在一些实施例中,步骤S203,利用量化段参考信号对多段有效量化信号中任一段有效待量化信号进行量化,获得待量化信号的量化结果,包括:In some embodiments, in step S203, the quantization segment reference signal is used to quantize any segment of the effective signal to be quantized in the multi-segment effective quantization signal, and obtain the quantization result of the signal to be quantized, including:

比较量化段参考信号与任一段有效待量化信号,获得多个第二比较结果;基于多个第二比较结果获得待量化信号的量化结果。Comparing the reference signal of the quantization segment with any effective signal to be quantized to obtain a plurality of second comparison results; and obtaining quantization results of the signal to be quantized based on the plurality of second comparison results.

在本公开实施例中,量化段参考信号与任一段有效待量化信号进行比较时,获得第二比较结果,由于每个时钟周期进行一次比较,而且每次量化都要执行多次比较,因此,每次量化都可获得多个第二比较结果。对这些第二比较结果进行计数,可以获得量化结果。In the embodiment of the present disclosure, when the reference signal of the quantization segment is compared with any effective signal to be quantized, the second comparison result is obtained. Since a comparison is performed every clock cycle, and multiple comparisons are performed for each quantization, therefore, A plurality of second comparison results may be obtained for each quantization. By counting these second comparison results, a quantitative result can be obtained.

本公开实施例由于只需要对任一段有效待量化信号进行量化,不需要对所有待量化信号进行量化,减少了比较次数,量化时间仅需要2n-1个时钟,相对于目前的2n个时钟,提高了量化速度。The embodiment of the present disclosure only needs to quantize any effective signal to be quantized, and does not need to quantize all the signals to be quantized, which reduces the number of comparisons, and the quantization time only needs 2 n-1 clocks, compared to the current 2 n Clock, improved quantization speed.

为了更好地理解本公开实施例提供的模数转化器及量化方法,下面以参考信号包括两个阈值判断段参考信号为例进行说明。In order to better understand the analog-to-digital converter and the quantization method provided by the embodiments of the present disclosure, the reference signal includes two threshold judgment segment reference signals as an example for description below.

在本公开实施例中,如图5所示,采样段参考信号的电压值为VA+VTH,第一阈值判断段参考信号的电压值为VA+2*VTH,第二阈值判断段参考信号的电压值为VA。其中,VA=127*LSB,VTH=k*LSB,LSB表示量化精度,k值可以通过寄存器设定。In the embodiment of the present disclosure, as shown in FIG. 5 , the voltage value of the reference signal in the sampling section is VA+VTH, the voltage value of the reference signal in the first threshold judgment section is VA+2*VTH, and the voltage value of the reference signal in the second threshold judgment section is The voltage value is VA. Among them, VA=127*LSB, VTH=k*LSB, LSB represents the quantization precision, and the value of k can be set by the register.

待量化信号为是第一输入信号VIN和第二输入信号VIP的差分信号(VIN-VIP),本公开实施例对输入的差分信号的差值进行量化,量化精度为8bit。需说明的是,量化精度可以根据需要任意设定。The signal to be quantized is a differential signal (VIN-VIP) of the first input signal VIN and the second input signal VIP, and the embodiment of the present disclosure quantizes the difference between the input differential signals, and the quantization precision is 8 bits. It should be noted that the quantization precision can be set arbitrarily as required.

在本公开实施例中,如图1所示,比较器子模块21的第一输入端INN接入待量化信号,比较器子模块21的第二输入端INP接入参考信号,也可以接入共模电压信号或参考电压信号。比较器子模块21输出为高电平时,计数器子模块22计数;比较器子模块21输出为低电平,计数器子模块22不计数。In the embodiment of the present disclosure, as shown in FIG. 1 , the first input terminal INN of the comparator submodule 21 is connected to the signal to be quantized, and the second input terminal INP of the comparator submodule 21 is connected to the reference signal. common mode voltage signal or reference voltage signal. When the output of the comparator sub-module 21 is high level, the counter sub-module 22 counts; when the output of the comparator sub-module 21 is low level, the counter sub-module 22 does not count.

如图6所示,模数转换器的工作时序图。在图6中,DAC_CODE是控制参考信号的输入码值(均为对应的十进制数值):采样阶段DAC_CODE=(127+k);阈值判断阶段DAC_CODE由(127+2k)变成127;精细量化阶段DAC_CODE由127线性下降至0。As shown in Figure 6, the working timing diagram of the analog-to-digital converter. In Fig. 6, DAC_CODE is the input code value of the control reference signal (both are corresponding decimal values): sampling stage DAC_CODE=(127+k); threshold judgment stage DAC_CODE changes from (127+2k) to 127; fine quantization stage DAC_CODE decreases linearly from 127 to 0.

CNT_RSTN为计数器复位信号,在比较器子模块采样阶段进行复位清零。CNT_RSTN is the counter reset signal, which is reset and cleared during the sampling phase of the comparator sub-module.

CNT_CLK0是阈值判断阶段的时钟信号,在每个量化周期内,只有2个高脉冲,并且上升沿为触发沿,其中,第一个上升沿对应在DAC_CODE从(127+2k)跳变成127的时候,判断待量化信号处于哪个区间段。CNT_CLK0 is the clock signal in the threshold judgment stage. In each quantization period, there are only 2 high pulses, and the rising edge is the trigger edge. The first rising edge corresponds to the jump from (127+2k) to 127 when DAC_CODE At this time, determine which interval segment the signal to be quantized is in.

CNT_CLK1为细量化开始后的时钟信号,在每个量化周期内,有127个高脉冲;CNT_CLK1 is the clock signal after the fine quantization starts, and there are 127 high pulses in each quantization period;

LATCH信号为把计数器里的码值Q<7:0>存入锁存器里的信号,得到锁存器码值DOUT<7:0>。The LATCH signal is the signal to store the code value Q<7:0> in the counter into the latch, and obtain the code value DOUT<7:0> of the latch.

结合图1、图5和图6所示,模数转换器的量化过程包括:As shown in Figure 1, Figure 5 and Figure 6, the quantization process of the analog-to-digital converter includes:

步骤S61,在采样段参考信号阶段,第一输入信号VIN和采样段参考信号被分别输入比较器子模块的第一输入端INN和第二输入端INP。Step S61 , in the sampling segment reference signal stage, the first input signal VIN and the sampling segment reference signal are respectively input to the first input terminal INN and the second input terminal INP of the comparator sub-module.

步骤S62,第二输入信号VIP被输入比较器子模块的第一输入端,此时,比较器子模块的第一输入端的电压变化量为(VIN-VIP)的绝对值。In step S62, the second input signal VIP is input to the first input terminal of the comparator sub-module. At this time, the voltage variation of the first input terminal of the comparator sub-module is the absolute value of (VIN-VIP).

步骤S63,当参考电压从采样段参考信号的电压值(VA+VTH)跳变至第一阈值判断段参考信号的电压值(VA+2*VTH)时,进行第一次阈值判断,即比较待量化信号(VIN-VIP)的差值和-VTH的大小。如果(VIN-VIP)<-VTH,比较器子模块输出由高电位翻转为低电位,CNT_CLK0信号的第一个上升沿不计数,计数器子模块输出第一计数码值Q<7>=0,第二计数码值Q_TMP<7>=0;如果(VIN-VIP)>-VTH,比较器子模块输出为高电平,CNT_CLK0信号的第一个上升沿计一个数,比较器子模块输出第一计数码值Q<7>=0,第二计数码值Q_TMP<7>=1。其中,Q<7>是Q<7:0>中的最大值。Step S63, when the reference voltage jumps from the voltage value (VA+VTH) of the reference signal of the sampling segment to the voltage value (VA+2*VTH) of the reference signal of the first threshold judgment segment, the first threshold judgment is performed, that is, the comparison The difference between the signal to be quantized (VIN-VIP) and the magnitude of -VTH. If (VIN-VIP)<-VTH, the output of the comparator sub-module is turned from high potential to low potential, the first rising edge of the CNT_CLK0 signal does not count, and the counter sub-module outputs the first count value Q<7>=0, The second counting digital value Q_TMP<7>=0; if (VIN-VIP)>-VTH, the output of the comparator sub-module is high level, the first rising edge of the CNT_CLK0 signal counts a number, and the comparator sub-module outputs the first The first count digital value Q<7>=0, the second count digital value Q_TMP<7>=1. Among them, Q<7> is the maximum value among Q<7:0>.

步骤S64,当参考信号的输出电压从第一阈值判断段参考信号的电压值(VA+2*VTH)跳变至第二阈值判断段参考信号的电压值VA时,进行第二次阈值判断,即比较(VIN-VIP)差值和VTH的大小;如果(VIN-VIP)<VTH,则比较器子模块输出由高电位翻转为低电位,CNT_CLK0信号的第二个上升沿不计数,计数器子模块输出不变,即第一计数码值Q<7>=0,第二计数码值Q_TMP<7>=1;如果(VIN-VIP)>VTH,比较器子模块输出仍为高电位,CNT_CLK0信号的第二个上升沿继续计一个数,计数器子模块输出第一计数码值Q<7>=1,第二计数码值Q_TMP<7>=0。Step S64, when the output voltage of the reference signal jumps from the voltage value (VA+2*VTH) of the reference signal in the first threshold judgment section to the voltage value VA of the reference signal in the second threshold judgment section, a second threshold judgment is performed, That is, compare the difference between (VIN-VIP) and VTH; if (VIN-VIP)<VTH, the output of the comparator sub-module is turned from high potential to low potential, the second rising edge of the CNT_CLK0 signal does not count, and the counter sub-module The output of the module remains unchanged, that is, the first counting digital value Q<7>=0, the second counting digital value Q_TMP<7>=1; if (VIN-VIP)>VTH, the comparator sub-module output is still high potential, CNT_CLK0 The second rising edge of the signal continues to count a number, the counter submodule outputs the first counting value Q<7>=1, and the second counting value Q_TMP<7>=0.

步骤S65,基于上述阈值判断结果,对待量化信号进行分段:Step S65, segmenting the signal to be quantized based on the threshold judgment result above:

当VIN-VIP<-VTH时,第一计数码值Q<7>=0,第二计数码值Q_TMP<7>=0,待量化信号为有效待量化信号;When VIN-VIP<-VTH, the first counting value Q<7>=0, the second counting value Q_TMP<7>=0, the signal to be quantized is an effective signal to be quantized;

当-VTH=<VIN-VIP=<VTH时,第一计数码值Q<7>=0,第二计数码值Q_TMP<7>=1,待量化信号为无效待量化信号;When -VTH=<VIN-VIP=<VTH, the first counting value Q<7>=0, the second counting value Q_TMP<7>=1, the signal to be quantized is an invalid signal to be quantized;

当VIN-VIP>=VTH时,第一计数码值Q<7>=1,第二计数码值Q_TMP<7>=0,待量化信号为有效待量化信号。When VIN-VIP>=VTH, the first count value Q<7>=1, the second count value Q_TMP<7>=0, the signal to be quantized is a valid signal to be quantized.

当第一计数码值Q<7>=0时,参考电压模块与比较器子模块的第二输入端INP电连接,此时,第二输入端INP的值为VREF,即VREF=VCM+VTH+VA。当第一计数码值Q<7>=1时,参考电压模块与比较器子模块的第二输入端INP断开,第二输入端INP的值维持原状。When the first counting digital value Q<7>=0, the reference voltage module is electrically connected to the second input terminal INP of the comparator sub-module. At this time, the value of the second input terminal INP is VREF, namely VREF=VCM+VTH +VA. When the first count value Q<7>=1, the reference voltage module is disconnected from the second input terminal INP of the comparator sub-module, and the value of the second input terminal INP remains the same.

不难理解,通过阈值判断结果将待量化信号分为三段,其中中间段为接近0的无效待量化信号。It is not difficult to understand that the signal to be quantized is divided into three sections according to the threshold judgment result, and the middle section is an invalid signal to be quantized close to 0.

步骤S66,基于阈值判断结果对其中一段有效待量化信号进行量化。Step S66, based on the threshold judgment result, quantize one segment of the effective signal to be quantized.

在步骤S66中,在阈值判断结果为第一计数码值Q<7>=0,输入差分信号(VIN-VIP)>0,量化段参考信号的电压从VA线性下降至0,并按照图7所示波形进行量化,比较器子模块的第一输入端INN和第一输入端INP的波形,比较器子模块的第一输入端INP从VCM+VTH+VA下降至VCM+VTH;如果阈值判断结果为第一计数码值Q<7>=1,(VIN-VIP)>0,量化段参考信号的电压从VA线性下降至0,并按照图8所示波形进行量化,比较器子模块的第一输入端INP从VCM-VTH下降至VCM-VTH-VA;每次细量化只需执行27-1=127个时钟周期,因而比传统的8bit单斜式ADC的量化时间短(传统量化时间为28-1个时钟周期)。在图7所示的参考信号的量化段参考信号中,相比于第二阈值判断参考信号的电压值而言,在量化开始阶段有一个信号值的抬升过程,即图7的参考信号中在‘阈值判断’与‘量化’阶段交接处,参考信号从VCM-VTH抬升至VCM+VTH+VA,以使得量化段参考信号的斜坡信号与待量化信号产生交叉。可以理解的是,量化段参考信号的抬升值可以根据经验值,或者结合第一阈值判断段参考信号的电压值确定信号的抬升值。In step S66, when the threshold judgment result is the first counting code value Q<7>=0, the input differential signal (VIN-VIP)>0, the voltage of the quantization segment reference signal linearly drops from VA to 0, and according to Fig. 7 The waveform shown is quantized, the waveforms of the first input terminal INN and the first input terminal INP of the comparator sub-module, the first input terminal INP of the comparator sub-module drops from VCM+VTH+VA to VCM+VTH; if the threshold judges The result is that the first counting digital value Q<7>=1, (VIN-VIP)>0, the voltage of the reference signal of the quantization segment drops linearly from VA to 0, and quantization is performed according to the waveform shown in Figure 8, the comparator sub-module The first input terminal INP drops from VCM-VTH to VCM-VTH-VA; each fine quantization only needs to execute 2 7 -1=127 clock cycles, so it is shorter than the quantization time of traditional 8bit single-slope ADC (traditional quantization The time is 2 8 -1 clock cycles). In the reference signal of the quantization section of the reference signal shown in FIG. 7, compared with the voltage value of the second threshold judgment reference signal, there is a signal value rising process at the beginning of quantization, that is, in the reference signal of FIG. At the junction of the 'threshold judgment' and 'quantization' stages, the reference signal is raised from VCM-VTH to VCM+VTH+VA, so that the slope signal of the reference signal in the quantization section crosses the signal to be quantized. It can be understood that, the lift value of the reference signal of the quantization segment may be determined based on empirical values, or in combination with the voltage value of the reference signal of the first threshold judgment segment.

步骤S67,计数器子模块中所有计数器码值Q<7:0>在LATCH信号高脉冲时,存入锁存器(图中未示出)中,获得量化后的码值DOUT<7:0>。Step S67, all counter code values Q<7:0> in the counter sub-module are stored in the latch (not shown in the figure) when the LATCH signal is high pulsed, and the quantized code value DOUT<7:0> is obtained .

图9为本公开实施例提供的模数转换器输出的码值曲线图。其中,横轴是待量化信号,即(VIN-VIP)的差值,纵轴是量化输出的8bit码值。由图可知,在无效待量化信号段(VIN-VIP)=[-VTH,VTH],输出码值为8’h7f,即未进行量化;在(VIN-VIP)>VTH时,输出的码值在(8’h7f,8’hff]内;在(VIN-VIP)<-VTH时,输出的码值在[0,8’h7f)内。FIG. 9 is a graph of code values output by an analog-to-digital converter provided by an embodiment of the present disclosure. Wherein, the horizontal axis is the signal to be quantized, that is, the difference between (VIN-VIP), and the vertical axis is the 8-bit code value of the quantized output. It can be seen from the figure that in the invalid signal segment to be quantized (VIN-VIP)=[-VTH, VTH], the output code value is 8'h7f, that is, no quantization is performed; when (VIN-VIP)>VTH, the output code value Within (8'h7f, 8'hff]; when (VIN-VIP)<-VTH, the output code value is within [0, 8'h7f).

图10为目前的模数转换器输出的码值曲线图。由图10可知,无效待量化信号段[-VTH,VTH]也进行了量化。对无效待量化信号段进行量化,降低了量化的效率。而本公开实施例仅对有效待量化信号进行量化,可以提高量化效率,而且,可以只选择有效待量化信号中的一段有效待量化信号进行量化,从而进一步提高量化效率。FIG. 10 is a graph of code values output by a current analog-to-digital converter. It can be seen from FIG. 10 that the invalid signal segment [-VTH, VTH] to be quantized is also quantized. Quantizing invalid signal segments to be quantized reduces the efficiency of quantization. However, the embodiment of the present disclosure only quantizes valid signals to be quantized, which can improve quantization efficiency, and can only select a section of valid signals to be quantized among the valid signals to be quantized for quantization, thereby further improving quantization efficiency.

本公开实施例提供的量化方法及模数转换器可以应用于多种领域,如各种传感器、仪器仪表、图像语音识别等场合,可以提高量化速度,而且结合了ADC所具有的精度高,面积小的优势。The quantization method and the analog-to-digital converter provided by the embodiments of the present disclosure can be applied to various fields, such as various sensors, instruments, image speech recognition, etc., can improve the quantization speed, and combine the high precision and area of the ADC. small advantage.

可以理解,本公开提及的上述各个方法实施例和模数转换器,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that the above-mentioned method embodiments and analog-to-digital converters mentioned in this disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, this disclosure will not repeat them. Those skilled in the art can understand that, in the above method in the specific implementation manner, the specific execution order of each step should be determined according to its function and possible internal logic.

图11为本公开实施例提供的一种电子设备的框图。Fig. 11 is a block diagram of an electronic device provided by an embodiment of the present disclosure.

参照图11,本公开实施例提供了一种电子设备,该电子设备包括:至少一个处理器1101;至少一个存储器1102,以及一个或多个I/O接口1103,连接在处理器1101与存储器502之间;其中,存储器1102存储有可被至少一个处理器1101执行的一个或多个计算机程序,一个或多个计算机程序被至少一个处理器1101执行,以使至少一个处理器1101能够执行上述的量化方法。Referring to FIG. 11 , an embodiment of the present disclosure provides an electronic device, which includes: at least one processor 1101; at least one memory 1102, and one or more I/O interfaces 1103 connected between the processor 1101 and the memory 502 Among them; wherein, the memory 1102 stores one or more computer programs that can be executed by at least one processor 1101, and one or more computer programs are executed by at least one processor 1101, so that at least one processor 1101 can perform the above-mentioned quantification method.

本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,其中,计算机程序在被处理器/处理核执行时实现上述的量化方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。An embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned quantization method when executed by a processor/processing core. Computer readable storage media may be volatile or nonvolatile computer readable storage media.

本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当计算机可读代码在电子设备的处理器中运行时,电子设备中的处理器执行上述量化方法。An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are run in a processor of an electronic device , the processor in the electronic device executes the above quantization method.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读存储介质上,计算机可读存储介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components. Components cooperate to execute. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable storage media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).

如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读程序指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM)、静态随机存取存储器(SRAM)、闪存或其他存储器技术、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读程序指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable program instructions, data structures, program modules, or other data. volatile, removable and non-removable media. Computer storage media include, but are not limited to, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable Compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or any other device that can be used to store desired information and can be accessed by a computer any other medium. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer-readable program instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery medium.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.

这里所描述的计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software DevelopmentKit,SDK)等等。The computer program products described here may be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. .

这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其他实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本公开的范围的情况下,可进行各种形式和细节上的改变。Example embodiments have been disclosed herein, and while specific terms have been employed, they are used and should be construed in a generic descriptive sense only and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be described in combination with other embodiments, unless explicitly stated otherwise. Combinations of features and/or elements. Accordingly, it will be understood by those of ordinary skill in the art that various changes in form and details may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims (12)

1. A method of quantization, comprising:
acquiring a signal to be quantized and a reference signal, wherein the reference signal comprises a threshold judgment section reference signal and a quantization section reference signal;
carrying out threshold judgment on the signal to be quantized by utilizing the reference signal of the threshold judgment section, and determining a plurality of sections of effective signals to be quantized;
and quantizing any effective signal to be quantized in the multiple effective quantized signals by utilizing the quantized segment reference signals to obtain a quantization result of the signal to be quantized.
2. The method of claim 1, wherein the reference signal comprises one or more segments of the threshold decision segment reference signal, and a voltage value of each segment of the threshold decision segment reference signal is different.
3. The method of claim 2, wherein the reference signal further comprises a sampled segment reference signal;
the threshold judgment section reference signal comprises a first threshold judgment section reference signal and a second threshold judgment section reference signal, and a first voltage difference value between the voltage value of the first threshold judgment section reference signal and the voltage value of the sampling section reference signal is equal to a second voltage difference value between the voltage value of the second threshold judgment section reference signal and the voltage value of the sampling section reference signal.
4. The method of claim 3, wherein the thresholding the to-be-quantized signal using the thresholding segment reference signal to determine multiple segments of valid to-be-quantized signals comprises:
when the reference signal jumps from the sampling section reference signal to the first threshold judgment section reference signal, performing threshold judgment on the signal to be quantized by using the first threshold judgment section reference signal to obtain a first threshold judgment result;
when the reference voltage jumps from the first threshold judgment section reference signal to the second threshold judgment section reference signal, performing threshold judgment on the signal to be quantized by using the second threshold judgment section reference signal to obtain a second threshold judgment result;
and segmenting the signal to be quantized based on the first threshold judgment result and the second threshold judgment result, and determining the multiple sections of effective signals to be quantized.
5. The method of claim 4, wherein the voltage value of the first threshold decision segment reference signal is greater than or equal to the voltage value of the second threshold decision segment reference signal;
the segmenting the signal to be quantized based on the first threshold judgment result and the second threshold judgment result, and determining the multiple effective signals to be quantized includes:
if the voltage value of the signal to be quantized is larger than the voltage value of the reference signal of the first threshold judgment section, the signal to be quantized is the effective signal to be quantized;
if the voltage value of the signal to be quantized is less than or equal to the voltage value of the first threshold judgment section reference signal and the voltage value of the signal to be quantized is greater than or equal to the voltage value of the second threshold judgment section reference signal, the signal to be quantized is an invalid signal to be quantized;
and if the voltage value of the signal to be quantized is smaller than the voltage value of the reference signal of the second threshold judgment section, the signal to be quantized is the effective signal to be quantized.
6. The method according to claim 4, wherein the quantizing any segment of the effective signals to be quantized in the plurality of segments of effective quantized signals by using the quantized segment reference signals to obtain the quantization result of the signals to be quantized comprises:
comparing the quantization segment reference signal with any segment of the effective signal to be quantized to obtain a plurality of second comparison results;
obtaining a quantization result of the signal to be quantized based on the plurality of second comparison results.
7. An analog-to-digital converter, comprising:
an obtaining module, configured to obtain a signal to be quantized and a reference signal, where the reference signal includes a threshold decision segment reference signal and a quantization segment reference signal;
the judging module is used for utilizing the threshold judging section reference signal to carry out threshold judgment on the signal to be quantized and determining a plurality of sections of effective signals to be quantized;
and the quantization module is used for quantizing any effective signal to be quantized in the multiple effective quantized signals by utilizing the quantized segment reference signals to obtain a quantization result of the signal to be quantized.
8. The analog-to-digital converter according to claim 7, wherein the determining module comprises:
the comparator submodule is used for comparing the voltage value of the threshold judgment section reference signal with the voltage value of the signal to be quantized to obtain a first comparison result; a first input end of the comparator submodule is electrically connected with a first output end of the acquisition module, and a second input end of the comparator submodule is electrically connected with a second output end of the acquisition module;
a counter submodule for determining a threshold determination result based on the first comparison result; and the input end of the counter submodule is connected with the output end of the comparator submodule.
9. The analog-to-digital converter according to claim 8, wherein the comparator sub-module is further configured to compare the voltage value of the quantized segment reference signal with the voltage value of any segment of the valid signal to be quantized to obtain a second comparison result;
and the counter submodule is also used for obtaining a quantization result of the signal to be quantized based on the second comparison result.
10. The analog-to-digital converter of claim 8, further comprising:
the common-mode voltage module is used for generating an initial common-mode voltage of the comparator sub-module, and the output end of the common-mode voltage module is electrically connected with the second input end of the comparator sub-module;
and the reference voltage module is used for generating a reference voltage of the comparator submodule, and the output end of the reference voltage module is electrically connected with the second input end of the comparator submodule.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores one or more computer programs executable by the at least one processor to enable the at least one processor to perform the quantization method of any one of claims 1-6.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the quantization method according to any one of claims 1-6.
CN202211211111.8A 2022-09-30 2022-09-30 Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium Pending CN115603747A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202211211111.8A CN115603747A (en) 2022-09-30 2022-09-30 Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium
JP2025518573A JP2025532305A (en) 2022-09-30 2023-09-20 Network precision quantization method, system, device, electronic device and readable medium
PCT/CN2023/120101 WO2024067299A1 (en) 2022-09-30 2023-09-20 Network precision quantization method, system and apparatus, and electronic device and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211211111.8A CN115603747A (en) 2022-09-30 2022-09-30 Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115603747A true CN115603747A (en) 2023-01-13

Family

ID=84845089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211211111.8A Pending CN115603747A (en) 2022-09-30 2022-09-30 Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115603747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067299A1 (en) * 2022-09-30 2024-04-04 北京灵汐科技有限公司 Network precision quantization method, system and apparatus, and electronic device and readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067299A1 (en) * 2022-09-30 2024-04-04 北京灵汐科技有限公司 Network precision quantization method, system and apparatus, and electronic device and readable medium

Similar Documents

Publication Publication Date Title
KR102665315B1 (en) delay based comparator
US9362939B1 (en) Reduction of input dependent capacitor DAC switching current in flash-SAR analog-to-digital converters
US20200412373A1 (en) Method and circuit for noise shaping sar analog-to-digital converter
US7515084B1 (en) Analog to digital converter using asynchronous pulse technology
JP6284916B2 (en) Compensated current cell for standardizing switching glitches in digital / analog converters
US9432046B1 (en) Successive approximation analog-to-digital converter
US7696918B2 (en) A-D convert apparatus
US20130169454A1 (en) System and Method for a Successive Approximation Analog to Digital Converter
TW201031126A (en) Apparatus and method for successive approximation analog-to-digital conversion
CN104242942B (en) Six asynchronous gradually-appoximant analog-digital converters of tape comparator offset correction
CN111034052B (en) Method and apparatus for enabling a wide input common mode range in a SAR ADC without additional active circuitry
CN110235372B (en) A Double Data Rate Temporal Interpolation Quantizer with Reduced Flyback Noise
CN101286742A (en) Analog-to-digital converter, analog-to-digital conversion system, data reading system and related method thereof
JP7621059B2 (en) Digital-to-analog converter, source measure unit and method for converting a digital signal to an analog signal
CN115603747A (en) Quantization method and analog-to-digital converter, electronic device, computer-readable storage medium
US20090174585A1 (en) System and method for converting analog values into digital form
US7119727B2 (en) Analog-to-digital converter
US8223056B2 (en) Cyclic digital to analog converter
US20190096501A1 (en) Low Distortion Sample and Hold (S/H) Circuits and Associated Methods for Use with Analog-to-Digital Converters (ADCs)
CN111628772B (en) High-speed high-precision time domain analog-to-digital converter
WO2024067299A1 (en) Network precision quantization method, system and apparatus, and electronic device and readable medium
US12199631B2 (en) Comparator and analog to digital converter
CN109412598B (en) Successive approximation type analog-to-digital conversion device
US8653997B2 (en) Modulator
US7652612B2 (en) Cyclic pipeline analog-to-digital converter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination