JPH08186494A - Analog/digital converter - Google Patents

Analog/digital converter

Info

Publication number
JPH08186494A
JPH08186494A JP25302995A JP25302995A JPH08186494A JP H08186494 A JPH08186494 A JP H08186494A JP 25302995 A JP25302995 A JP 25302995A JP 25302995 A JP25302995 A JP 25302995A JP H08186494 A JPH08186494 A JP H08186494A
Authority
JP
Japan
Prior art keywords
conversion result
successive approximation
approximation register
incrementer
analog
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
JP25302995A
Other languages
Japanese (ja)
Inventor
Toyokatsu Nakajima
豊勝 中島
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 Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems Corp
Original Assignee
Renesas Design Corp
Mitsubishi Electric Corp
Mitsubishi Electric Semiconductor Systems 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 Design Corp, Mitsubishi Electric Corp, Mitsubishi Electric Semiconductor Systems Corp filed Critical Renesas Design Corp
Priority to JP25302995A priority Critical patent/JPH08186494A/en
Publication of JPH08186494A publication Critical patent/JPH08186494A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE: To suppress the increase of error even at the time of using an A/D converter for 10 bits as an A/D converter for 8 bits. CONSTITUTION: A 10-bit sequential approximation register 4 where the comparison result between an analog voltage and a comparison voltage is stored and an 8-bit incrementer 10 which takes conversion results of upper eight bits b9 , b8 ...b2 of the sequential approximation register 4 as the input and takes the conversion result of a second lower bit b1 as the input to a trigger terminal T are provided. The 8-bit conversion result and the 10-bit conversion result are read out from the 8-bit incrementer 10 and the sequential approximation register 4 respectively.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、アナログ/デジタ
ル変換器に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an analog / digital converter.

【0002】[0002]

【従来の技術】家電製品あるいは産業用制御機器等に組
込まれて使用されているシングルチップマイクロコンピ
ュータには、種々のセンサが検出したアナログ電圧をデ
ジタル値に変換するアナログ/デジタル変換器(以下A/
D 変換器という)を内蔵しているものがある。また、セ
ンサには、例えば温度センサ、湿度センサ又は大気圧セ
ンサ等が使用される。
2. Description of the Related Art Single-chip microcomputers used by being incorporated in home electric appliances or industrial control equipment include analog / digital converters (hereinafter A) for converting analog voltages detected by various sensors into digital values. /
Some have a built-in D converter). As the sensor, for example, a temperature sensor, a humidity sensor, an atmospheric pressure sensor, or the like is used.

【0003】ところで、近年はこのようなマイクロコン
ピュータの応用製品の高機能化、高性能化にともないA/
D 変換器の分解能に関しても10ビットクラスを要求され
る状態にある。しかし、センサの出力電圧を全て10ビッ
トのデジタル値に変換する必要があるものではなく、高
精度が要求される一部のセンサに対してのみ要求され
る。例えば8ビットのCPU の場合、8ビットのデータは
一度にアナログ/デジタル変換して処理できるが、10ビ
ットのデータの場合は2回に分けて取り込む必要があっ
て、変換したデジタル値を読み出す時間が長くなる。し
たがって、高精度が要求されるセンサの出力のみを、10
ビットでデータを取り込み高精度が要求されないセンサ
の出力を8ビットのA/D 変換結果で処理して全体のパフ
ォーマンスを向上させている。
By the way, in recent years, with the increase in functionality and performance of such microcomputer application products, A /
Regarding the resolution of the D converter, 10-bit class is required. However, it is not necessary to convert all the output voltage of the sensor into a 10-bit digital value, and it is required only for some sensors that require high accuracy. For example, in the case of an 8-bit CPU, 8-bit data can be converted by analog / digital conversion at one time and processed, but in the case of 10-bit data, it is necessary to take in the data twice and the time to read the converted digital value Becomes longer. Therefore, only the sensor output that requires high accuracy is
Data is captured in bits and the sensor output that does not require high precision is processed with 8-bit A / D conversion results to improve overall performance.

【0004】このように10ビットのA/D 変換器を用いて
8ビットの変換結果を得る方法としては、上位の8ビッ
トの変換結果のみを読み出し、下位の2ビットの変換結
果を無視するのが一般的な変換方法となっている。
As a method of obtaining an 8-bit conversion result using the 10-bit A / D converter, only the upper 8-bit conversion result is read and the lower 2-bit conversion result is ignored. Is a common conversion method.

【0005】図22は、マイクロコンピュータに内蔵され
ている一般的な逐次比較型A/D 変換器の構成を示すブロ
ック図である。A/D 変換すべきアナログ電圧ANはコンパ
レータ1の一入力端子へ入力され、他入力端子にはD/A
コンバータ部2から出力される比較電圧が入力される。
D/A コンバータ部2はラダー抵抗回路により構成され
る。コンパレータ1の制御端子には、制御回路3からの
制御信号が入力される。コンパレータ1の比較結果は逐
次近似レジスタ4へ格納され、逐次近似レジスタ4の変
換結果はD/A コンバータ部2へ入力される。逐次近似レ
ジスタ4にはアドレスデコーダ5からのアドレスが入力
され、逐次近似レジスタ4の変換結果はデータバスDBへ
出力される。
FIG. 22 is a block diagram showing the configuration of a general successive approximation type A / D converter incorporated in a microcomputer. The analog voltage AN to be A / D converted is input to one input terminal of the comparator 1 and D / A to the other input terminal.
The comparison voltage output from the converter unit 2 is input.
The D / A converter unit 2 is composed of a ladder resistance circuit. A control signal from the control circuit 3 is input to the control terminal of the comparator 1. The comparison result of the comparator 1 is stored in the successive approximation register 4, and the conversion result of the successive approximation register 4 is input to the D / A converter unit 2. The address from the address decoder 5 is input to the successive approximation register 4, and the conversion result of the successive approximation register 4 is output to the data bus DB.

【0006】図23は、逐次近似レジスタ4の模式的構成
図である。逐次近似レジスタ4はMSB(最上位ビット) b
9 からLSB(最下位ビット) b0 までの10ビットで構成さ
れており、逐次近似レジスタ4を制御する制御部4aを備
えている。
FIG. 23 is a schematic block diagram of the successive approximation register 4. Successive approximation register 4 is MSB (most significant bit) b
It is composed of 10 bits from 9 to LSB (least significant bit) b 0, and is provided with a control unit 4 a for controlling the successive approximation register 4.

【0007】次にこのA/D 変換器の動作を説明する。制
御回路3からA/D 変換動作を指令する制御信号を出力す
ると、A/D 変換動作を開始して、先ず逐次近似レジスタ
4のMSB(b9 ) に“1”をセットする。それによりD/A
コンバータ部2から(1/2) Vref の比較電圧を出力し
て、コンパレータ1は比較電圧(1/2) Vref と、A/D 変
換すべきアナログ電圧ANとを比較する。比較した結果、
アナログ電圧ANの方が小さい場合はMSB(b9 ) をリセッ
トし、反対にアナログ電圧ANの方が大きい場合はMSB を
セットした状態に保持する。
Next, the operation of this A / D converter will be described. When the control circuit 3 outputs a control signal for instructing the A / D conversion operation, the A / D conversion operation is started and MSB (b 9 ) of the successive approximation register 4 is set to "1". Thereby D / A
Output from the converter unit 2 the comparison voltage (1/2) V ref, the comparator 1 compares the comparison voltage (1/2) V ref, and an analog voltage AN to be converted A / D. As a result of comparison,
When the analog voltage AN is lower, MSB (b 9 ) is reset, and when the analog voltage AN is higher, MSB is kept set.

【0008】次に上位側からの第2ビットb8 に“1”
をセットして、MSB が“1”にセットされている場合
は、D/A コンバータ部2から(3/4) Vref の比較電圧
を、“1”がセットされていない場合は、(1/4) Vref
の比較電圧を出力し、コンパレータ1によりアナログ電
圧ANと比較電圧との2回目の比較をする。比較した結
果、アナログ電圧ANの方が小さい場合は上位側からの第
2ビットb9 をリセットし、反対にアナログ電圧ANの方
が大きい場合は上位側からの第2ビットb9 をセットし
た状態に保持する。このような動作を10回繰り返してア
ナログ電圧を10ビットのデジタル値に変換してA/D 変換
動作を終了する。続いてアドレスデコーダ5からアドレ
スを逐次近似レジスタ4に入力し、逐次近似レジスタ4
の変換結果をデータバスDBへ出力する。
Next, "1" is set in the second bit b 8 from the upper side.
If the MSB is set to “1”, the comparison voltage of (3/4) V ref from the D / A converter unit 2 is set if the MSB is set to “1”. / 4) V ref
The comparison voltage is output, and the comparator 1 compares the analog voltage AN with the comparison voltage for the second time. As a result of the comparison, when the analog voltage AN is smaller, the second bit b 9 from the upper side is reset, and when the analog voltage AN is larger, the second bit b 9 from the upper side is set. Hold on. This operation is repeated 10 times to convert the analog voltage into a 10-bit digital value and complete the A / D conversion operation. Then, the address is input from the address decoder 5 to the successive approximation register 4, and the successive approximation register 4
The conversion result of is output to the data bus DB.

【0009】このようにして逐次近似レジスタ4はA/D
変換動作中はD/A コンバータ部2のラダー抵抗回路のタ
ップ選択制御を行ない、最終的にはA/D 変換した変換結
果を格納する。このように10ビットのA/D 変換器でA/D
変換した場合の変換特性は図24に示す如くなる。図24は
横軸をアナログ電圧とし、デジタル値換算して下位4ビ
ットのみ示している。縦軸をA/D 変換結果とし、下位4
ビットを示している。階段状をしている細い実線は10ビ
ットにA/D 変換した場合の理想的な変換特性を示してお
り、破線は8ビットにA/D 変換した場合の理由的な変換
特性を示している。また、階段状をしている太い実線は
10ビットにA/D 変換して下位2ビットを切り捨てた場合
の8ビットの変換特性を示している。
In this way, the successive approximation register 4 is operated by the A / D.
During the conversion operation, the tap selection control of the ladder resistance circuit of the D / A converter unit 2 is performed, and finally the A / D converted conversion result is stored. In this way, a 10-bit A / D converter
The conversion characteristics when converted are as shown in FIG. In FIG. 24, the horizontal axis represents the analog voltage, and only the lower 4 bits are shown in digital value conversion. The vertical axis is the A / D conversion result, and the lower 4
Shows a bit. The thin solid line that has a step shape shows the ideal conversion characteristic when A / D conversion is performed to 10 bits, and the broken line shows the reasonable conversion characteristic when A / D conversion is performed to 8 bits. . In addition, the thick solid line that has a step shape is
The 8-bit conversion characteristics when A / D conversion to 10 bits and the lower 2 bits are discarded are shown.

【0010】なお、A/D 変換器によっては、A/D 変換結
果を格納する格納レジスタを別に1個又は複数個を備え
ているものがあるが、これはA/D 変換終了時に逐次近似
レジスタから、その格納レジスタに変換結果を転送して
いるにすぎず、逐次近似レジスタの機能は同様となって
いる。
Some A / D converters have one or more storage registers for storing the A / D conversion result, which is a successive approximation register at the end of A / D conversion. Therefore, only the conversion result is transferred to the storage register, and the function of the successive approximation register is similar.

【0011】[0011]

【発明が解決しようとする課題】ところで、前述したよ
うに10ビットのA/D 変換器でA/D 変換して、下位2ビッ
トを切り捨てた場合は、図24から明らかなように太い実
線で示す変換特性となって、8ビットのA/D 変換器でA/
D 変換した破線で示す変換特性にはならない。つまり、
8ビットの理想的な変換特性と比べて(3/8)LSB (8ビッ
トA/D 変換器としての誤差) の変換誤差が生じるという
問題がある。本発明は斯かる問題に鑑み、A/D 変換した
10ビットの下位2ビットを切り捨てても、変換誤差を少
なくできるA/D 変換器を提供することを目的とする。
By the way, as described above, when A / D conversion is performed by the 10-bit A / D converter and the lower 2 bits are discarded, a thick solid line is formed as shown in FIG. The conversion characteristics are as shown below and the 8-bit A / D converter
The conversion characteristics shown by the D-converted broken line are not obtained. That is,
There is a problem that a conversion error of (3/8) LSB (error as an 8-bit A / D converter) occurs as compared with the 8-bit ideal conversion characteristic. The present invention has been A / D converted in view of such a problem.
It is an object of the present invention to provide an A / D converter that can reduce the conversion error even if the lower 2 bits of 10 bits are discarded.

【0012】[0012]

【課題を解決するための手段】第1発明に係るA/D 変換
器は、逐次近似レジスタの変換結果が入力され、逐次近
似レジスタのビット数より少ないビット数のインクリメ
ンタを備え、逐次近似レジスタの下位側からの第2ビッ
トの変換結果によりインクリメンタの変換結果をインク
リメントする構成にする。
An A / D converter according to a first aspect of the invention is provided with a conversion result of a successive approximation register and is provided with an incrementer having a bit number smaller than that of the successive approximation register. The incrementer conversion result is incremented by the conversion result of the second bit from the lower side of.

【0013】第1発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位側から2ビット目が“1”になると、インクリメンタ
の変換結果に“1”を加えてインクリメンタの変換結果
を補正し、変換誤差を少なくする。これにより、逐次近
似レジスタのビット数より少ないビット数の変換結果の
精度を高め得る。
According to the first aspect of the present invention, the analog voltage and the comparison voltage are compared, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the second bit from the lower side of the successive approximation register becomes "1", the conversion result of the incrementer is corrected by adding "1" to the conversion result of the incrementer to reduce the conversion error. As a result, the accuracy of the conversion result having the number of bits smaller than that of the successive approximation register can be improved.

【0014】第2発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より少ないビット数のインクリメンタと、逐次近似
レジスタの上位2ビットの変換結果、該上位2ビットを
除く残りのビットの変換結果及びインクリメンタの変換
結果が入力される選択回路と、変換結果を読み出す上位
側ビット及び下位側ビットを判別する判別回路とを備
え、前記逐次近似レジスタの下位側からの第2ビットの
変換結果によりインクリメンタの変換結果をインクリメ
ントすべくなしており、前記判別回路により選択回路を
制御する構成にする。
The A / D converter according to the second aspect of the present invention receives the conversion result of the successive approximation register, increments the number of bits smaller than the number of bits of the successive approximation register, and the conversion result of the upper 2 bits of the successive approximation register. The successive approximation circuit, further comprising: a selection circuit to which the conversion result of the remaining bits excluding the upper 2 bits and the conversion result of the incrementer are input, and a determination circuit that determines the upper side bit and the lower side bit from which the conversion result is read. The conversion result of the incrementer is incremented according to the conversion result of the second bit from the lower side of the register, and the selection circuit is controlled by the discrimination circuit.

