JPH06311036A - A/d converter - Google Patents

A/d converter

Info

Publication number
JPH06311036A
JPH06311036A JP9431493A JP9431493A JPH06311036A JP H06311036 A JPH06311036 A JP H06311036A JP 9431493 A JP9431493 A JP 9431493A JP 9431493 A JP9431493 A JP 9431493A JP H06311036 A JPH06311036 A JP H06311036A
Authority
JP
Japan
Prior art keywords
output
voltage
digital
analog
input port
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
JP9431493A
Other languages
Japanese (ja)
Inventor
Hidetaka Watanabe
秀隆 渡辺
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP9431493A priority Critical patent/JPH06311036A/en
Publication of JPH06311036A publication Critical patent/JPH06311036A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an A/D converter easily integrated to be a digital IC. CONSTITUTION:The feedback comparison type A/D converter is provided with a controller 1 outputting digital data, a D/A converter 2 comprising a ladder resistor, a source of a reference voltage 8, resistors 6, 7 averaging voltages, and an analog switch 5 selecting inputs, and the effect of a digital input port of the controller 1 is corrected by data when the analog switch 5 is turned off. Thus, multichannel input is facilitated.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、コンパレータを使用
しないA/D(アナログ/デジタル)変換装置に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an A / D (analog / digital) converter which does not use a comparator.

【0002】[0002]

【従来の技術】従来のA/D変換装置の構成について図
8を参照しながら説明する。図8は、従来一般に使用さ
れているラダー抵抗を用いたA/D(アナログ/デジタ
ル)変換装置を示す図である。
2. Description of the Related Art The structure of a conventional A / D converter will be described with reference to FIG. FIG. 8 is a diagram showing an A / D (analog / digital) conversion device using a ladder resistor which is generally used in the past.

【0003】図8において、1は少なくとも1ビットの
入力ポート(P0)と複数ビットのデジタルデータを出
力する出力ポート(P1〜P5)を有するCPUから構
成される制御装置、2は制御装置1の出力ポート(P1
〜P5)に接続され、出力データに対応したアナログ電
圧を出力するデジタル/アナログ変換器、3は入力端子
の一方が被測定電圧、他方がデジタル/アナログ変換器
2の出力側に接続され、出力端子が制御装置1の入力ポ
ート(P0)に接続されたアナログコンパレータであ
る。なお、4は被測定電圧(Vx)である。
In FIG. 8, reference numeral 1 is a control device composed of a CPU having at least a 1-bit input port (P0) and output ports (P1 to P5) for outputting digital data of a plurality of bits, and 2 is a control device 1. Output port (P1
To P5) and outputs an analog voltage corresponding to the output data, one of the input terminals of the digital / analog converter 3 is connected to the output side of the digital / analog converter 2 and the other is output. The terminal is an analog comparator connected to the input port (P0) of the control device 1. In addition, 4 is a measured voltage (Vx).

【0004】次に、従来のA/D変換装置の動作につい
て説明する。このA/D変換装置は、制御装置1の出力
データに対応したデジタル/アナログ変換器2の出力と
被測定電圧4とをアナログコンパレータ3で比較し、そ
の結果に基づき、デジタル出力データを調整し、アナロ
グコンパレータ3の入力電圧差が所定値以下となったと
きに制御装置1から出力されるデジタルデータを被測定
電圧4のデジタル変換データとするものである。
Next, the operation of the conventional A / D converter will be described. This A / D conversion device compares the output of the digital / analog converter 2 corresponding to the output data of the control device 1 and the measured voltage 4 by the analog comparator 3, and adjusts the digital output data based on the result. The digital data output from the control device 1 when the input voltage difference of the analog comparator 3 becomes a predetermined value or less is used as the digital conversion data of the measured voltage 4.

【0005】[0005]

【発明が解決しようとする課題】上述したような従来の
A/D変換装置では、アナログコンパレータ3で電圧比
較を行い、デジタルの制御装置1で変換手順を指示して
いた。このためアナログコンパレータ3によっては動作
速度が制限されたり、IC(集積回路)化しようとした
ときアナログ/デジタル混載回路のため設計がむずかし
い等の不都合が生じるという問題点があった。
In the conventional A / D conversion device as described above, the analog comparator 3 performs voltage comparison, and the digital control device 1 instructs the conversion procedure. For this reason, there are problems that the operation speed is limited depending on the analog comparator 3, and that when the IC (integrated circuit) is used, the design is difficult because of the analog / digital mixed circuit.

【0006】この発明は、前述した問題点を解決するた
めになされたもので、アナログコンパレータを使用せ
ず、デジタルIC化が容易にできるA/D変換装置を得
ることを目的とする。
The present invention has been made in order to solve the above-mentioned problems, and an object thereof is to obtain an A / D conversion device which can be easily made into a digital IC without using an analog comparator.

【0007】[0007]

【課題を解決するための手段】この発明の請求項1に係
るA/D変換装置は、次に掲げる手段を備えたものであ
る。 〔1〕 デジタルデータを入力する入力ポートと複数ビ
ットのデジタルデータを出力する出力ポートを有する制
御装置。 〔2〕 ラダー抵抗により構成され、前記制御装置から
出力されるデジタルデータに対応したアナログ電圧を出
力し、その出力が前記制御装置の入力ポートへ印加され
たデジタル/アナログ変換器。 〔3〕 出力端子が前記デジタル/アナログ変換器の出
力側に接続され、被測定電圧入力端子が第1の抵抗に接
続され、かつ基準電圧入力端子が第2の抵抗に接続され
たアナログスイッチ。 そして、前記制御装置は、被測定電圧と基準電圧の2つ
の入力電圧を前記アナログスイッチで切り換えて入力
し、前記アナログスイッチが前記被測定電圧に接続され
ているときの前記入力ポートのしきい値に相当する第1
の出力データと、前記アナログスイッチが前記基準電圧
に接続されているときの前記入力ポートのしきい値に相
当する第2の出力データと、前記アナログスイッチがど
ちらにも接続されてないときの前記入力ポートのしきい
値に相当する第3の出力データとから前記被測定電圧を
演算して求めるものである。
The A / D converter according to claim 1 of the present invention comprises the following means. [1] A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits. [2] A digital / analog converter configured by a ladder resistor, which outputs an analog voltage corresponding to digital data output from the control device, and whose output is applied to an input port of the control device. [3] An analog switch whose output terminal is connected to the output side of the digital / analog converter, whose voltage input terminal is connected to the first resistance, and whose reference voltage input terminal is connected to the second resistance. Then, the control device switches between two input voltages of a voltage to be measured and a reference voltage by the analog switch to input, and the threshold value of the input port when the analog switch is connected to the voltage to be measured. The first equivalent to
Output data, second output data corresponding to the threshold value of the input port when the analog switch is connected to the reference voltage, and the second output data when the analog switch is not connected to either. The measured voltage is calculated from the third output data corresponding to the threshold value of the input port.

