JPS6048619A - Digital-analog converter - Google Patents

Digital-analog converter

Info

Publication number
JPS6048619A
JPS6048619A JP15695083A JP15695083A JPS6048619A JP S6048619 A JPS6048619 A JP S6048619A JP 15695083 A JP15695083 A JP 15695083A JP 15695083 A JP15695083 A JP 15695083A JP S6048619 A JPS6048619 A JP S6048619A
Authority
JP
Japan
Prior art keywords
output
error
input
current
digital
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.)
Granted
Application number
JP15695083A
Other languages
Japanese (ja)
Other versions
JPS6353738B2 (en
Inventor
Hironobu Niijima
宏信 新島
Akinori Shibayama
昭則 柴山
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.)
Advantest Corp
Nippon Telegraph and Telephone Corp
Original Assignee
Advantest Corp
Nippon Telegraph and Telephone Corp
Takeda Riken Industries 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 Advantest Corp, Nippon Telegraph and Telephone Corp, Takeda Riken Industries Co Ltd filed Critical Advantest Corp
Priority to JP15695083A priority Critical patent/JPS6048619A/en
Publication of JPS6048619A publication Critical patent/JPS6048619A/en
Publication of JPS6353738B2 publication Critical patent/JPS6353738B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/10Calibration or testing

Landscapes

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

Abstract

PURPOSE:To attain high accuracy of an analog output by applying an error optimizing operation to a digital-analog converter at a proper time before or during the use. CONSTITUTION:A multiplexer 15 is provided to an input side of a code converting section 12, the multiplexer 15 is controlled from a control section 16 through a terminal 19 so as to select the A side input while the content of the code converting section 12 is written, one of current sources 21-2k is selected one by one, is current value is recognized and an error corresponding thereto is obtained. An input/output relation of the code converting section 12 is selected so as to optimize the error rate based on the error. When the error optimizing mode is started, the content of the code converting section 12 is rewritten by the control section 16 and the optimizing processing is conducted, then the conversion with high accuracy with decreased error is attained.

Description

【発明の詳細な説明】 この発明は入力ビツト数が多い場合に適するテジタル信
号をアナログ信号に変換する変換装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a conversion device for converting a digital signal into an analog signal, which is suitable for cases where the number of input bits is large.

〈従来技術〉 従来のデジタルアナログ変換装置においてその入力デジ
タル信号の桁数が多い場合においては入カデジタル信号
の上位桁に対する電流源の電流値に僅かの誤差を含んで
いてもこれが大きな影響を力える。このため入力される
べきデジタル信号の上位桁の複数ビットについては10
進数に変換し、その最大数だけの同一電流値の複数個の
電流源を設けておき、変換された10進数の数値の数だ
け、その電流源を選択してその電流を出力し、これら電
流を加算してその上位桁のデジタル信号のアナログ出力
とするようにされていた。
<Prior art> In a conventional digital-to-analog converter, when the number of digits of the input digital signal is large, even a slight error in the current value of the current source for the upper digits of the input digital signal has a large influence. I can do it. Therefore, for multiple bits of the upper digits of the digital signal to be input, 10
Convert it to a decimal number, set up multiple current sources with the same current value as many as the maximum number, select the current sources as many times as the converted decimal number, output the current, and convert these currents. was added to produce an analog output of the digital signal of the upper digit.

このように上位桁を変換することによって高精度のテジ
クルアナログ変換を達成する上で誤差設削を有利にし、
かつ入力デジタル信号の切換時に発生するスパイク状の
雑音、いわゆるグリッジの振幅を低減することができる
。しかしその上位桁に対応した各複数の電流源の電流値
がそれぞれ僅かの誤差を持っており、これらの誤差が相
互に影%iされてその上位桁のデジタル入力値に対し、
成る特定の入力値に対しては誤差が著しく大きく々す、
特定の入力値に対しては誤差が著しく減少するようにな
ることがあった、つまり誤差率が一様にならない欠点が
あった。
By converting the upper digits in this way, error reduction is advantageous in achieving high-precision technical analog conversion.
In addition, the amplitude of spike-like noise, so-called glitch, that occurs when switching input digital signals can be reduced. However, the current values of the multiple current sources corresponding to the upper digits each have a slight error, and these errors are mutually influenced and the digital input value of the upper digit is
For certain input values, the error becomes extremely large.
There was a drawback that the error rate decreased significantly for a specific input value, that is, the error rate was not uniform.

第1図に従来の高精度デジタルアナログ変換装置の構成
例を示す。デジタル信号入力端子11〜1r+。
FIG. 1 shows an example of the configuration of a conventional high-precision digital-to-analog converter. Digital signal input terminals 11 to 1r+.

lH++−In+mにそれぞれデジタル信号B+−Bn
Digital signals B+-Bn to lH++-In+m, respectively.
.