【0015】第2発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位側から2ビット目が“1”になると、インクリメンタ
の変換結果に“1”を加えてインクリメンタの変換結果
を補正し、変換誤差が少なくなる。逐次近似レジスタの
上位2ビットの変換結果、該上位2ビットを除く残りの
ビットの変換結果及びインクリメンタの変換結果を選択
回路へ入力する。判別回路により選択回路を制御し、判
別回路が上位側ビットの読み出しと判別すると、インク
リメンタの変換結果を、下位側ビットの読み出しと判別
すると逐次近似レジスタの上位2ビットを除く残りのビ
ットの変換結果を、ワードの読み出しと判別すると逐次
近似レジスタの全ビットの変換結果を読み出す。これに
より、インクリメンタの変換結果、逐次近似レジスタの
上位2ビットを除く残りのビットの変換結果及び逐次近
似レジスタの全ビットの変換結果を択一的に選択して読
み出し得る。
In the second aspect of the invention, the analog voltage is compared with the comparison voltage, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the second bit from the lower side of the successive approximation register becomes "1", the conversion result of the incrementer is corrected by adding "1" to the conversion result of the incrementer, and the conversion error is reduced. The conversion result of the upper 2 bits of the successive approximation register, the conversion result of the remaining bits except the upper 2 bits, and the conversion result of the incrementer are input to the selection circuit. When the discriminating circuit controls the selection circuit and the discriminating circuit discriminates that the upper bit is read, the incrementer conversion result is discriminated, and when the lower bit is discriminated, the remaining bits except the upper 2 bits of the successive approximation register are converted. If the result is determined to be a word read, the conversion result of all bits of the successive approximation register is read. As a result, the conversion result of the incrementer, the conversion result of the remaining bits other than the upper 2 bits of the successive approximation register, and the conversion result of all the bits of the successive approximation register can be selectively selected and read.

【0016】第3発明に係るA/D 変換器は、逐次近似レ
ジスタの上位2ビットの変換結果、該上位2ビットを除
く残りのビットの変換結果及びインクリメンタの変換結
果が入力される選択回路と、変換結果の読み出し単位で
ある上位側ビット、下位側ビット及びワードを判別する
判別回路とを備え、前記逐次近似レジスタの下位側から
の第2ビットの変換結果によりインクリメンタの変換結
果をインクリメントすべくなしており、下位側ビットの
変換結果読み出し時は逐次近似レジスタの上位2ビット
を除く残りのビットの変換結果を、上位側のビットの変
換結果読み出し時はインクリメンタの変換結果を、ワー
ドの変換結果読み出し時は逐次近似レジスタの変換結果
を選択する構成にする。
The A / D converter according to the third aspect of the present invention is a selection circuit to which the conversion result of the upper 2 bits of the successive approximation register, the conversion result of the remaining bits excluding the upper 2 bits and the conversion result of the incrementer are input. And a discriminating circuit for discriminating the high-order bit, the low-order bit, and the word, which are the reading units of the conversion result, and incrementing the conversion result of the incrementer according to the conversion result of the second bit from the low-order side of the successive approximation register. When reading the conversion result of the lower bit, the conversion result of the remaining bits except the upper 2 bits of the successive approximation register is read, and when the conversion result of the upper bit is read, the conversion result of the incrementer is written as a word. When the conversion result is read, the conversion result of the successive approximation register is selected.

【0017】第3発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位側から2ビット目が“1”になると、インクリメンタ
の変換結果に“1”を加えてインクリメンタの変換結果
を補正し、変換誤差が少なくなる。逐次近似レジスタの
上位2ビットの変換結果、該上位2ビットを除く残りの
ビットの変換結果及びインクリメンタの変換結果を選択
回路へ入力する。判別回路により選択回路を制御し、判
別回路が上位側ビットの読み出しと判別すると、インク
リメンタの変換結果を、ワードの読み出しと判別すると
逐次近似レジスタの変換結果を読み出す。これにより、
逐次近似レジスタのビット数より少ないビット数の変換
結果の精度を高め得る。またインクリメンタの変換結果
及び逐次近似レジスタの変換結果を択一的に選択して読
み出し得る。
In the third aspect of the invention, the analog voltage and the comparison voltage are compared, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the second bit from the lower side of the successive approximation register becomes "1", the conversion result of the incrementer is corrected by adding "1" to the conversion result of the incrementer, and the conversion error is reduced. The conversion result of the upper 2 bits of the successive approximation register, the conversion result of the remaining bits except the upper 2 bits, and the conversion result of the incrementer are input to the selection circuit. The selection circuit is controlled by the discriminating circuit, and when the discriminating circuit discriminates that the upper bit is read, the incrementer conversion result is read, and when the word is discriminated, the successive approximation register conversion result is read. This allows
It is possible to improve the accuracy of the conversion result having a bit number smaller than that of the successive approximation register. Further, the conversion result of the incrementer and the conversion result of the successive approximation register can be selectively selected and read.

【0018】第4発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より少ないビット数のインクリメンタを備え、逐次
近似レジスタの下位2ビットの変換結果の論理積により
インクリメンタの変換結果をインクリメントする構成に
する。
An A / D converter according to a fourth aspect of the invention is supplied with the conversion result of the successive approximation register, has an incrementer with a bit number smaller than the bit number of the successive approximation register, and converts the lower 2 bits of the successive approximation register. The configuration is such that the incrementer conversion result is incremented by the logical product of the results.

【0019】第4発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位2ビットがともに“1”になると論理積回路の論理が
成立する。選択回路は論理積回路の出力又は逐次近似レ
ジスタの下位側からの第2ビットの変換結果を選択す
る。選択した変換結果をインクリメンタへ入力し、イン
クリメンタの変換結果に“1”を加えてインクリメンタ
の変換結果を補正し、補正誤差を少なくする。これによ
り、逐次近似レジスタのビット数より少ないビット数の
変換結果の精度を高め得る。
In the fourth invention, the analog voltage is compared with the comparison voltage, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the lower 2 bits of the successive approximation register become "1", the logic of the AND circuit is established. The selection circuit selects the output of the AND circuit or the conversion result of the second bit from the lower side of the successive approximation register. The selected conversion result is input to the incrementer, “1” is added to the incrementer conversion result to correct the incrementer conversion result, and the correction error is reduced. As a result, the accuracy of the conversion result having the number of bits smaller than that of the successive approximation register can be improved.

【0020】第5発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より多いビット数のインクリメンタを備え、逐次近
似レジスタの最下位ビットの変換結果によりインクリメ
ンタの変換結果をインクリメントする構成にする。
An A / D converter according to a fifth aspect of the invention is supplied with the conversion result of the successive approximation register, has an incrementer with a number of bits larger than the number of bits of the successive approximation register, and converts the least significant bit of the successive approximation register. According to the result, the incrementer conversion result is incremented.

【0021】第5発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及び逐次近似レジスタのビット数より少ないビット数の
インクリメンタに格納する。逐次近似レジスタの最下位
ビットが“1”になると、インクリメンタの変換結果に
“1”を加える。インクリメンタで補正された変換結果
のうち、上位8ビットの変換結果を読み出す。これによ
り、逐次近似レジスタのビット数より少ないビット数の
変換結果の精度を高め得る。
According to the fifth aspect of the invention, the analog voltage and the comparison voltage are compared, and each time the comparison is performed, the comparison result is stored in the successive approximation register and the incrementer having the number of bits smaller than the number of bits of the successive approximation register. When the least significant bit of the successive approximation register becomes "1", "1" is added to the conversion result of the incrementer. Of the conversion results corrected by the incrementer, the conversion result of the upper 8 bits is read. As a result, the accuracy of the conversion result having the number of bits smaller than that of the successive approximation register can be improved.

【0022】第6発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より少ないビット数のインクリメンタと、逐次近似
レジスタの下位2ビットの論理積を得る論理積回路と、
該論理積回路の出力及び逐次近似レジスタの下位側から
の第2ビットの変換結果を択一的に選択する選択回路と
を備え、該選択回路の選択結果をインクリメンタへ入力
する構成にする。
In the A / D converter according to the sixth aspect of the present invention, the conversion result of the successive approximation register is input, and the logical product of the incrementer having a bit number smaller than the bit number of the successive approximation register and the lower 2 bits of the successive approximation register. AND circuit that obtains
A selection circuit for selectively selecting the output of the AND circuit and the conversion result of the second bit from the lower side of the successive approximation register is provided, and the selection result of the selection circuit is input to the incrementer.

【0023】第6発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位2ビットがともに“1”になると論理積回路の論理が
成立する。選択回路は、論理積回路の出力又は逐次近似
レジスタの下位側からの第2ビットの変換結果を選択す
る。選択した出力又は変換結果をインクリメンタへ入力
し、インクリメンタの変換結果に“1”を加えてインク
リメンタの変換結果を補正する。レジスタのデータによ
りインクリメンタの変換結果又は逐次近似レジスタの変
換結果を選択する。インクリメンタの変換結果を選択す
ると、逐次近似レジスタの変換結果を比較電圧に変換す
るデジタル/アナログ変換部による(1/2)LSB補正を中止
する。これにより、逐次近似レジスタのビット数より少
ないビット数の変換結果の精度をより高め得る。
In the sixth aspect of the invention, the analog voltage and the comparison voltage are compared, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the lower 2 bits of the successive approximation register become "1", the logic of the AND circuit is established. The selection circuit selects the output of the AND circuit or the conversion result of the second bit from the lower side of the successive approximation register. The selected output or conversion result is input to the incrementer, and "1" is added to the incrementer conversion result to correct the incrementer conversion result. The incrementer conversion result or the successive approximation register conversion result is selected according to the register data. When the conversion result of the incrementer is selected, the (1/2) LSB correction by the digital / analog converter that converts the conversion result of the successive approximation register to the comparison voltage is stopped. As a result, the accuracy of the conversion result having the number of bits smaller than that of the successive approximation register can be further improved.

【0024】第7発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より少ないビット数のインクリメンタと、逐次近似
レジスタの変換結果及びインクリメンタの変換結果を択
一的に選択する選択回路と、インクリメンタ及び逐次近
似レジスタのビット数で変換結果を読み出すべく選択回
路を制御するためのデータを格納しているレジスタとを
備え、逐次近似レジスタの下位側からの第2ビットの変
換結果をインクリメンタへ入力し、前記レジスタのデー
タを、逐次近似レジスタの変換結果を比較電圧に変換す
るデジタル/アナログ変換部へ入力する構成にする。
In the A / D converter according to the seventh aspect of the present invention, the conversion result of the successive approximation register is input, and the incrementer having a bit number smaller than that of the successive approximation register, the conversion result of the successive approximation register, and the incrementer of the successive approximation register. The conversion circuit includes a selection circuit that selectively selects the conversion result, and a register that stores data for controlling the selection circuit to read the conversion result with the number of bits of the incrementer and the successive approximation register. The conversion result of the second bit from the lower side is input to the incrementer, and the data of the register is input to the digital / analog conversion unit that converts the conversion result of the successive approximation register into the comparison voltage.

【0025】第7発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位側からの第2ビットが“1”になると、インクリメン
タの変換結果に“1”を加えてインクリメンタの変換結
果を補正する。レジスタのデータによりインクリメンタ
の変換結果又は逐次近似レジスタの変換結果を選択す
る。インクリメンタの変換結果を選択すると逐次近似レ
ジスタの変換結果を比較電圧に変換するデジタル/アナ
ログ変換部による(1/2)LSB補正を中止する。これによ
り、逐次近似レジスタのビット数より少ないビット数の
変換結果の精度をより高め得る。
In the seventh invention, the analog voltage is compared with the comparison voltage, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the second bit from the lower side of the successive approximation register becomes "1", "1" is added to the conversion result of the incrementer to correct the conversion result of the incrementer. The incrementer conversion result or the successive approximation register conversion result is selected according to the register data. When the incrementer conversion result is selected, the (1/2) LSB correction by the digital / analog converter that converts the conversion result of the successive approximation register to the comparison voltage is stopped. As a result, the accuracy of the conversion result having the number of bits smaller than that of the successive approximation register can be further improved.

【0026】第8発明に係るA/D 変換器は、逐次近似レ
ジスタの変換結果が入力され、逐次近似レジスタのビッ
ト数より少ないビット数のインクリメンタと、逐次近似
レジスタの変換結果及びインクリメンタの変換結果を択
一的に選択する選択回路と、インクリメンタのビット数
又は逐次近似レジスタのビット数で変換結果を読み出す
べく選択回路を制御するためのデータを格納しているレ
ジスタとを備え、該レジスタのデータを逐次近似レジス
タの下位側からの第2ビット、及び逐次近似レジスタの
変換結果を比較電圧に変換するデジタル/アナログ変換
部へ入力する構成にする。
In the A / D converter according to the eighth aspect of the present invention, the conversion result of the successive approximation register is input, and the incrementer having a bit number smaller than that of the successive approximation register and the conversion result of the successive approximation register and the incrementer A selection circuit that selectively selects the conversion result; and a register that stores data for controlling the selection circuit to read the conversion result with the number of bits of the incrementer or the number of bits of the successive approximation register. The register data is input to the second bit from the lower side of the successive approximation register and to the digital / analog conversion unit that converts the conversion result of the successive approximation register into a comparison voltage.

【0027】第8発明では、アナログ電圧と比較電圧と
を比較し、比較するたびに比較結果を逐次近似レジスタ
及びインクリメンタに格納する。逐次近似レジスタの下
位側からの第2ビットが“1”になるとインクリメンタ
の変換結果に“1”を加えてインクリメンタの変換結果
を補正する。選択回路によりインクリメンタの変換結果
を選択している場合に、デジタル/アナログ変換部によ
る(1/2)LSB補正を中止する。逐次近似レジスタの下位側
からの第2ビットの変換が終了するとアナログ/デジタ
ル変換動作を終了する。これにより、逐次近似レジスタ
のビット数より少ないビット数の変換結果の精度を高め
得るとともに、終了フラグのセット又は割り込みの発生
による同等の効果を得る。
In the eighth aspect of the invention, the analog voltage and the comparison voltage are compared, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When the second bit from the lower side of the successive approximation register becomes "1", "1" is added to the incrementer conversion result to correct the incrementer conversion result. When the incrementer conversion result is selected by the selection circuit, (1/2) LSB correction by the digital / analog converter is stopped. When the conversion of the second bit from the lower side of the successive approximation register is completed, the analog / digital conversion operation is completed. As a result, the accuracy of the conversion result with the number of bits smaller than the number of bits of the successive approximation register can be improved, and the same effect can be obtained by setting the end flag or generating an interrupt.