【0008】この発明の請求項2に係るA/D変換装置
は、次に掲げる手段を備えたものである。 〔1〕 デジタルデータを入力する入力ポートと複数ビ
ットのデジタルデータを出力する出力ポートを有する制
御装置。 〔2〕 ラダー抵抗により構成され、前記制御装置から
出力されるデジタルデータに対応したアナログ電圧を出
力し、その出力が前記制御装置の入力ポートへ印加され
たデジタル/アナログ変換器。 〔3〕 出力端子が前記デジタル/アナログ変換器の出
力側に接続され、入力端子が抵抗に接続されたアナログ
スイッチ。 そして、前記制御装置は、前記アナログスイッチがOF
Fのときの前記入力ポートのしきい値に相当する第1の
出力データと、前記アナログスイッチがONのときの前
記入力ポートのしきい値に相当する第2の出力データと
から被測定電圧を演算して求めるものである。
An A / D converter according to a second aspect of the present invention is provided with the following means. [1] A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits. [2] A digital / analog converter configured by a ladder resistor, which outputs an analog voltage corresponding to digital data output from the control device, and whose output is applied to an input port of the control device. [3] An analog switch whose output terminal is connected to the output side of the digital / analog converter and whose input terminal is connected to a resistor. Then, in the control device, the analog switch is OF
The measured voltage is calculated from the first output data corresponding to the threshold value of the input port when F and the second output data corresponding to the threshold value of the input port when the analog switch is ON. It is calculated and obtained.

【0009】この発明の請求項3に係るA/D変換装置
は、次に掲げる手段を備えたものである。 〔1〕 デジタルデータを入力する入力ポートと複数ビ
ットのデジタルデータを出力する出力ポートを有する制
御装置。 〔2〕 ラダー抵抗により構成され、前記制御装置から
出力されるデジタルデータに対応したアナログ電圧を出
力し、その出力が前記制御装置の入力ポートへ印加され
たデジタル/アナログ変換器。 〔3〕 出力端子が前記デジタル/アナログ変換器の出
力側に接続され、かつ複数の被測定電圧入力端子が複数
の抵抗の各々に接続されたアナログスイッチ。 そして、前記制御装置は、複数の被測定電圧を前記アナ
ログスイッチで切り換えて入力し、前記アナログスイッ
チが前記被測定電圧に接続されているときの前記入力ポ
ートのしきい値に相当する第1の出力データと、前記ア
ナログスイッチが前記被測定電圧のどれにも接続されて
いないときの前記入力ポートのしきい値に相当する第2
の出力データとから前記被測定電圧を演算して求めるも
のである。
An A / D converter according to a third aspect of the present invention comprises the following means. [1] A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits. [2] A digital / analog converter configured by a ladder resistor, which outputs an analog voltage corresponding to digital data output from the control device, and whose output is applied to an input port of the control device. [3] An analog switch having an output terminal connected to the output side of the digital / analog converter and a plurality of measured voltage input terminals connected to each of a plurality of resistors. Then, the control device switches a plurality of measured voltages by the analog switch and inputs them, and a first threshold voltage corresponding to the threshold value of the input port when the analog switch is connected to the measured voltage. Output data and a second threshold corresponding to the threshold of the input port when the analog switch is not connected to any of the measured voltages.
The voltage to be measured is calculated from the output data of 1.

【0010】[0010]

【作用】この発明の請求項1に係るA/D変換装置にお
いては、ラダー抵抗により構成されたデジタル/アナロ
グ変換器によって、制御装置から出力されるデジタルデ
ータに対応したアナログ電圧が出力され、その出力が前
記制御装置の入力ポートへ印加される。また、デジタル
データを入力する入力ポートと複数ビットのデジタルデ
ータを出力する出力ポートを有する制御装置によって、
被測定電圧と基準電圧の2つの入力電圧がアナログスイ
ッチで切り換えて入力され、前記アナログスイッチが前
記被測定電圧に接続されているときの前記入力ポートの
しきい値に相当する第1の出力データと、前記アナログ
スイッチが前記基準電圧に接続されているときの前記入
力ポートのしきい値に相当する第2の出力データと、前
記アナログスイッチがどちらにも接続されてないときの
前記入力ポートのしきい値に相当する第3の出力データ
とから前記被測定電圧が演算されて求められる。
In the A / D conversion device according to the first aspect of the present invention, the analog voltage corresponding to the digital data output from the control device is output by the digital / analog converter configured by the ladder resistor, The output is applied to the input port of the controller. Further, by the control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits,
First input data corresponding to a threshold value of the input port when two input voltages of a measured voltage and a reference voltage are switched by an analog switch and the analog switch is connected to the measured voltage. A second output data corresponding to a threshold value of the input port when the analog switch is connected to the reference voltage, and a second output data of the input port when the analog switch is not connected to either. The voltage to be measured is calculated and obtained from the third output data corresponding to the threshold value.

【0011】この発明の請求項2に係るA/D変換装置
においては、ラダー抵抗により構成されたデジタル/ア
ナログ変換器によって、制御装置から出力されるデジタ
ルデータに対応したアナログ電圧が出力され、その出力
が前記制御装置の入力ポートへ印加される。また、デジ
タルデータを入力する入力ポートと複数ビットのデジタ
ルデータを出力する出力ポートを有する制御装置によっ
て、アナログスイッチがOFFのときの前記入力ポート
のしきい値に相当する第1の出力データと、前記アナロ
グスイッチがONのときの前記入力ポートのしきい値に
相当する第2の出力データとから被測定電圧が演算され
て求められる。
In the A / D converter according to the second aspect of the present invention, the digital / analog converter constituted by the ladder resistor outputs the analog voltage corresponding to the digital data output from the controller, The output is applied to the input port of the controller. In addition, the control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, the first output data corresponding to the threshold value of the input port when the analog switch is OFF, The measured voltage is calculated and obtained from the second output data corresponding to the threshold value of the input port when the analog switch is ON.

【0012】この発明の請求項3に係るA/D変換装置
においては、ラダー抵抗により構成されたデジタル/ア
ナログ変換器によって、制御装置から出力されるデジタ
ルデータに対応したアナログ電圧が出力され、その出力
が前記制御装置の入力ポートへ印加される。また、デジ
タルデータを入力する入力ポートと複数ビットのデジタ
ルデータを出力する出力ポートを有する制御装置によっ
て、複数の被測定電圧がアナログスイッチで切り換えて
入力され、前記アナログスイッチが前記被測定電圧に接
続されているときの前記入力ポートのしきい値に相当す
る第1の出力データと、前記アナログスイッチが前記被
測定電圧のどれにも接続されていないときの前記入力ポ
ートのしきい値に相当する第2の出力データとから前記
被測定電圧が演算されて求められる。
In the A / D converter according to the third aspect of the present invention, the analog voltage corresponding to the digital data output from the controller is output by the digital / analog converter configured by the ladder resistor, The output is applied to the input port of the controller. Further, a control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits switches and inputs a plurality of measured voltages by an analog switch, and the analog switch is connected to the measured voltage. Corresponding to the first output data corresponding to the threshold of the input port when the analog switch is turned on and the threshold of the input port when the analog switch is not connected to any of the measured voltages. The voltage to be measured is calculated and obtained from the second output data.

