JPH0522146A - A/d converter - Google Patents

A/d converter

Info

Publication number
JPH0522146A
JPH0522146A JP17640191A JP17640191A JPH0522146A JP H0522146 A JPH0522146 A JP H0522146A JP 17640191 A JP17640191 A JP 17640191A JP 17640191 A JP17640191 A JP 17640191A JP H0522146 A JPH0522146 A JP H0522146A
Authority
JP
Japan
Prior art keywords
bit
conversion
msb
converted
register
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
JP17640191A
Other languages
Japanese (ja)
Inventor
Yasuhiro Inoue
康博 井ノ上
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP17640191A priority Critical patent/JPH0522146A/en
Publication of JPH0522146A publication Critical patent/JPH0522146A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To arbitrarily set a converted bit length and to select conversion time or conversion accuracy corresponding to the purpose of use at the analog/ digital (A/D) converter built in a single chip microcomputer. CONSTITUTION:A voltage to be converted is inputted to a terminal 8, and a reference voltage is inputted to a terminal 9. This A/D converter equipped with a voltage comparator 1, tap selector 2, resistor string 3, sample/hold circuit 4 and successive conversion register 5 is provided with a control circuit 6 to control the operation of the A/D converter and a control counter 7 to count the converted bit length. Therefore, since the above-mentioned circuits are provided, there are effects such as freely setting the bit length to be converted and selecting the conversion time or the conversion accuracy corresponding to the purpose of use.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、シングルチップ・マイ
クロコンピュータに関し、特に、アナログ/ディジタル
・コンバータ(以下A/Dコンバータと略す)に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a single chip microcomputer, and more particularly to an analog / digital converter (hereinafter abbreviated as A / D converter).

【0002】[0002]

【従来の技術】従来の、逐次変換型A/Dコンバータの
ブロック構成図を図6に示す。また、その動作のタイミ
ング図を図7に示す。
2. Description of the Related Art A block diagram of a conventional successive conversion type A / D converter is shown in FIG. Further, a timing chart of the operation is shown in FIG.

【0003】被変換電圧入力端子(8)には、被変換電
圧VANI を入力し、基準電圧入力端子(9)には基準電
圧VREF を入力する。
The converted voltage V ANI is input to the converted voltage input terminal (8), and the reference voltage V REF is input to the reference voltage input terminal (9).