【0028】第9発明に係るA/D 変換器は、アナログ電
圧が入力される複数の端子と、逐次近似レジスタのデー
タが入力され、逐次近似レジスタのビット数より少ない
ビット数のインクリメンタと、逐次近似レジスタの変換
結果及びインクリメンタの変換結果を択一的に選択する
選択回路と、インクリメンタのビット数又は逐次近似レ
ジスタのビット数で変換結果を読み出すべく選択回路を
制御するためのデータを格納している複数のレジスタと
を備え、逐次近似レジスタの下位側からの第2ビットの
変換結果をインクリメンタへ入力する構成にする。
An A / D converter according to a ninth aspect of the present invention includes a plurality of terminals to which analog voltage is input, data of a successive approximation register, and an incrementer having a bit number smaller than that of the successive approximation register. A selection circuit for selectively selecting the conversion result of the successive approximation register and the conversion result of the incrementer, and data for controlling the selection circuit to read the conversion result by the number of bits of the incrementer or the number of bits of the successive approximation register. A plurality of registers that are stored are provided, and the conversion result of the second bit from the lower side of the successive approximation register is input to the incrementer.

【0029】第9発明では、複数の端子に入力されたア
ナログ電圧を選択し、選択したアナログ電圧と比較電圧
とを比較し、比較するたびに比較結果を逐次近似レジス
タ及びインクリメンタに格納する。逐次近似レジスタの
下位側からの2ビットが“1”になると、インクリメン
タの変換結果に“1”を加えてインクリメンタの変換結
果を補正し、変換誤差を少なくする。インクリメンタの
変換結果を選択した場合、デジタル/アナログ変換部に
おける(1/2)LSB補正を中止する。選択したアナログ電圧
の端子に対応して、選択回路を制御するレジスタが選択
回路を制御し、インクリメンタの変換結果又は逐次近似
レジスタの変換結果を選択する。これにより、選択した
アナログ電圧の端子に対応して、変換前にインクリメン
タの変換結果又は逐次近似レジスタの変換結果を選択で
きる。
In the ninth invention, the analog voltage input to the plurality of terminals is selected, the selected analog voltage is compared with the comparison voltage, and the comparison result is stored in the successive approximation register and the incrementer each time the comparison is performed. When 2 bits from the lower side of the successive approximation register become "1", "1" is added to the incrementer conversion result to correct the incrementer conversion result and reduce the conversion error. When the conversion result of the incrementer is selected, the (1/2) LSB correction in the digital / analog converter is stopped. The register controlling the selection circuit controls the selection circuit corresponding to the selected analog voltage terminal, and selects the incrementer conversion result or the successive approximation register conversion result. As a result, the conversion result of the incrementer or the conversion result of the successive approximation register can be selected before conversion corresponding to the selected analog voltage terminal.

【0030】[0030]

【発明の実施の形態】以下本発明を発明の実施の形態を
示す図面により詳述する。図1は本発明に係るA/D 変換
器の第1実施例の構成を示すブロック図である。A/D 変
換すべきアナログ電圧ANはコンパレータ1の一入力端子
へ入力され、他入力端子にはD/A コンバータ部2から出
力される比較電圧が入力される。D/A コンバータ部2は
ラダー抵抗回路により構成される。コンパレータ1の比
較結果は逐次近似レジスタ4へ入力され、逐次近似レジ
スタ4の内容たる変換結果はD/A コンバータ部2へ入力
される。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described in detail below with reference to the drawings showing an embodiment of the present invention. 1 is a block diagram showing the configuration of a first embodiment of an A / D converter according to the present invention. The analog voltage AN to be A / D converted is input to one input terminal of the comparator 1, and the comparison voltage output from the D / A converter unit 2 is input to the other input terminal. The D / A converter unit 2 is composed of a ladder resistance circuit. The comparison result of the comparator 1 is input to the successive approximation register 4, and the conversion result which is the content of the successive approximation register 4 is input to the D / A converter unit 2.

【0031】また逐次近似レジスタ4の上位8ビットの
変換結果は8ビットインクリメンタ(以下インクリメン
タという) 10へ入力される。逐次近似レジスタ4の下位
側からの第2ビットb1 の変換結果はインクリメンタ10
のトリガ端子Tへ入力される。インクリメンタ10の内容
たる変換結果はデータバスDBへ出力される。制御回路3
が出力する制御信号はコンパレータ1の制御端子へ入力
される。アドレスデコーダ5が出力するインクリメンタ
10に対応するアドレス及び逐次近似レジスタ4に対応す
るアドレスは、インクリメンタ10及び逐次近似レジスタ
4のアドレス端子へ入力される。逐次近似レジスタ4の
内容たる変換結果はデータバスへ出力される。
The conversion result of the upper 8 bits of the successive approximation register 4 is input to an 8-bit incrementer (hereinafter referred to as an incrementer) 10. The result of conversion of the second bit b 1 from the lower side of the successive approximation register 4 is the incrementer 10
Is input to the trigger terminal T of. The conversion result, which is the content of the incrementer 10, is output to the data bus DB. Control circuit 3
The control signal output by is input to the control terminal of the comparator 1. Incrementer output by the address decoder 5
The address corresponding to 10 and the address corresponding to the successive approximation register 4 are input to the address terminals of the incrementer 10 and the successive approximation register 4. The conversion result, which is the content of the successive approximation register 4, is output to the data bus.

【0032】図2は逐次近似レジスタ4とともに示すイ
ンクリメンタ10の構成を示すブロック図である。インク
リメンタ10は7個のAND 回路と8個のEXOR回路とにより
構成される。逐次近似レジスタ4の下位側からの第2ビ
ットb1 の変換結果はEXOR回路EO1 及びAND 回路A1
各一入力端子へ入力され、それらの各他入力端子には下
位側からの第3ビットb2 の変換結果が入力される。AN
D 回路A1 の出力はEXOR回路EO2及びAND 回路A2 の各
一入力端子へ入力され、それらの各他入力端子には下位
側からの第4ビットb3 の変換結果が入力される。
FIG. 2 is a block diagram showing the configuration of the incrementer 10 shown together with the successive approximation register 4. The incrementer 10 is composed of 7 AND circuits and 8 EXOR circuits. The conversion result of the second bit b 1 from the lower side of the successive approximation register 4 is input to each one input terminal of the EXOR circuit EO 1 and the AND circuit A 1 , and the other input terminal thereof receives the third bit from the lower side. The conversion result of bit b 2 is input. AN
The output of the D circuit A 1 is input to each one input terminal of the EXOR circuit EO 2 and the AND circuit A 2 , and the conversion result of the fourth bit b 3 from the lower side is input to each of these other input terminals.

【0033】AND 回路A2 の出力はEXOR回路EO3 及びAN
D 回路A3 の各一入力端子へ入力され、それらの各他入
力端子には5ビット目b4 の内容が入力される。AND 回
路A3 の出力はEXOR回路EO4 及びAND 回路A4 の各一入
力端子へ入力され、それらの各他入力端子には下位側か
らの第6ビットb5 の変換結果が入力される。
The output of the AND circuit A 2 is the EXOR circuits EO 3 and AN.
The contents of the fifth bit b 4 are inputted to the respective one input terminals of the D circuit A 3 . The output of the AND circuit A 3 is input to each one input terminal of the EXOR circuit EO 4 and the AND circuit A 4 , and the conversion result of the sixth bit b 5 from the lower side is input to each of these other input terminals.

【0034】AND 回路A4 の出力はEXOR回路EO5 及びAN
D 回路A5 の各一入力端子へ入力され、それらの各他入
力端子には下位側からの第7ビットb6 の変換結果が入
力される。AND 回路A5 の出力はEXOR回路EO6 及びAND
回路A6 の各一入力端子へ入力され、それらの各他入力
端子には、下位側からの第8ビットb7 の変換結果が入
力される。AND 回路A6 の出力はEXOR回路EO7 及びAND
回路A7 の各一入力端子へ入力され、それらの他入力端
子には、下位側からの第9ビットb8 の変換結果が入力
される。AND 回路A7 の出力はEXOR回路EO8 の一入力端
子へ入力され、その他入力端子には下位側からの第10ビ
ットb9 の変換結果が入力される。EXOR回路EO1 ,E
O2 ,EO3 ,EO4 ,EO5 ,EO6 ,EO7 ,EO8 ,EO9 の出
力はバスバッファBB1 ,BB2 ,BB3 ,BB4 ,BB5 ,B
B6 ,BB7 ,BB8 を介してデータバスDB0,DB1 ,DB2
DB3 ,DB4 ,DB5 ,DB6 ,DB7 へ出力される。バスバッ
ファBB1,BB2 ,BB3 ,BB4 ,BB5 ,BB6 ,BB7 には、
それらに共通の読み出し信号RDが入力される。
The output of the AND circuit A 4 is the EXOR circuits EO 5 and AN.
It is inputted to each one input terminal of the D circuit A 5 , and the conversion result of the seventh bit b 6 from the lower side is inputted to each of those other input terminals. The output of AND circuit A 5 is EXOR circuit EO 6 and AND
It is input to each one input terminal of the circuit A 6 , and the conversion result of the eighth bit b 7 from the lower side is input to each of these other input terminals. The output of AND circuit A 6 is EXOR circuit EO 7 and AND
It is input to each one input terminal of the circuit A 7 , and the conversion result of the ninth bit b 8 from the lower side is input to the other input terminals thereof. The output of the AND circuit A 7 is input to one input terminal of the EXOR circuit EO 8 , and the conversion result of the 10th bit b 9 from the lower side is input to the other input terminals. EXOR circuit EO 1 , E
The outputs of O 2 , EO 3 , EO 4 , EO 5 , EO 6 , EO 7 , EO 8 , and EO 9 are bus buffers BB 1 , BB 2 , BB 3 , BB 4 , BB 5 , B.
Data buses DB 0 , DB 1 , DB 2 , via B 6 , BB 7 , and BB 8
DB 3, is outputted to DB 4, DB 5, DB 6 , DB 7. In the bus buffers BB 1 , BB 2 , BB 3 , BB 4 , BB 5 , BB 6 , BB 7 ,
The read signal RD common to them is input.

【0035】次にこのように構成したA/D 変換器の動作
を説明する。制御回路3からA/D 変換を指令する制御信
号を出力するとA/D 変換動作を開始する。そして、先ず
逐次近似レジスタ4のMSB(b9 ) に“1”をセットす
る。それによりD/A コンバータ部2から(1/2) Vref
比較電圧を出力して、コンパレータ1は比較電圧(1/2)
ref と、A/D 変換すべきアナログ電圧ANとを比較す
る。比較した結果アナログ電圧ANの方が小さい場合はMS
B(b9 ) をリセットし、反対にアナログ電圧ANの方が大
きい場合はMSB(b9 ) をセットした状態に保持する。
Next, the operation of the A / D converter configured as described above will be described. When the control circuit 3 outputs a control signal instructing A / D conversion, the A / D conversion operation starts. Then, first, the MSB (b 9 ) of the successive approximation register 4 is set to "1". As a result, the D / A converter unit 2 outputs the comparison voltage of (1/2) V ref , and the comparator 1 outputs the comparison voltage (1/2)
V ref is compared with the analog voltage AN to be A / D converted. As a result of comparison, if the analog voltage AN is smaller, MS
B (b 9 ) is reset, and conversely, when the analog voltage AN is higher, MSB (b 9 ) is held in the set state.

【0036】次に上位側からの第2ビットb8 に“1”
をセットして、MSB(b9 ) が“1”にセットされている
場合は、D/A コンバータ部2から(3/4) Vref の比較電
圧を、“1”がセットされていない場合は(1/4) Vref
の比較電圧を出力し、コンパレータ1によりアナログ電
圧ANと比較電圧との2回目の比較をする。比較した結
果、アナログ電圧ANの方が小さい場合は上位側からの第
2ビットb8 をリセットし、反対にアナログ電圧ANの方
が大きい場合は上位側からの第2ビットb8 をセットし
た状態に保持する。そして10ビットのA/D 変換器の場合
は、このような比較動作を10回繰り返して10ビットの最
終的なA/D 変換結果を得る。このようにして、A/D 変換
動作を終了し、下位側からの第2ビットb1 に“1”が
セットされている場合には、インクリメンタ10は下位側
からの第3ビットb2 から第10ビットb9 までの8ビッ
トに“1”を加算する動作をする。それによりインクリ
メンタ10の変換結果は表1に示したように変化する。
Next, "1" is set in the second bit b 8 from the upper side.
If the MSB (b 9 ) is set to "1" by setting, the comparison voltage of (3/4) V ref from the D / A converter unit 2 is not set to "1". Is (1/4) V ref
The comparison voltage is output, and the comparator 1 compares the analog voltage AN with the comparison voltage for the second time. As a result of the comparison, when the analog voltage AN is smaller, the second bit b 8 from the upper side is reset, and when the analog voltage AN is larger, the second bit b 8 from the upper side is set. Hold on. In the case of a 10-bit A / D converter, such a comparison operation is repeated 10 times to obtain the final 10-bit A / D conversion result. In this way, when the A / D conversion operation is completed and the second bit b 1 from the lower side is set to “1”, the incrementer 10 starts from the third bit b 2 from the lower side. the operation of adding "1" to 8 bits from the 10th bit b 9. As a result, the conversion result of the incrementer 10 changes as shown in Table 1.

【0037】[0037]

【表1】 [Table 1]

【0038】そして、インクリメンタ10による加算を行
った8ビットの変換特性は図3に示すようになる。図3
は横軸をアナログ電圧と、縦軸をA/D 変換結果としてい
る。この図3から明らかなように8ビットインクリメン
タ10により“1”を加算して補正した8ビット変換特性
は太い実線で示すようになり、破線で示す8ビットの理
想的な変換特性に近づくことになる。
The 8-bit conversion characteristic obtained by the addition by the incrementer 10 is as shown in FIG. FIG.
Shows the analog voltage on the horizontal axis and the A / D conversion result on the vertical axis. As is clear from FIG. 3, the 8-bit conversion characteristic corrected by adding "1" by the 8-bit incrementer 10 is shown by a thick solid line, and approaches the 8-bit ideal conversion characteristic shown by the broken line. become.

【0039】これにより、従来のA/D 変換器では変換誤
差が+(3/8)LSB (図24参照) であったのが、−(1/8)LSB
に低減させることができる。つまり、小規模のインクリ
メンタ10を付加することによって、従来のA/D 変換器よ
りも(1/4)LSBの精度の向上を図ることができる。
As a result, the conversion error of the conventional A / D converter was + (3/8) LSB (see FIG. 24), but it was-(1/8) LSB.
Can be reduced to That is, by adding the small-scale incrementer 10, the accuracy of (1/4) LSB can be improved as compared with the conventional A / D converter.