【0013】[0013]

【実施例】実施例1.この発明の実施例1の構成につい
て図1を参照しながら説明する。図1は、この発明の実
施例1の構成を示す図である。
EXAMPLES Example 1. The configuration of the first embodiment of the present invention will be described with reference to FIG. 1 is a diagram showing a configuration of a first embodiment of the present invention.

【0014】図1において、この発明の実施例1は、制
御装置1と、デジタル/アナログ変換器2と、アナログ
スイッチ5と、抵抗6、7と、出力電圧がVRの基準電
圧8とから構成されている。なお、4は外部の被測定電
圧Vxである。
Referring to FIG. 1, the first embodiment of the present invention comprises a controller 1, a digital / analog converter 2, an analog switch 5, resistors 6 and 7, and a reference voltage 8 whose output voltage is V R. It is configured. In addition, 4 is an external measured voltage Vx.

【0015】制御装置1のP0端子は、しきい値がVT
のデジタル入力ポートであり、デジタル/アナログ変換
器2の出力側とアナログスイッチ5の共通端子に接続さ
れている。また、制御装置1のP1〜P5端子はデジタ
ル出力ポートであり、デジタル/アナログ変換器2のデ
ジタル入力端子の各ビットに接続されている。
The threshold value of the P0 terminal of the control device 1 is V T
, Which is connected to the output side of the digital / analog converter 2 and the common terminal of the analog switch 5. Further, the P1 to P5 terminals of the control device 1 are digital output ports and are connected to each bit of the digital input terminals of the digital / analog converter 2.

【0016】アナログスイッチ5のアナログチャンネル
Xは、抵抗6を介して被測定電圧4に接続され、アナロ
グチャンネルRは抵抗7を介して基準電圧8に接続さ
れ、アナログチャンネルNは未接続端子であり、その切
替端子SELとINHは制御装置1のデジタル出力ポー
トS1とS2に各々接続されており、制御装置1の指示
によりチャンネルの切替を行う。
The analog channel X of the analog switch 5 is connected to the measured voltage 4 via the resistor 6, the analog channel R is connected to the reference voltage 8 via the resistor 7, and the analog channel N is an unconnected terminal. The switching terminals SEL and INH are connected to the digital output ports S1 and S2 of the control device 1, respectively, and switch the channel according to an instruction from the control device 1.

【0017】抵抗6と7の抵抗値はデジタル/アナログ
変換器2の出力インピーダンスRと同じとし、アナログ
スイッチ5の内部抵抗はRに比べ十分小さい値にすれ
ば、抵抗6とアナログスイッチ5の合成インピーダンス
1と抵抗7とアナログスイッチ5の合成インピーダン
スR2は次のように近似できる。
If the resistance values of the resistors 6 and 7 are the same as the output impedance R of the digital / analog converter 2 and the internal resistance of the analog switch 5 is sufficiently smaller than R, the resistance 6 and the analog switch 5 are combined. The impedance R 1 , the resistance 7 and the combined impedance R 2 of the analog switch 5 can be approximated as follows.

【0018】R1≒R、R2≒RR 1 ≈R, R 2 ≈R

【0019】次に、この発明の実施例1の動作について
図2、図3及び図4を参照しながら説明する。図2は、
この発明の実施例1の動作を示すフローチャートであ
る。また、図3は、この発明の実施例1においてアナロ
グスイッチ5をNに接続したときの等価回路を示す図で
ある。さらに、図4は、この発明の実施例1においてア
ナログスイッチをXまたはRに接続したときの等価回路
を示す図である。
Next, the operation of the first embodiment of the present invention will be described with reference to FIGS. 2, 3 and 4. Figure 2
3 is a flowchart showing the operation of the first embodiment of the present invention. FIG. 3 is a diagram showing an equivalent circuit when the analog switch 5 is connected to N in the first embodiment of the present invention. Further, FIG. 4 is a diagram showing an equivalent circuit when an analog switch is connected to X or R in the first embodiment of the present invention.

【0020】ステップ20〜24において、まず、制御
装置1がアナログスイッチ5をNに接続すると、図1に
示す実施例1は図3に示す等価回路で表される。出力デ
ータを0、すなわち出力ポートP1〜P5を全て“L”
レベル(ローレベル)とすると入力ポートP0も“L”
レベルとなる。出力データをインクリメントしながら入
力ポートP0の論理レベルを調べ、“L”レベルから
“H”レベル(ハイレベル)に切替わるときの出力デー
タの値をmNとする。
In steps 20 to 24, first, when the control device 1 connects the analog switch 5 to N, the first embodiment shown in FIG. 1 is represented by the equivalent circuit shown in FIG. Output data is 0, that is, all output ports P1 to P5 are "L"
When set to level (low level), the input port P0 is also "L"
It becomes a level. The logic level of the input port P0 is checked while incrementing the output data, and the value of the output data when switching from the "L" level to the "H" level (high level) is m N.

【0021】ステップ25〜29において、次に、アナ
ログスイッチ5をRに接続すると、図1に示す実施例1
は図4に示す等価回路で表される。ただし、接続された
電圧は基準電圧8(VR)である。出力データを0から
インクリメントしていきながら、入力ポートP0の論理
レベルを調べ、“L”レベルから“H”レベルに切替わ
るときの出力データの値をmRとする。
Next, in steps 25 to 29, when the analog switch 5 is connected to R, the first embodiment shown in FIG.
Is represented by the equivalent circuit shown in FIG. However, the connected voltage is the reference voltage 8 (V R). While incrementing the output data from 0, the logical level of the input port P0 is checked, and the value of the output data when switching from the “L” level to the “H” level is m R.

【0022】ステップ30〜34において、次に、アナ
ログスイッチ5をXに接続すると同様に図4に示す等価
回路で表される。ただし、接続された電圧は被測定電圧
4(VX)である。出力データを0からインクリメント
していきながら、入力ポートP0の論理レベルを調べ、
“L”レベルから“H”レベルに切替わるときの出力デ
ータの値をmXとする。
In steps 30-34, the analog switch 5 is then connected to X, similarly represented by the equivalent circuit shown in FIG. However, the connected voltage is the measured voltage 4 (V X ). While incrementing the output data from 0, check the logic level of the input port P0,
The value of the output data when switching from the “L” level to the “H” level is m X.

【0023】ステップ35において、以上のように得ら
れたデータmN,mR,mXと基準電圧VRを用いて、次式
より被測定電圧VXを求める。
In step 35, the measured voltage V X is obtained from the following equation using the data m N , m R and m X thus obtained and the reference voltage V R.

【0024】 VX={(2mN−mX)/(2mN−mR)}VR V X = {(2m N −m X ) / (2m N −m R )} V R

