JP2006074688A - Encoder circuit, and analog-to-digital conversion circuit - Google Patents

Encoder circuit, and analog-to-digital conversion circuit Download PDF

Info

Publication number
JP2006074688A
JP2006074688A JP2004258629A JP2004258629A JP2006074688A JP 2006074688 A JP2006074688 A JP 2006074688A JP 2004258629 A JP2004258629 A JP 2004258629A JP 2004258629 A JP2004258629 A JP 2004258629A JP 2006074688 A JP2006074688 A JP 2006074688A
Authority
JP
Japan
Prior art keywords
circuit
thermometer code
code
encoder
bubbling
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
JP2004258629A
Other languages
Japanese (ja)
Inventor
Yoshinori Tokioka
良宜 時岡
Koichi Komoriya
浩一 小森谷
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology Corp
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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2004258629A priority Critical patent/JP2006074688A/en
Publication of JP2006074688A publication Critical patent/JP2006074688A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To make an error range fixed, and make an error range small in a case of the same bubbling number even if bubbling of a thermometer code occurs anywhere. <P>SOLUTION: The encoder circuit is provided with a counter circuit 21 which counts a number of "1" in a thermometer code 101 obtained comparing analog input voltage with a plurality of reference voltage, and outputs the counted value 102, and a latch circuit 22 which latches the counted value 102 from the counter circuit 21. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明はアナログの入力電圧をデジタル出力に変換する際に使用するエンコーダ回路、及びこのエンコーダ回路を使用したアナログ・デジタル変換回路(以下、ADC回路)に関するものである。   The present invention relates to an encoder circuit used for converting an analog input voltage into a digital output, and an analog / digital conversion circuit (hereinafter referred to as an ADC circuit) using the encoder circuit.

図4は並列比較型のADC回路の基本構成を示すブロック図であり、nビット並列比較型のADC回路の場合には、2n −1個のコンパレータ10とエンコーダ回路20を備えている。各コンパレータ10には入力電圧とそれぞれ等間隔に設定された基準電圧が供給されており、各コンパレータ10はアナログの入力電圧とそれぞれ設定された基準電圧を比較して比較結果を出力する。エンコーダ回路20は各コンパレータ10の比較結果をデジタル出力であるnビットのバイナリコード(Binary Code)103に変換する。 FIG. 4 is a block diagram showing a basic configuration of a parallel comparison type ADC circuit. In the case of an n-bit parallel comparison type ADC circuit, 2 n −1 comparators 10 and an encoder circuit 20 are provided. Each comparator 10 is supplied with an input voltage and a reference voltage set at equal intervals. Each comparator 10 compares the analog input voltage with the set reference voltage and outputs a comparison result. The encoder circuit 20 converts the comparison result of each comparator 10 into an n-bit binary code 103 that is a digital output.

各コンパレータ10の出力は、供給されている基準電圧の小さい方から大きい方に向かって‘1’が連続し、あるコンパレータ10から基準電圧の大きい方に向かって‘0’が連続することにより、複数のコンパレータ10からサーモメータコード(Thermometer Code;温度計符号)101が出力される。すなわち、サーモメータコード101における‘1’と‘0’の切り替わりポイントを検出することにより、アナログの入力電圧をデジタル出力に変換している。ところが、様々な要因により、図5に示すように、各コンパレータ10の‘1’/‘0’の変化点が複数となるバブリングが発生することがある。このバブリングが発生すると、エンコーダ回路20が正常なバイナリコード103を発生することができないので、このバブリングによるエラーをできるだけ小さい範囲にとどめるための補正が必要となる。   As for the output of each comparator 10, '1' is continuous from the smaller reference voltage supplied to the larger reference voltage, and '0' is continued from one comparator 10 toward the larger reference voltage. A thermometer code (thermometer code) 101 is output from the plurality of comparators 10. That is, the analog input voltage is converted into a digital output by detecting a switching point between “1” and “0” in the thermometer code 101. However, due to various factors, as shown in FIG. 5, bubbling in which a plurality of change points of “1” / “0” of each comparator 10 occur may occur. When this bubbling occurs, the encoder circuit 20 cannot generate a normal binary code 103, and thus correction for keeping the bubbling error as small as possible is necessary.