【0040】図4はインクリメンタ10の他の実施例を示
すブロック図である。AND 回路A7の出力はフルスケー
ルフラグ10a に入力され、フルスケールフラグ10a の内
容はデータバスDBi へ出力される。それ以外の構成は図
2に示す構成と同様であり、同一構成部分には同符号を
付している。このインクリメンタ10はビットb9 からビ
ットb1 までの上位9ビットが全て“1”の場合は、フ
ルスケールフラグ10aに“1”がセットされる。そのた
め、インクリメンタ10の変換結果と、フルスケールフラ
グ10a の内容との両方を読み出すことによりビットb9
からビットb1までの上位9ビットが全て“1”であっ
て、インクリメンタ10の変換結果が“00H ”である場合
と、“FFH ”を超えている場合とを判別することができ
る。
FIG. 4 is a block diagram showing another embodiment of the incrementer 10. The output of the AND circuit A 7 is input to the full scale flag 10a, and the content of the full scale flag 10a is output to the data bus DB i . The other configuration is similar to that shown in FIG. 2, and the same components are designated by the same reference numerals. In this incrementer 10, when all the upper 9 bits from bit b 9 to bit b 1 are "1", "1" is set in the full scale flag 10a. Therefore, by reading both the conversion result of the incrementer 10 and the contents of the full scale flag 10a, bit b 9
It is possible to discriminate between the case where the upper 9 bits from to b 1 are all “1” and the conversion result of the incrementer 10 is “00 H ”, and the case where it exceeds “FF H ”. .

【0041】図5はインクリメンタ10の更に他の実施例
を示すブロック図である。EXOR回路EO1 ,EO2 ,EO3
EO4 ,EO5 ,EO6 ,EO7 ,EO8 の出力は、各別にOR回路
OR1,OR2 ,OR3 ,OR4 ,OR5 ,OR6 ,OR7 ,OR8 の一
入力端子へ入力される。OR回路OR1 ,OR2 ,OR3 ,O
R4 ,OR5 ,OR6 ,OR7 ,OR8 の他入力端子にはAND 回
路A7 の出力が共通に入力される。OR回路OR1 ,OR2
OR3 ,OR4 ,OR5 ,OR6 ,OR7 ,OR8 の出力は、各別に
バスバッファBB1 ,BB2 ,BB3 ,BB4 ,BB5 ,BB6,BB
7 ,BB8 へ入力される。それ以外の構成は図2に示す構
成と同様となっており、同一構成部分には同符号を付し
ている。
FIG. 5 is a block diagram showing still another embodiment of the incrementer 10. EXOR circuit EO 1 , EO 2 , EO 3 ,
The outputs of EO 4 , EO 5 , EO 6 , EO 7 , and EO 8 are OR circuits separately.
OR 1, OR 2, OR 3 , OR 4, OR 5, are input to OR 6, OR 7, one of the input terminals of the OR 8. OR circuit OR 1 , OR 2 , OR 3 , O
The output of the AND circuit A 7 is commonly input to the other input terminals of R 4 , OR 5 , OR 6 , OR 7 , and OR 8 . OR circuit OR 1 , OR 2 ,
The outputs of OR 3 , OR 4 , OR 5 , OR 6 , OR 7 , and OR 8 are bus buffers BB 1 , BB 2 , BB 3 , BB 4 , BB 5 , BB 6 , and BB, respectively.
Input to 7 and BB 8 . The other configuration is similar to that shown in FIG. 2, and the same components are designated by the same reference numerals.

【0042】このインクリメンタ10ではインクリメンタ
の変換結果が“FFH ”以上となった場合もインクリメン
タ10の変換結果を“FFH ”に固定することができる。な
お、前述した夫々のインクリメンタは例示であって、こ
れらのものに限定されるものではない。また図4及び図
5夫々の構成を組合せることにより“FFH ”以上となっ
た場合のインクリメンタの変換結果をFFH ”に固定する
とともに、フルスケールを超えたことをフラグにより示
すことができる。また、これらの実施例では逐次近似レ
ジスタとインクリメンタとを独立させているが、逐次近
似レジスタにインクリメンタの機能を取り込んで一体化
することにより回路規模を小さくすることができる。な
お、図2に示すようにインクリメンタ10の変換結果を出
力する回路はバッファを介してデータバスへ出力される
のが一般的である。
In this incrementer 10, even if the conversion result of the incrementer is "FF H " or more, the conversion result of the incrementer 10 can be fixed to "FF H ". It should be noted that the above-mentioned respective incrementers are merely examples, and the present invention is not limited to these. In addition, by combining the configurations of FIG. 4 and FIG. 5, it is possible to fix the conversion result of the incrementer in the case of "FF H " or more to FF H ", and to indicate by the flag that the full scale is exceeded. Although the successive approximation register and the incrementer are independent in these embodiments, the circuit scale can be reduced by incorporating the function of the incrementer into the successive approximation register and integrating them. As shown in FIG. 2, the circuit that outputs the conversion result of the incrementer 10 is generally output to the data bus via a buffer.

【0043】図6は本発明に係るA/D 変換器の第2実施
例の構成を示すブロック図である。8ビットインクリメ
ンタ10及び逐次近似レジスタ4には、アドレスデコーダ
5から同一のアドレスが入力される。インクリメンタ10
及び逐次近似レジスタ4の各出力は、それらを択一的に
選択する選択回路SEL を介してデータバスDBへ出力され
る。選択回路SEL には8ビットの変換結果又は10ビット
の変換結果をデータバスDBへ出力するためのデータを格
納している8/10切換レジスタ11のデータが与えられる。
それ以外の構成は図1に示す構成と同様となっており、
同一構成部分には同符号を付している。
FIG. 6 is a block diagram showing the configuration of the second embodiment of the A / D converter according to the present invention. The same address is input from the address decoder 5 to the 8-bit incrementer 10 and the successive approximation register 4. Incrementer 10
And each output of the successive approximation register 4 is output to the data bus DB through a selection circuit SEL that selectively selects them. The selection circuit SEL is supplied with the data of the 8/10 switching register 11 which stores the data for outputting the 8-bit conversion result or the 10-bit conversion result to the data bus DB.
Otherwise, the configuration is similar to that shown in FIG.
The same components are designated by the same reference numerals.

【0044】このA/D 変換器は、図1に示したA/D 変換
器と同様のA/D 変換動作をする。そしてインクリメンタ
10及び逐次近似レジスタ4に同一アドレスを入力してイ
ンクリメンタ10及び逐次近似レジスタ4の変換結果を出
力することができる。そして8/10切換レジスタ11から例
えば8ビットの変換結果を選択するデータを選択回路SE
L へ与えると、選択回路SEL によりインクリメンタ10の
変換結果を選択して8ビットの変換結果をデータバスDB
へ出力する。一方、10ビットの変換結果を選択するデー
タを選択回路SEL へ与えた場合は、逐次近似レジスタ4
の変換結果を選択して10ビットの変換結果をデータバス
DBへ出力する。
This A / D converter performs the same A / D conversion operation as the A / D converter shown in FIG. And the incrementer
It is possible to input the same address to 10 and the successive approximation register 4 and output the conversion result of the incrementer 10 and the successive approximation register 4. Then, the data for selecting the 8-bit conversion result from the 8/10 switching register 11 is selected by the selection circuit SE.
When applied to L, the selection circuit SEL selects the conversion result of the incrementer 10 and outputs the 8-bit conversion result to the data bus DB.
Output to. On the other hand, when data for selecting the 10-bit conversion result is given to the selection circuit SEL, the successive approximation register 4
Select the conversion result of and select the 10-bit conversion result from the data bus.
Output to DB.

【0045】また、インクリメンタ10及び逐次近似レジ
スタ4に同一アドレスを入力するようにしているから、
ユーザは読み出し時のアドレスを意識することなくプロ
グラムを作成することが可能になる。
Since the same address is input to the incrementer 10 and the successive approximation register 4,
The user can create a program without paying attention to the read address.

【0046】図7は本発明に係るA/D 変換器の第3実施
例の構成を示すブロック図である。インクリメンタ10及
び逐次近似レジスタ4の変換結果はバイト/ワード判別
回路12へ入力され、バイト/ワード判別回路12から出力
される変換結果はデータバスDBへ出力される。バイト/
ワード判別回路12にはバイト信号及び読み出し信号RDが
与えられる。それ以外の構成は図1又は図6に示す構成
と同様であり、同一構成部分には同符号を付している。
FIG. 7 is a block diagram showing the configuration of the third embodiment of the A / D converter according to the present invention. The conversion result of the incrementer 10 and the successive approximation register 4 is input to the byte / word determination circuit 12, and the conversion result output from the byte / word determination circuit 12 is output to the data bus DB. Part-Time Job/
A byte signal and a read signal RD are given to the word discrimination circuit 12. The other configuration is the same as that shown in FIG. 1 or FIG. 6, and the same components are designated by the same reference numerals.

【0047】表2は一般的な16ビットCPU のレジスタ構
成と8ビットのレジスタをアクセスするためのアドレス
信号との関係をアドレス4バイト分について示す。レジ
スタは下位8ビットが偶数アドレスに配置され、上位8
ビットが奇数アドレスに配置されている。A0,A1 はアド
レス信号の下位2ビットを示している。バイトはCPUの
命令によってバイトアクセスするときに“1”となるバ
イト信号である。ワードアクセス時はバイト信号が
“0”となり、アドレスの偶数番地と奇数番地とを同時
に出力する。
Table 2 shows the relationship between the register structure of a general 16-bit CPU and the address signal for accessing the 8-bit register for 4 bytes of address. The lower 8 bits of the register are placed at even addresses, and the upper 8
Bits are located at odd addresses. A0 and A1 indicate the lower 2 bits of the address signal. The byte is a byte signal which becomes “1” when the byte is accessed by the instruction of the CPU. At the time of word access, the byte signal becomes "0", and the even address and the odd address of the address are simultaneously output.

【0048】[0048]

【表2】 [Table 2]

【0049】このような16ビットCPU の場合は図7に示
しているバイト/ワード判別回路12を、図8に示す回路
により実現できる。図8はバイト/ワード判別回路の構
成を示すブロック図である。バイト信号はAND 回路12a
の一入力端子及びインバータ12b へ入力され、インバー
タ12b の出力はAND 回路12c の一入力端子へ入力され
る。インクリメンタ10の変換結果はAND 回路12a の他入
力端子へ入力され、逐次近似レジスタ4の変換結果はAN
D 回路12c の他入力端子へ入力される。AND 回路12a,12
c の出力は各別にOR回路12d の一入力端子、他入力端子
へ入力される。OR回路12d の出力はバッファ12e を介し
てデータバスDBへ出力される。バッファ12e には読み出
し信号RDが入力される。
In the case of such a 16-bit CPU, the byte / word discrimination circuit 12 shown in FIG. 7 can be realized by the circuit shown in FIG. FIG. 8 is a block diagram showing the configuration of the byte / word discrimination circuit. Byte signal is AND circuit 12a
Is input to the inverter 12b and the output of the inverter 12b is input to the input terminal of the AND circuit 12c. The conversion result of the incrementer 10 is input to the other input terminal of the AND circuit 12a, and the conversion result of the successive approximation register 4 is AN.
Input to other input terminal of D circuit 12c. AND circuit 12a, 12
The output of c is separately input to one input terminal and the other input terminal of the OR circuit 12d. The output of the OR circuit 12d is output to the data bus DB via the buffer 12e. The read signal RD is input to the buffer 12e.

【0050】次にこのバイト/ワード判別回路12の動作
を説明する。下位アドレスをバイト単位で出力すると
き、インクリメンタ10の変換結果がデータバスDBへ出力
される。またワード単位で出力するときは逐次近似レジ
スタ4の変換結果がデータバスDBへ出力さる。これによ
りユーザは8ビット単位、10ビット単位で選択するため
のデータをレジスタに設定する必要がなくなり、変換結
果の出力方法の変更によって自動的に処理できる。
Next, the operation of the byte / word discrimination circuit 12 will be described. When outputting the lower address in byte units, the conversion result of the incrementer 10 is output to the data bus DB. When outputting in word units, the conversion result of the successive approximation register 4 is output to the data bus DB. This eliminates the need for the user to set the data for selecting in 8-bit units or 10-bit units in the register, and the data can be automatically processed by changing the output method of the conversion result.

【0051】図9は本発明に係るA/D 変換器の第4実施
例の構成を示すブロック図である。インクリメンタ10の
変換結果、逐次近似レジスタ4の上位2ビットb9 ,b
8 の変換結果及び逐次近似レジスタ4の下位8ビットb
7 〜b0 の変換結果は選択回路13へ入力される。選択回
路13には下位ビット側及び上位ビット側を判別するL/H
ワード判別回路14の判別結果が入力され、また読み出し
信号RDが入力される。L/H ワード判別回路14には最下位
アドレス信号A0およひバイト信号が入力される。選択回
路13の出力は、下位ビット側のデータバスDB及び上位ビ
ット側のデータバスDBへ分けて出力される。それ以外の
構成は、図1における構成と同様となっている。
FIG. 9 is a block diagram showing the configuration of the fourth embodiment of the A / D converter according to the present invention. The conversion result of the incrementer 10, the high-order 2 bits b 9 , b of the successive approximation register 4
8 conversion result and lower 8 bits b of successive approximation register 4
The conversion results of 7 to b 0 are input to the selection circuit 13. The selection circuit 13 has an L / H that discriminates between the lower bit side and the upper bit side.
The determination result of the word determination circuit 14 is input, and the read signal RD is also input. The lowest address signal A0 and byte signal are input to the L / H word discrimination circuit 14. The output of the selection circuit 13 is separately output to the data bus DB on the lower bit side and the data bus DB on the higher bit side. The other configuration is the same as the configuration in FIG.

【0052】このA/D 変換器は、下位ビット側のバイト
アクセス、上位ビット側のバイトアクセス、ワードアク
セス夫々を自動的に判別し、下位ビット側をバイトでア
クセスした場合は、逐次近似レジスタ4の下位8ビット
の変換結果を出力し、上位ビット側をバイトでアクセス
した場合は、インクリメンタ10の変換結果を出力し、ワ
ードでアクセスした場合は、逐次近似レジスタ4の全ビ
ットの変換結果を出力するようにしている。
This A / D converter automatically discriminates the byte access on the lower bit side, the byte access on the higher bit side, and the word access respectively. When the lower bit side is accessed on a byte basis, the successive approximation register 4 The conversion result of the lower 8 bits of is output, the conversion result of the incrementer 10 is output when the upper bit side is accessed in bytes, and the conversion result of all bits of the successive approximation register 4 is output when the word is accessed. I am trying to output.