【0025】この発明の実施例1は、前述したように、
デジタルデータを入力する入力ポートP0と複数ビット
のデジタルデータの各ビットを出力する出力ポートP1
〜P5を有する制御装置1と、ラダー抵抗により構成さ
れ、制御装置1から出力されるデジタルデータに対応し
たアナログ電圧を出力し、その出力側が制御装置1の入
力ポートP0へ接続されたデジタル/アナログ変換器2
と、出力端子がデジタル/アナログ変換器2の出力側に
接続され、被測定電圧入力端子が抵抗6に接続され、か
つ基準電圧入力端子が抵抗7に接続されたアナログスイ
ッチ5とを備えるものである。
The first embodiment of the present invention, as described above,
An input port P0 for inputting digital data and an output port P1 for outputting each bit of digital data of a plurality of bits
To P5 and a ladder resistor, which outputs an analog voltage corresponding to the digital data output from the control device 1, the output side of which is connected to the input port P0 of the control device 1 digital / analog. Converter 2
And an analog switch 5 whose output terminal is connected to the output side of the digital-analog converter 2, whose voltage input terminal to be measured is connected to the resistor 6, and whose reference voltage input terminal is connected to the resistor 7. is there.

【0026】そして、被測定電圧4と基準電圧8の2つ
の入力電圧をアナログスイッチ5で切り換えて入力し、
アナログスイッチ5が被測定電圧側に接続されていると
きのデジタル入力ポートP0のしきい値に相当する出力
データと、アナログスイッチ5が基準電圧側に接続され
ているときのデジタル入力ポートP0のしきい値に相当
する出力データと、アナログスイッチ5がどちらにも接
続されてないときのデジタル入力ポートP0のしきい値
に相当する出力データとから被測定電圧4を演算して求
めることを特徴とするものである。
Then, two input voltages of the measured voltage 4 and the reference voltage 8 are switched by the analog switch 5 and inputted.
Output data corresponding to the threshold value of the digital input port P0 when the analog switch 5 is connected to the measured voltage side and the digital input port P0 when the analog switch 5 is connected to the reference voltage side. The measured voltage 4 is calculated from the output data corresponding to the threshold value and the output data corresponding to the threshold value of the digital input port P0 when the analog switch 5 is not connected to either. To do.

【0027】すなわち、この実施例1は、アナログスイ
ッチ入力を2入力切替形とし、一方は抵抗6を介して被
測定電圧4へ、他方は抵抗7を介して基準電圧8へ接続
し、アナログスイッチ5がOFFの場合と、被測定電圧
側へ接続された場合と、基準電圧側へ接続された場合と
のそれぞれに対するデジタル入力ポートP0のしきい値
に相当する出力データから被測定電圧4を演算して求め
るようにしたものである。
That is, in the first embodiment, the analog switch input is of a 2-input switching type, one is connected to the measured voltage 4 via the resistor 6 and the other is connected to the reference voltage 8 via the resistor 7, and the analog switch is connected. The measured voltage 4 is calculated from the output data corresponding to the threshold value of the digital input port P0 when 5 is OFF, when it is connected to the measured voltage side, and when it is connected to the reference voltage side. I asked for it.

【0028】この実施例1では、アナログスイッチ5が
OFFの場合のデジタル入力ポートP0のしきい値と、
アナログスイッチ5が被測定電圧側に接続された場合の
デジタル入力ポートP0のしきい値以外に、アナログス
イッチ5が基準電圧側に接続された場合のデジタル入力
ポートP0のしきい値を求める。
In the first embodiment, the threshold value of the digital input port P0 when the analog switch 5 is OFF,
In addition to the threshold value of the digital input port P0 when the analog switch 5 is connected to the measured voltage side, the threshold value of the digital input port P0 when the analog switch 5 is connected to the reference voltage side is obtained.

【0029】アナログスイッチ5がOFFの場合は、デ
ジタル出力データに対応したアナログ電圧が直接デジタ
ル入力ポートP0に印加されることになる。出力データ
を変化させてデジタル入力ポートP0の状態変化を調
べ、しきい値VTに相当する出力データがmNであったと
する。デジタル/アナログ変換器2の分解能(D/A出
力電圧最小値)をVBとすると、デジタル入力ポートP
0のしきい値VTは、次式で表される。
When the analog switch 5 is OFF, the analog voltage corresponding to the digital output data is directly applied to the digital input port P0. It is assumed that the output data is changed to check the state change of the digital input port P0, and the output data corresponding to the threshold value V T is m N. When the resolution (minimum value of D / A output voltage) of the digital / analog converter 2 is V B , the digital input port P
The threshold value V T of 0 is expressed by the following equation.

【0030】VT=VB・mN V T = V B · m N

【0031】アナログスイッチ5を被測定電圧側に接続
すると、デジタル入力ポートP0には出力データに対応
したアナログ電圧と、被測定電圧VXが分圧された電圧
が印加される。デジタル/アナログ変換器2の出力イン
ピーダンスをR、最小分解能をVBとし、被測定電圧を
X、被測定電圧に接続された抵抗6とアナログスイッ
チ5の抵抗の合成インピーダンスをR1としたとき、デ
ジタル入力ポートP0のしきい値に相当する出力データ
がmXであったとすると、デジタル入力ポートP0のし
きい値VTは、次式で表される。
When the analog switch 5 is connected to the measured voltage side, the analog voltage corresponding to the output data and the voltage obtained by dividing the measured voltage V X are applied to the digital input port P0. When the output impedance of the digital / analog converter 2 is R, the minimum resolution is V B , the measured voltage is V X , and the combined impedance of the resistance 6 and the resistance of the analog switch 5 connected to the measured voltage is R 1. , If the output data corresponding to the threshold value of the digital input port P0 is m X , the threshold value V T of the digital input port P0 is expressed by the following equation.

【0032】 VT={R/(R+R1)}VX+{R1/(R+R1)}VB・mX V T = {R / (R + R 1 )} V X + {R 1 / (R + R 1 )} V B · m X

【0033】さらに、アナログスイッチ5を基準電圧側
に接続すると、デジタル/アナログ変換器2の出力イン
ピーダンスをR、最小分解能(D/A出力電圧最小値)
をVBとし、基準電圧8をVR、基準電圧8に接続された
抵抗7とアナログスイッチ5の抵抗の合成インピーダン
スをR2としたとき、デジタル入力ポートP0のしきい
値に相当する出力データがmRであったとすると、デジ
タル入力ポートP0のしきい値VTは次式となる。
Further, when the analog switch 5 is connected to the reference voltage side, the output impedance of the digital / analog converter 2 is R, the minimum resolution (D / A output voltage minimum value).
Is V B , the reference voltage 8 is V R , and the combined impedance of the resistor 7 connected to the reference voltage 8 and the resistance of the analog switch 5 is R 2 , output data corresponding to the threshold value of the digital input port P0. Is m R , the threshold value V T of the digital input port P0 is given by the following equation.

【0034】 VT={R/(R+R2)}VR+{R2/(R+R2)}VB・mR V T = {R / (R + R 2 )} V R + {R 2 / (R + R 2 )} V B · m R