Bn+ t−Bn++nが入力され、これら各デジタル
信号B1〜Bn、Bn+1〜Bn+mは、信号B+によ
ってアナログ出力端子11に出力されるアナログ電圧を
基準として、信号Bn+mに到るまで順次1/2ずつ低
い値となるよう、つまり2進で重み付けされている。
Bn+ t-Bn++n is input, and each of these digital signals B1 to Bn, Bn+1 to Bn+m is sequentially lowered by 1/2 from the analog voltage outputted to the analog output terminal 11 by the signal B+ until it reaches the signal Bn+m. It is weighted in binary so that it becomes a value.

最上位信号B I (MS B : Mo5t 51g
n1f 1cant Bit)から信号Bnまではコー
ド変換部12へ入力されて2進重み付けから10進重み
伺けを持つ信号に変換される。従って、今信号B1〜B
4の4ビツトをコード変換部12でコード変換したとす
れば、その変換出力は15個の同じ重みを44つ端子の
1つ乃至複数に出力するように変換が行われる。コード
変換部120に個(k=2 −1.)の各出力により電
流スイッチ31〜3kが制御され、電流スイッチ3H+
1−3n+mはデジタル信号B n + 1〜B n 
+mによりそれぞれ制御される。電流源21〜2には同
じ値で重み付けされた電流を出力し、電流源2n+1〜
2 B+mは1/2ずつ少なくなる2進の重み付けがさ
れ電流を出力する。これら電流源21〜2に、2g−+
−+〜2n+mの各電流I+〜I k + I n +
 l〜In+mは対応する電流スイッチ31〜3に、3
n++〜3n+mの制御状態に応じて加算回路13へ供
給され、加算され出力端子11へ出力される。′電流源
21〜2k 、 21+ 1〜b動作用の定電圧が定電
圧源14から与えられである。
Top signal B I (MS B: Mo5t 51g
n1f 1cant Bit) to the signal Bn are input to the code conversion unit 12 and converted from binary weighting to a signal having a decimal weighting range. Therefore, now the signals B1-B
If the code conversion unit 12 converts the 4 bits of 4, the conversion output is converted so that 15 equal weights are output to one or more of the 44 terminals. The current switches 31 to 3k are controlled by each output (k=2-1.) to the code converter 120, and the current switches 3H+
1-3n+m is a digital signal B n + 1 to B n
+m respectively. A current weighted with the same value is output to the current sources 21 to 2, and the current sources 2n+1 to
2B+m is binary weighted to decrease by 1/2 and outputs a current. 2g−+ for these current sources 21 to 2;
-+~2n+m each current I+~Ik+In+
1 to In+m to the corresponding current switches 31 to 3, 3
According to the control state of n++ to 3n+m, the signals are supplied to the adder circuit 13, added, and output to the output terminal 11. 'A constant voltage for operating the current sources 21 to 2k and 21+1 to b is supplied from a constant voltage source 14.

従って上位4ビツトをコード変換部12で10進数に変
換し、下位14ビツトを2進数で対応する電流スイッチ
を制御した場合、即ちに=15、n=4 、m=l 4
の場合はその入力デジタル信号の各ピッ)B+乃至B+
sと電流源21乃至229との関係は第2図に示すよう
になる。上位ビットB1乃至B4は電流源21乃至21
sに対応付けられるが、その場合2進上位ビットの変換
部12の出力、即ち10進数に変換された数値の数だけ
電流源が選択される。この関係は第3図に示すように上
位ビットB1乃至134中のビットB4のみ入力される
と、これは最も小さな値であって、電流源215のみが
出力されるようにスイッチ315のみがオンとされ、ビ
ットBaのみが入力されるとその10進数は2であって
スイッチ314.3+5がオンとされて電流源214,
215より電流が出力される。ビットf3g。
Therefore, when the upper 4 bits are converted into a decimal number by the code converter 12 and the lower 14 bits are used to control the corresponding current switch using a binary number, that is, = 15, n = 4, m = l 4
In the case of , each pitch of the input digital signal) B+ to B+
The relationship between s and the current sources 21 to 229 is as shown in FIG. Upper bits B1 to B4 are current sources 21 to 21
s, and in that case, the number of current sources selected is equal to the output of the binary upper bit converter 12, that is, the number of numerical values converted to a decimal number. As shown in FIG. 3, when only bit B4 of the upper bits B1 to 134 is input, this is the smallest value, and only switch 315 is turned on so that only current source 215 is output. When only bit Ba is input, its decimal number is 2, switch 314.3+5 is turned on, and current source 214,
A current is output from 215. Bit f3g.

B4が共に入力されるとその10進数は3であってスイ
ッチ81g乃至SI5がオンとされて電流源218乃至
215の出力が共に出力される。以下同様にその変換さ
れた10進数に対応した数たけ電流のが出力される。し
かし下位ビットB5乃至Busについては電流源216
乃至229がそれぞれ1個ずつ対応し、その入力された
ビットに対応した電流源の電流のみが出力される。
When B4 is input together, the decimal number thereof is 3, switches 81g to SI5 are turned on, and the outputs of current sources 218 to 215 are output together. Similarly, the number of currents corresponding to the converted decimal number is output. However, for the lower bits B5 to Bus, the current source 216
229 correspond to one each, and only the current of the current source corresponding to the input bit is output.

