JPH03220917A - A/d converter circuit - Google Patents

A/d converter circuit

Info

Publication number
JPH03220917A
JPH03220917A JP1672890A JP1672890A JPH03220917A JP H03220917 A JPH03220917 A JP H03220917A JP 1672890 A JP1672890 A JP 1672890A JP 1672890 A JP1672890 A JP 1672890A JP H03220917 A JPH03220917 A JP H03220917A
Authority
JP
Japan
Prior art keywords
conversion
control
input
circuit
multiplexer
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
JP1672890A
Other languages
Japanese (ja)
Inventor
Masao Tsunekawa
常川 雅雄
Eiji Okamura
栄治 岡村
Yoshiaki Narita
成田 芳昭
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1672890A priority Critical patent/JPH03220917A/en
Publication of JPH03220917A publication Critical patent/JPH03220917A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To implement one-input A/D conversion and plural-input A/D conversion efficiently by determining the control mode of a sequence control section applying time series A/D conversion based on a content of a control register capable of write from outside. CONSTITUTION:Plural kinds of control modes by a sequence control section 20 relating optional one input and optional plural inputs of A/D conversion are predetermined through the constitution of 1st multiplexers (12-1)-(12-n), sample-hold circuit sections (10-10)-(10-n), a 2nd multiplexer 14, an A/D converter section 16 and registers (18-1)-(18-n). Thus, when a control code of a desired control mode is written externally to a control register 22 externally to give a start signal, one or plural inputs of A/D conversion according to the content of the control register 22 is implemented efficiently.

Description

【発明の詳細な説明】 [概要] アナログ入力信号をデジタル信号に変換して出力するA
D変換回路に関し、 1入力のAD変換と複数入力のAD変換を効率良く行う
ことを目的とし、 複数入力を並列的にサンプルホールドした後にマルチプ
レクサで順次選択してAD変換し、更に並列的に設けた
レジスタに格納するように構成し、このAD変換動作を
時系列的に行うシーケンス制御部の制御モードを外部か
ら書込可能な制御レジスタの内容で決定するように構成
する。
[Detailed Description of the Invention] [Summary] A that converts an analog input signal into a digital signal and outputs it.
Regarding the D conversion circuit, the purpose is to efficiently perform AD conversion of one input and AD conversion of multiple inputs.After sampling and holding multiple inputs in parallel, they are selected sequentially by a multiplexer and AD converted, and then installed in parallel. The control mode of the sequence control unit that performs this AD conversion operation in time series is determined by the contents of the externally writable control register.

[産業上の利用分野] 本発明は、アナログ入力信号をデジタル信号に変換して
出力するAD変換回路に関する。
[Industrial Application Field] The present invention relates to an AD conversion circuit that converts an analog input signal into a digital signal and outputs the digital signal.

AD変換回路は一般にサンプルホールド部、AD変換部
及びレジスタで1入力のAD変換回路を構成しており、
■入力のAD変換と複数入力のAD変換を選択的に行う
場合には、複数の入力毎に1入力用のAD変換回路を設
け、1又は複数のAD変換回路を選択的に動作させる。
An AD conversion circuit generally consists of a sample hold section, an AD conversion section, and a register.
(2) When AD converting an input and AD converting a plurality of inputs selectively, an AD conversion circuit for one input is provided for each of a plurality of inputs, and one or more AD conversion circuits are selectively operated.

しかし、複数の入力毎に1入力用のAD変換回路を設け
ることは回路規模が拡大して経済性が悪く、経済性を損
うことなく1入力のAD変換と複数入力のAD変換が効
率的にできるAD変換回路が望まれる。
However, providing an AD conversion circuit for one input for each multiple inputs increases the circuit scale and is not economical.However, AD conversion for one input and AD conversion for multiple inputs is efficient without sacrificing economic efficiency. An AD conversion circuit that can do this is desired.

[従来の技術] 従来、1入力のAD変換と複数入力のAD変換を選択的
に行うことのできるAD変換回路としては、複数の入力
チャネル毎に、サンプルホールド部、AD変換部及びレ
ジスタで成る1入力用のAD変換回路を設け、その内の
1つを動作させることで1入力のAD変換を行い、複数
を同時に動作させることで複数入力のAD変換ができる
ようにしている。
[Prior Art] Conventionally, an AD conversion circuit capable of selectively performing AD conversion of one input and AD conversion of multiple inputs consists of a sample hold section, an AD conversion section, and a register for each of a plurality of input channels. An AD conversion circuit for one input is provided, and AD conversion of one input is performed by operating one of the circuits, and AD conversion of multiple inputs can be performed by operating a plurality of circuits at the same time.