【0053】図10はL/H ワード判別回路14及び選択回路
13の構成を示すブロック図である。最下位アドレス信号
A0はAND 回路14a の一入力端子及びインバータ14b へ入
力される。インバータ14b の出力はAND 回路14c の一入
力端子へ入力される。バイト信号はAND 回路14a の他入
力端子、AND 回路14c の他入力端子及びインバータ14d
へ入力される。AND 回路14a の出力はAND 回路14e の一
入力端子へ入力される。AND 回路14c の出力はOR回路14
f の一入力端子へ入力される。インバータ14dの出力はA
ND 回路14g の一入力端子及びOR回路14f の他入力端子
へ入力される。逐次近似レジスタ4の上位2ビットの変
換結果はAND 回路14g の他入力端子へ入力される。イン
クリメンタ10の8ビットの変換結果はAND 回路14e の他
入力端子へ入力される。AND 回路14g,14e の出力は各別
にOR回路14h の一入力端子、他入力端子へ入力され、そ
の出力は読み出し信号RDが与えられるバッファ14i を介
して上位ビット側のデータバスDBへ出力される。OR回路
14f の出力はAND 回路14jの一入力端子へ入力され、そ
の他入力端子には読み出し信号RDが入力される。AND 回
路14j の出力はバッファ14k へ与えられる。逐次近似レ
ジスタ4の下位8ビットの変換結果はバッファ14k を介
して下位ビット側のデータバスDBへ出力される。
FIG. 10 shows an L / H word discrimination circuit 14 and a selection circuit.
FIG. 13 is a block diagram showing the configuration of 13. Lowest address signal
A0 is input to one input terminal of the AND circuit 14a and the inverter 14b. The output of the inverter 14b is input to one input terminal of the AND circuit 14c. The byte signal is the other input terminal of the AND circuit 14a, the other input terminal of the AND circuit 14c and the inverter 14d.
Is input to. The output of the AND circuit 14a is input to one input terminal of the AND circuit 14e. The output of the AND circuit 14c is the OR circuit 14
Input to one input terminal of f. The output of the inverter 14d is A
It is input to one input terminal of the ND circuit 14g and the other input terminal of the OR circuit 14f. The conversion result of the upper 2 bits of the successive approximation register 4 is input to the other input terminal of the AND circuit 14g. The 8-bit conversion result of the incrementer 10 is input to the other input terminal of the AND circuit 14e. The outputs of the AND circuits 14g and 14e are separately input to one input terminal and the other input terminal of the OR circuit 14h, and the output is output to the data bus DB on the upper bit side via the buffer 14i to which the read signal RD is given. . OR circuit
The output of 14f is input to one input terminal of the AND circuit 14j, and the read signal RD is input to the other input terminals. The output of the AND circuit 14j is given to the buffer 14k. The conversion result of the lower 8 bits of the successive approximation register 4 is output to the data bus DB on the lower bit side via the buffer 14k.

【0054】次にこのように構成したA/D 変換器の動作
を説明する。下位ビット側をバイトアクセスする場合、
最下位アドレス信号A0は“0”に、バイト信号は“1”
になり、AND 回路14c の出力は“1”になる。その結
果、読み出し信号RDが発生すると逐次近似レジスタ4の
下位8ビットの変換結果が下位ビット側のデータバスへ
出力される。
Next, the operation of the A / D converter thus configured will be described. When byte-accessing the lower bit side,
The lowest address signal A0 is "0" and the byte signal is "1"
And the output of the AND circuit 14c becomes "1". As a result, when the read signal RD is generated, the conversion result of the lower 8 bits of the successive approximation register 4 is output to the data bus on the lower bit side.

【0055】上位ビット側をバイトアクセスした場合、
最下位アドレス信号A0は“1”に、バイト信号は“1”
になり、AND 回路14a の出力が“1”になる。その結果
インクリメンタ10の8ビットの変換結果が、上位ビット
側のデータバスDBへ出力される。
When the upper bit side is byte-accessed,
The lowest address signal A0 is "1" and the byte signal is "1"
And the output of the AND circuit 14a becomes "1". As a result, the 8-bit conversion result of the incrementer 10 is output to the data bus DB on the upper bit side.

【0056】ワードアクセスした場合は、インバータ14
d の出力が“1”になり、逐次近似レジスタ4の上位2
ビットの変換結果が、上位ビット側のデータバスDBへ出
力される。このようにして、1ワードのレジスタの出力
方法を変更することにより、逐次近似レジスタ4の下位
8ビット、インクリメンタ10の8ビット、逐次近似レジ
スタ4の全ビット夫々の変換結果を自動的に出力するこ
とができる。
In the case of word access, the inverter 14
The output of d becomes "1", and the higher 2 of successive approximation register 4
The bit conversion result is output to the data bus DB on the upper bit side. In this way, by changing the output method of the 1-word register, the conversion result of the lower 8 bits of the successive approximation register 4, the 8 bits of the incrementer 10, and all the bits of the successive approximation register 4 are automatically output. can do.

【0057】なお、アプリケーションによっては、A/D
変換器へ入力されるセンサの出力電圧は大きく変化せ
ず、小刻みな変動をする場合がある。この場合は、上位
2ビットを無視して、普段は下位8ビットの変換結果の
みを出力し、センサの出力電圧が所定範囲を超えたとき
に上位2ビットの変換結果も出力するように動作させ得
る。
Depending on the application, A / D
The output voltage of the sensor that is input to the converter does not change significantly and may fluctuate little by little. In this case, the upper 2 bits are ignored, and only the lower 8 bit conversion result is normally output, and when the sensor output voltage exceeds the predetermined range, the upper 2 bit conversion result is also output. obtain.

【0058】本実施例では、下位ビット側の変換結果を
出力するときは、逐次近似レジスタ4の下位8ビット
を、上位ビット側の変換結果を出力するときはインクリ
メンタ10の8ビットの変換結果を、ワード単位で出力す
る時は逐次近似レジスタ4の全ビットの変換結果を出力
したが、これに限定されるものではない。つまり、下位
ビット側の変換結果を出力するときはインクリメンタ10
の8ビットの変換結果を、上位ビット側の変換結果を出
力するときは逐次近似レジスタ4の下位8ビットの変換
結果を、ワード単位で出力するときは逐次近似レジスタ
4の全ビットの変換結果を出力することもできる。
In this embodiment, the lower 8 bits of the successive approximation register 4 are output when the conversion result on the lower bit side is output, and the 8-bit conversion result of the incrementer 10 is output when the conversion result on the higher bit side is output. Is output in word units, the conversion result of all bits of the successive approximation register 4 is output, but the present invention is not limited to this. In other words, when outputting the conversion result of the lower bit side, the incrementer 10
Of the 8-bit conversion result, the lower 8-bit conversion result of the successive approximation register 4 is output when the upper-bit conversion result is output, and the conversion result of all bits of the successive approximation register 4 is output in word units. It can also be output.

【0059】また、下位ビット側の変換結果を出力する
ときは、インクリメンタ10の8ビットの変換結果を、上
位ビット側の変換結果を出力するときは、逐次近似レジ
スタ4の上位2ビットの変換結果を、ワード単位で出力
するときは逐次近似レジスタ4の全ビットの変換結果を
出力することもできる。
When outputting the conversion result on the lower bit side, the 8-bit conversion result of the incrementer 10 is output, and when outputting the conversion result on the higher bit side, the upper 2-bit conversion result of the successive approximation register 4 is output. When outputting the result in word units, the conversion result of all bits of the successive approximation register 4 can be output.

【0060】図11は本発明に係るA/D 変換器の第5実施
例の構成を示すブロック図である。逐次近似レジスタ4
のLSB(b0 ) 、下位側からの第2ビットb1 の変換結果
は各別にAND 回路AD10の一入力端子、他入力端子へ入力
される。AND 回路AD10の出力はインクリメンタ10のトリ
ガ端子Tへ入力される。それ以外の構成は図1に示す構
成と同様となっており、同一構成部分には同符号を付し
ている。
FIG. 11 is a block diagram showing the configuration of the fifth embodiment of the A / D converter according to the present invention. Successive approximation register 4
LSB (b 0 ), the conversion result of the second bit b 1 from the lower side is separately input to one input terminal and the other input terminal of the AND circuit AD 10 . The output of the AND circuit AD 10 is input to the trigger terminal T of the incrementer 10. The other configurations are similar to those shown in FIG. 1, and the same components are designated by the same reference numerals.

【0061】このように構成したA/D 変換器は下位2ビ
ットb1 , b0 の変換結果がともに“1”の場合に、イ
ンクリメンタ10の8ビットの変換結果に“1”を加え
る。それにより変換結果は表3に示す如く変化する。
The A / D converter configured as described above adds "1" to the 8-bit conversion result of the incrementer 10 when the conversion results of the lower 2 bits b 1 and b 0 are both "1". As a result, the conversion result changes as shown in Table 3.

【0062】[0062]

【表3】 [Table 3]

【0063】また、インクリメンタの8ビットの変換結
果に“1”を加えて補正した8ビットの変換特性は図12
に示す如くなる。図12は横軸をアナログ電圧とし、縦軸
を変換結果としており、補正した8ビットの変換結果は
階段状の太い実線で示すようになる。そして変換精度と
しては図1に示すA/D 変換器の場合と同じであるが、変
換誤差を負 (−) 側 (図3参照) から正 (+) 側に変え
ることができる。そして、図1のA/D 変換器に備えたフ
ルスケールフラグを、この実施例にも同様に適用でき
る。また図6, 図7, 図9に示したA/D 変換器の出力系
の制御方法もこの実施例に同様に適用できる。
FIG. 12 shows the 8-bit conversion characteristic corrected by adding "1" to the 8-bit conversion result of the incrementer.
As shown in. In FIG. 12, the horizontal axis is the analog voltage, and the vertical axis is the conversion result. The corrected 8-bit conversion result is shown by a thick staircase solid line. The conversion accuracy is the same as that of the A / D converter shown in FIG. 1, but the conversion error can be changed from the negative (−) side (see FIG. 3) to the positive (+) side. The full scale flag provided in the A / D converter of FIG. 1 can be applied to this embodiment as well. Further, the control method of the output system of the A / D converter shown in FIGS. 6, 7 and 9 can be similarly applied to this embodiment.

【0064】図13は本発明に係るA/D 変換器の第6実施
例の構成を示すブロック図である。逐次近似レジスタ4
の上位9ビットの変換結果は9ビットインクリメンタ30
へ入力される。逐次近似レジスタ4のLSB(b0 ) の変換
結果はインクリメンタ30のトリガ端子Tへ入力される。
インクリメンタ30から8ビットの変換結果がデータバス
DBへ出力される。それ以外の構成は図1における構成と
同様であり、同一構成部分には同符号を付している。
FIG. 13 is a block diagram showing the configuration of the sixth embodiment of the A / D converter according to the present invention. Successive approximation register 4
The conversion result of the upper 9 bits of is the 9-bit incrementer 30
Is input to. The conversion result of LSB (b 0 ) of the successive approximation register 4 is input to the trigger terminal T of the incrementer 30.
8-bit conversion result from incrementer 30 is data bus
Output to DB. The other configurations are similar to those in FIG. 1, and the same components are designated by the same reference numerals.

【0065】このA/D 変換器はLSB(b0 ) が“1”のと
き、インクリメンタ30の9ビットの変換結果に“1”を
加える。インクリメンタ30で補正された変換結果を出力
する場合は、上位8ビットの変換結果のみをデータバス
DBへ出力する。これによって図11に示すA/D 変換器と同
様に変換結果を出力できる。そして、図1に示すA/D 変
換器に備えたフルスケールフラグを本実施例にも適用で
きる。また図6, 図7, 図9に示したA/D 変換器の出力
系の制御方法もこの実施例に同様に適用できる。
This A / D converter adds "1" to the 9-bit conversion result of the incrementer 30 when LSB (b 0 ) is "1". When outputting the conversion result corrected by the incrementer 30, only the conversion result of the upper 8 bits is output to the data bus.
Output to DB. As a result, the conversion result can be output like the A / D converter shown in FIG. Then, the full-scale flag provided in the A / D converter shown in FIG. 1 can be applied to this embodiment. Further, the control method of the output system of the A / D converter shown in FIGS. 6, 7 and 9 can be similarly applied to this embodiment.

【0066】図14は本発明に係るA/D 変換器の第7実施
例の構成を示すブロック図である。逐次近似レジスタ4
の下位2ビットb1 , b0 の変換結果は各別にAND 回路
AD11の一入力端子、他入力端子へ入力される。AND 回路
AD11の出力は選択回路SEL を介して8ビットインクリメ
ンタ10のトリガ端子Tへ入力される。また逐次近似レジ
スタ4の下位側からの第2ビットb1 の変換結果は選択
回路SEL を介してインクリメンタ10のトリガ端子Tへ入
力される。選択回路SEL には、誤差を正側又は負側にな
すべく選択回路SEL を切換えるためのデータを格納して
いる+/- 誤差切換レジスタ15のデータが与えられる。
FIG. 14 is a block diagram showing the configuration of the seventh embodiment of the A / D converter according to the present invention. Successive approximation register 4
The lower 2 bits b 1 and b 0 of the conversion result are AND circuit separately
Input to one input terminal of AD 11 , the other input terminal. AND circuit
The output of AD 11 is input to the trigger terminal T of the 8-bit incrementer 10 via the selection circuit SEL. The conversion result of the second bit b 1 from the lower side of the successive approximation register 4 is input to the trigger terminal T of the incrementer 10 via the selection circuit SEL. The data of the +/- error switching register 15 storing the data for switching the selection circuit SEL to make the error positive or negative is given to the selection circuit SEL.

【0067】つまり、このA/D 変換器は図1に示すA/D
変換器及び図11に示すA/D 変換器の構成を組合せたもの
である。これにより+(1/8)LSBの誤差と、−(1/8)LSBの
誤差とを、+/- 誤差切換レジスタ15のデータで変更でき
る。これにより、1つのA/D変換器で正側の誤差及び負
側の誤差を適宜に選択することができる。そして図1に
示すA/D 変換器に備えたフルスケールフラグを本実施例
にも適用できる。また図6, 図7, 図9に示したA/D 変
換器の出力系の制御方法もこの実施例に同様に適用でき
る。
That is, this A / D converter is the same as the A / D converter shown in FIG.
It is a combination of the configurations of the converter and the A / D converter shown in FIG. As a result, the error of + (1/8) LSB and the error of − (1/8) LSB can be changed by the data of the +/− error switching register 15. Thereby, one A / D converter can appropriately select the error on the positive side and the error on the negative side. The full scale flag provided in the A / D converter shown in FIG. 1 can also be applied to this embodiment. Further, the control method of the output system of the A / D converter shown in FIGS. 6, 7 and 9 can be similarly applied to this embodiment.