そこで、従来は例えば非特許文献1に示すように、各コンパレータ10の出力であるサーモメータコード101を、隣り合う数値のハミング距離が‘1’となるグレイコード(Gray Code)104に変換してから、バイナリコード103に変換するという方法が用いられている。   Therefore, conventionally, for example, as shown in Non-Patent Document 1, the thermometer code 101 that is the output of each comparator 10 is converted into a Gray code 104 in which the hamming distance between adjacent numerical values is “1”. The method of converting to binary code 103 is used.

図6はグレイコード104を使用する場合の従来のエンコーダ回路20の動作を説明する図であり、3ビット並列比較型のADC回路に使用する場合のサーモメータコード101、グレイコード104及びバイナリコード103の関係を示している。
図7はエンコーダ回路20におけるサーモメータコード101をグレイコード104に変換する回路図である。図7において、サーモメータコード101の各値T0〜T6とグレイコード104の各値G0〜G2の論理式は次の式(1)〜式(3)で示される。
G0=T0×T2* +T4×T6* (1)
G1=T1×T5* (2)
G2=T3 (3)
なお、T2* ,T6* ,T5* はそれぞれT2,T6,T5の反転を示す。
FIG. 6 is a diagram for explaining the operation of the conventional encoder circuit 20 when the Gray code 104 is used. The thermometer code 101, the Gray code 104, and the binary code 103 when used in a 3-bit parallel comparison type ADC circuit. Shows the relationship.
FIG. 7 is a circuit diagram for converting the thermometer code 101 into the gray code 104 in the encoder circuit 20. In FIG. 7, the logical expressions of the values T0 to T6 of the thermometer code 101 and the values G0 to G2 of the gray code 104 are expressed by the following expressions (1) to (3).
G0 = T0 * T2 * + T4 * T6 * (1)
G1 = T1 × T5 * (2)
G2 = T3 (3)
T2 * , T6 * , and T5 * indicate inversions of T2, T6, and T5, respectively.

図8は3ビット並列比較型のADC回路においてグレイコード104を使用した場合の従来のエンコーダ回路20の動作を説明する図である。ここでは、真のサーモメータコード101を‘0011111’(真の出力‘5’)とし、サーモメータコード101に‘0’のバブリングが1個発生した場合を示している。この図8の例では、真の出力5に対してバブリングが発生する場所により1〜−3までの誤差が発生している。これは、図7のサーモメータコード101をグレイコード104に変換する回路において、入力T0,T2,T4,T6は出力G0に影響し、入力T1,T5は出力G1に影響し、入力T3は出力G2に影響していることにより、サーモメータコード101のどの位置にバブリングが発生するかによって、グレイコード104への影響が変化するためである。   FIG. 8 is a diagram for explaining the operation of the conventional encoder circuit 20 when the Gray code 104 is used in the 3-bit parallel comparison type ADC circuit. Here, a case where the true thermometer code 101 is “0011111” (true output “5”) and one bubbling of “0” occurs in the thermometer code 101 is shown. In the example of FIG. 8, an error of 1 to −3 occurs depending on where bubbling occurs with respect to the true output 5. In the circuit for converting the thermometer code 101 of FIG. 7 to the gray code 104, the inputs T0, T2, T4, T6 affect the output G0, the inputs T1, T5 affect the output G1, and the input T3 is the output. This is because the influence on the gray code 104 changes depending on the position of the thermometer code 101 where bubbling occurs due to the influence on G2.