[発明が解決しようとする課題] しかしながら、複数の入力チャネル毎に1入力用のAD
変換回路を設けた従来回路にあっては、入力チャネル数
に応じて回路規模が拡大し、経済性が著しく低下する問
題がある。
[Problem to be solved by the invention] However, the AD for one input for each of multiple input channels is
Conventional circuits provided with conversion circuits have the problem that the circuit scale increases depending on the number of input channels, resulting in a significant decrease in economic efficiency.

この問題を解決するためには、複数の入力チャネルをマ
ルチプレクサで順次選択して1入力のAD変換回路に与
えることも考えられるが、複数入力のサンプリングに時
間ずれを生じ、複数入力の同時AD変換という要求を満
足することができない。
In order to solve this problem, it is possible to sequentially select multiple input channels using a multiplexer and apply them to a single-input AD conversion circuit, but this would cause a time lag in the sampling of multiple inputs, resulting in simultaneous AD conversion of multiple inputs. cannot satisfy that requirement.

本発明は、このような従来の問題点に鑑みてなされたも
ので、経済性を損うことなく1入力のAD変換と複数入
力のAD変換が効率良くできるAD変換回路を提供する
ことを目的とする。
The present invention has been made in view of such conventional problems, and an object of the present invention is to provide an AD conversion circuit that can efficiently perform AD conversion of one input and AD conversion of multiple inputs without impairing economic efficiency. shall be.

[課題を解決するための手段] 第1図は本発明の原理説明図である。[Means to solve the problem] FIG. 1 is a diagram explaining the principle of the present invention.

第1図において、まず同時にAD変換しようとする入力
数に対応した複数のサンプルホールド部10−1〜10
−nが設けられる。このサンプルホールド部10−1〜
10−2に対しては少なくとも2つのアナログ入力信号
の一方を選択して入力する複数の第1マルチプレクサ1
2−1〜12−nが設けられる。
In FIG. 1, first, a plurality of sample and hold units 10-1 to 10 corresponding to the number of inputs to be simultaneously AD converted.
-n is provided. This sample hold section 10-1~
10-2, a plurality of first multiplexers 1 select and input one of at least two analog input signals;
2-1 to 12-n are provided.

複数のサンプルホールド部10−1〜10−nの各出力
は第2マルチプレクサ14で順次選択され、アナログ信
号をデジタル信号に変換するAD変換部16に与えられ
る。AD変換部16に続いては複数のレジスタ18−1
〜18−nが設けられ、AD変換部16からのデジタル
信号を順次格納し、その後に読出して外部に出力できる
ようにしている。
The respective outputs of the plurality of sample and hold sections 10-1 to 10-n are sequentially selected by the second multiplexer 14 and provided to the AD conversion section 16 which converts the analog signal into a digital signal. Following the AD converter 16 are a plurality of registers 18-1.
- 18-n are provided to sequentially store the digital signals from the AD converter 16, and then read them out and output them to the outside.

このような第1マルチプレクサ12−1〜12−n、サ
ンプルホールド部10−1〜10−n。
Such first multiplexers 12-1 to 12-n and sample and hold units 10-1 to 10-n.

第2マルチプレクサ14、AD変換部16及びレジスタ
18−1〜18−nを外部からのスタート信号による動
作開始で時系列的に制御するシーケンス制御部20が設
けられる。更にシーケンス制御部20によるAD変換の
制御モードは、外部から書替可能な制御レジスタ20の
内容(制御コード)により決定される。
A sequence control section 20 is provided that controls the second multiplexer 14, the AD conversion section 16, and the registers 18-1 to 18-n in a time-series manner by starting operations based on an external start signal. Furthermore, the control mode of AD conversion by the sequence control unit 20 is determined by the contents (control code) of the control register 20 that can be rewritten from the outside.

更に、シーケンス制御回路20によるAD変換動作中で
あることを示すビジー信号を外部に出力するビジー制御
回路24を設ける。
Further, a busy control circuit 24 is provided which outputs a busy signal indicating that the sequence control circuit 20 is in the middle of an AD conversion operation.