【0068】図15は本発明に係るA/D 変換器の第8実施
例の構成を示すブロック図である。変換結果を出力する
データを8ビット又は10ビットになすべく選択するため
のデータを格納している8/10切換レジスタ16のデータ
は、選択回路SEL 及びD/A コンバータ部2へ与えられ
る。それ以外の構成は図6に示す構成と同様であり、同
一構成部分には同符号を付している。
FIG. 15 is a block diagram showing the configuration of the eighth embodiment of the A / D converter according to the present invention. The data of the 8/10 switching register 16 storing the data for selecting the data for outputting the conversion result to be 8 bits or 10 bits is given to the selection circuit SEL and the D / A converter unit 2. The other configurations are similar to those shown in FIG. 6, and the same components are designated by the same reference numerals.

【0069】前述したこれまでのA/D 変換器は、+(1/
8)LSB又は−(1/8)LSBの変換誤差を生じたが、これを解
消させるために10ビットのA/D 変換を行っている(1/2)L
SB補正回路の動作を中止することにより実現する。前述
したこれまでのA/D 変換自体は常に10ビットのA/D 変換
器として動作させていたのに対し、本実施例では、A/D
変換を開始する前に8/10切換レジスタ16によって8ビッ
トのA/D 変換を行うか、10ビットのA/D 変換を行うかを
予め設定する必要がある。そこで10ビットのA/D変換器
として10ビットのA/D 変換を行なう場合には従来と同様
の動作を行わせるが、8ビットのA/D 変換を行なう場合
には10ビットのA/D 変換器で行っていた(1/2)LSB補正回
路による(1/2)LSB補正を行わないようにする。
The above-mentioned A / D converters up to this point are + (1 /
8) LSB or − (1/8) LSB conversion error occurred, but 10-bit A / D conversion is performed to eliminate this error (1/2) L
It is realized by stopping the operation of the SB correction circuit. While the A / D conversion itself so far described above has always operated as a 10-bit A / D converter, in the present embodiment, A / D conversion is performed.
Before starting conversion, it is necessary to set in advance whether 8-bit A / D conversion or 10-bit A / D conversion is performed by the 8/10 switching register 16. Therefore, when performing 10-bit A / D conversion as a 10-bit A / D converter, the same operation as before is performed, but when performing 8-bit A / D conversion, 10-bit A / D conversion is performed. Disable (1/2) LSB correction by the converter (1/2) LSB correction circuit.

【0070】このような(1/2)LSB補正を行わない方法に
ついて2ビットA/D 変換器を例として説明する。図16は
2ビットA/D 変換器におけるD/A コンバータ部のラダー
抵抗回路の構成図である。基準電圧Vref と接地電圧V
SSとの間に、抵抗値が同一の8個の抵抗R1 , R2 …R
8 が介装されている。抵抗R2 とR3 との接続部のタッ
プ電圧3/4 Vrefは開閉回路S1 を介して、抵抗R4
5 との接続部のタップ電圧2/4 Vref は開閉回路S2
を介して、抵抗R6 とR7 との接続部のタップ電圧1/4
ref は開閉回路S3 を介して図示しないコンパレータ
へ入力される。
A method without such (1/2) LSB correction will be described by taking a 2-bit A / D converter as an example. FIG. 16 is a configuration diagram of the ladder resistance circuit of the D / A converter section in the 2-bit A / D converter. Reference voltage V ref and ground voltage V
Eight resistors R 1 , R 2 ... R having the same resistance value with SS
8 is interposed. The tap voltage 3/4 V ref at the connection between the resistors R 2 and R 3 is passed through the switching circuit S 1 , and the tap voltage 2/4 V ref at the connection between the resistors R 4 and R 5 is at the switching circuit S 2
1/4 tap voltage at the connection between resistors R 6 and R 7 via
V ref is input to a comparator (not shown) via the switching circuit S 3 .

【0071】また抵抗R3 とR4 との接続部のタップ電
圧5/8 Vref は開閉回路S4 を介して、抵抗R5 とR6
との接続部のタップ電圧3/8 Vref は開閉回路S5 を介
して、抵抗R7 とR8 との接続部のタップ電圧1/8 V
ref は開閉回路S6 を介してコンパレータへ入力され
る。このラダー抵抗回路は、通常、(1/2)LSB補正を行な
うために1/8 Vref ,3/8Vref ,5/8Vref のタップ電圧
をコンパレータへ入力する。このようにしてD/A 変換し
た変換結果は図17に示すようになり、(1/2)LSB補正を行
なうと、理想的な変換特性を示す直線に最も近い変換結
果が得られる。
[0071] The tap voltage 5/8 V ref at the connection of the resistor R 3 and R 4 via an on-off circuit S 4, resistor R 5 and R 6
The tap voltage 3/8 V ref of the connection part with is connected to the tap voltage 1/8 V of the connection part of the resistors R 7 and R 8 via the switching circuit S 5.
ref is input to the comparator via the switching circuit S 6 . The ladder resistor circuit is normally input (1/2) in order to perform the LSB corrected tap voltage of 1/8 V ref, 3 / 8V ref , 5 / 8V ref to the comparator. The conversion result obtained by the D / A conversion in this way is as shown in FIG. 17. When the (1/2) LSB correction is performed, the conversion result closest to the straight line showing the ideal conversion characteristic can be obtained.

【0072】ところで図16に示す1/4 Vref ,2/4
ref ,3/4Vref のタップ電圧を用いてA/D 変換した場
合は図18に示すようになる。そして本実施例のA/D 変換
器は、図16に示すように(1/2)LSB補正を行った電圧と、
(1/2)LSB補正を行わない電圧との両方を取り出し得るよ
うにしている。そこで実際に(1/2)LSB補正を行わず8ビ
ットA/D 変換器として動作させた場合の変換結果は図19
に示すようになる。図16では、2ビットのA/D 変換器で
ある場合について説明したが、実際の10ビットA/D 変換
器でもラダー抵抗の数が多くなるだけで手法及び考え方
は同じである。
By the way, 1/4 V ref , 2/4 shown in FIG.
When A / D conversion by using the tap voltage V ref, 3 / 4V ref as shown in FIG. 18. And the A / D converter of the present embodiment, as shown in FIG. 16, (1/2) LSB corrected voltage,
(1/2) It is designed to be able to take out both the voltage without LSB correction. Therefore, the conversion result when actually operating as an 8-bit A / D converter without (1/2) LSB correction is shown in Fig. 19
It becomes as shown in. In FIG. 16, the case of a 2-bit A / D converter has been described, but the method and concept are the same even with an actual 10-bit A / D converter, only the number of ladder resistors increases.

【0073】したがって図15に示すD/A 変換器において
8ビットモード時に(1/2)LSB補正を行わないタップ電圧
1/4 Vref ,2/4Vref ,3/4Vref を取り出してコンパレ
ータ1へ入力すればよい。なお、本実施例ではD/A コン
バータ部2で(1/2)LSB補正をしている場合の実現方法を
説明したが、A/D 変換器によっては、コンパレータで(1
/2)LSB補正を実施している場合がある。この場合でも同
様の考え方に基づいて8ビットモード時に、(1/2)LSB補
正を行わない回路を付加することにより実現できる。ま
た図1に示すA/D 変換器に備えたフルスケールフラグを
本実施例にも適用できる。
Therefore, in the D / A converter shown in FIG. 15, the tap voltage at which (1/2) LSB correction is not performed in the 8-bit mode
The 1/4 V ref, 2 / 4V ref , 3 / 4V ref may be input to the comparator 1 removed. In this embodiment, the implementation method in the case where (1/2) LSB correction is performed in the D / A converter unit 2 has been described. However, depending on the A / D converter, the
/ 2) LSB correction may be performed. Even in this case, it can be realized by adding a circuit that does not perform (1/2) LSB correction in the 8-bit mode based on the same idea. Further, the full scale flag provided in the A / D converter shown in FIG. 1 can be applied to this embodiment.

【0074】図20は本発明に係るA/D 変換器の第9実施
例の構成を示すブロック図である。8/10切換レジスタ11
に格納されている、8ビット又は10ビットの変換結果を
選択するためのデータはD/A コンバータ部2及び逐次近
似レジスタ4の下位側からの第2ビットb1 へ入力され
る。それ以外の構成は図6に示されている構成と同様と
なっており、同一構成部分には同符号を付している。
FIG. 20 is a block diagram showing the configuration of the ninth embodiment of the A / D converter according to the present invention. 8/10 switching register 11
The data for selecting the 8-bit or 10-bit conversion result, which is stored in, is input to the second bit b 1 from the lower side of the D / A converter unit 2 and the successive approximation register 4. The other configuration is the same as the configuration shown in FIG. 6, and the same components are designated by the same reference numerals.

【0075】前述したように図15に示すA/D 変換器を8
ビットの変換結果を出力するモードで使用する場合、図
6, 図7, 図9, 図11, 図13, 図14に示すA/D 変換器と
異なり、10ビットの変換結果を得ることができない。即
ち、8ビットの変換結果を得るために用いているのは上
位9ビットb9 〜b1 であり、LSB(b0 ) は全く使用し
ていない。
As described above, the A / D converter shown in FIG.
When used in the mode that outputs the bit conversion result, unlike the A / D converter shown in FIGS. 6, 7, 9, 11, 13, and 14, the 10-bit conversion result cannot be obtained. . That is, the upper 9 bits b 9 to b 1 are used to obtain the 8-bit conversion result, and the LSB (b 0 ) is not used at all.

【0076】そこで、本実施例ではA/D 変換動作の高速
化を図るべく下位側からの第2ビットb1 の比較動作が
終了した時点でA/D 変換動作を終了するようにしてい
る。そのため、このA/D 変換器は8ビットの変換結果を
出力する場合は、8/10切換レジスタ11からのデータDT
が、アクティブとなり、(1/2)LSB補正を中止するととも
に、逐次近似レジスタ4に入力され、逐次近似レジスタ
4にも入力されており、逐次近似レジスタ4がビットb
1 まで変換動作が終了した時点でA/D 変換動作を終了さ
せる。このようなA/D 変換動作の終了は、終了フラグの
セット又は割り込み信号の発生によりCPU に知らせる。
したがって、実際にA/D 変換動作を終了させなくても、
終了フラグのセット又は割り込み信号の発生を逐次近似
レジスタ4のビットb1 の変換完了時に行なうことで、
同様にA/D 変換時間を短縮することが可能である。
Therefore, in this embodiment, in order to speed up the A / D conversion operation, the A / D conversion operation is terminated when the comparison operation of the second bit b 1 from the lower side is completed. Therefore, this A / D converter outputs the data DT from the 8/10 switching register 11 when outputting the 8-bit conversion result.
Becomes active, the (1/2) LSB correction is stopped, and the data is input to the successive approximation register 4 and also to the successive approximation register 4, and the successive approximation register 4 receives the bit b.
When the conversion operation is completed up to 1 , the A / D conversion operation is completed. The end of such A / D conversion operation is notified to the CPU by setting the end flag or generating an interrupt signal.
Therefore, without actually ending the A / D conversion operation,
By setting the end flag or generating the interrupt signal when the conversion of the bit b 1 of the successive approximation register 4 is completed,
Similarly, it is possible to shorten the A / D conversion time.

【0077】図21は本発明に係るA/D 変換器の第10実施
例の構成を示すブロック図である。第1のアナログ電圧
AN1 は開閉回路S10を介して、第2のアナログ電圧AN2
は開閉回路S11を介してコンパレータ1の一入力端子へ
入力される。8/10切換レジスタ16が格納しているアナロ
グ電圧AN1 用のデータは開閉回路S12を介して、アナロ
グ電圧AN2 用のデータは開閉回路S13を介して、選択回
路SEL 及びD/A コンバータ部2へ入力される。アナログ
電圧を選択するためのデータを格納しているアナログ入
力選択レジスタ17のデータは、開閉回路S10, S11及び
開閉回路S12,S13へ切換信号として与えられる。それ
以外の構成は図15に示した構成と同様となっており、同
一構成部分には同符号を付している。
FIG. 21 is a block diagram showing the configuration of the tenth embodiment of the A / D converter according to the present invention. First analog voltage
AN 1 is connected to the second analog voltage AN 2 via the switching circuit S 10.
Is input to one input terminal of the comparator 1 via the switching circuit S 11 . The data for the analog voltage AN 1 stored in the 8/10 switching register 16 is passed through the switching circuit S 12 , the data for the analog voltage AN 2 is passed through the switching circuit S 13 , and the selection circuits SEL and D / A. It is input to the converter unit 2. The data of the analog input selection register 17 storing the data for selecting the analog voltage is given to the switching circuits S 10 , S 11 and the switching circuits S 12 , S 13 as a switching signal. Other configurations are the same as the configurations shown in FIG. 15, and the same components are designated by the same reference numerals.

【0078】A/D 変換器によっては、複数の起動方法に
よるものがあり、例えばCPU からのアクセスによるソフ
トウェアでの起動、タイマの計時終了による起動、外部
端子の信号変化による外部トリガによる起動等がある。
このように起動要因が複数存在するA/D 変換器では、非
同期にトリガされるため、予め8ビット又は10ビットの
変換結果を選択するよう切換えをしておくのが難しい。
そこで、これを解消するために、各アナログ電圧に対応
させた8ビット/10ビット切換レジスタを備えておき、
起動要因が発生した時点で選択されるアナログ電圧に対
応して自動的に8ビットの変換結果又は10ビットの変換
結果を選択することが可能となる。
Depending on the A / D converter, there are a plurality of activation methods. For example, activation by software by access from the CPU, activation by timer timing termination, activation by an external trigger due to a signal change at an external terminal, etc. is there.
In such an A / D converter having a plurality of activation factors, since it is triggered asynchronously, it is difficult to switch in advance to select an 8-bit or 10-bit conversion result.
Therefore, in order to solve this, an 8-bit / 10-bit switching register corresponding to each analog voltage is provided,
It is possible to automatically select the 8-bit conversion result or the 10-bit conversion result in accordance with the analog voltage selected when the activation factor occurs.