【0035】アナログスイッチ5がOFFのときと、被
測定電圧側に接続されたときと、基準電圧側に接続され
たときとのしきい値VTの3式より、しきい値VT、分解
能VBを消去すれば、被測定電圧VXを次式の演算により
求めることができる。
From the three equations of the threshold V T when the analog switch 5 is OFF, when it is connected to the measured voltage side, and when it is connected to the reference voltage side, the threshold V T and the resolution If V B is erased, the measured voltage V X can be calculated by the following equation.

【0036】 VX={{(R+R1)mN−R1X}/{(R+R2)mN−R2R}}・VR V X = {{(R + R 1 ) m N −R 1 m X } / {(R + R 2 ) m N −R 2 m R }} · V R

【0037】実施例2.上記実施例1では基準電圧VR
を用いているが、回路の電源電圧が明確であり(通常、
5Vが用いられる)、制御装置1のデジタル出力ポート
の出力インピーダンスがデジタル/アナログ変換器2の
出力インピーダンスRにくらべ充分小さく、電源電圧の
変動の割合が必要とされる精度に比べ充分小さければ、
基準電圧を用いる必要はない。
Example 2. Reference In Embodiment 1 voltage V R
However, the power supply voltage of the circuit is clear (usually,
5 V is used), the output impedance of the digital output port of the control device 1 is sufficiently smaller than the output impedance R of the digital / analog converter 2, and the rate of fluctuation of the power supply voltage is sufficiently smaller than the required accuracy,
It is not necessary to use the reference voltage.

【0038】図5は、この発明の実施例2の構成を示す
図である。図5に示す回路は図1に示す回路から、基準
電圧8と抵抗7を取除き、アナログスイッチ5Aを1チ
ャンネルのON/OFF回路のみとし、これに伴い、制
御装置1からのチャンネル切替信号線を1本にしたもの
である。
FIG. 5 is a diagram showing the configuration of the second embodiment of the present invention. In the circuit shown in FIG. 5, the reference voltage 8 and the resistor 7 are removed from the circuit shown in FIG. 1, and the analog switch 5A has only one channel ON / OFF circuit, and accordingly, the channel switching signal line from the controller 1 is changed. Is one.

【0039】次に、この発明の実施例2の動作について
図6を参照しながら説明する。図6は、この発明の実施
例2の動作を示すフローチャートである。
Next, the operation of the second embodiment of the present invention will be described with reference to FIG. FIG. 6 is a flowchart showing the operation of the second embodiment of the present invention.

【0040】ステップ70〜74において、まず、アナ
ログスイッチ5AをOFFとすると、この実施例2は図
3に示す等価回路で表される。このとき、デジタル/ア
ナログ変換器2の出力電圧の分解能VBは、電源電圧を
C、デジタル/アナログ変換器2のデジタル入力デー
タビット数をkとすると次式で表される。
In steps 70 to 74, first, when the analog switch 5A is turned off, the second embodiment is represented by the equivalent circuit shown in FIG. At this time, the resolution V B of the output voltage of the digital / analog converter 2 is represented by the following equation, where V C is the power supply voltage and k is the number of digital input data bits of the digital / analog converter 2.

【0041】VB=2-k×VC V B = 2 −k × V C

【0042】出力データを0からインクリメントしてい
きながら、入力ポートP0の論理レベルを調べ、“L”
レベルから“H”レベルに切替わるときの出力データを
Nとする。
While the output data is incremented from 0, the logic level of the input port P0 is checked, and "L"
The output data when the level is switched to the "H" level is m N.

【0043】ステップ75〜79において、次に、アナ
ログスイッチ5AをONにすると、この実施例2は図4
に示す等価回路で表される。ただし、接続された電圧は
被測定電圧VXである。出力データを0からインクリメ
ントしていきながら入力ポートP0の論理レベルを調
べ、“L”レベルから“H”レベルに切替わるときの出
力データの値をmXとする。
Next, in steps 75 to 79, when the analog switch 5A is turned on, the second embodiment is changed to FIG.
It is represented by the equivalent circuit shown in. However, the connected voltage is the measured voltage V X. The logical level of the input port P0 is checked while incrementing the output data from 0, and the value of the output data when switching from the "L" level to the "H" level is m X.

【0044】ステップ80において、以上のようにして
得られたデータmN、mXとデジタル/アナログ変換器2
の分解能VBまたは電源電圧VCを用いて次式より被測定
電圧VXを求める。
In step 80, the data m N , m X obtained as described above and the digital / analog converter 2
The measured voltage V X is obtained from the following equation using the resolution V B or the power supply voltage V C of

【0045】 VX=(2mN−mX)VB=(2mN−mX)×2-k×VC V X = (2m N −m X ) V B = (2m N −m X ) × 2 −k × V C

【0046】この発明の実施例2は、前述したように、
デジタルデータを入力する入力ポートP0と複数ビット
のデジタルデータの各ビットを出力する出力ポートP1
〜P5を有する制御装置1と、ラダー抵抗により構成さ
れ、制御装置1から出力されるデジタルデータに対応し
たアナログ電圧を出力し、その出力側が制御装置1の入
力ポートP0へ接続されたデジタル/アナログ変換器2
と、出力端子がデジタル/アナログ変換器2の出力側に
接続され、かつ被測定電圧入力端子が抵抗6に接続され
たアナログスイッチ5Aとを備えるものである。
The second embodiment of the present invention, as described above,
An input port P0 for inputting digital data and an output port P1 for outputting each bit of digital data of a plurality of bits
To P5 and a ladder resistor, which outputs an analog voltage corresponding to the digital data output from the control device 1, the output side of which is connected to the input port P0 of the control device 1 digital / analog. Converter 2
And an analog switch 5A whose output terminal is connected to the output side of the digital / analog converter 2 and whose measured voltage input terminal is connected to the resistor 6.

【0047】そして、アナログスイッチ5AがOFFの
ときのデジタル入力ポートP0のしきい値に相当する出
力データと、アナログスイッチ5AがONのときのデジ
タル入力ポートP0のしきい値に相当する出力データと
から被測定電圧を演算して求めることを特徴とするもの
である。
Output data corresponding to the threshold value of the digital input port P0 when the analog switch 5A is OFF, and output data corresponding to the threshold value of the digital input port P0 when the analog switch 5A is ON. It is characterized in that the voltage to be measured is calculated from the above.

【0048】この実施例2で用いるアナログスイッチ5
Aは、アナログ素子であるがトランジスタ(ON/OF
F動作)のみを使用しているため、デジタルICに混載
化するのは比較的容易であり、多チャンネル入力化する
場合にも容易にできるようになる。
Analog switch 5 used in the second embodiment
A is an analog element, but a transistor (ON / OF
Since only the F operation) is used, it is relatively easy to embed it in a digital IC, and it becomes easy even when multi-channel input is used.