[作用] このような構成を備えた本発明のAD変換回路によれば
、第1マルチプレクサ12−1〜12−n1サンプルホ
一ルド部10−1〜10−n%第2マルチプレクサ14
、AD変換部16及びレジスタ18−1〜18−nの構
成により、任意の1入力及び任意の複数入力のAD変換
に関するシーケンス制御部20による複数種類の制御モ
ードが予め定まっており、制御レジスタ22に希望する
制御モードの制御コードを外部的に書込んでスタート信
号を与えると、そのときの制御レジスタ22の内容に従
った1入力又は複数入力のAD変換を行うことができる
[Function] According to the AD conversion circuit of the present invention having such a configuration, the first multiplexer 12-1 to 12-n1 sample hold section 10-1 to 10-n% second multiplexer 14
, the configuration of the AD conversion unit 16 and the registers 18-1 to 18-n, a plurality of types of control modes by the sequence control unit 20 regarding AD conversion of arbitrary one input and arbitrary plural inputs are predetermined, and the control register 22 When a control code of a desired control mode is written externally into the control register 22 and a start signal is applied, AD conversion of one input or multiple inputs can be performed according to the contents of the control register 22 at that time.

またサンプルホールド部及びレジスタは同時変換を必要
とする入力数分必要となるが、回路全体に占める割合が
大きいAD変換部は1回路で済み、高い経済性を実現で
きる。
Further, although sample-hold sections and registers are required for the number of inputs that require simultaneous conversion, only one circuit is required for the AD conversion section, which occupies a large proportion of the entire circuit, making it possible to achieve high economic efficiency.

更にAD変換回路をスタートさせた外部装置は、ビジー
信号がアクティブからネガデイプに戻ってAD変換終了
を示すまでは、他の処理を行うことができ、AD変換回
路の変換時間に拘束されることがない。
Furthermore, the external device that started the AD conversion circuit can perform other processing until the busy signal returns from active to negative deep to indicate the completion of AD conversion, and is not restricted by the conversion time of the AD conversion circuit. do not have.