このようにすることによって上位ビットに対応した電流
源の電流値をそれほど大きな電流値とすることなく、従
って電流値の精度を比較的高い精度とすることか可能と
なり、高精度のテジタルアナログ変換を達成することが
容易となり、かつ人力されたデジタル信号値が切にえら
れた時に発生するスパイク状の雑音の振幅を減少1゛る
ことができる。
By doing this, the current value of the current source corresponding to the upper bit does not have to be so large, and therefore the accuracy of the current value can be made relatively high, allowing high-precision digital-to-analog conversion. This is easier to accomplish and can reduce the amplitude of spike-like noise that occurs when manually input digital signal values are input.

しかしこの従来のデジタルアナログ変換装置においてコ
ード変換部12はワイヤードロジックで構成されており
、その最初に設計した時に上位デジタル入力のビットに
対応して出力される出力端子の位置関係は固定されてい
た。寸だ電流源21乃至2にの各電流値1r乃至Ikに
ついては、2進の重みを付ける場合よりは各誤差を小さ
くすることが比較的簡単で誤差を小式くすることができ
るが各電流源の電流値には多少の誤差を含んでいる。
However, in this conventional digital-to-analog conversion device, the code conversion section 12 is composed of wired logic, and when it was first designed, the positional relationship of the output terminals that output corresponding to the upper digital input bits was fixed. . Regarding the current values 1r to Ik of the current sources 21 to 2, it is relatively easier to reduce each error than when binary weighting is applied, and the error can be made smaller. The source current value includes some errors.

これらのため入力デジタル信号により出力誤差率が著し
く大きくなり、他の入力デジタル信号については誤差率
が小さくなるというように誤差率が一様にならないこと
がある。
For these reasons, the output error rate becomes significantly large depending on the input digital signal, and the error rate becomes small for other input digital signals, so that the error rate may not be uniform.

即ち例えば第4図に示すように電流源21乃至28につ
いてはその電流値に対する誤差率が+αであり、電流源
29乃至2+sについては各電流値の誤差率が−αでめ
ったとする。この場合の上位ビットB+乃至B 4のテ
ジタル入力に対する変換出力の誤差率は第4図に示すよ
うにBIIB21BIIIB4が1110の場合にOと
なり、B 】B 2 B 8B 4が0111の場合は
誤差率は一7αとなり、誤差率が大きく変る欠点があっ
た。特にこの例においては最大ピッ)Bxのみが1、即
ち1000を中心としてこれに近い入力デジタル値が大
きな誤差率を含み、入力デジタル値が10’OOがら0
001に近くなる程、また1111に近くなる程誤差率
が減少している。
That is, for example, as shown in FIG. 4, it is assumed that the error rate for the current values of current sources 21 to 28 is +α, and the error rate of each current value for current sources 29 to 2+s is -α. In this case, the error rate of the conversion output for the digital input of upper bits B+ to B4 is O when BIIB21BIIIB4 is 1110, as shown in Figure 4, and when B ]B 2 B 8B 4 is 0111, the error rate is 7α, which had the disadvantage that the error rate varied greatly. In particular, in this example, only the maximum pitch Bx is 1, that is, input digital values around 1000 have a large error rate, and input digital values range from 10'OO to 0.
The closer it gets to 001 and the closer it gets to 1111, the more the error rate decreases.

〈発明の概要〉 この発明の目的は入力デジタル信号を10進数に変換し
、その変換出力により同−重み伺けられた電流源の出力
を制御することによって入力デジタル信号に応じたアナ
ログ信号を出力するデジタルアナログ変換装置において
、その入力デジタル信号の値に拘らず、出力アナログ4
8号の誤差率がはソ均−化され、全体として最適な誤差
率となるように、つ?f、、!7FA度の高いアナログ
出力を得るようにしようとするものである。
<Summary of the Invention> The purpose of this invention is to convert an input digital signal into a decimal number, and output an analog signal corresponding to the input digital signal by controlling the output of a current source whose weight is determined by the converted output. In a digital-to-analog converter, regardless of the value of the input digital signal, the output analog 4
The error rate of No. 8 is equalized, and the error rate is adjusted so that it becomes the optimal error rate as a whole. f...! The purpose is to obtain an analog output with a high degree of 7FA.