【0049】この実施例2によれば、アナログスイッチ
5AがOFFの場合は、デジタル出力データに対応した
アナログ電圧が直接デジタル入力ポートP0に印加され
ることになる。出力データを変化させてデジタル入力ポ
ートP0の状態変化を調べ、しきい値VTに相当する出
力データがmNであったとする。デジタル/アナログ変
換器2の分解能(D/A出力電圧最小値)をVBとする
と、デジタル入力ポートP0のしきい値VTは、次式で
表される。
According to the second embodiment, when the analog switch 5A is OFF, the analog voltage corresponding to the digital output data is directly applied to the digital input port P0. It is assumed that the output data is changed to check the state change of the digital input port P0, and the output data corresponding to the threshold value V T is m N. When the resolution of the digital / analog converter 2 (minimum value of D / A output voltage) is V B , the threshold V T of the digital input port P0 is expressed by the following equation.

【0050】VT=VB・mN V T = V B · m N

【0051】アナログスイッチ5をONにすると、デジ
タル入力ポートP0には出力データに対応したアナログ
電圧と、被測定電圧VXが分圧された電圧が印加され
る。デジタル/アナログ変換器2の出力インピーダンス
をR、最小分解能をVBとし、被測定電圧をVX、被測定
電圧に接続された抵抗6とアナログスイッチ5Aの抵抗
の合成インピーダンスをR1としたとき、デジタル入力
ポートP0のしきい値に相当する出力データがmXであ
ったとすると、デジタル入力ポートP0のしきい値VT
は、次式で表される。
When the analog switch 5 is turned on, the analog voltage corresponding to the output data and the voltage obtained by dividing the measured voltage V X are applied to the digital input port P0. When the output impedance of the digital / analog converter 2 is R, the minimum resolution is V B , the measured voltage is V X , and the combined impedance of the resistor 6 connected to the measured voltage and the resistance of the analog switch 5A is R 1. , If the output data corresponding to the threshold value of the digital input port P0 is m X , the threshold value V T of the digital input port P0
Is expressed by the following equation.

【0052】 VT={R/(R+R1)}VX+{R1/(R+R1)}VB・mX V T = {R / (R + R 1 )} V X + {R 1 / (R + R 1 )} V B · m X

【0053】アナログスイッチ5AがOFFのときとO
Nのときのしきい値VTの式より、VTを消去すれば、被
測定電圧VXを次式の演算を行うことにより求めること
ができる。
When the analog switch 5A is OFF and when O
If V T is erased from the formula of the threshold V T when N, the measured voltage V X can be obtained by performing the calculation of the following formula.

【0054】 VX={mN+(R1/R)(mN−mX)}VB V X = {m N + (R 1 / R) (m N −m X )} V B

【0055】なお、前述した実施例1及び実施例2にお
けるデジタル入力ポートP0をシュミット回路とするこ
とにより、しきい値付近での消費電流の増加を少なくす
ることができる。
By using the Schmitt circuit as the digital input port P0 in the above-described first and second embodiments, it is possible to reduce the increase in current consumption near the threshold value.

【0056】実施例3.この発明の実施例3について図
7を参照しながら説明する。図7は、この発明の実施例
3の構成を示す。この実施例3は、多チャンネル入力の
A/D変換装置である。被測定電圧41〜49に対し、
アナログスイッチ5BをX1〜X9の多チャンネル切替
形とし、アナログスイッチ5Bの各入力端子と被測定電
圧の各端子間に抵抗61〜69を各々接続している。ア
ナログスイッチ5Bのチャンネル切替信号線も複数ビッ
トを要している。
Example 3. A third embodiment of the present invention will be described with reference to FIG. FIG. 7 shows the configuration of the third embodiment of the present invention. The third embodiment is a multi-channel input A / D converter. For the measured voltages 41 to 49,
The analog switch 5B is a multi-channel switching type of X1 to X9, and resistors 61 to 69 are connected between each input terminal of the analog switch 5B and each terminal of the voltage to be measured. The channel switching signal line of the analog switch 5B also requires a plurality of bits.

【0057】この実施例3の動作は前述した実施例2と
同様で、X1〜X9の各チャンネルに切替えて出力デー
タmXの測定と被測定電圧VXの演算を行うものである。
The operation of the third embodiment is the same as that of the second embodiment described above, in which the output data m X is measured and the measured voltage V X is calculated by switching to each of the channels X1 to X9.

【0058】また、この実施例3では、デジタル入力ポ
ートP0の前にシュミット回路9を挿入している。通常
のインバータ構成のCMOS入力回路ではしきい値付近
でCMOS内部回路に大きな貫通電流が流れることがあ
るため、デジタル入力部にシュミット回路9を入れ過大
電流を防いでいる。
In the third embodiment, the Schmitt circuit 9 is inserted before the digital input port P0. In a normal CMOS input circuit having an inverter structure, a large through current may flow in the CMOS internal circuit near the threshold value. Therefore, the Schmitt circuit 9 is inserted in the digital input section to prevent an excessive current.

【0059】この発明の実施例3は、前述したように、
複数の被測定電圧41〜49に対応した多チャンネル入
力切替形のアナログスイッチ5Bと、アナログスイッチ
5Bの各入力チャンネルと各被測定電圧41〜49を接
続する抵抗61〜69とを有するものである。そして、
実施例1及び実施例2と同じ手順にて複数の被測定電圧
41〜49をアナログ/デジタル変換するものである。
The third embodiment of the present invention, as described above,
It has a multi-channel input switching type analog switch 5B corresponding to a plurality of measured voltages 41 to 49, and resistors 61 to 69 for connecting each input channel of the analog switch 5B and each measured voltage 41 to 49. . And
The plurality of measured voltages 41 to 49 are analog-to-digital converted by the same procedure as in the first and second embodiments.

【0060】ところで、前述した各実施例の説明では、
しきい値に相当する出力データmN、mX、mRは、0よ
りインクリメントしながら求めるようにしているが、そ
の他2分法等で求めてもかまわない。
By the way, in the above description of each embodiment,
Although the output data m N , m X , and m R corresponding to the threshold value are obtained by incrementing from 0, they may be obtained by other dichotomy or the like.

【0061】[0061]