[実施例コ 第2図は本発明の一実施例を示した実施例構成図である
Embodiment FIG. 2 is a block diagram showing an embodiment of the present invention.

第2図において、100は本発明のAD変換回路であり
、この実施例にあっては4つのチャネル入力A、  B
、  C,Dにつき任意のl入力または2入力を同時に
AD変換する場合を例にとっている。
In FIG. 2, 100 is an AD conversion circuit of the present invention, which has four channel inputs A and B in this embodiment.
, C, and D, a case is taken as an example in which arbitrary one input or two inputs are simultaneously AD converted.

AD変換回路100には同時に2つのチャネル入力をA
D変換することからサンプルホールド回路10−1.1
0−2が設けられる。サンプルホールド回路10−1.
10−2の入力段にはマルチプレクサ(第1マルチプレ
クサ) 12−1. 12−2が設けられる。マルチプ
レクサ12−1は入力A、  Bのいずれか一方を選択
出力し、マルチプレクサ12−2は入力C,Dのいずれ
か一方を選択出力する。
The AD conversion circuit 100 receives two channel inputs A at the same time.
Sample and hold circuit 10-1.1 from D conversion
0-2 is provided. Sample hold circuit 10-1.
The input stage of 10-2 includes a multiplexer (first multiplexer) 12-1. 12-2 is provided. The multiplexer 12-1 selectively outputs either input A or B, and the multiplexer 12-2 selectively outputs either input C or D.

サンプルホールド回路10−1.10−2の出力はマル
チプレクサ(第2マルチプレクサ)14に入力され、い
ずれか一方が選択出力される。マルチプレクサ14の出
力はAD変換器16に与えられて、例えば8ビツトのデ
ジタル信号に変換される。AD変換器16に続いては同
時にAD変換する入力数2に対応して2台のレジスタ1
8−1゜18−2が設けられ、AD変換器16で変換さ
れたデジタル信号を格納できるようにしているっ更にマ
ルチプレクサ12−1.12−2、サンプルホールド回
路10−1.10−2、マルチプレクサ14、AD変換
器16及びレジスタ18−1.18−2を時系列的に動
作させてAD変換するためのシーケンス制御回路20が
設けられる。
The outputs of the sample and hold circuits 10-1 and 10-2 are input to a multiplexer (second multiplexer) 14, and one of them is selectively output. The output of the multiplexer 14 is given to an AD converter 16 and converted into, for example, an 8-bit digital signal. Following the AD converter 16, there are two registers 1 corresponding to the number of inputs to be simultaneously AD converted (2).
A multiplexer 12-1.12-2, a sample hold circuit 10-1.10-2, A sequence control circuit 20 is provided for operating the multiplexer 14, the AD converter 16, and the registers 18-1, 18-2 in time series to perform AD conversion.

シーケンス制御回路20は外部に設けられたマイクロプ
ロセッサ26からのスタート信号を受けてAD変換のた
めの制御動作を開始する。シーケンス制御回路20によ
るAD変換回路100の制御モードはコントロールレジ
スタ22の内容により決定される。コントロールレジス
タ22に対しては外部のマイクロプロセッサ26よりバ
ス28を介して制御モードを決める制御コードが書き込
まれ、スタート信号を受けたシーケンス制御回路20は
その時のコントロールレジスタ22の内容に従った制御
モードによりAD変換回路100の時系列的な動作を行
なう。
The sequence control circuit 20 receives a start signal from an externally provided microprocessor 26 and starts a control operation for AD conversion. The control mode of the AD conversion circuit 100 by the sequence control circuit 20 is determined by the contents of the control register 22. A control code that determines a control mode is written into the control register 22 by an external microprocessor 26 via a bus 28, and upon receiving the start signal, the sequence control circuit 20 selects a control mode according to the contents of the control register 22 at that time. The AD conversion circuit 100 operates in a time-series manner.

更にシーケンス制御回路20の制御信号はビジー制御回
路24に与えられており、ビジー制御回路24はシーケ
ンス制御回路20による時系列的な一連のAD変換動作
が終了するまでの間、マイクロプロセッサ26に対する
ビジー信号をアクティブ状態とする。
Further, the control signal of the sequence control circuit 20 is given to a busy control circuit 24, and the busy control circuit 24 keeps the microprocessor 26 busy until the sequence control circuit 20 completes a series of time-series AD conversion operations. Make the signal active.

ここでコントロールレジスタ22の内容により決まるシ
ーケンス制御回路20によるAD変換回路100の制御
モードは、第3図に示すようにモード1〜6が予め定ま
っており、モード1〜6に対応してコントロールレジス
タ22にセットされる制御コードは000〜101とな
る。そして各制御モードに従った内容はモード1,2に
ついては2つの入力A、  C,B、 Dをそれぞれ同
時にサンプリングして順次AD変換する制御モードであ
り、残りモード3〜6については入力A、  B、  
C。
Here, the control modes of the AD conversion circuit 100 by the sequence control circuit 20 determined by the contents of the control register 22 are predetermined as modes 1 to 6, as shown in FIG. The control code set to 22 is 000-101. The content according to each control mode is that for modes 1 and 2, two inputs A, C, B, and D are simultaneously sampled and AD converted sequentially, and for the remaining modes 3 to 6, inputs A, B,
C.

Dのみをそれぞれサンプリングした後にAD変換する制
御モードとなる。
A control mode is entered in which AD conversion is performed after sampling only D.

次に第4図の動作タイミングチャートを参照して、まず
第3図のモード1、即ち入力A、 Cを同時にサンプリ
ングして順次AD変換する動作を説明する。
Next, referring to the operation timing chart of FIG. 4, description will first be given of mode 1 of FIG. 3, that is, the operation of simultaneously sampling inputs A and C and sequentially AD converting them.

まずマイクロプロセッサ26はコントロールレジスタ2
2にアナログ入力信号A、Cを同時にサンプルし、その
後に連続的にAD変換することを指示する制御コードr
000Jを書き込む。マイクロプロセッサ26がスター
ト信号をアクティブ状態にするとシーケンス制御回路2
0はビジー制御回路24に制御出力を与えビジー信号を
アクティブにし、またその時のコントロールレジスタ2
2の内容r000Jに応じてマルチプレクサ12−1の
入力Aを選択し、同時にマルチプレクサ12−2の入力
Cを選択し、サンプルホールド回路10−1と10−2
のサンプリング動作を同時に開始し、サンプリングに要
する一定時間経過後にサンプルホールド回路10−1.
10−2のサンプリング動作を終了して出力保持状態と
する。
First, the microprocessor 26 controls the control register 2.
2, a control code r instructs analog input signals A and C to be sampled simultaneously and then to be AD converted continuously.
Write 000J. When the microprocessor 26 activates the start signal, the sequence control circuit 2
0 gives a control output to the busy control circuit 24, activates the busy signal, and also controls the control register 2 at that time.
The input A of the multiplexer 12-1 is selected according to the content r000J of 2, and the input C of the multiplexer 12-2 is selected at the same time, and the sample and hold circuits 10-1 and 10-2 are selected.
The sampling operations of the sample and hold circuits 10-1. and 10-1. are started simultaneously, and after a certain period of time required for sampling has elapsed, the sample and hold circuits 10-1.
The sampling operation 10-2 is completed and the output is held.

次にマルチプレクサ14の制御によりサンプルホールド
回路10−1側を選択してADD換器16に与え、AD
D換器16にAD変換を開始させる。AD変換に必要な
一定時間経過後、ADD換器16からの変換結果をレジ
スタ18−1に格納し、入力A側のAD変換を終了する
。続いてマルチプレクサ14でサンプルホールド回路1
0−2側を選択してADD換器16にAD変換を開始さ
せる。AD変換に必要な一定時間を経過するとADD換
器16の変換結果をレジスタ18−2側に格納する。
Next, under the control of the multiplexer 14, the sample and hold circuit 10-1 side is selected and applied to the ADD converter 16, and the ADD
The D converter 16 is caused to start AD conversion. After a certain period of time required for AD conversion has elapsed, the conversion result from the ADD converter 16 is stored in the register 18-1, and the AD conversion on the input A side is completed. Next, sample and hold circuit 1 is connected to multiplexer 14.
Select the 0-2 side and cause the ADD converter 16 to start AD conversion. After a certain period of time required for AD conversion has elapsed, the conversion result of the ADD converter 16 is stored in the register 18-2.

この結果、レジスタ18−1には入力AのAD変換結果
が、レジスタ18−2には入力CのAD変換結果が格納
されたことになる。このようなAD変換を終了するとシ
ーケンス制御回路20はビジー制御回路24に対する制
御信号を解除してビジー信号をネガティブに戻す。マイ
クロプロセッサ26はビジー制御回路24からのビジー
信号を監視しており、ビジー信号がアクティブからネガ
ティブに変化したことを検出するとレジスタ18−1の
内容をバス28を介して読み取り、続いてレジスタ18
−2の内容を読み取り、一連のAD変換処理を終了する
As a result, the AD conversion result of input A is stored in register 18-1, and the AD conversion result of input C is stored in register 18-2. When such AD conversion is completed, the sequence control circuit 20 releases the control signal to the busy control circuit 24 and returns the busy signal to negative. The microprocessor 26 monitors the busy signal from the busy control circuit 24, and when it detects that the busy signal changes from active to negative, it reads the contents of register 18-1 via bus 28 and then reads the contents of register 18-1.
-2 is read and the series of AD conversion processing is completed.

次に第4図のモード3に示すアナログ入力AのみのAD
変換動作を説明する。
Next, AD with only analog input A shown in mode 3 in Figure 4.
The conversion operation will be explained.

マイクロプロセッサ26はコントロールレジスタ22に
アナログ入力信号AのみをサンプリングしてAD変換す
ることを指示する制御コード「010」を書き込み、マ
イクロプロセッサ26がスタート信号をアクティブにす
るとシーケンス制御回路20はビジー制御回路24に制
御信号を出力してビジー信号をアクティブ状態とし、同
時にコントロールレジスタ22の内容r010Jに応じ
て、まずマルチプレクサ12−1で入力へを選択し、サ
ンプルホールド回路10−1のサンプリング動作を開始
し、サンプリングに要する一定時間経過後にサンプルホ
ールド回路10−1のサンプリング動作を終了して出力
を保持する。次に、マルチプレクサ14でサンプルホー
ルド回路1〇=1側を選択してADコンツバタ16によ
るAD変換を開始させる。AD変換に必要な一定時間経
過後、AD変変換土工6らの変換結果をレジスタ18−
1に格納する。これによりレジスタ18−1には入力A
のAD変換結果が格納されたことになる。ここでシーケ
ンス制御回路20はビジー制御回路24に対する制御信
号をオフしてビジー信号をネガティブに戻す。ビジー信
号がネガティブになったことをマイクロプロセッサ26
が検出すると、マイクロプロセッサ26はバス28を介
してレジスタ18−1の内容を読み取り、一連の処理を
終了する。
The microprocessor 26 writes a control code "010" instructing to sample and AD convert only the analog input signal A to the control register 22, and when the microprocessor 26 activates the start signal, the sequence control circuit 20 becomes a busy control circuit. 24 to make the busy signal active, and at the same time, according to the content r010J of the control register 22, input is first selected by the multiplexer 12-1 and the sampling operation of the sample-and-hold circuit 10-1 is started. After a certain period of time required for sampling has elapsed, the sampling operation of the sample and hold circuit 10-1 is terminated and the output is held. Next, the multiplexer 14 selects the sample hold circuit 10=1 side, and the AD converter 16 starts AD conversion. After a certain period of time required for AD conversion has elapsed, the conversion results of AD conversion earthwork 6 etc. are stored in register 18-.
Store in 1. As a result, register 18-1 has input A.
This means that the AD conversion results are stored. Here, the sequence control circuit 20 turns off the control signal to the busy control circuit 24 and returns the busy signal to negative. The microprocessor 26 indicates that the busy signal has gone negative.
When detected, the microprocessor 26 reads the contents of the register 18-1 via the bus 28, and ends the series of processing.

同様にしてマイクロプロセッサ26がコントロールレジ
スタ22の内容を書き替えることで入力B、Dを同時に
サンプリングして連続的にAD変換するモード2(制御
コード001)、入力BのみのサンプリングとAD変換
を行なうモード4(制御コード011)、入力Cのみの
サンプリングとAD変換を行なうモード5(制御コード
100)、及び入力りのみのサンプリングとAD変換を
行なうモード6(制御コード101)についても同様に
して行なうことができる。
Similarly, the microprocessor 26 rewrites the contents of the control register 22 to perform mode 2 (control code 001) in which inputs B and D are sampled simultaneously and AD converted continuously, and sampling and AD conversion of only input B is performed. The same procedure is performed for mode 4 (control code 011), mode 5 (control code 100) that performs sampling and AD conversion of only input C, and mode 6 (control code 101) that performs sampling and AD conversion of only input C. be able to.

ここで、第4図の動作タイミングチャートから明らかな
ように、モード1,2の2入力のAD変換に要する処理
時間T1に対し、モード3〜6の1入力のAD変換に要
する処理時間T2は、モト1,2における2回目のAD
変換とレジスタ格納を除いた時間となる。この結果、2
入力のAD変換に対し1入力のAD変換の処理時間は略
半分に短縮することができる。
Here, as is clear from the operation timing chart in FIG. 4, the processing time T2 required for AD conversion of one input in modes 3 to 6 is the processing time T1 required for AD conversion of two inputs in modes 1 and 2. , second AD in motos 1 and 2
This time excludes conversion and register storage. As a result, 2
The processing time for AD conversion of one input can be reduced to approximately half that of AD conversion of input.

一方、2入力の場合には1入力の略2倍の処理時間T1
を要するが、マイクロプロセッサ26はAD変換回路1
00の処理時間には拘束されない。
On the other hand, in the case of two inputs, the processing time T1 is approximately twice that of one input.
However, the microprocessor 26 is connected to the AD conversion circuit 1.
It is not restricted to the processing time of 00.

即ち、マイクロプロセッサ26がスタート信号をアクテ
ィブ状態にすると、ビジー制御回路24からのビジー信
号がAD変換処理が行なわれている間アクティブ状態と
なり、ビジー信号がアクティブ状態となっている間、マ
イクロプロセッサ26は他の制御処理を行なうことがで
き、ビジー信号がネガティブ状態に戻ったことを検出し
てレジスタ18−1.18−2の読み取りを行なえばよ
いからである。このため、マイクロプロセッサ26のA
D変換処理に要する時間的損失とソフトウェア負担を低
減し、マイクロプロセッサ26の利用効率を高めること
ができるようにしている。
That is, when the microprocessor 26 makes the start signal active, the busy signal from the busy control circuit 24 becomes active while AD conversion processing is being performed, and while the busy signal is in the active state, the microprocessor 26 This is because the register 18-1, 18-2 can perform other control processing, and the registers 18-1 and 18-2 can be read upon detecting that the busy signal has returned to the negative state. Therefore, the A of the microprocessor 26
The time loss and software load required for D conversion processing are reduced, and the utilization efficiency of the microprocessor 26 can be increased.

尚、上記の実施例はサンプルホールド回路を2つ設ける
ことで2入力のAD変換を可能とするAD変換回路を例
にとるものであったが、本発明はこれに限定されず、同
時にAD変換を行なう入力数に対応した回路構成を自由
に構成することができる。
Although the above embodiment takes as an example an AD conversion circuit that enables AD conversion of two inputs by providing two sample and hold circuits, the present invention is not limited to this, and can perform AD conversion at the same time. It is possible to freely construct a circuit configuration corresponding to the number of inputs to be performed.

また、上記の実施例では、マイクロプロセッサ26はコ
ントロールレジスタ22にAD変換のモードを示すコー
ドを書き込んでからAD変換のスタートを行なっている
が、コントロールレジスタ22の書き込みとAD変換の
スタートを同じタイミングで行なうこともできる。
Furthermore, in the above embodiment, the microprocessor 26 starts AD conversion after writing the code indicating the AD conversion mode to the control register 22, but the writing to the control register 22 and the start of AD conversion are performed at the same timing. You can also do it with

[発明の効果] 以上説明してきたように本発明によれば、外部からの制
御コードの設定により複数入力の中の任意の1入力また
は任意の複数入力のAD変換を必要に応じて効率良く行
なうことができる。また、サンプルホールド部及びレジ
スタは同時変換を必要とする入力数分、必要となるが、
回路全体に占める割合の大きいAD変換部は1回路で済
み、高い経済性を実現できる。
[Effects of the Invention] As described above, according to the present invention, AD conversion of any one input among multiple inputs or any plurality of inputs can be efficiently performed as necessary by setting a control code from the outside. be able to. In addition, sample and hold sections and registers are required for the number of inputs that require simultaneous conversion, but
The AD conversion section, which occupies a large proportion of the entire circuit, only needs to be one circuit, making it possible to achieve high economic efficiency.

更に、外部に対しAD変換処理の開始から終了を示す信
号(ビジー信号)を出力していることから、AD変換回
路側の処理時間に外部装置が拘束されることなく、処理
終了後に任意のタイミングで変換結果を取り出すことが
でき、AD変換処理に外部の制御処理が拘束されない利
点を有する。
Furthermore, since a signal (busy signal) indicating the start and end of AD conversion processing is output to the outside, the external device is not restricted by the processing time on the AD conversion circuit side, and can be used at any timing after the processing is completed. This method has the advantage that external control processing is not restricted to AD conversion processing.

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

第1図は本発明の原理説明図; 第2図は本発明の実施例構成図; 第3図は本発明の制御モード説明図; 第4図は本発明の動作チイミングチャートである。 図中、 0−110−2.10−n +サンプルホールド部(回
路)2−112−212−n:第1マルチプレクサ4:
第2マルチプレクサ 6:AD変換部(AD変換器) 8−1.18−218−n :レジスタ20ニジーケン
ス制御部(回路) 22:制御レジスタ(コントロールレジスタ)24:ビ
ジー制御回路 26二マイクロプロセツサ 28:バス 100:AD変換回路
FIG. 1 is a diagram illustrating the principle of the present invention; FIG. 2 is a configuration diagram of an embodiment of the present invention; FIG. 3 is a diagram illustrating a control mode of the present invention; FIG. 4 is an operation timing chart of the present invention. In the figure, 0-110-2.10-n + sample hold section (circuit) 2-112-212-n: first multiplexer 4:
2nd multiplexer 6: AD conversion section (AD converter) 8-1.18-218-n: Register 20 sequence control section (circuit) 22: Control register (control register) 24: Busy control circuit 26 2 microprocessor 28 : Bus 100: AD conversion circuit

Claims (2)

【特許請求の範囲】[Claims] (1)アナログ入力信号をサンプリングして保持する複
数のサンプルホールド部(10−1〜10−n)と;該
複数のサンプルホールド部(10−1〜10−n)の各
々に、少なくとも2つのアナログ入力信号の一方を選択
して入力する複数の第1マルチプレクサ(12−1〜1
2−n); 前記複数のサンプルホールド部(10−1〜10−n)
の出力の1つを選択する第2マルチプレクサ(14)と
; 該第2マルチプレクサ(14)の出力信号をデジタル信
号に変換するAD変換部(16)と; 該AD変換部(16)の変換信号を格納する複数のレジ
スタ(18−1〜18−n)と;前記第1マルチプレク
サ(12−1〜12−n)、サンプルホールド部(10
−1〜10−n)、第2マルチプレクサ(14)、AD
変換部(16)及びレジスタ(18−1〜18−n)を
外部からのスタート信号による動作開始で時系列的に制
御するシーケンス制御部(20)と;外部から制御コー
ドの設定を受け、前記シーケンス制御部(20)の制御
モードを該制御コードに従って決定する制御レジスタ(
22)と; を備え、該制御レジスタ(22)の制御コードの内容に
より1入力のAD変換と複数入力のAD変換を選択的に
行うことを特徴とするAD変換回路。
(1) A plurality of sample hold sections (10-1 to 10-n) that sample and hold analog input signals; each of the plurality of sample hold sections (10-1 to 10-n) has at least two A plurality of first multiplexers (12-1 to 1) that select and input one of the analog input signals;
2-n); the plurality of sample hold units (10-1 to 10-n);
a second multiplexer (14) that selects one of the outputs; an AD converter (16) that converts the output signal of the second multiplexer (14) into a digital signal; and a converted signal of the AD converter (16). a plurality of registers (18-1 to 18-n) storing; the first multiplexer (12-1 to 12-n); a sample hold unit (10
-1 to 10-n), second multiplexer (14), AD
a sequence control unit (20) that controls the conversion unit (16) and the registers (18-1 to 18-n) in a time-series manner by starting the operation based on an external start signal; a control register (20) that determines the control mode of the sequence control unit (20) according to the control code;
22) and ; An AD conversion circuit characterized in that it selectively performs AD conversion for one input and AD conversion for multiple inputs depending on the contents of the control code of the control register (22).
(2)前記シーケンス制御回路(20)によるAD変換
動作中を示すビジー信号を外部に出力するビジー制御回
路(24)を設けたことを特徴とする請求項1記載のA
D変換回路。
(2) A according to claim 1, further comprising a busy control circuit (24) that outputs a busy signal indicating that the sequence control circuit (20) is performing an AD conversion operation to the outside.
D conversion circuit.
JP1672890A 1990-01-26 1990-01-26 A/d converter circuit Pending JPH03220917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1672890A JPH03220917A (en) 1990-01-26 1990-01-26 A/d converter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1672890A JPH03220917A (en) 1990-01-26 1990-01-26 A/d converter circuit