また、特許文献1に示すAD変換器では、入力信号と分解能に応じたレベルを発生する参照信号とを比較し、入力信号と各参照信号との大小関係を判定する比較器によりサーモメータコードに変換されたデジタル信号を符号変換することにより、所望のデジタル信号を得るものにおいて、比較器複数個をまとめてグループとし、各グループ内の各比較器の出力を加算し、加算結果がある闘値を越えたかどうかでグループ出力とし、該グループ出力を符号変換することによりAD変換器のデジタル出力の上位ビットを得るとともに、各グループ内の加算結果から下位ビットを得ることが開示されている。   In the AD converter shown in Patent Document 1, the input signal is compared with a reference signal that generates a level corresponding to the resolution, and a thermometer code is generated by a comparator that determines the magnitude relationship between the input signal and each reference signal. In the case of obtaining a desired digital signal by code-converting the converted digital signal, a plurality of comparators are grouped together, the outputs of the comparators in each group are added, and a threshold value with the addition result It is disclosed that a group output is obtained depending on whether or not the signal exceeds the upper limit, and the upper bit of the digital output of the AD converter is obtained by code-converting the group output, and the lower bit is obtained from the addition result in each group.

Principles of Data Conversion System Design,IEEE Press,PC4465,Behzad Razavi,1995,p.114−115Principles of Data Conversion System Design, IEEE Press, PC4465, Behzad Razavi, 1995, p. 114-115 特開平2−238717号公報(第3ページ左下欄、第6行〜第18行)JP-A-2-238717 (3rd page, lower left column, lines 6 to 18)

従来の非特許文献1に示すエンコーダ回路20は以上のように構成されているので、図8に示すように、サーモメータコード101のバブリングが発生する場所によって真の出力との誤差が変化してしまい、誤差の範囲が大きくなってしまうという課題があった。   Since the conventional encoder circuit 20 shown in Non-Patent Document 1 is configured as described above, as shown in FIG. 8, the error from the true output varies depending on the location where bubbling of the thermometer code 101 occurs. As a result, there is a problem that the range of error becomes large.

また、従来の特許文献1に示すAD変換器についても、同公報の第11図に示すように、同様にサーモメータコードのバブリングが発生する場所によって真の出力との誤差が変化してしまい、誤差の範囲が大きくなってしまうという課題があった。   Also, with respect to the conventional AD converter shown in Patent Document 1, as shown in FIG. 11 of the same publication, the error from the true output changes depending on where the bubbling of the thermometer code occurs, There was a problem that the range of errors would increase.

この発明は上記のような課題を解決するためになされたもので、サーモメータコード101のバブリングがどこで発生しても、同じバブリングの数の場合に誤差の範囲が一定となり、グレイコード104を使用した場合よりも誤差の範囲を小さくすることができるエンコーダ回路及びアナログ・デジタル変換回路を得ることを目的とする。   The present invention has been made to solve the above-described problems. Wherever bubbling of the thermometer code 101 occurs, the error range becomes constant when the number of bubbling is the same, and the Gray code 104 is used. It is an object of the present invention to obtain an encoder circuit and an analog / digital conversion circuit that can make the error range smaller than in the case of the above.

この発明に係るエンコーダ回路は、アナログの入力電圧を複数の基準電圧と比較して得られるサーモメータコードにおける1の数をカウントしてカウント値を出力するカウンタ回路と、上記カウンタ回路からのカウント値をラッチするラッチ回路とを備えたものである。   An encoder circuit according to the present invention includes a counter circuit for counting the number of 1 in a thermometer code obtained by comparing an analog input voltage with a plurality of reference voltages and outputting a count value, and a count value from the counter circuit And a latch circuit for latching.

この発明により、サーモメータコードのバブリングがどこで発生しても、同じバブリングの数の場合に誤差の範囲が一定となり、誤差の範囲を小さくすることができるという効果がある。   According to the present invention, no matter where the bubbling of the thermometer code occurs, the error range is constant when the number of bubblings is the same, and the error range can be reduced.