この発明においては入力デジタル信号を10進数にコー
ド変換部により変換して、その入力デジタル信号に応じ
た数だけの出力を出力するようにし、これら出力により
同−重みの電流源に対する電流スイッチを制御してその
電流を出力してそれる加算回路の出力はAD変換器によ
りデジタル信号に変換され、一方入力デジタル信号に無
関係に電流スイッチを一つずつ選択制御するスイッチ選
択手段が設けられ、その各′電流スイッチを一つずつI
HII御し、その時の谷電流源よシの電流をそれぞれデ
ジタル信号に上記A、D変換器によシ変換し、そのデジ
タル信号と予め決められた基準の電流値と比較して誤差
をそれぞれめて誤差記憶手段に記憶する。これら記憶さ
れた各電流源の誤差に基ついて入力デジタル信号のアナ
ログ出力の誤差が最適となるように、つまり均一な誤差
率となるよう、入力デジタル信号とこれにより出力され
るべきコード変換部の出力端子との関係を誤差最適化手
段によって選定する。その誤差最適化手段によって選定
された結果に基づいてコード変換部の入出力関係を変更
する。
In this invention, an input digital signal is converted into a decimal number by a code converter, and the number of outputs corresponding to the input digital signal is outputted, and current switches for current sources of the same weight are controlled by these outputs. The output of the adder circuit which outputs the current and deviates from it is converted into a digital signal by an AD converter.On the other hand, switch selection means is provided to select and control the current switches one by one regardless of the input digital signal, and each of the current switches is 'Turn on the current switches one by one
Control the HII, convert the currents of the valley current source and the bottom current into digital signals using the above A and D converters, and compare the digital signals with a predetermined standard current value to determine the error. and stored in the error storage means. Based on the stored errors of each current source, the input digital signal and the code converter to be output from the input digital signal are The relationship with the output terminal is selected by the error optimization means. The input/output relationship of the code converter is changed based on the result selected by the error optimization means.

つまりすべての入力デジタル信号に勾してもほぼ同様の
誤差率となるように、谷入力テジタル信号に対応して電
流源が選択されるような関係に変更される。デジタルア
ナログ変換装置を使用する前、或はデジタルアナログ変
換装置の使用中の適当な時期に、前記誤差最適化動作を
行うことによって、誤差率が一様となり、精度の高い変
換を行うことができる。
In other words, the relationship is changed so that the current source is selected corresponding to the valley input digital signal so that the error rate is almost the same for all input digital signals. By performing the error optimization operation before using the digital-analog converter or at an appropriate time while the digital-analog converter is in use, the error rate becomes uniform and highly accurate conversion can be performed. .

〈実施例〉 第5図はこの発明によるデジタルアナログ変換装置の実
施例を示し、第1図と対応するγ14分に同一符号を利
けである。この発明においてはコード変換部12として
その入出力関係を自由に変更することができるようなも
のが用いられる。例えばコード変換部12として読書き
oJ能なメモリか設けられ、これにアドレスA1乃至A
nを入力すると内部でデコードされて1乃至に番地の伺
れかが選択され、各番地はそれぞれ第6図に示すように
b+乃至bkのにビットよりなり、つまり1ワード川(
ビットのメモリであって、これらの一つの番地が読出さ
れるとそのにビットの内容が81乃至Skとして出力さ
れる。これらは電流スイッチ31乃至3kに対し制御信
号として与えられる。
<Embodiment> FIG. 5 shows an embodiment of the digital-to-analog converter according to the present invention, in which the same reference numerals are used for γ14 corresponding to FIG. 1. In the present invention, a code converter 12 is used whose input/output relationship can be freely changed. For example, a memory capable of reading and writing is provided as the code converter 12, and addresses A1 to A are stored in this memory.
When n is input, it is internally decoded and the number of addresses from 1 to 1 is selected, and each address consists of bits from b+ to bk as shown in Figure 6, that is, one word river (
It is a bit memory, and when one of these addresses is read, the contents of the bit are outputted as 81 to Sk. These are given as control signals to the current switches 31 to 3k.

電流源21乃至2にの任意の一つだけを選択してその電
流を出力端子11へ供給することができるようにされる
。このためこの実施例ではコード変換部12の入力側に
マルチプレクサ15が設けられ、そのマルチプレクサ1
5を制御回路16の端子]9より制御してデジタル入力
端子の上位ビット側の端子11乃至1nの上位ピッ)B
+乃至Bnを選択してコード変換部12にアドレスA1
乃至Anとして与えることができ、或はその替りに制御
部16からデータC+乃至Cnを入力してアドレスA1
乃至Anとしてコード変換部12に供給されるようにさ
れる3、更にコード変換部12に対して制御部16の端
子17から読書き制御信号をコード変換部12に与え、
また端子18より書込みデータD+乃至1)kを与えて
、アドレスA1乃至Anにより指定した位置の各ビット
(メモリセル)bl乃至bkに対してDl乃至Dkをそ
れぞれ書込むことができるようにされる。
It is possible to select only one of the current sources 21 to 2 and supply that current to the output terminal 11. Therefore, in this embodiment, a multiplexer 15 is provided on the input side of the code converter 12, and the multiplexer 1
5 is the terminal of the control circuit 16] B
+ to Bn and send address A1 to code converter 12.
Alternatively, data C+ to Cn can be input from the control unit 16 and the address A1 can be given as address A1.
3 to be supplied to the code converter 12 as An to An, and further provide a read/write control signal to the code converter 12 from a terminal 17 of the controller 16 to the code converter 12,
Also, by applying write data D+ to 1)k from the terminal 18, Dl to Dk can be respectively written to each bit (memory cell) bl to bk at a position specified by addresses A1 to An. .