Publications (1)

Publication Number Publication Date
JPH03220917A true JPH03220917A (en) 1991-09-30

Family

ID=11924327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1672890A Pending JPH03220917A (en) 1990-01-26 1990-01-26 A/d converter circuit

Country Status (1)

Country Link
JP (1) JPH03220917A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05252033A (en) * 1992-03-06 1993-09-28 Mitsubishi Electric Corp A/d converter
WO2004076876A1 (en) * 1995-08-31 2004-09-10 Masayuki Yamamoto Magnetic bearing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05252033A (en) * 1992-03-06 1993-09-28 Mitsubishi Electric Corp A/d converter
WO2004076876A1 (en) * 1995-08-31 2004-09-10 Masayuki Yamamoto Magnetic bearing

Similar Documents

Publication Publication Date Title
US20050219103A1 (en) Apparatus and method of analog-to-digital conversion
KR960035837A (en) Semiconductor integrated circuit device and control system
WO2007088706A1 (en) Analog/digital converter
JPH03220917A (en) A/d converter circuit
KR910009090A (en) Circuits for Continuously Processing Video Signals in Synchronous Vector Processors and Their Operation Methods
JPH01147618A (en) Analog/digital converter
US5305439A (en) Method and apparatus for time-shared processing of different data word sequences
JPH0664517B2 (en) Hold type analog input data acquisition method
JPH04306919A (en) A/d converter
JPS62133A (en) Analog-digital converter
JPS5882336A (en) Information array device
JPH08316836A (en) Signal processing circuit
JPS59105714A (en) Analog/digital converter
JPS60211533A (en) Analog-digital converter
SU1383330A1 (en) Data input device
JP2853203B2 (en) Audio signal delay device
JPS63114321A (en) Ad converter
JP3033334B2 (en) Data storage device
JPH05315958A (en) Analog input device
JPH05110399A (en) Multiplexer input changeover device
JPS60185285A (en) Large capacity memory circuit
JPH05266218A (en) Analog-digital conversion controller
JPS6429918U (en)
JPH08123622A (en) A/d conversion method and device therefor
JPS58217031A (en) Program load controlling system