実施の形態1.
図1はこの発明の実施の形態1によるエンコーダ回路20の構成を示すブロック図である。なお、並列比較型のADC回路の基本構成を示すブロック図は図4と同一であり、図1に示すエンコーダ回路20はコンパレータ10の出力に接続されている。図1に示すエンコーダ回路20はカウンタ回路21とラッチ回路22とを備えている。カウンタ回路21はサーモメータコード101全体の出力における‘1’の数をカウントしてカウント値102を出力し、ラッチ回路22はカウンタ回路21のカウント値102をラッチしてクロックOSCに同期してバイナリコード103を出力する。
Embodiment 1 FIG.
1 is a block diagram showing a configuration of an encoder circuit 20 according to Embodiment 1 of the present invention. The block diagram showing the basic configuration of the parallel comparison type ADC circuit is the same as FIG. 4, and the encoder circuit 20 shown in FIG. 1 is connected to the output of the comparator 10. The encoder circuit 20 shown in FIG. 1 includes a counter circuit 21 and a latch circuit 22. The counter circuit 21 counts the number of “1” in the output of the entire thermometer code 101 and outputs a count value 102, and the latch circuit 22 latches the count value 102 of the counter circuit 21 and is binary in synchronization with the clock OSC. The code 103 is output.

図2は図1に示すエンコーダ回路20の6ビットエンコーダを実現するHDL(Hardware Description Language)記述例を示す図である。図2に示す記述例において、「ADCQ」は入力するサーモメータコード101、dQは出力するバイナリコード103、OSCはクロックをそれぞれ示している。   FIG. 2 is a diagram showing an example of HDL (Hardware Description Language) description that realizes the 6-bit encoder of the encoder circuit 20 shown in FIG. In the description example shown in FIG. 2, “ADCQ” indicates an input thermometer code 101, dQ indicates an output binary code 103, and OSC indicates a clock.

図2において、1行目はモジュール名、ピン名、2行目から4行目はピン宣言、5行目はレジスタ宣言、6行目は変数宣言を示している。7行目はクロックのポジティブエッジで以下を実行することを示し、8行目はjに初期値‘0’を設定し、9行目は変数iを‘0’から‘63’まで1つずつ増加させて以下を実行し、10行目はもしi番目のサーモメータコード101が‘1’ならば以下を実行することを示している。11行目はjに‘1’を加算することを示し、12行目はif文の終了、13行目はfor文の終了を示している。14行目は出力するバイナリコード103にjを設定することを示し、15行目はalways文の終了、16行目はモジュールの終了を示している。   In FIG. 2, the first line indicates the module name, the pin name, the second to fourth lines indicate the pin declaration, the fifth line indicates the register declaration, and the sixth line indicates the variable declaration. The 7th line indicates that the following is executed at the positive edge of the clock, the 8th line sets the initial value '0' to j, and the 9th line sets the variable i from '0' to '63' one by one. The following is executed in increments, and the 10th line indicates that if the i-th thermometer code 101 is “1”, the following is executed. The 11th line indicates that “1” is added to j, the 12th line indicates the end of the if sentence, and the 13th line indicates the end of the for sentence. The 14th line indicates that j is set in the binary code 103 to be output, the 15th line indicates the end of the always statement, and the 16th line indicates the end of the module.

図3は図1に示すエンコーダ回路20の3ビットエンコーダの動作を説明する図である。ここでは、図8と同様に、真のサーモメータコード101を‘0011111’(真の出力‘5’)とし、サーモメータコード101に‘0’のバブリングが1個発生した場合を示している。この図3の例では、サーモメータコード101のどの場所でバブリングが発生しても、カウンタ回路21はサーモメータコード101全体の出力における‘1’の数をカウントしてカウント値102を出力し、ラッチ回路22はカウンタ回路21のカウント値102をラッチしてクロックOSCに同期してバイナリコード103を出力することにより、真の出力5に対して誤差の値は一定の−1となり、従来のグレイコード104を使用した場合よりも誤差の範囲が小さくなっている。   FIG. 3 is a diagram for explaining the operation of the 3-bit encoder of the encoder circuit 20 shown in FIG. Here, as in FIG. 8, the true thermometer code 101 is ‘0011111’ (true output ‘5’), and one bubbling of ‘0’ occurs in the thermometer code 101. In the example of FIG. 3, the counter circuit 21 counts the number of “1” in the output of the entire thermometer code 101 and outputs a count value 102 regardless of where the bubbling occurs in the thermometer code 101. The latch circuit 22 latches the count value 102 of the counter circuit 21 and outputs the binary code 103 in synchronization with the clock OSC, so that the error value becomes a constant −1 with respect to the true output 5, and the conventional gray level The range of error is smaller than when the code 104 is used.