この書込みを先に述べたように各電流源について行う。This writing is performed for each current source as described above.

従って上位ビットが前記例のようにB1乃至B4の4ビ
ツトの場合においては第7図に示すようにコード変換部
12内のメモリの各アドレスAI乃至A4の各値に対し
て、つまり1帯地乃至155帯地対して1番地について
はピッ)b+sのみが1,2帯地についてはピッl−b
+4のみが1というように各番地についてそれぞれ異な
る一つのビットのみに1を立てるように記憶する。つま
り制動1部16はこれらの各番地を指定すると共にそれ
に対応したデータD+乃至Dkを端子18よりコード変
換部12に与えて書込みを行う。
Therefore, when the upper bits are 4 bits B1 to B4 as in the above example, as shown in FIG. For the 155-strip land, the number 1 has a ring) Only b+s is 1, and the 2-strip area has a ring l-b
Each address is stored so that only one different bit is set to 1, such that only +4 is set to 1. In other words, the brake 1 section 16 specifies each of these addresses and writes the corresponding data D+ to Dk by giving them to the code converting section 12 from the terminal 18.

このようにコード変換部12の内容が相込捷れり状態に
おいてマルチプレクサ15をそのA個入力を選択するよ
うに制御部16より端子19を通じて制御し、制御部1
6により指定されたアドレスデータC】乃至Cnかコー
ド変換部12に与えられてこれにより一つの番地が脱出
されてそれに対する電流源21乃至2にのうちの一つが
選択して出力されることになる。
In this way, when the contents of the code conversion section 12 are in a mixed state, the control section 16 controls the multiplexer 15 through the terminal 19 so as to select the A inputs.
The address data C] to Cn specified by 6 are given to the code converter 12, whereby one address is extracted and one of the current sources 21 to 2 corresponding to the address is selected and output. Become.

端子」1に得られている出力アナログ信号をAD変換器
21によってデジタル信号に変換し、そのfm値を制御
部16に取込むようにされる。
The output analog signal obtained at the terminal "1" is converted into a digital signal by the AD converter 21, and the fm value thereof is taken into the control section 16.

このようにして電流源の一つずつを選択してその電流値
を知り、それに対する誤差をめ、その誤差を基に誤差率
が最適化するようにコード変換部の入出力関係を選定す
る。このため第8図に示すようにこの誤差最適化モード
が開始されると、ステップS1においてコード変換部1
2は第7図に示しだようにその内容が制御部16によっ
て書替エラれる。ステップS2において制御部16内の
アドレス指定メモリ22の内容を読出してそのデータC
I乃至Cnをマルチプレクサ15を通じてコード変換部
12にアドレスとして印加し、例えば第7図においてア
ドレス0001を与えてスイッチ3+sのみをオンとし
くステップSZ)、X流源2】5の電流値■t5を加算
回路13を通じて出力端子11に出力し、この電流Il
sをAD変換器21にて制御部16に取込む(ステップ
Sg)。この取込んだ値の所定値に対する誤差を演算し
、その誤差をステップS4で誤差メモリ23内に電流源
21sと対応して記憶する。次にステップS5において
アドレス指定メモリ22の内容iを+1し、ステップS
6でその新たな内容iがkと一致したか否かを判定し、
一致してない場合はステップS2に戻り、アドレス指定
メモリ22のその新たな内容1を示すデータC】〜Cn
を出力し、これをコード変換部12に与える。以下同様
のことを繰返す。ステップS6においてlがkと一致す
るとこの電流誤差検出処理R1が終了して最適処llj
化R2に移る。
In this way, each current source is selected, its current value is known, an error is calculated, and the input/output relationship of the code converter is selected based on the error so that the error rate is optimized. Therefore, when this error optimization mode is started as shown in FIG. 8, the code converter 1
2, its contents are rewritten by the control unit 16 as shown in FIG. In step S2, the contents of the address designation memory 22 in the control section 16 are read out and the data C
Apply I to Cn as an address to the code converter 12 through the multiplexer 15, and for example, in FIG. This current Il is output to the output terminal 11 through the adder circuit 13.
s is taken into the control unit 16 by the AD converter 21 (step Sg). The error of this fetched value with respect to a predetermined value is calculated, and the error is stored in the error memory 23 in correspondence with the current source 21s in step S4. Next, in step S5, the content i of the addressing memory 22 is incremented by 1, and in step S5
In step 6, determine whether the new content i matches k,
If they do not match, the process returns to step S2 and the data C]~Cn indicating the new content 1 of the addressing memory 22 is
is output and given to the code converter 12. Repeat the same process below. When l matches k in step S6, this current error detection process R1 ends and the optimum process llj
Moving on to chemical R2.