【0079】なお、図21にはアナログ電圧が2種類の場
合について説明したが、アナログ電圧の種類の数に対応
した8/10ビット切換レジスタを備えて対応できるため、
アナログ電圧の種類は何ら限定されるものではない。ま
た特定の用途においては、ハード的に、アナログ電圧AN
1 を8ビットの変換結果とし、アナログ電圧AN2 を10ビ
ットの変換結果として固定することも可能である。
Although FIG. 21 describes the case where there are two types of analog voltage, since it can be provided by providing an 8 / 10-bit switching register corresponding to the number of types of analog voltage,
The type of analog voltage is not limited in any way. In certain applications, the analog voltage AN
It is also possible to fix 1 as the 8-bit conversion result and the analog voltage AN 2 as the 10-bit conversion result.

【0080】以上説明したA/D 変換器の各実施例の構成
を示すブロック図は、本発明と従来技術とを比較するた
めに用いた一例であってこれに限定するものではない。
また、10ビット用A/D 変換器を、8ビット用A/D 変換器
として使用する場合について説明したが、これらのビッ
ト数に限定するものではなく、例えば11ビット用A/D 変
換器を8ビット用A/D 変換器とし、あるいは6ビット用
A/D 変換器を4ビット用A/D 変換器として使用する等、
ビット数を変更しても同様の効果を得ることができる。
また、図9、図15、図20、図21のいずれかに示すアナロ
グ/デジタル変換器のトリガ端子Tには、図11に示すよ
うに下位ビットb0 , b1 の論理積の信号、図13に示す
ように最下位ビットb0 の信号、又は図14に示すように
下位ビットb0, b1 の論理積の信号及び下位ビットb
1 の信号を択一的に選択した信号、それらのいずれかを
入力しても同様の効果が得られる。
The block diagram showing the configuration of each embodiment of the A / D converter described above is an example used for comparing the present invention with the prior art, and is not limited to this.
Also, the case where the 10-bit A / D converter is used as the 8-bit A / D converter has been described, but the number of bits is not limited, and for example, an 11-bit A / D converter is used. 8-bit A / D converter, or 6-bit
Use the A / D converter as a 4-bit A / D converter, etc.
Even if the number of bits is changed, the same effect can be obtained.
Further, FIGS. 9, 15, 20, either in the trigger terminal T of the analog / digital converter shown in either the lower bits b 0, the logical product of the signal b 1, as shown in FIG. 11 in FIG. 21, FIG. 13, the signal of the least significant bit b 0 , or the signal of the logical product of the lower bits b 0 and b 1 and the lower bit b as shown in FIG.
1 of signals alternatively selecting signals, the same effect can be obtained by entering any of them.

【0081】[0081]

【発明の効果】以上説明したように本発明は、アナログ
電圧と比較電圧とを比較した比較結果を格納する逐次近
似レジスタのビット数より少ないビット数であって、そ
の逐次近似レジスタの変換結果を入力すべきインクリメ
ンタを備え、逐次近似レジスタの下位側からの所定ビッ
トの変換結果によりインクリメンタの変換結果に“1”
を加えてインクリメンタの変換結果を補正して、インク
リメンタから逐次近似レジスタのビット数より少ないビ
ット数の変換結果を得るようにしたので、逐次近似レジ
スタの変換結果、及び逐次近似レジスタのビット数より
少ないビット数の変換結果を高精度に得ることができ
る。
As described above, according to the present invention, the number of bits is smaller than the number of bits of the successive approximation register that stores the comparison result obtained by comparing the analog voltage and the comparison voltage. Equipped with an incrementer to be input, "1" is added to the conversion result of the incrementer according to the conversion result of a predetermined bit from the lower side of the successive approximation register.
Is added to correct the incrementer conversion result, and the incrementer obtains the conversion result with the number of bits smaller than the number of bits of the successive approximation register, so the conversion result of the successive approximation register and the number of bits of the successive approximation register A conversion result with a smaller number of bits can be obtained with high accuracy.

【0082】また、第1発明によれば、インクリメンタ
を付加した簡単な回路で構成できる。第2発明によれ
ば、判別回路による判別により上位側ビットの変換結果
及び下位側ビットの変換結果を読み出すことができる。
Further, according to the first aspect of the invention, the circuit can be constructed by a simple circuit to which an incrementer is added. According to the second aspect of the present invention, the conversion result of the high-order side bit and the conversion result of the low-order side bit can be read by the determination by the determination circuit.

【0083】第3発明によれば、逐次近似レジスタの上
位2ビットを除く残りのビットの変換結果、インクリメ
ンタの変換結果及び逐次近似レジスタの全ビットの変換
結果を択一的に選択して読み出し得る。
According to the third aspect of the present invention, the conversion result of the remaining bits except the upper 2 bits of the successive approximation register, the conversion result of the incrementer, and the conversion result of all the bits of the successive approximation register are selectively selected and read. obtain.

【0084】第4発明によれば、インクリメンタの変換
結果の誤差を負側から正側に変えることができる。
According to the fourth invention, the error in the conversion result of the incrementer can be changed from the negative side to the positive side.

【0085】第5発明によれば、逐次近似レジスタのビ
ット数より1ビット少ないビット数のインクリメンタを
用いて、逐次近似レジスタのビット数より少ないビット
数の変換結果の精度を高めることができる。
According to the fifth invention, it is possible to improve the accuracy of the conversion result of the bit number smaller than the bit number of the successive approximation register by using the incrementer having the bit number smaller than the bit number of the successive approximation register by one bit.

【0086】第6発明によれば、インクリメンタの変換
誤差を正側の誤差又は負側の誤差に変えることができ
る。
According to the sixth aspect of the invention, the incrementer conversion error can be changed into a positive error or a negative error.

【0087】第7発明によれば、インクリメンタの変換
結果を選択する場合は逐次近似レジスタのよる(1/2)LSB
補正を中止し、変換結果の精度をより高め得る。
According to the seventh aspect of the invention, when selecting the incrementer conversion result, (1/2) LSB of the successive approximation register is used.
The correction may be stopped and the accuracy of the conversion result may be improved.

【0088】第8発明によれば、インクリメンタの変換
結果を選択する場合は逐次近似レジスタによる(1/2)LSB
補正を中止して変換結果の精度を高め得、また逐次近似
レジスタの下位側からの第2ビットの変換が終了した時
点でアナログ/デジタル変換動作を終了することができ
る。
According to the eighth invention, when the incrementer conversion result is selected, (1/2) LSB by the successive approximation register is selected.
The correction can be stopped to improve the accuracy of the conversion result, and the analog / digital conversion operation can be ended when the conversion of the second bit from the lower side of the successive approximation register is completed.

【0089】第9発明によれば、アナログ電圧が入力さ
れる複数の端子に入力されたアナログ電圧を選択し、選
択したアナログ電圧の端子に対応して、インクリメンタ
の変換結果又は逐次近似レジスタの変換結果を選択でき
る等、本発明は優れた効果を奏する。
According to the ninth aspect, the analog voltage input to the plurality of terminals to which the analog voltage is input is selected, and the conversion result of the incrementer or the successive approximation register of the incremental approximation register is selected according to the selected analog voltage terminal. The present invention has excellent effects such as selection of a conversion result.

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

【図1】 本発明に係るアナログ/デジタル変換器の第
1実施例の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment of an analog / digital converter according to the present invention.

【図2】 8ビットインクリメンタの構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a configuration of an 8-bit incrementer.

【図3】 アナログ/デジタル変換特性を示す特性図で
ある。
FIG. 3 is a characteristic diagram showing analog / digital conversion characteristics.

【図4】 8ビットインクリメンタの他の実施例の構成
を示すブロック図である。
FIG. 4 is a block diagram showing the configuration of another embodiment of the 8-bit incrementer.

【図5】 8ビットインクリメンタの更に他の実施例の
構成を示すブロック図である。
FIG. 5 is a block diagram showing the configuration of still another embodiment of the 8-bit incrementer.

【図6】 本発明に係るアナログ/デジタル変換器の第
2実施例の構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a second exemplary embodiment of an analog / digital converter according to the present invention.

【図7】 本発明に係るアナログ/デジタル変換器の第
3実施例の構成を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of a third exemplary embodiment of an analog / digital converter according to the present invention.

【図8】 バイト/ワード判別回路の構成を示すブロッ
ク図である。
FIG. 8 is a block diagram showing a configuration of a byte / word discrimination circuit.

【図9】 本発明に係るアナログ/デジタル変換器の第
4実施例の構成を示すブロック図である。
FIG. 9 is a block diagram showing a configuration of a fourth exemplary embodiment of an analog / digital converter according to the present invention.

【図10】 L/H ワード判別回路及びセレクタの構成を
示すブロック図である。
FIG. 10 is a block diagram showing configurations of an L / H word discrimination circuit and a selector.

【図11】 本発明に係るアナログ/デジタル変換器の
第5実施例の構成を示すブロック図である。
FIG. 11 is a block diagram showing a configuration of a fifth exemplary embodiment of an analog / digital converter according to the present invention.

【図12】 アナログ/デジタル変換特性の特性図であ
る。
FIG. 12 is a characteristic diagram of analog / digital conversion characteristics.

【図13】 本発明に係るアナログ/デジタル変換器の
第6実施例の構成を示すブロック図である。
FIG. 13 is a block diagram showing a configuration of a sixth exemplary embodiment of an analog / digital converter according to the present invention.

【図14】 本発明に係るアナログ/デジタル変換器の
第7実施例の構成を示すブロック図である。
FIG. 14 is a block diagram showing the configuration of a seventh exemplary embodiment of an analog / digital converter according to the present invention.

【図15】 本発明に係るアナログ/デジタル変換器の
第8実施例の構成を示すブロック図である。
FIG. 15 is a block diagram showing the configuration of an eighth exemplary embodiment of an analog / digital converter according to the present invention.

【図16】 D/A コンバータ部のラダー抵抗回路の回路
図である。
FIG. 16 is a circuit diagram of a ladder resistance circuit of a D / A converter unit.

【図17】 2ビットのアナログ/デジタル変換器で(1
/2)LSB補正を行ったアナログ/デジタル変換特性の特性
図である。
FIG. 17 is a 2-bit analog / digital converter (1
/ 2) It is a characteristic diagram of an analog / digital conversion characteristic after LSB correction.

【図18】 2ビットのアナログ/デジタル変換器で(1
/2)LSB補正を行わないアナログ/デジタル変換特性の特
性図である。
FIG. 18 shows a 2-bit analog / digital converter (1
/ 2) It is a characteristic diagram of an analog / digital conversion characteristic without LSB correction.

【図19】 (1/2)LSB補正を行わない8ビット変換特性
の特性図である。
FIG. 19 is a characteristic diagram of 8-bit conversion characteristics without (1/2) LSB correction.

【図20】 本発明に係るアナログ/デジタル変換器の
第9実施例の構成を示すブロック図である。
FIG. 20 is a block diagram showing the configuration of a ninth exemplary embodiment of an analog / digital converter according to the present invention.

【図21】 本発明に係るアナログ/デジタル変換器の
第10実施例の構成を示すブロック図である。
FIG. 21 is a block diagram showing the configuration of a tenth embodiment of the analog / digital converter according to the present invention.

【図22】 従来の逐次比較型アナログ/デジタル変換
器の構成を示すブロック図である。
FIG. 22 is a block diagram showing a configuration of a conventional successive approximation type analog / digital converter.

【図23】 逐次近似レジスタの模式的構成図である。FIG. 23 is a schematic configuration diagram of a successive approximation register.

【図24】 アナログ/デジタル変換特性の特性図であ
る。
FIG. 24 is a characteristic diagram of analog / digital conversion characteristics.

【符号の説明】[Explanation of symbols]