図3の例では、サーモメータコード101に‘0’のバブリングが1個発生した場合を示しているが、‘0’のバブリングがn個発生した場合には、真の出力に対する誤差の値は−nとなり、‘1’のバブリングがk個発生した場合には、真の出力に対する誤差の値は+kとなる。また、0’のバブリングがn個、‘1’のバブリングがk個発生した場合には、真の出力に対する誤差の値はk−nとなる。このように、いずれの場合にもバブリングの個数のみに依存する一定の値となり、バブリングが発生する場所には依存しない。   In the example of FIG. 3, the case where one “0” bubbling occurs in the thermometer code 101 is shown, but when n “0” bubbling occurs, the error value for the true output is -N, and k bubblings of “1” occur, the error value for the true output is + k. When n 0 'bubblings and k' 1 'bubblings occur, the error value for the true output is kn. Thus, in any case, it becomes a constant value that depends only on the number of bubbling, and does not depend on the location where bubbling occurs.

以上のように、この実施の形態1によれば、カウンタ回路21はサーモメータコード101全体の出力における‘1’の数をカウントしてカウント値102を出力し、ラッチ回路22はカウンタ回路21のカウント値102をラッチしてクロックOSCに同期してバイナリコード103を出力することにより、サーモメータコード101のバブリングがどこで発生しても、同じバブリングの数の場合に誤差の範囲が一定となり、グレイコード104を使用した場合よりも誤差の範囲を小さくすることができるという効果が得られる。   As described above, according to the first embodiment, the counter circuit 21 counts the number of “1” in the output of the entire thermometer code 101 and outputs the count value 102, and the latch circuit 22 By latching the count value 102 and outputting the binary code 103 in synchronization with the clock OSC, no matter where the bubbling of the thermometer code 101 occurs, the error range becomes constant when the number of bubbling is the same. There is an effect that the error range can be made smaller than when the code 104 is used.

この発明の実施の形態1によるエンコーダ回路の構成を示すブロック図である。It is a block diagram which shows the structure of the encoder circuit by Embodiment 1 of this invention. この発明の実施の形態1によるエンコーダ回路の6ビットエンコーダを実現するHDL記述例を示す図である。It is a figure which shows the example of HDL description which implement | achieves the 6-bit encoder of the encoder circuit by Embodiment 1 of this invention. この発明の実施の形態1によるエンコーダ回路の3ビットエンコーダの動作を説明する図である。It is a figure explaining operation | movement of the 3-bit encoder of the encoder circuit by Embodiment 1 of this invention. 並列比較型のADC回路の基本構成を示すブロック図である。It is a block diagram which shows the basic composition of a parallel comparison type ADC circuit. サーモメータコードにおけるバブリングの発生を説明する図である。It is a figure explaining generation | occurrence | production of bubbling in a thermometer code | cord | chord. 従来のエンコーダ回路の動作を説明する図である。It is a figure explaining operation | movement of the conventional encoder circuit. 従来のエンコーダ回路におけるサーモメータコードをグレイコードに変換する回路図である。It is a circuit diagram which converts the thermometer code in the conventional encoder circuit into a Gray code. 従来のエンコーダ回路の動作を説明する図である。It is a figure explaining operation | movement of the conventional encoder circuit.

符号の説明Explanation of symbols