誤差最適化処理R2においては、例えばステップS7に
おいてデジタル入力の最上位ピッI−M S Bに対す
る誤差が最小となる電流源を選択する。つまり先に示し
た上位の4ピツ)B+乃至[34のデータ中の第3図に
示したようにM S Bが1のデータ]000に対して
電流源21乃至215のうち8個が選択されるが、電流
誤差検出処理R+において測定された誤差メモリ23に
記憶されている、各電流源の誤差から、絶対値で最も小
さいものから順番に選択し、これらの8個の誤差の総和
が極性も考慮して最小となるような組合せを選択する。
In the error optimization process R2, for example, in step S7, a current source with a minimum error with respect to the highest pitch I-MSB of the digital input is selected. In other words, 8 of the current sources 21 to 215 are selected for the top 4 bits shown above) B+ to [data with MSB=1 as shown in FIG. 3 out of 34 data]000. However, from the errors of each current source stored in the error memory 23 measured in the current error detection process R+, the one with the smallest absolute value is selected in order, and the sum of these eight errors is the polarity. The minimum combination is selected by considering the following.

例えば第9図に示すように″電流源21.28.25.
27,29,211,218,215が選択されたとす
る。次にステップs8でこれら選択されたものから一つ
を減らし、その減らした時の全体としての誤差率が最小
となるような操作を行う。ステップs9で制御部16内
のカウンタ24をa −1する。このa Id k −
1を2で割った値であり、この新たな−1されたカウン
タ24の内容aがステップS+。
For example, as shown in FIG. 9, "current sources 21.28.25.
Assume that 27, 29, 211, 218, and 215 are selected. Next, in step s8, one is subtracted from these selected items, and an operation is performed such that the overall error rate is minimized when the subtraction is made. In step s9, the counter 24 in the control section 16 is incremented by a-1. This a Id k −
It is the value obtained by dividing 1 by 2, and this new minus 1 content a of the counter 24 is the step S+.

で0か否か判定され、0でない場合はステップs8に戻
って再び先に選択された電流源の中から一つを除去して
その時の誤差率が最小となるような操作を行う。以下同
様にする。ステップstoにおいてaが0と判定される
とステップS目に移り、ステップS7で選択した電流源
に対して残っている電流源の一つを加えてその時の誤差
率が最小となるようにする。次にステップS12におい
てカウンタ24をa+1する。このaは初期値が坦−1
であす、次にこのa+1されたカウンタ24の内容がス
テップSI8においてkと一致したが否がチェックされ
、一致してない場合はステップSl+に戻り、先と同様
にそれまで残っている電流源の一つを加えてその時の全
体の誤差率が最小となるようにする。以下同様にしてス
テップS】gにおいてaがkとなると最適化処理R2が
終了してステップS14に移る。
It is determined whether or not the current source is 0. If it is not 0, the process returns to step s8 and one of the previously selected current sources is removed again to perform an operation such that the error rate at that time is minimized. Do the same below. When a is determined to be 0 in step sto, the process moves to step S, and in step S7, one of the remaining current sources is added to the selected current source so that the error rate at that time is minimized. Next, in step S12, the counter 24 is incremented by a+1. The initial value of this a is flat-1
Next morning, it is checked in step SI8 whether the contents of the counter 24, which have been incremented by a+1, match k or not. If they do not match, the process returns to step SL+, and as before, the remaining current sources are Add one so that the overall error rate at that time is minimized. Similarly, when a becomes k in step S]g, the optimization process R2 ends and the process moves to step S14.

ステップS14では100oに対し、選択された各電流
源を、1000よりそれぞれ順次一つずつ小さな値に対
して各選択された電流源1oooに対し、それぞれ順次
大きな値に対する選択された電流源に対応する関係の人
出力がコード変換部12より得られるようにコード変換
部12の内容を書替える。コード変換部12の記憶内容
は例えば第9図に示すような状態となる。
In step S14, for 100o, each selected current source corresponds to a value one smaller than 1000, and each selected current source 1ooo corresponds to a selected current source for a value sequentially larger than 1000. The contents of the code converter 12 are rewritten so that the related person's output can be obtained from the code converter 12. The stored contents of the code converter 12 are in a state as shown in FIG. 9, for example.