1 コンパレータ、2 D/A コンバータ部、4 逐次近
似レジスタ、10 8ビットインクリメンタ、10a フル
スケールフラグ、11 8/10切換レジスタ、12 バイト/
ワード判別回路、14 L/H ワード判別回路、30 9ビッ
トインクリメンタ、A1 〜A7 AND 回路、EO1 〜EO8
EXOR回路、SEL 選択回路、AD10 AND 回路。
1 comparator, 2 D / A converter, 4 successive approximation register, 10 8 bit incrementer, 10a full scale flag, 11 8/10 switching register, 12 bytes /
Word discrimination circuit, 14 L / H word discrimination circuit, 309 9-bit incrementer, A 1 to A 7 AND circuit, EO 1 to EO 8
EXOR circuit, SEL selection circuit, AD 10 AND circuit.

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タを備え、逐次近似レジスタの下位側からの第2ビット
の変換結果によりインクリメンタの変換結果をインクリ
メントすべく構成したことを特徴とするアナログ/デジ
タル変換器。
1. An analog / digital converter that compares a comparison voltage obtained by dividing a reference voltage with an analog voltage, converts the analog voltage into a digital value, and stores the conversion result in a successive approximation register. The conversion result of the successive approximation register is input, and an incrementer having a bit number smaller than that of the successive approximation register is provided, and the conversion result of the incrementer is incremented by the conversion result of the second bit from the lower side of the successive approximation register. An analog / digital converter characterized by being configured.
【請求項2】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タと、逐次近似レジスタの上位2ビットの変換結果、該
上位2ビットを除く残りのビットの変換結果及びインク
リメンタの変換結果が入力される選択回路と、変換結果
を読み出す上位側ビット及び下位側ビットを判別する判
別回路とを備え、前記逐次近似レジスタの下位側からの
第2ビットの変換結果によりインクリメンタの変換結果
をインクリメントすべくなしており、前記判別回路によ
り選択回路を選択制御すべく構成したことを特徴とする
アナログ/デジタル変換器。
2. An analog / digital converter for comparing a comparison voltage obtained by dividing a reference voltage with an analog voltage, converting the analog voltage into a digital value, and storing the conversion result in a successive approximation register, The conversion result of the successive approximation register is input, the incrementer having the number of bits smaller than the number of bits of the successive approximation register, the conversion result of the upper 2 bits of the successive approximation register, the conversion result of the remaining bits excluding the upper 2 bits, and the incrementer. A conversion circuit for inputting the conversion result of the data, and a discrimination circuit for discriminating the high-order side bit and the low-order side bit from which the conversion result is read, and the incrementer according to the conversion result of the second bit from the low-order side of the successive approximation register. Is configured to increment the conversion result of, and the discrimination circuit is configured to selectively control the selection circuit. Analog / digital converter according to claim.
【請求項3】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、前記逐次近似レジスタの
ビット数より少ないビット数のインクリメンタと、逐次
近似レジスタの上位2ビットの変換結果、該上位2ビッ
トを除く残りのビットの変換結果及びインクリメンタの
変換結果が入力される選択回路と、変換結果の読み出し
単位である上位側ビット、下位側ビット及びワードを判
別する判別回路とを備え、前記逐次近似レジスタの下位
側からの第2ビットの変換結果によりインクリメンタの
変換結果をインクリメントすべくなしており、下位側ビ
ットの変換結果読み出し時は逐次近似レジスタの上位2
ビットを除く残りのビットの変換結果を、上位側ビット
の変換結果読み出し時はインクリメンタの変換結果を、
ワードの変換結果読み出し時は逐次近似レジスタの変換
結果を選択する構成にしたことを特徴とするアナログ/
デジタル変換器。
3. An analog / digital converter that compares a comparison voltage obtained by dividing a reference voltage with an analog voltage, converts the analog voltage into a digital value, and stores the conversion result in a successive approximation register. An incrementer having a bit number smaller than that of the successive approximation register, a conversion result of the upper 2 bits of the successive approximation register, a conversion result of the remaining bits excluding the upper 2 bits, and a conversion result of the incrementer are input. And a discriminating circuit for discriminating the high-order bit, the low-order bit, and the word, which are the reading units of the conversion result, and incrementing the conversion result of the incrementer according to the conversion result of the second bit from the low-order side of the successive approximation register. When reading the conversion result of the lower bit, the upper 2 bits of the successive approximation register
The conversion result of the remaining bits except the bit, the conversion result of the incrementer when reading the conversion result of the upper bit,
Analog / characterized in that the conversion result of the successive approximation register is selected when reading the word conversion result.
Digital converter.
【請求項4】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タを備え、逐次近似レジスタの下位2ビットの変換結果
の論理積によりインクリメンタの変換結果をインクリメ
ントすべく構成したことを特徴とするアナログ/デジタ
ル変換器。
4. An analog / digital converter for comparing a comparison voltage obtained by dividing a reference voltage with an analog voltage, converting the analog voltage into a digital value, and storing the conversion result in a successive approximation register. A conversion result of the successive approximation register is input, an incrementer having a bit number smaller than that of the successive approximation register is provided, and the conversion result of the incrementer is incremented by logical product of the conversion results of the lower two bits of the successive approximation register. An analog / digital converter characterized in that
【請求項5】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タを備え、逐次近似レジスタの最下位ビットの変換結果
により、インクリメンタの変換結果をインクリメントす
べく構成したことを特徴とするアナログ/デジタル変換
器。
5. An analog / digital converter for comparing a comparison voltage obtained by dividing a reference voltage with an analog voltage, converting the analog voltage into a digital value, and storing the conversion result in a successive approximation register, The conversion result of the successive approximation register is input, the incremental number of bits is smaller than the number of bits of the successive approximation register, and it is configured to increment the conversion result of the incrementer by the conversion result of the least significant bit of the successive approximation register. An analog / digital converter characterized by.
【請求項6】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較してアナログ電圧をデジタルに変換し、
その変換結果を逐次近似レジスタに格納するアナログ/
デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タと、逐次近似レジスタの下位2ビットの論理積を得る
論理積回路と、該論理積回路の出力及び逐次近似レジス
タの下位側からの第2ビットの変換結果を択一的に選択
する選択回路とを備え、該選択回路の選択結果をインク
リメンタへ入力してインクリメンタの変換結果をインク
リメントすべく構成したことを特徴とするアナログ/デ
ジタル変換器。
6. A comparison voltage obtained by dividing a reference voltage and an analog voltage are compared to convert the analog voltage to digital,
Analog that stores the conversion result in the successive approximation register
In the digital converter, the conversion result of the successive approximation register is input, an incrementer having a bit number smaller than that of the successive approximation register, a logical product circuit for obtaining a logical product of the lower 2 bits of the successive approximation register, and the logical A selection circuit for selectively selecting the output of the product circuit and the conversion result of the second bit from the lower side of the successive approximation register, and inputting the selection result of the selection circuit to the incrementer, the conversion result of the incrementer An analog / digital converter characterized by being configured to increment.
【請求項7】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タと、逐次近似レジスタの変換結果及びインクリメンタ
の変換結果を択一的に選択する選択回路と、インクリメ
ンタ及び逐次近似レジスタのビット数で変換結果を読み
出すべく選択回路を制御するためのデータを格納してい
るレジスタとを備え、逐次近似レジスタの下位側からの
第2ビットの変換結果をインクリメンタへ入力し、前記
レジスタのデータを、逐次近似レジスタの変換結果を比
較電圧に変換するデジタル/アナログ変換部へ入力すべ
く構成したことを特徴とするアナログ/デジタル変換
器。
7. An analog / digital converter for comparing a comparison voltage obtained by dividing a reference voltage with an analog voltage, converting the analog voltage into a digital value, and storing the conversion result in a successive approximation register, An incrementer having the number of bits less than the number of bits of the successive approximation register, the selection circuit that selectively selects the conversion result of the successive approximation register and the conversion result of the incrementer, and the incrementer. And a register that stores data for controlling the selection circuit to read the conversion result by the number of bits of the successive approximation register, and inputs the conversion result of the second bit from the lower side of the successive approximation register to the incrementer. Then, the data of the register is converted into a comparison voltage by converting the conversion result of the successive approximation register into a digital / analog conversion. Analog / digital converters, characterized by being configured so as to input to.
【請求項8】 基準電圧を分圧した比較電圧と、アナロ
グ電圧とを比較して、アナログ電圧をデジタル値に変換
し、その変換結果を逐次近似レジスタに格納するアナロ
グ/デジタル変換器において、 前記逐次近似レジスタの変換結果が入力され、逐次近似
レジスタのビット数より少ないビット数のインクリメン
タと、逐次近似レジスタの変換結果及びインクリメンタ
の変換結果を択一的に選択する選択回路と、インクリメ
ンタのビット数又は逐次近似レジスタのビット数で変換
結果を読み出すべく選択回路を制御するためのデータを
格納しているレジスタとを備え、該レジスタのデータ
を、逐次近似レジスタの下位側からの第2ビット、及び
逐次近似レジスタの変換結果を比較電圧に変換するデジ
タル/アナログ変換部へ入力すべく構成したことを特徴
とするアナログ/デジタル変換器。
8. An analog / digital converter for comparing a comparison voltage obtained by dividing a reference voltage with an analog voltage, converting the analog voltage into a digital value, and storing the conversion result in a successive approximation register, An incrementer having the number of bits less than the number of bits of the successive approximation register, the selection circuit that selectively selects the conversion result of the successive approximation register and the conversion result of the incrementer, and the incrementer. And a register storing data for controlling the selection circuit to read the conversion result with the number of bits of the successive approximation register or the number of bits of the successive approximation register. It is configured to input the conversion result of the bit and the successive approximation register to a digital / analog conversion unit which converts the conversion result into a comparison voltage. Analog / digital converter, wherein the door.
【請求項9】 前記逐次近似レジスタの下位側からの第
2ビットの変換終了時に、終了フラグをセットする構成
にした請求項8記載のアナログ/デジタル変換器。
9. The analog / digital converter according to claim 8, wherein the end flag is set when the conversion of the second bit from the lower side of the successive approximation register is completed.
【請求項10】 前記逐次近似レジスタの下位側からの
第2ビットの変換終了時に、割り込み信号を出力する構
成にした請求項8記載のアナログ/デジタル変換器。
10. The analog / digital converter according to claim 8, wherein an interrupt signal is output when the conversion of the second bit from the lower side of the successive approximation register is completed.
【請求項11】 アナログ電圧が入力される複数の端子
を有し、基準電圧を分圧した比較電圧と、アナログ電圧
とを比較して、アナログ電圧をデジタル値に変換し、そ
の変換結果を逐次近似レジスタに格納するアナログ/デ
ジタル変換器において、 前記逐次近似レジスタのデータが入力され、逐次近似レ
ジスタのビット数より少ないビット数のインクリメンタ
と、逐次近似レジスタの変換結果及びインクリメンタの
変換結果を択一的に選択する選択回路と、インクリメン
タのビット数又は逐次近似レジスタのビット数で変換結
果を読み出すべく選択回路を制御するためのデータを格
納している複数のレジスタとを備え、逐次近似レジスタ
の下位側からの第2ビットの変換結果をインクリメンタ
へ入力してインクリメンタの変換結果をインクリメント
する構成にしたことを特徴とするアナログ/デジタル変
換器。
11. A plurality of terminals to which an analog voltage is input are provided, a comparison voltage obtained by dividing a reference voltage is compared with the analog voltage, the analog voltage is converted into a digital value, and the conversion result is sequentially obtained. In an analog / digital converter for storing in an approximation register, the data of the successive approximation register is input, and an incrementer having a bit number smaller than that of the successive approximation register, a conversion result of the successive approximation register, and a conversion result of the incrementer. It is provided with a selection circuit that selectively selects and a plurality of registers that store data for controlling the selection circuit to read the conversion result with the number of bits of the incrementer or the number of bits of the successive approximation register. Input the conversion result of the second bit from the lower side of the register to the incrementer and increment the conversion result of the incrementer. Analog / digital converter, characterized in that the configuration in which cement.
【請求項12】 前記選択回路を制御するレジスタをア
ナログ電圧を入力すべき端子と同数備えた請求項11記載
のアナログ/デジタル変換器。
12. The analog / digital converter according to claim 11, wherein the number of registers for controlling the selection circuit is equal to the number of terminals to which an analog voltage is to be input.
【請求項13】 前記インクリメンタにフルスケールフ
ラグを備えた請求項1、請求項2、請求項3、請求項
4、請求項5、請求項6、請求項7、請求項8、請求項
11のいずれかに記載したアナログ/デジタル変換器。
13. The claim 1, claim 2, claim 3, claim 4, claim 5, claim 6, claim 7, claim 8, claim 8 wherein the incrementer is provided with a full scale flag.
The analog / digital converter described in any one of 11.
【請求項14】 前記インクリメンタの値がフルスケー
ルの場合に、その全ビットに1を出力すべく構成した請
求項1、請求項2、請求項3、請求項4、請求項5、請
求項6、請求項7、請求項8、請求項11のいずれかに記
載したアナログ/デジタル変換器。
14. The claim 1, claim 2, claim 3, claim 4, claim 5, claim 5, and claim 5 configured to output 1 to all bits when the value of the incrementer is full scale. 6. An analog / digital converter according to claim 6, claim 7, claim 8 or claim 11.
【請求項15】 前記インクリメンタにフルスケールフ
ラグを備え、インクリメンタがフルスケールの場合に、
その全ビットに1を出力すべく構成した請求項1、請求
項2、請求項3、請求項4、請求項5、請求項6、請求
項7、請求項8、請求項11のいずれかに記載したアナロ
グ/デジタル変換器。
15. The incrementer is provided with a full-scale flag, and when the incrementer is full-scale,
Any one of claim 1, claim 2, claim 3, claim 4, claim 5, claim 6, claim 7, claim 8, and claim 11 configured to output 1 to all bits thereof. The described analog / digital converter.
【請求項16】 前記逐次近似レジスタ及びインクリメ
ンタの変換結果を択一的に選択する選択回路を備えた請
求項1、請求項4、請求項5、請求項6のいずれかに記
載したアナログ/デジタル変換器。
16. The analog / signal according to claim 1, further comprising a selection circuit for selectively selecting the conversion result of the successive approximation register and the incrementer. Digital converter.
【請求項17】 逐次近似レジスタ及びインクリメンタ
の変換結果を択一的に選択する選択回路と、該選択回路
を制御するレジスタとを備えた請求項1、請求項4、請
求項5、請求項6のいずれかに記載したアナログ/デジ
タル変換器。
17. The method according to claim 1, further comprising a selection circuit for selectively selecting the conversion result of the successive approximation register and the incrementer, and a register for controlling the selection circuit. 6. The analog / digital converter described in any one of 6.
【請求項18】 逐次近似レジスタ及びインクリメンタ
の変換結果が入力されるバイト/ワード判別回路を備
え、バイト/ワード判別回路の判別結果により、逐次近
似レジスタの変換結果又はインクリメンタの変換結果を
選択して読み出す構成にした請求項1、請求項4、請求
項5、請求項6のいずれかに記載したアナログ/デジタ
ル変換器。
18. A successive approximation register and a byte / word discrimination circuit to which the conversion result of the incrementer is input, and the conversion result of the successive approximation register or the incrementer conversion result is selected according to the discrimination result of the byte / word discrimination circuit. The analog / digital converter according to any one of claims 1, 4, 5, and 6, which is configured to be read out.
JP25302995A 1994-10-31 1995-09-29 Analog/digital converter Pending JPH08186494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25302995A JPH08186494A (en) 1994-10-31 1995-09-29 Analog/digital converter

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-267000 1994-10-31
JP26700094 1994-10-31
JP25302995A JPH08186494A (en) 1994-10-31 1995-09-29 Analog/digital converter

Publications (1)

Publication Number Publication Date
JPH08186494A true JPH08186494A (en) 1996-07-16

Family

ID=26541005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25302995A Pending JPH08186494A (en) 1994-10-31 1995-09-29 Analog/digital converter

Country Status (1)

Country Link
JP (1) JPH08186494A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6046692A (en) * 1996-10-08 2000-04-04 Nec Corporation Microprocessor equipped with an A/D converter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6046692A (en) * 1996-10-08 2000-04-04 Nec Corporation Microprocessor equipped with an A/D converter

Similar Documents

Publication Publication Date Title
US5666118A (en) Self calibration segmented digital-to-analog converter
JPH08186494A (en) Analog/digital converter
JPH1098384A (en) Flush type a/d converter
US6046692A (en) Microprocessor equipped with an A/D converter
US5638075A (en) Successive approximation ADC with rounding to vary bit number output
JPH1032491A (en) Flash a/d converter
KR100279320B1 (en) Analog-to-digital converter
JPS5986328A (en) Analog-digital converter
KR100299803B1 (en) Microcomputer
JPH06152421A (en) A/d converter
JPH1040019A (en) Microcomputer
JP3128477B2 (en) Voltage divider circuit
JPH09190288A (en) Interface circuit for a/d converter
JPH10150365A (en) Microcomputer with built-in a/d converter
KR100339542B1 (en) High speed a/d converter
JPS6314497Y2 (en)
JPH04249427A (en) Analog/digital converter
JPH0612502A (en) Microcomputer with built-in a/d conversion circuit
JPS6353738B2 (en)
JP2613915B2 (en) Micro computer
JPH0241029A (en) Analog/digital conversion circuit
JP2705596B2 (en) Test method for digital / analog converter
JPH0243813A (en) A/d converter
JPS6072324A (en) Analog-to-digital converter
JP2000299639A (en) D/a converter

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20040730

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20040803

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Effective date: 20041130

Free format text: JAPANESE INTERMEDIATE CODE: A02