【発明の効果】この発明の請求項1に係るA/D変換装
置は、以上説明したとおり、デジタルデータを入力する
入力ポートと複数ビットのデジタルデータを出力する出
力ポートを有する制御装置と、ラダー抵抗により構成さ
れ、前記制御装置から出力されるデジタルデータに対応
したアナログ電圧を出力し、その出力が前記制御装置の
入力ポートへ印加されたデジタル/アナログ変換器と、
出力端子が前記デジタル/アナログ変換器の出力側に接
続され、被測定電圧入力端子が第1の抵抗に接続され、
かつ基準電圧入力端子が第2の抵抗に接続されたアナロ
グスイッチとを備え、前記制御装置は、被測定電圧と基
準電圧の2つの入力電圧を前記アナログスイッチで切り
換えて入力し、前記アナログスイッチが前記被測定電圧
に接続されているときの前記入力ポートのしきい値に相
当する第1の出力データと、前記アナログスイッチが前
記基準電圧に接続されているときの前記入力ポートのし
きい値に相当する第2の出力データと、前記アナログス
イッチがどちらにも接続されてないときの前記入力ポー
トのしきい値に相当する第3の出力データとから前記被
測定電圧を演算して求めるので、デジタル入力回路のし
きい値に無関係な演算式により被測定電圧を求めること
ができ、装置が低コスト化でき、デジタルIC化も容易
にすることができるという効果を奏する。
As described above, the A / D converter according to claim 1 of the present invention includes a controller having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and a ladder. A digital / analog converter configured by a resistor to output an analog voltage corresponding to digital data output from the control device, the output of which is applied to an input port of the control device;
The output terminal is connected to the output side of the digital / analog converter, the voltage-under-measurement input terminal is connected to the first resistor,
An analog switch having a reference voltage input terminal connected to the second resistor is provided, and the control device switches between the two input voltages of the voltage to be measured and the reference voltage by the analog switch and inputs the voltage. The first output data corresponding to the threshold value of the input port when connected to the measured voltage, and the threshold value of the input port when the analog switch is connected to the reference voltage. Since the measured voltage is calculated from the corresponding second output data and the third output data corresponding to the threshold value of the input port when the analog switch is not connected to either, The voltage to be measured can be obtained by an arithmetic expression unrelated to the threshold value of the digital input circuit, the cost of the device can be reduced, and the digital IC can be easily formed. There is an effect that.

【0062】この発明の請求項2に係るA/D変換装置
は、以上説明したとおり、デジタルデータを入力する入
力ポートと複数ビットのデジタルデータを出力する出力
ポートを有する制御装置と、ラダー抵抗により構成さ
れ、前記制御装置から出力されるデジタルデータに対応
したアナログ電圧を出力し、その出力が前記制御装置の
入力ポートへ印加されたデジタル/アナログ変換器と、
出力端子が前記デジタル/アナログ変換器の出力側に接
続され、入力端子が抵抗に接続されたアナログスイッチ
とを備え、前記制御装置は、前記アナログスイッチがO
FFのときの前記入力ポートのしきい値に相当する第1
の出力データと、前記アナログスイッチがONのときの
前記入力ポートのしきい値に相当する第2の出力データ
とから被測定電圧を演算して求めるので、デジタル入力
回路のしきい値に無関係な演算式により被測定電圧を求
めることができ、装置が低コスト化でき、デジタルIC
化も容易にすることができるという効果を奏する。
As described above, the A / D converter according to the second aspect of the present invention includes a controller having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and a ladder resistor. A digital / analog converter configured to output an analog voltage corresponding to digital data output from the control device, the output of which is applied to an input port of the control device;
An analog switch having an output terminal connected to an output side of the digital-analog converter and an input terminal connected to a resistor;
The first corresponding to the threshold value of the input port in the case of FF
Output voltage and the second output data corresponding to the threshold value of the input port when the analog switch is ON, the voltage to be measured is calculated and obtained, so that it does not depend on the threshold value of the digital input circuit. The voltage to be measured can be obtained by an arithmetic expression, the cost of the device can be reduced, and the digital IC
There is an effect that it can be easily realized.

【0063】この発明の請求項3に係るA/D変換装置
は、以上説明したとおり、デジタルデータを入力する入
力ポートと複数ビットのデジタルデータを出力する出力
ポートを有する制御装置と、ラダー抵抗により構成さ
れ、前記制御装置から出力されるデジタルデータに対応
したアナログ電圧を出力し、その出力が前記制御装置の
入力ポートへ印加されたデジタル/アナログ変換器と、
出力端子が前記デジタル/アナログ変換器の出力側に接
続され、かつ複数の被測定電圧入力端子が複数の抵抗の
各々に接続されたアナログスイッチとを備え、前記制御
装置は、複数の被測定電圧を前記アナログスイッチで切
り換えて入力し、前記アナログスイッチが前記被測定電
圧に接続されているときの前記入力ポートのしきい値に
相当する第1の出力データと、前記アナログスイッチが
前記被測定電圧のどれにも接続されていないときの前記
入力ポートのしきい値に相当する第2の出力データとか
ら前記被測定電圧を演算して求めるので、デジタル入力
回路のしきい値に無関係な演算式により被測定電圧を演
算して求めることができ、装置が低コスト化でき、多チ
ャンネル入力化、デジタルIC化も容易にすることがで
きるという効果を奏する。
As described above, the A / D conversion device according to the third aspect of the present invention includes a control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and a ladder resistor. A digital / analog converter configured to output an analog voltage corresponding to digital data output from the control device, the output of which is applied to an input port of the control device;
An analog switch having an output terminal connected to the output side of the digital / analog converter and having a plurality of measured voltage input terminals connected to each of a plurality of resistors; and the control device having a plurality of measured voltages. Is switched by the analog switch and input, first output data corresponding to the threshold value of the input port when the analog switch is connected to the measured voltage, and the analog switch Since the voltage to be measured is calculated from the second output data corresponding to the threshold value of the input port when not connected to any of the above, it is an arithmetic expression irrelevant to the threshold value of the digital input circuit. With this, the measured voltage can be calculated and obtained, the cost of the device can be reduced, and multi-channel input and digital IC can be easily achieved. To.

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

【図1】この発明の実施例1の構成を示す図である。FIG. 1 is a diagram showing a configuration of a first embodiment of the present invention.

【図2】この発明の実施例1の動作を示すフローチャー
トである。
FIG. 2 is a flowchart showing the operation of the first embodiment of the present invention.

【図3】この発明の実施例1のアナログスイッチがNに
あるときの等価回路を示す図である。
FIG. 3 is a diagram showing an equivalent circuit when the analog switch according to the first embodiment of the present invention is at N.

【図4】この発明の実施例1のアナログスイッチがXま
たはRにあるときの等価回路を示す図である。
FIG. 4 is a diagram showing an equivalent circuit when the analog switch according to the first embodiment of the present invention is at X or R.

【図5】この発明の実施例2の構成を示す図である。FIG. 5 is a diagram showing a configuration of a second embodiment of the present invention.

【図6】この発明の実施例2の動作を示すフローチャー
トである。
FIG. 6 is a flowchart showing the operation of the second embodiment of the present invention.

【図7】この発明の実施例3の構成を示す図である。FIG. 7 is a diagram showing a configuration of a third embodiment of the present invention.

【図8】従来のA/D変換装置を示す図である。FIG. 8 is a diagram showing a conventional A / D conversion device.

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