10 コンパレータ、20 エンコーダ回路、21 カウンタ回路、22 ラッチ回路、101 サーモメータコード、102 カウント値、103 バイナリコード。   10 Comparator, 20 Encoder circuit, 21 Counter circuit, 22 Latch circuit, 101 Thermometer code, 102 Count value, 103 Binary code.

Claims (2)

アナログの入力電圧を複数の基準電圧と比較して得られるサーモメータコードにおける1の数をカウントしてカウント値を出力するカウンタ回路と、
上記カウンタ回路からのカウント値をラッチするラッチ回路とを備えたエンコーダ回路。
A counter circuit that counts the number of 1 in a thermometer code obtained by comparing an analog input voltage with a plurality of reference voltages and outputs a count value;
An encoder circuit comprising: a latch circuit that latches a count value from the counter circuit.
アナログの入力電圧を各基準電圧と比較してサーモメータコードを出力する複数のコンパレータと、
上記請求項1記載のエンコーダ回路とを備えた並列比較型のアナログ・デジタル変換回路。
Multiple comparators that compare the analog input voltage to each reference voltage and output a thermometer code;
A parallel comparison type analog-digital conversion circuit comprising the encoder circuit according to claim 1.
JP2004258629A 2004-09-06 2004-09-06 Encoder circuit, and analog-to-digital conversion circuit Pending JP2006074688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004258629A JP2006074688A (en) 2004-09-06 2004-09-06 Encoder circuit, and analog-to-digital conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004258629A JP2006074688A (en) 2004-09-06 2004-09-06 Encoder circuit, and analog-to-digital conversion circuit

Publications (1)

Publication Number Publication Date
JP2006074688A true JP2006074688A (en) 2006-03-16

Family

ID=36154768

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004258629A Pending JP2006074688A (en) 2004-09-06 2004-09-06 Encoder circuit, and analog-to-digital conversion circuit

Country Status (1)

Country Link
JP (1) JP2006074688A (en)

Similar Documents

Publication Publication Date Title
US7576677B2 (en) Pipeline A/D converter converting analog signal to digital signal
US7561092B2 (en) Extension of accuracy of a flash ADC by 1-bit through interpolation of comparator outputs
JP4626581B2 (en) Digitizer
US7456774B2 (en) Encoder circuit and A/D conversion circuit
US6388602B1 (en) Bubble and meta-stability error immune gray-code encoder for high-speed A/D converters
Ghoshal et al. A bit swap logic (BSL) based bubble error correction (BEC) method for flash ADCs
US20210328596A1 (en) Digital slope analog to digital converter device and signal conversion method
US7999718B2 (en) Analog-to-digital converter and electronic system including the same
Yeh et al. A novel flash analog-to-digital converter
JP2016213531A (en) AD converter and AD conversion method
JP2006074688A (en) Encoder circuit, and analog-to-digital conversion circuit
TWI458266B (en) Analog - to - digital converter
JP5020157B2 (en) Analog / digital conversion circuit
JP3813614B2 (en) Error correction circuit and A / D converter
US7449921B2 (en) Apparatus and method reducing glitch in switching device
JP5190014B2 (en) Integrating AD conversion circuit and AD conversion method
KR102242402B1 (en) Method of converting analog signal to digital information having a plurality of bits
KR20020022159A (en) Folding interpolation A/D converter
US7986258B2 (en) Analog-digital conversion cell and analog-digital converter
Wilamowski et al. A gray-code current mode ADC structure
CN113556127A (en) Digital slope analog-to-digital converter device and signal conversion method
JP2017191964A (en) AD conversion circuit
JP2003218696A (en) Analog-digital converter
JP2008061281A (en) Pulse-width digitally converting circuit
KR20050035302A (en) Encoder circuit and a/d converter circuit

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060123

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070627

RD01 Notification of change of attorney

Effective date: 20071101

Free format text: JAPANESE INTERMEDIATE CODE: A7421

RD01 Notification of change of attorney

Effective date: 20071101

Free format text: JAPANESE INTERMEDIATE CODE: A7421

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090929

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100209