このようにコード変換部12の内容を書替えた後制御部
16によってマルチプレクサ15をB入力端、即ち入力
端子11〜ln側を選択するように制御して、入力端子
11乃至In+mに対するデジタル入力をそれぞれ入力
して従来と同様にスイッチ31乃至3n+mを選択する
ことによって、デジタル入力に対するアナログ変換が行
われる。この場合においてはコード賀換部12は先に述
べたように上位ビットに対する変換が最適誤差となるよ
うに制御されているため変換精度が高いものとなる。
After rewriting the contents of the code conversion unit 12 in this way, the control unit 16 controls the multiplexer 15 to select the B input terminal, that is, the input terminals 11 to ln side, so that the digital inputs to the input terminals 11 to In+m are respectively By inputting the signal and selecting the switches 31 to 3n+m as in the conventional case, analog conversion to the digital input is performed. In this case, the code conversion unit 12 is controlled so that the conversion of the upper bits has an optimum error as described above, so that the conversion accuracy is high.

第9図に第5図と対応する部分に同一符号を付けて示す
ようにコード変換部12の出力側にマルチプレクサ25
を設けてコード変換部12の出力と制御部12の出力端
子−17のデータとの1方を選択して電流スイッチ31
乃至3kに印加するようにしてもよい。このようにする
時にはコード変換部12の内容を第7図に示したように
書替える操作はなくなる。従ってコード変換部12の入
出力関係の組替え処理の時間が短かくなる。しかし入力
端子II乃至1n+mのデジタル入力をアナログ信号に
変換するときにその上位ビット側においてはマルチプレ
クサ25が更に多く挿入されるため変換出力を得るまで
の時間がそれだけ長くなる。
As shown in FIG. 9 with the same reference numerals attached to parts corresponding to those in FIG.
is provided to select one of the output of the code conversion section 12 and the data of the output terminal -17 of the control section 12,
Alternatively, the voltage may be applied to 3k to 3k. When doing this, there is no need to rewrite the contents of the code converter 12 as shown in FIG. Therefore, the time required for input/output related recombination processing by the code converter 12 is shortened. However, when converting the digital inputs of the input terminals II to 1n+m into analog signals, more multiplexers 25 are inserted on the upper bit side, so the time required to obtain the converted output becomes longer.

以上述べたようにこの発明によるデジタルアナログ変換
装置によれば、その入力デジタル信号の数値と対応した
数だけの出力端子に出力を発生させるコード変換部の入
出力の対応関係を得られる誤差率が最適となるように変
換処理することができ、従って誤差の少ない高精度のも
のを得ることができる。コード変換部12としてはRA
Mの代りにROMを用いてもよい。
As described above, according to the digital-to-analog converter according to the present invention, the error rate is high enough to obtain the correspondence between the input and output of the code conversion section that generates outputs at the number of output terminals corresponding to the numerical value of the input digital signal. It is possible to carry out the conversion process in an optimal manner, and therefore to obtain highly accurate data with few errors. As the code converter 12, RA
ROM may be used instead of M.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は従来のデジタルアナログ変換装置を示すブロッ
ク図、第2図はこの入力デジタル信号と電流源との対応
関係を示す図、第3図は従来の上位ビットと選択される
べき電流源の関係を示す図、第4図は各電流源の誤差率
と、各種デジタル入力に対する誤差率との関係例を示す
図、第5図はこの発明によるデジタルアナログ変換装置
の一例を示すブロック図、第6図はコード変換部の内容
の一例を示す図、第7図は誤差検出処理におけるコード
変換部の記憶内容を示す図、第8図は誤差率最適化制御
における処理の手順の例を示す流れ図、第9図はその得
られた最適化におけるコード変換部の記憶内容の例を示
す図、第10図はこの発明によるデジタルアナログ変換
装置の他の例を示すブロック図である。 II乃至In+m:入力端子、2I乃至2n+m:電流
源、31乃至”n+m :電流スイッチ、11:出力端
子、12:コード変換部、14:定電圧回路、15+ 
25 :マルチプレクサ、16:制御部、2 ]、 :
 A D変換器、23:誤差記憶メモリ。 代理人 草野 卓 汁 7図 体9図 オ 8 囮
Figure 1 is a block diagram showing a conventional digital-to-analog converter, Figure 2 is a diagram showing the correspondence between this input digital signal and current sources, and Figure 3 is a diagram showing the relationship between the conventional upper bits and the current sources to be selected. 4 is a diagram showing an example of the relationship between the error rate of each current source and the error rate for various digital inputs. FIG. 5 is a block diagram showing an example of a digital-to-analog converter according to the present invention. FIG. 6 is a diagram showing an example of the contents of the code converter, FIG. 7 is a diagram showing the memory contents of the code converter in error detection processing, and FIG. 8 is a flowchart showing an example of the processing procedure in error rate optimization control. , FIG. 9 is a diagram showing an example of the storage contents of the code conversion unit in the obtained optimization, and FIG. 10 is a block diagram showing another example of the digital-to-analog conversion device according to the present invention. II to In+m: Input terminal, 2I to 2n+m: Current source, 31 to "n+m: Current switch, 11: Output terminal, 12: Code converter, 14: Constant voltage circuit, 15+
25: multiplexer, 16: control unit, 2 ], :
AD converter, 23: error storage memory. Agent Takuji Kusano 7 figure body 9 figure O 8 decoy