1 制御装置 2 デジタル/アナログ変換器 4、41、49 被測定電圧 5、5A、5B アナログスイッチ 6、61、69 抵抗 7 抵抗 8 基準電圧 9 シュミット回路 1 Control Device 2 Digital / Analog Converter 4, 41, 49 Measured Voltage 5, 5A, 5B Analog Switch 6, 61, 69 Resistor 7 Resistor 8 Reference Voltage 9 Schmitt Circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 デジタルデータを入力する入力ポートと
複数ビットのデジタルデータを出力する出力ポートを有
する制御装置と、ラダー抵抗により構成され、前記制御
装置から出力されるデジタルデータに対応したアナログ
電圧を出力し、その出力が前記制御装置の入力ポートへ
印加されたデジタル/アナログ変換器と、出力端子が前
記デジタル/アナログ変換器の出力側に接続され、被測
定電圧入力端子が第1の抵抗に接続され、かつ基準電圧
入力端子が第2の抵抗に接続されたアナログスイッチと
を備え、前記制御装置は、被測定電圧と基準電圧の2つ
の入力電圧を前記アナログスイッチで切り換えて入力
し、前記アナログスイッチが前記被測定電圧に接続され
ているときの前記入力ポートのしきい値に相当する第1
の出力データと、前記アナログスイッチが前記基準電圧
に接続されているときの前記入力ポートのしきい値に相
当する第2の出力データと、前記アナログスイッチがど
ちらにも接続されてないときの前記入力ポートのしきい
値に相当する第3の出力データとから前記被測定電圧を
演算して求めることを特徴とするA/D変換装置。
1. A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and an analog voltage corresponding to the digital data output from the control device, the analog voltage being constituted by a ladder resistor. A digital / analog converter whose output is applied to the input port of the control device and an output terminal of which are connected to the output side of the digital / analog converter, and whose measured voltage input terminal is the first resistor And an analog switch having a reference voltage input terminal connected to the second resistor, wherein the control device switches between the two input voltages of the voltage to be measured and the reference voltage by the analog switch to input the voltage. A first voltage corresponding to the threshold value of the input port when the analog switch is connected to the measured voltage;
Output data, second output data corresponding to the threshold value of the input port when the analog switch is connected to the reference voltage, and the second output data when the analog switch is not connected to either. An A / D conversion device, characterized in that the measured voltage is calculated from third output data corresponding to a threshold value of an input port.
【請求項2】 デジタルデータを入力する入力ポートと
複数ビットのデジタルデータを出力する出力ポートを有
する制御装置と、ラダー抵抗により構成され、前記制御
装置から出力されるデジタルデータに対応したアナログ
電圧を出力し、その出力が前記制御装置の入力ポートへ
印加されたデジタル/アナログ変換器と、出力端子が前
記デジタル/アナログ変換器の出力側に接続され、入力
端子が抵抗に接続されたアナログスイッチとを備え、前
記制御装置は、前記アナログスイッチがOFFのときの
前記入力ポートのしきい値に相当する第1の出力データ
と、前記アナログスイッチがONのときの前記入力ポー
トのしきい値に相当する第2の出力データとから被測定
電圧を演算して求めることを特徴とするA/D変換装
置。
2. A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and an analog voltage corresponding to the digital data output from the control device, the analog voltage being constituted by a ladder resistor. And a digital / analog converter whose output is applied to the input port of the control device, and an analog switch whose output terminal is connected to the output side of the digital / analog converter and whose input terminal is connected to a resistor. The control device corresponds to a first output data corresponding to a threshold value of the input port when the analog switch is OFF, and a threshold value of the input port when the analog switch is ON. An A / D conversion device, characterized in that the voltage to be measured is calculated from the second output data.
【請求項3】 デジタルデータを入力する入力ポートと
複数ビットのデジタルデータを出力する出力ポートを有
する制御装置と、ラダー抵抗により構成され、前記制御
装置から出力されるデジタルデータに対応したアナログ
電圧を出力し、その出力が前記制御装置の入力ポートへ
印加されたデジタル/アナログ変換器と、出力端子が前
記デジタル/アナログ変換器の出力側に接続され、かつ
複数の被測定電圧入力端子が複数の抵抗の各々に接続さ
れたアナログスイッチとを備え、前記制御装置は、複数
の被測定電圧を前記アナログスイッチで切り換えて入力
し、前記アナログスイッチが前記被測定電圧に接続され
ているときの前記入力ポートのしきい値に相当する第1
の出力データと、前記アナログスイッチが前記被測定電
圧のどれにも接続されていないときの前記入力ポートの
しきい値に相当する第2の出力データとから前記被測定
電圧を演算して求めることを特徴とするA/D変換装
置。
3. A control device having an input port for inputting digital data and an output port for outputting digital data of a plurality of bits, and an analog voltage corresponding to the digital data output from the control device, the analog voltage being constituted by a ladder resistor. A digital / analog converter whose output is applied to the input port of the control device; an output terminal connected to the output side of the digital / analog converter; and a plurality of measured voltage input terminals An analog switch connected to each of the resistors, wherein the control device inputs a plurality of measured voltages by switching with the analog switch, and the input when the analog switch is connected to the measured voltage. The first equivalent to the port threshold
Of the measured voltage and the second output data corresponding to the threshold value of the input port when the analog switch is not connected to any of the measured voltages. An A / D conversion device characterized by:
JP9431493A 1993-04-21 1993-04-21 A/d converter Pending JPH06311036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9431493A JPH06311036A (en) 1993-04-21 1993-04-21 A/d converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9431493A JPH06311036A (en) 1993-04-21 1993-04-21 A/d converter

Publications (1)

Publication Number Publication Date
JPH06311036A true JPH06311036A (en) 1994-11-04

Family

ID=14106820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9431493A Pending JPH06311036A (en) 1993-04-21 1993-04-21 A/d converter

Country Status (1)

Country Link
JP (1) JPH06311036A (en)

Similar Documents

Publication Publication Date Title
US5870044A (en) Digital analog converter with self-calibration current sources
JPH06303060A (en) Gain control amplifier circuit
US5023614A (en) Switchable DAC with current surge protection
KR920004347B1 (en) Analog to digital converter
JP3636232B2 (en) Integrated circuit capable of selecting function and method for selecting function
US6601177B1 (en) Semiconductor integrated circuit
JPH06311036A (en) A/d converter
US5425094A (en) Cross point switch with power failure mode
US8587465B2 (en) Successive approximation analog to digital converter with comparator input toggling
JPH11308083A (en) Interface circuit and integrated circuit for interfacing
JP4099557B2 (en) Digital / analog conversion circuit
JP4876254B2 (en) Circuit equipment
US20040125004A1 (en) D/A converter for converting plurality of digital signals simultaneously
JPH04157372A (en) Window type voltage comparator circuit
EP0660529B1 (en) Digital/analog converting circuit
JPH0250621A (en) Logic circuit
US20050146820A1 (en) Discharge protection circuit
JP2680940B2 (en) D / A converter
JP3092551B2 (en) D / A converter
JP4571297B2 (en) D / A converter
US4797650A (en) CMOS binary equals comparator with carry in and out
KR200149153Y1 (en) Recognition circuit of input signal of microcomputer
RU1812634C (en) Converter of logical levels
KR100628071B1 (en) Key pad and mobile terminal
JPH05199096A (en) Semiconductor integrated circuit