【0004】被変換電圧入力端子に入力されたV
ANI は、サンプル・アンド・ホールド(以下ではS&H
と略す)回路(4)で、あるサンプリングタイミングで
ホールドされる。
V input to the converted voltage input terminal
ANI is sample and hold (S & H below
The circuit (4) is held at a certain sampling timing.

【0005】まず、VREF を直列抵抗ストリング(3)
で2分圧した電圧VREF /2を、タップセレクタ(2)
で選択し、これとVANI とを電圧コンパレータ(1)で
比較し、大きければ逐次変換レジスタ(5)の最上位ビ
ット(MSB)をセットし、小さければ、MSBをリセ
ットする。
First, V REF is connected to a series resistor string (3).
The voltage V REF / 2 divided by 2 with tap selector (2)
The voltage comparator (1) compares this with V ANI . If it is larger, the most significant bit (MSB) of the successive conversion register (5) is set, and if it is smaller, the MSB is reset.

【0006】次に、逐次変換レジスタのMSB=1の場
合は、タップセレクタで(3/4)VREF を選択し、こ
れとVANI を電圧コンパレータで比較し、大きければ逐
次変換レジスタのMSBより1ビット下位のビットをセ
ットし、小さければMSBより1ビット下位のビットを
リセットする。
Next, when the MSB of the successive approximation register is 1, (3/4) V REF is selected by the tap selector and this is compared with V ANI by the voltage comparator. The bit lower by 1 bit is set, and if smaller, the bit lower by 1 bit than the MSB is reset.

【0007】逐次変換レジスタのMSB=0の場合は、
タップセレクタで(1/4)VREF を選択し、これとV
ANI を電圧コンパレータで比較し、大きければ逐次変換
レジスタのMSBより1ビット下位のビットをセット
し、小さければMSBより1ビット下位のビットをリセ
ットする。
When the MSB = 0 of the successive approximation register,
Select (1/4) V REF with the tap selector, and select this
ANI is compared by a voltage comparator, and if it is larger, the bit one bit lower than the MSB of the successive conversion register is set, and if it is smaller, the bit one bit lower than the MSB is reset.

【0008】これを逐次変換レジスタのLSBをセッ
ト、あるいはリセットするまで繰り返す。
This is repeated until the LSB of the successive approximation register is set or reset.

【0009】逐次変換レジスタのLSBをセット、ある
いはリセットしたところで、変換は完了する。
The conversion is completed when the LSB of the successive conversion register is set or reset.

【0010】[0010]

【発明の解決しようとする課題】上述した従来のA/D
コンバータでは変換ビット長が選択できないため、変換
時間を早くするため、変換ビット長を短くする、あるい
は、高精度の変換結果を得るために、変換ビット長を長
くするといった選択が出来ないという欠点がある。
DISCLOSURE OF THE INVENTION The above-mentioned conventional A / D
Since the converter cannot select the conversion bit length, there is the drawback that the conversion bit length cannot be selected to shorten the conversion time or to increase the conversion bit length in order to obtain a highly accurate conversion result. is there.

【0011】[0011]

【課題を解決するための手段】本発明のA/Dコンバー
タでは、変換ビット長を指定するレジスタと、変換動作
を制御する制御回路を有している。
The A / D converter of the present invention has a register for designating the conversion bit length and a control circuit for controlling the conversion operation.

【0012】[0012]

【実施例】次に本発明を図面を参照して説明する。The present invention will be described below with reference to the drawings.

【0013】図1は、本発明の一実施例のブロック構成
図であり、図2はそのタイミング図である。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a timing chart thereof.

【0014】被変換電圧入力端子(8)には、被変換電
圧を入力し、基準電圧入力端子(9)には基準電圧を入
力する。まず、制御カウンタ(7)に変換するビット長
を書き込んでおく。被変換電圧入力端子(8)には、被
変換電圧VANI を入力し、基準電圧入力端子(9)には
基準電圧VREF を入力する。被変換電圧入力端子に入力
されたVANI は、S&H回路(4)で、あるサンプリン
グタイミングでホールドされる。まず、VREF を直列抵
抗ストリング(3)で2分圧した電圧VREF /2を、タ
ップセレクタ(2)で選択し、これとVANI とを電圧コ
ンパレータ(1)で比較し、大きければ逐次変換レジス
タ(5)の最上位ビット(MSB)をセットし、小さけ
れば、MSBをリセットする。同時に制御カウンタを1
デクリメントする。
The converted voltage is input to the converted voltage input terminal (8), and the reference voltage is input to the reference voltage input terminal (9). First, the bit length to be converted is written in the control counter (7). The converted voltage V ANI is input to the converted voltage input terminal (8), and the reference voltage V REF is input to the reference voltage input terminal (9). The V ANI input to the converted voltage input terminal is held by the S & H circuit (4) at a certain sampling timing. First, the voltage V REF / 2 obtained by dividing V REF into two by the series resistor string (3) is selected by the tap selector (2), and this is compared with V ANI by the voltage comparator (1). The most significant bit (MSB) of the conversion register (5) is set, and if smaller, the MSB is reset. At the same time the control counter 1
Decrement.

【0015】次に、逐次変換レジスタのMSB=1の場
合は、タップセレクタ(3/4)VREF を選択し、これ
とVANI を電圧コンパレータで比較し、大きければ逐次
変換レジスタのMSBより1ビット下位のビットをセッ
トし、小さければMSBより1ビット下位のビットをリ
セットする。逐次変換レジスタのMSB=0の場合は、
タップセレクタで(1/4)VREF を選択し、これとV
ANI を電圧コンパレータで比較し、大きければ逐次変換
レジスタのMSBより1ビット下位のビットをセット
し、小さければMSBより1ビット下位のビットをリセ
ットする。また、同時に制御カウンタを1デクリメント
する。以後、同様にタップセレクト、電圧比較を行い、
電圧比較が終わるごとに、制御カウンタの値を1デクリ
メントしていく。この制御カウンタの値が0になったと
き、または逐次変換レジスタのLSBをセット、あるい
はリセットしたところで、変換動作を終了する。
Next, when the MSB of the successive approximation register is 1, tap selector (3/4) V REF is selected, and this is compared with V ANI by a voltage comparator. A bit lower than the bit is set, and if smaller, a bit lower than the MSB by 1 bit is reset. When the serial conversion register MSB = 0,
Select (1/4) V REF with the tap selector, and select this
ANI is compared by a voltage comparator, and if it is larger, the bit one bit lower than the MSB of the successive conversion register is set, and if it is smaller, the bit one bit lower than the MSB is reset. At the same time, the control counter is decremented by 1. After that, tap select and voltage comparison are performed in the same way.
The value of the control counter is decremented by 1 each time the voltage comparison ends. When the value of the control counter becomes 0, or when the LSB of the successive conversion register is set or reset, the conversion operation ends.

【0016】図3は、本発明の他の実施例のブロック構
成図であり、図4はそのタイミング図である。
FIG. 3 is a block diagram of another embodiment of the present invention, and FIG. 4 is a timing chart thereof.

【0017】まず、制御レジスタ(11)に制御ワード
を書き込む。ここで、制御ワードとは、最上位ビットか
ら変換ビット長だけ1を並べ、次のビットに0を書いた
値のことをしめす。(図5参照)被変換電圧入力端子
(8)には、被変換電圧VANI を入力し、基準電圧入力
端子(9)には基準電圧VREF を入力する。被変換電圧
入力端子に入力されたVANI は、S&H回路(4)で、
あるサンプリングタイミングでホールドされる。最初
に、制御レジスタのMSBをビットチェックし、MSB
=1であれば、A/D変換をする。まず、VREF を直列
抵抗ストリング(3)で2分圧した電圧VREF /2を、
タップセレクタ(2)で選択し、これとVANI とを電圧
コンパレータ(1)で比較し、大きければ逐次変換レジ
スタ(5)の最上位ビット(MSB)をセットし、小さ
ければ、MSBをリセットする。次に、制御レジスタの
MSBより1ビット下位のビットをビットチェックし、
0であれば変換動作を終了し、1であれば、変換動作を
続ける。引き続き変換を続ける場合は、逐次変換レジス
タのMSB=1の場合は、タップセレクタで(3/4)
REF を選択し、これとVANI を電圧コンパレータで比
較し、大きければ逐次変換レジスタのMSBより1ビッ
ト下位のビットをセットし、小さければMSBより1ビ
ット下位のビットをリセットする。逐次変換レジスタの
MSB=0の場合は、タップセレクタで(1/4)V
REF を選択し、これとVANI を電圧コンパレータで比較
し、大きければ逐次変換レジスタのMSBより1ビット
下位のビットをセットし、小さければMSBより1ビッ
ト下位のビットをリセットする。この後、制御レジスタ
のビットチェックと1ビット変換を繰り返す、制御レジ
スタのビットの値が0になったとき、または逐次変換レ
ジスタのLSBをセット、あるいはリセットしたところ
で、変換動作を終了する。
First, a control word is written in the control register (11). Here, the control word is a value in which 1s are arranged from the most significant bit by the conversion bit length and 0 is written in the next bit. (See FIG. 5) The converted voltage V ANI is input to the converted voltage input terminal (8), and the reference voltage V REF is input to the reference voltage input terminal (9). V ANI input to the converted voltage input terminal is a S & H circuit (4),
It is held at a certain sampling timing. First, bit check the MSB of the control register
If = 1, A / D conversion is performed. First, the voltage V REF / 2 obtained by dividing 2 minutes V REF series resistor string (3),
It is selected by the tap selector (2) and compared with V ANI by the voltage comparator (1). If it is larger, the most significant bit (MSB) of the successive conversion register (5) is set, and if it is smaller, the MSB is reset. . Next, bit check the bit one bit lower than the MSB of the control register,
If it is 0, the conversion operation is ended, and if it is 1, the conversion operation is continued. To continue conversion, if the MSB of the successive conversion register = 1, use tap selector (3/4)
V REF is selected, and this is compared with V ANI by a voltage comparator. If it is larger, the bit one bit lower than the MSB of the successive conversion register is set, and if it is smaller, the bit one bit lower than the MSB is reset. When MSB = 0 of successive conversion register, tap selector selects (1/4) V
REF is selected, and this is compared with V ANI by a voltage comparator, and if it is larger, the bit one bit lower than the MSB of the successive conversion register is set, and if it is smaller, the bit one bit lower than the MSB is reset. Thereafter, the bit check of the control register and the 1-bit conversion are repeated. When the value of the bit of the control register becomes 0, or when the LSB of the successive conversion register is set or reset, the conversion operation ends.

【0018】[0018]

【発明の効果】以上説明したように、本発明のA/Dコ
ンバータにおいて、変換ビット長を指定して、変換動作
を制御する制御ブロックを有することにより、変換する
ビット長を自由に設定できるという効果がある。
As described above, the A / D converter of the present invention has the control block for designating the conversion bit length and controlling the conversion operation, whereby the conversion bit length can be freely set. effective.

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

【図1】本発明の一実施例のブロック構成図を示す。FIG. 1 shows a block diagram of an embodiment of the present invention.

【図2】一実施例の動作タイミング図を示す。FIG. 2 shows an operation timing chart of one embodiment.

【図3】本発明の他の実施例のブロック構成図を示す。FIG. 3 shows a block diagram of another embodiment of the present invention.

【図4】他の実施例の動作タイミング図を示す。FIG. 4 shows an operation timing chart of another embodiment.

【図5】他の実施例の制御ワードの一例を示す。FIG. 5 shows an example of a control word of another embodiment.

【図6】従来技術のブロック構成図を示す。FIG. 6 shows a block diagram of a prior art.

【図7】従来技術の動作タイミング図を示す。FIG. 7 shows an operation timing chart of the prior art.

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

(1) 電圧コンパレータ (2) タップセレクタ (3) 直列抵抗ストリング (4) サンプル・アンド・ホールド回路 (5) 逐次変換レジスタ (6) 制御回路 (7) 制御カウンタ (8) 被変換電圧入力端子 (9) アナログ基準電圧入力端子 (10) アナログ・グランド電位入力端子 (11) 制御レジスタ (12) 制御ブロック 〜:変換動作を示す :MSBを変換 :MSBから2ビット目を変換 :MSBから3ビット目を変換 :MSBから4ビット目を変換 :MSBから5ビット目を変換 :MSBから6ビット目を変換 :MSBから7ビット目を変換 :MSBから8ビット目を変換 (1) Voltage comparator (2) Tap selector (3) Series resistance string (4) Sample and hold circuit (5) Sequential conversion register (6) Control circuit (7) Control counter (8) Converted voltage input terminal ( 9) Analog reference voltage input terminal (10) Analog ground potential input terminal (11) Control register (12) Control block ~: Indicates conversion operation: Converts MSB: Converts MSB to 2nd bit: MSB to 3rd bit Convert: Convert MSB to 4th bit: Convert MSB to 5th bit: Convert MSB to 6th bit: Convert MSB to 7th bit: Convert MSB to 8th bit

Claims (1)

【特許請求の範囲】 【請求項1】 直列抵抗ストリングと、サンプル・アン
ド・ホールド回路と、電圧コンパレータと、変換動作を
制御する制御ブロックから構成され、前記制御ブロック
によって、自由に変換ビット長を設定できることを特徴
とするアナログ/ディジタル・コンバータ。
Claim: What is claimed is: 1. A series resistor string, a sample-and-hold circuit, a voltage comparator, and a control block for controlling a conversion operation. The control block freely changes the conversion bit length. An analog / digital converter that can be set.
JP17640191A 1991-07-17 1991-07-17 A/d converter Pending JPH0522146A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17640191A JPH0522146A (en) 1991-07-17 1991-07-17 A/d converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17640191A JPH0522146A (en) 1991-07-17 1991-07-17 A/d converter

Publications (1)

Publication Number Publication Date
JPH0522146A true JPH0522146A (en) 1993-01-29

Family

ID=16013031

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17640191A Pending JPH0522146A (en) 1991-07-17 1991-07-17 A/d converter

Country Status (1)

Country Link
JP (1) JPH0522146A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100499368B1 (en) * 1997-12-30 2005-09-14 엘지전자 주식회사 Apparatus for regulating reference voltage of analog/digital convertor
KR100528689B1 (en) * 1997-12-30 2006-01-27 엘지전자 주식회사 Apparatus for regulating reference voltage of analog/digital convertor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100499368B1 (en) * 1997-12-30 2005-09-14 엘지전자 주식회사 Apparatus for regulating reference voltage of analog/digital convertor
KR100528689B1 (en) * 1997-12-30 2006-01-27 엘지전자 주식회사 Apparatus for regulating reference voltage of analog/digital convertor

Similar Documents

Publication Publication Date Title
JP2804269B2 (en) Redistribution A / D converter and method for converting analog signal to digital signal
KR100708939B1 (en) Digital/analog converter
JPH06152420A (en) A/d converter
JPS6161578B2 (en)
JP2598138B2 (en) D / A converter
KR101892826B1 (en) Multiple resistor string digital to analog converter having improved switching noise
JPH0522146A (en) A/d converter
JPH05273520A (en) Driving circuit for display device
US6999016B2 (en) D/A converter and semiconductor device
JP3162571B2 (en) D / A conversion circuit and A / D conversion circuit using the same
JPH06120832A (en) D/a converter
KR900005464B1 (en) An untrimmed 12 bit montonic all capacitive a to d converter
JP3128477B2 (en) Voltage divider circuit
JP2003309469A (en) Semiconductor integrated circuit
JPH04227121A (en) A/d converter
JP3106771B2 (en) Successive approximation A / D converter
KR0116974Y1 (en) A/d converter
JPH06152416A (en) A/d converter
JP2980035B2 (en) A / D conversion circuit
JPH10135836A (en) D/a converter
JP2680940B2 (en) D / A converter
KR100502402B1 (en) Successive approximation approximation type analog to digital convering circuit
JP3967535B2 (en) Analog / digital converter
JPH1188171A (en) A/d converter
JPS649774B2 (en)