Claims (1)

【特許請求の範囲】[Claims] (1)入力デジタル信号が与えられ、その人力信号のデ
ジタル値に応じた数だけ予め決められた出力端子より出
力を発生するコード変換部と、そのコード変換部の出力
端子の数と同数設けられたはソ同−大きさの電流を発生
する複数の電流源と、 その電流源の出力側にそれぞれ設けられ、上記コード変
換部の出力端子の対応するものの出方により制御される
複数の電流スイッチと、これら電流スイッチの出力が供
給されてその電流を加算して上記入力デジタル信号に対
するアナログ信号を出力する加算回路と、 その加算回路の出力アナログ信号から各電流源の電流値
の誤差を検出する誤差検出手段と、その検出された各電
流源の誤差を記憶する誤差記憶手段と、 その記憶された各電流源の誤差にもとづき、入力デジタ
ル信号のアナログ出力の誤差率が最適となるように入力
デジタル信号と出力されるべき上記コード変換部の出力
端子との関係を選択する誤差最適化手段と、 その誤差最適手段により得られた最適化の結果に一致す
るように上記コード変換部の入力出力関係を変更する手
段とを具備するデジタルアナログ変換装置。
(1) A code converter that receives an input digital signal and generates output from predetermined output terminals in a number corresponding to the digital value of the human input signal, and a code converter that is provided in a number equal to the number of output terminals of the code converter. a plurality of current sources that generate currents of the same magnitude, and a plurality of current switches that are provided on the output sides of the current sources and that are controlled by the output of the corresponding output terminals of the code converter. and an adder circuit that is supplied with the outputs of these current switches and adds the currents to output an analog signal corresponding to the input digital signal, and detects the error in the current value of each current source from the output analog signal of the adder circuit. an error detection means; an error storage means for storing errors of each detected current source; and an error storage means for storing an error of each detected current source; an error optimization means for selecting the relationship between the digital signal and the output terminal of the code conversion section to be output; and an input/output of the code conversion section so as to match the optimization result obtained by the error optimization means. A digital-to-analog conversion device comprising means for changing a relationship.
JP15695083A 1983-08-26 1983-08-26 Digital-analog converter Granted JPS6048619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15695083A JPS6048619A (en) 1983-08-26 1983-08-26 Digital-analog converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15695083A JPS6048619A (en) 1983-08-26 1983-08-26 Digital-analog converter

Publications (2)

Publication Number Publication Date
JPS6048619A true JPS6048619A (en) 1985-03-16
JPS6353738B2 JPS6353738B2 (en) 1988-10-25

Family

ID=15638874

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15695083A Granted JPS6048619A (en) 1983-08-26 1983-08-26 Digital-analog converter

Country Status (1)

Country Link
JP (1) JPS6048619A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55100744A (en) * 1979-01-29 1980-07-31 Hitachi Ltd Da converter with correction circuit
JPS58136134A (en) * 1982-02-08 1983-08-13 Hitachi Ltd Digital-analog converter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55100744A (en) * 1979-01-29 1980-07-31 Hitachi Ltd Da converter with correction circuit
JPS58136134A (en) * 1982-02-08 1983-08-13 Hitachi Ltd Digital-analog converter

Also Published As

Publication number Publication date
JPS6353738B2 (en) 1988-10-25

Similar Documents

Publication Publication Date Title
CA1124868A (en) Charge redistribution circuits
JP3059497B2 (en) Circuit and method for converting an analog signal into a digital value composed of a plurality of bits
JPH06152420A (en) A/d converter
JPH0738585B2 (en) Digital / analog converter
US5187483A (en) Serial-to-parallel type analog-digital converting apparatus and operating method thereof
US4937578A (en) D/A converter for digital signals represented by a 2&#39;s complement
JPS6059772B2 (en) analog to digital converter
US4885581A (en) Digital-to-analog converter circuit
US6094154A (en) Analog-to-digital converter
JPH1098384A (en) Flush type a/d converter
JPS6048619A (en) Digital-analog converter
JPS6177430A (en) Analog-digital converter
US4782323A (en) Technique for maintaining a common centroid in switched element analog-to-digital converters
JP2609239B2 (en) A / D converter and A / D conversion method
JPS6259492B2 (en)
JPH05167449A (en) Successive comparison a/d converter
JP3155408B2 (en) D / A converter and test method for D / A converter
JPH09214344A (en) A/d converting circuit and d/a converting circuit
US5568148A (en) Analog/digital conversion circuit
US5684483A (en) Floating point digital to analog converter
JP2580013B2 (en) DA converter
JPS622490B2 (en)
JP2578940B2 (en) A / D conversion circuit
KR100339542B1 (en) High speed a/d converter
JPH02278918A (en) A/d converter and microcomputer with the a/d converter