JP2896207B2 - A / D converter - Google Patents

A / D converter

Info

Publication number
JP2896207B2
JP2896207B2 JP18844890A JP18844890A JP2896207B2 JP 2896207 B2 JP2896207 B2 JP 2896207B2 JP 18844890 A JP18844890 A JP 18844890A JP 18844890 A JP18844890 A JP 18844890A JP 2896207 B2 JP2896207 B2 JP 2896207B2
Authority
JP
Japan
Prior art keywords
conversion
conversion request
signal
channel
request
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.)
Expired - Lifetime
Application number
JP18844890A
Other languages
Japanese (ja)
Other versions
JPH0477117A (en
Inventor
浩 福岡
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP18844890A priority Critical patent/JP2896207B2/en
Publication of JPH0477117A publication Critical patent/JPH0477117A/en
Application granted granted Critical
Publication of JP2896207B2 publication Critical patent/JP2896207B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明はA/D(アナログ・デジタル)変換装置に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial application field) The present invention relates to an A / D (analog / digital) converter.

(従来の技術) 従来、各種要求要因により発生するA/D変換要求をそ
の優先順位に従って処理するA/D変換装置がある。
(Prior Art) Conventionally, there is an A / D conversion apparatus that processes A / D conversion requests generated by various request factors in accordance with their priorities.

第3図はその従来例を示すものである。 FIG. 3 shows a conventional example.

この図において、1はA/D変換制御回路、2はアナロ
グ入力チャネルマルチプレクサ、3はA/Dコンバータ、
4は読出し・書込み(以下、R/Wという。)制御回路、
5はデータ格納レジストである。
In this figure, 1 is an A / D conversion control circuit, 2 is an analog input channel multiplexer, 3 is an A / D converter,
4 is a read / write (hereinafter referred to as R / W) control circuit,
Reference numeral 5 denotes a data storage resist.

図外のCPUからのA/D変換要求はA/D変換制御回路1に
より受付けられ、このA/D変換制御回路1からマルチプ
レクサ2にチャネル選択信号が与えられ、A/Dコンバー
タ3にA/D変換開始信号が与えられ、しかもR/W制御回路
4に書込み制御信号が与えられる。
An A / D conversion request from a CPU (not shown) is accepted by an A / D conversion control circuit 1, a channel selection signal is given from the A / D conversion control circuit 1 to a multiplexer 2, and an A / D converter 3 A D conversion start signal is supplied, and a write control signal is supplied to the R / W control circuit 4.

すると、マルチプレクサ2はチャネル選択信号で指示
されているチャネルの入力アナログ信号をA/Dコンバー
タ3に与え、このA/Dコンバータ3はA/D変換開始信号に
応答して入力アナログ信号のA/D変換を行う。
Then, the multiplexer 2 supplies the input analog signal of the channel designated by the channel selection signal to the A / D converter 3, and the A / D converter 3 responds to the A / D conversion start signal to output the analog signal of the input analog signal. Perform D conversion.

そのデジタルデータはR/W制御回路4に与えられ、こ
のR/W制御回路4は書込み制御信号に応答してA/Dコンバ
ータ3からのデジタルデータをレジスタ5に書込む。
The digital data is supplied to the R / W control circuit 4, which writes the digital data from the A / D converter 3 to the register 5 in response to the write control signal.

A/Dコンバータ3はそのA/D変換処理が完了するとA/D
変換完了信号をA/D変換制御回路1に与える。これを受
けたA/D変換制御回路1は上記CPUに終了通知を送る。こ
れにより一つのA/D変換処理が完了することになる。
When the A / D conversion process is completed, the A / D converter 3
The conversion completion signal is given to the A / D conversion control circuit 1. Upon receiving this, the A / D conversion control circuit 1 sends an end notification to the CPU. Thus, one A / D conversion process is completed.

このCPUは、かかるA/D変換装置を用いて上記優先度制
御を達成すべく、あるA/D変換要求についてのA/D変換中
に他のA/D変換要求が発生した場合、両者の優先度に従
って、現在実行中のA/D変換を打ち切り新たなA/D変換要
求について上記A/D変換制御を行うか、あるいは新たなA
/D変換要求は覚えておいて現在実行中のA/D変換が終了
した後に行うようにする。
In order to achieve the above priority control using the A / D conversion device, the CPU, when another A / D conversion request occurs during the A / D conversion for a certain A / D conversion request, According to the priority, the currently executing A / D conversion is aborted, the A / D conversion control is performed for a new A / D conversion request, or a new A / D conversion
Remember that the / D conversion request is made after the currently executing A / D conversion is completed.

実行中のA/D変換処理を途中で打切った場合には、打
切ったA/D変換要求を覚えておき、割込んだA/D変換処理
の処理が完了した後に、上記の制御をその打切ったA/D
変換要求に対して行うことによりその処理を再開する。
If the running A / D conversion process is aborted halfway, remember the A / D conversion request that was aborted, and after completing the interrupted A / D conversion process, perform the above control. A / D that was discontinued
The processing is resumed by performing the conversion request.

このように上記従来の装置によっても、CPUの制御の
下で、A/D変換処理の優先度制御を達成することができ
る。
As described above, even with the above-described conventional device, the priority control of the A / D conversion process can be achieved under the control of the CPU.

しかしながら、優先度の制御はCPUにより行うから、
優先度による変換の順序や変換開始命令を出すタイミン
グはソフトウエアにより管理しなければならず、その間
はCPUの処理が妨げられ、この問題は変換要求の種類に
よっては深刻なものとなる。
However, since priority control is performed by the CPU,
The order of conversion according to the priority and the timing of issuing the conversion start command must be managed by software, during which processing of the CPU is hindered, and this problem becomes serious depending on the type of conversion request.

つまり、一つの変換処理はマルチプレクサ2の一のチ
ャネルの電圧信号を変換せよ、という形で成されるが、
各種変換要求の中には一つの要求でその変換処理を複数
行うものがある。このような場合、その分、長くCPUの
制御を仰がなければならないのである。
That is, one conversion process is performed by converting the voltage signal of one channel of the multiplexer 2.
Among various conversion requests, there is a request for performing a plurality of conversion processes by one request. In such a case, you have to spend more time controlling the CPU.

また、一の変換要求の処理を打切って他の変換要求の
処理を開始する場合にはレジスタ5から一の変換要求の
処理によるデータを退避させ、そのA/D変換を再開する
ときには、再度最初からその処理を行なわなければなら
ないため、中断前に済んでいた途中までの処理は無駄に
なるという問題がある。
When the processing of one conversion request is terminated and the processing of another conversion request is started, the data by the processing of one conversion request is saved from the register 5, and when the A / D conversion is restarted, Since the processing must be performed from the beginning, there is a problem that the processing that has been performed halfway before the interruption is wasted.

すなわち、上記のような複数の変換処理を行う要求
で、処理が済んでいる幾つかの変換処理は無効となるの
である。
That is, a request for performing a plurality of conversion processes as described above invalidates some processed conversion processes.

(発明が解決しようとする課題) このように上述のA/D変換装置は、変換要求が多いほ
どCPUが専有されて他の処理が停滞するという問題があ
るとともに、中断したA/D変換を再開するときには、再
度最初からその処理を行なわなければならないため、中
断前に済んでいた途中までの処理は無駄になるという問
題があった。
(Problems to be Solved by the Invention) As described above, the above-described A / D converter has a problem that the more conversion requests are made, the more CPU is occupied and other processes are stagnated, and the A / D conversion that has been interrupted is performed. When restarting, the process must be performed again from the beginning, so that there has been a problem that the process that has been completed halfway before the interruption is wasted.

本発明は、上記問題点に鑑みてなされたもので、その
目的とするところは、ハードウエアによる優先制御を可
能としたA/D変換装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide an A / D converter that enables priority control by hardware.

さらに本発明は、中断した処理を再開する場合に、あ
る変換要求の処理を中断した場合でも処理済みのデータ
は無駄にすることなくその要求に対する処理を再開させ
ることができるA/D変換装置を提供することにある。
Further, the present invention provides an A / D conversion device capable of resuming processing of a request without wasting processed data even when processing of a certain conversion request is interrupted when resuming interrupted processing. To provide.

〔発明の構成〕[Configuration of the invention]

(課題を解決するための手段) 本発明に係るA/D変換装置は、複数のチャネルからア
ナログ信号が入力され、これら複数のチャネルのうちの
1つのチャネルをチャネル選択信号に基づいて選択し、
この選択したチャネルのアナログ信号を入力アナログ信
号として出力するチャネル選択手段と、複数の変換要求
各々に対設され、各々対応する変換要求を受信保持する
複数の変換要求記憶手段であって、変換要求を処理する
ための優先順位がそれぞれ異なる複数の変換要求記憶手
段と、前記複数の変換要求記憶手段各々に対設され、前
記チャネル選択手段で選択するチャネルを記憶し、前記
チャネル選択手段へ前記チャネル選択信号として出力す
る、複数の変換チャネル記憶手段と、前記チャネル選択
手段から前記入力アナログ信号が入力されるとともに、
変換開始信号に応答して入力アナログ信号をデジタル信
号に変換してデータとして出力する、変換手段と、この
デジタル信号に変換されたデータを格納するためのデー
タ格納手段と、前記複数の変換要求記憶手段のうち1以
上に変換要求が保持され且つ前記複数の要求記憶手段の
うちのいずれか1つの状態が更新されたとき、前記複数
の変換要求記憶手段のうち最も優先順位の高い変換要求
記憶手段に記憶されている変換要求を処理すべく、最も
優先順位の高い変換要求記憶手段に対設した変換チャネ
ル記憶手段を選択し、この選択した変換チャネル記憶手
段に記憶されているチャネルを前記チャネル選択信号と
して前記チャネル選択手段へ出力するように制御する、
優先制御手段と、この優先制御手段により選択したチャ
ネルのアナログ信号をデジタル信号に変換するための処
理を開始する信号である前記変換開始信号を前記変換手
段へ出力する開始制御手段と、前記変換手段により1つ
の変換要求の処理が終了したときに、前記複数の変換要
求記憶手段のうちの該当する変換要求をクリアする、終
了制御手段と、を備えていることを特徴とする。
(Means for Solving the Problems) In an A / D converter according to the present invention, an analog signal is input from a plurality of channels, and one of the plurality of channels is selected based on a channel selection signal.
Channel conversion means for outputting an analog signal of the selected channel as an input analog signal; and a plurality of conversion request storage means provided for each of the plurality of conversion requests for receiving and holding the corresponding conversion request. A plurality of conversion request storage units each having a different priority for processing, and a plurality of conversion request storage units, each of which is provided in correspondence with the plurality of conversion request storage units and stores a channel to be selected by the channel selection unit. Output as a selection signal, a plurality of conversion channel storage means, and while the input analog signal is input from the channel selection means,
Conversion means for converting an input analog signal into a digital signal in response to a conversion start signal and outputting the data as data, data storage means for storing the data converted into the digital signal, and the plurality of conversion request storages A conversion request storage unit having the highest priority among the plurality of conversion request storage units when a conversion request is held in one or more of the units and a state of any one of the plurality of request storage units is updated; In order to process the conversion request stored in the conversion request storage means, a conversion channel storage means connected to the conversion request storage means having the highest priority is selected, and the channel stored in the selected conversion channel storage means is selected by the channel selection. Controlling to output to the channel selection means as a signal,
Priority control means, start control means for outputting the conversion start signal, which is a signal for starting processing for converting an analog signal of a channel selected by the priority control means to a digital signal, to the conversion means, and the conversion means And a termination control unit for clearing the corresponding conversion request from the plurality of conversion request storage units when the processing of one conversion request is completed.

また、請求項2に係るA/D変換装置は、デジタル信号
に変換されたデータを格納する前記データ格納手段は、
前記複数の変換要求記憶手段に対設して複数設けられて
おり、変換された前記データを格納する際には、変換要
求の処理をしている前記変換要求記憶手段に対設する前
記データ格納手段に格納する、ことを特徴とする。
The A / D converter according to claim 2, wherein the data storage means for storing data converted into a digital signal,
A plurality of the conversion request storage means are provided opposite to each other, and when storing the converted data, the data storage corresponding to the conversion request storage means for processing the conversion request is provided. Stored in the means.

(作 用) 本発明によれば、A/D変換装置に、変換要求を処理す
るための優先順位がそれぞれ異なる複数の変換要求記憶
手段と、これら複数の変換要求記憶手段に1以上の変換
要求が保持された場合にその優先順位を制御して、優先
順位の高い変換要求から変換処理を開始する優先制御手
段とを設けたので、CPUは変換要求を出力しておくだけ
で良くなり、その後は他の処理を実行することができる
ようになり、変換要求の優先制御のために生ずる他の処
理の停滞が防止される。
(Operation) According to the present invention, a plurality of conversion request storage units having different priorities for processing conversion requests, and one or more conversion request storage units are stored in the plurality of conversion request storage units. When the priority is held, the priority is controlled, and the priority control means for starting the conversion process from the conversion request having the higher priority is provided, so that the CPU only needs to output the conversion request, and thereafter, Can execute other processing, and stagnation of other processing caused by priority control of conversion requests can be prevented.

また、デジタル信号に変換されたデータを格納するデ
ータ格納手段を、複数の変換要求記憶手段に対設して複
数設け、変換されたデータを格納する際には、変換要求
の処理をしている変換要求記憶手段に対設するデータ格
納手段に格納することとしたので、ある変換要求の処理
を中断したときでも、中断した処理を再開する場合に、
処理済みのデータは無駄にすることなくその要求に対す
る処理を再開する。
In addition, a plurality of data storage means for storing data converted into digital signals are provided opposite to the plurality of conversion request storage means, and when storing the converted data, a conversion request process is performed. Since the data is stored in the data storage means provided opposite the conversion request storage means, even when the processing of a certain conversion request is interrupted, when the interrupted processing is resumed,
The processing for the request is resumed without wasting the processed data.

(実施例) 以下に本発明の実施例について図面を参照しつつ説明
する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例に係るA/D変換装置を示す
もので、ここでは、3個のA/D変換要求〜を取扱う
ものとして構成している。
FIG. 1 shows an A / D conversion apparatus according to an embodiment of the present invention, which is configured to handle three A / D conversion requests.

この図において、6はR/W制御回路、71〜73はデータ
格納レジスタであり、レジスタ71〜73は各A/D変換要求
(〜)に対応して設けられているもので、A/Dコン
バータ3からのデジタルデータはR/W制御回路6によっ
て各A/D変換要求(〜)に対応するレジスタ71(〜7
3)に書込まれるようになっている。
In this figure, 6 is an R / W control circuit, 71 to 73 are data storage registers, and the registers 71 to 73 are provided corresponding to each A / D conversion request ((). The digital data from the converter 3 is converted by the R / W control circuit 6 into registers 71 (to 7) corresponding to each A / D conversion request (to).
3) is written.

81〜83はステータス回路であり、これらステータス回
路81〜83は各A/D変換要求S1〜S3に対設されているもの
で、その各々は変換要求記憶部81a(83a)と変換チャネ
ル記憶部81b(〜83b)とを有する。各ステータス回路81
(〜83)は、対応するA/D変換要求信号S1(〜S3)を受
けると変換要求記憶部81a(〜83a)に変換要求フラッグ
F1(〜F3)をセットし、この変換要求記憶部81a(〜83
a)から“H"を出力するようになる。また各ステータス
回路81(〜83)はそのチャネル記憶部81b(〜83b)にマ
ルチプレクサ2における変換チャネルをBCDコードとし
て保持し、これをトライステートバッファ91(〜93)を
介してそのマルチプレクサ2に出力する。
Numerals 81 to 83 denote status circuits. These status circuits 81 to 83 are provided for the respective A / D conversion requests S1 to S3, and each of them is a conversion request storage unit 81a (83a) and a conversion channel storage unit. 81b (up to 83b). Each status circuit 81
(〜83) receives the corresponding A / D conversion request signal S1 (〜S3), and stores the conversion request flag in the conversion request storage unit 81a (〜83a).
F1 (~ F3) is set, and the conversion request storage unit 81a (~ 83
"H" is output from a). Each status circuit 81 (.about.83) holds the conversion channel in the multiplexer 2 as a BCD code in its channel storage section 81b (.about.83b) and outputs this to the multiplexer 2 via a tristate buffer 91 (.about.93). I do.

101(〜103)は変換要求ゲート回路であり、変換要求
記憶部81a〜83a各々に対設され、変換要求入力端にフラ
ッグ信号F1(〜F3)としての“H"を受け且つ実行許可入
力端にイネーブル信号E1(〜E3)ととしての“H"を受け
たときのみ対応する変換要求について変換要求信号S1′
(〜S3′)としての“H"をA/D変換制御回路11に供給す
る。
Reference numeral 101 (-103) denotes a conversion request gate circuit, which is provided for each of the conversion request storage units 81a-83a, receives "H" as the flag signal F1 (-F3) at the conversion request input terminal, and receives an execution permission input terminal. A conversion request signal S1 'corresponding to a conversion request corresponding only when receiving "H" as an enable signal E1 (-E3).
“H” as (〜S3 ′) is supplied to the A / D conversion control circuit 11.

この変換要求ゲート回路101〜103の出力は、対応する
トライステートバッファ91(〜93)にオン・オフ制御信
号として供給されており、変換要求信号S1′(〜3′)
の変換チャネルがマルチプレクサ2に供給されるように
なっている。
The outputs of the conversion request gate circuits 101 to 103 are supplied to corresponding tri-state buffers 91 (to 93) as on / off control signals, and the conversion request signals S1 '(to 3').
Are supplied to the multiplexer 2.

12は最上位検出回路であり、この最上位検出回路12に
はフラッグ信号F1〜F3が入力されるようになっている。
この最上位検出回路12は3つのA/D変換要求〜につ
いて定められている優先順位データを保持し、変換要求
記憶部81a〜83aに新たにフラッグがセットされる、つま
り新たな変換要求を受けるか、あるいは後述するA/D変
換制御回路11からの終了通知信号を受けると、現在受け
ている変換要求が一つの場合にはその変換要求に対応す
る変換要求ゲート回路101(〜103)にイネーブル信号E1
(〜E3)を出力し、現在受けている変換要求が複数の場
合にはその複数の変換要求について優先順位の比較を行
い、その優先順位が最上位の変換要求に対応する変換要
求ゲート回路101(〜103)にイネーブル信号E1(〜E3)
を出力する。
Reference numeral 12 denotes an uppermost detection circuit to which the flag signals F1 to F3 are input.
The highest-order detection circuit 12 holds priority data defined for the three A / D conversion requests and sets a new flag in the conversion request storage units 81a to 83a, that is, receives a new conversion request. Alternatively, upon receiving an end notification signal from the A / D conversion control circuit 11 described later, if only one conversion request is currently received, the conversion request gate circuit 101 (to 103) corresponding to that conversion request is enabled. Signal E1
(-E3), and when a plurality of conversion requests are currently received, the priority of the plurality of conversion requests is compared, and the conversion request gate circuit 101 having the highest priority corresponds to the highest conversion request. (~ 103) to enable signal E1 (~ E3)
Is output.

A/D変換制御回路11には変換要求ゲート回路101〜103
からのA/D変換要求信号S1′〜S3′が入力され、このA/D
変換制御回路11は、A/D変換要求信号S1′〜S3′のいず
れかを受付けると、A/D変換モードとなって、A/D変換開
始信号をA/Dコンバータ3に与え、かつ、チャネル書替
え信号d1(〜d3)を変換チャネル記憶部81b(〜83b)に
与え、しかも書込み開始信号及び書込みレジスタ選択信
号をR/W制御回路6に与える。チャネル書替え信号d1
(〜d3)は、対応するチャネル記憶部81b(〜83b)に変
換チャネルを書込む信号であり、一の変換要求で複数チ
ャネルを変換する場合には、1回の変換が終ると、チャ
ネルデータを書替え、マルチプレクサ2へ入力する変換
チャネルを切換えるようになっている。A/Dコンバータ
3は、変換開始信号に応答して入力されるアナログ信号
についてA/D変換を行なう。書込み開始信号を受けて起
動しているR/W制御回路6は書込みレジスタ選択信号に
より指定されるレジスタ71(〜73)にA/Dコンバータ3
から送られてくるデジタルデータを書込むようになって
おり、このときのA/D変換要求が複数の変換処理を連続
して行うものの場合、一つの処理毎に逐次書込むように
なっている。
The A / D conversion control circuit 11 has conversion request gate circuits 101 to 103.
A / D conversion request signals S1 'to S3' from
Upon receiving any of the A / D conversion request signals S1 'to S3', the conversion control circuit 11 enters the A / D conversion mode, and supplies an A / D conversion start signal to the A / D converter 3, and The channel rewrite signal d1 (〜d3) is provided to the conversion channel storage unit 81b (〜83b), and the write start signal and the write register selection signal are provided to the R / W control circuit 6. Channel rewrite signal d1
(〜D3) is a signal for writing a conversion channel to the corresponding channel storage unit 81b (〜83b). When a plurality of channels are converted by one conversion request, channel data is converted after one conversion. Is rewritten, and the conversion channel input to the multiplexer 2 is switched. The A / D converter 3 performs A / D conversion on an analog signal input in response to the conversion start signal. The R / W control circuit 6 activated in response to the write start signal sends the A / D converter 3 to the register 71 (to 73) designated by the write register selection signal.
The digital data sent from is written, and if the A / D conversion request at this time is one that performs multiple conversion processes in succession, it is written sequentially for each process .

また、A/D変換制御回路11は、ある変換要求についてA
/D変換モード中に他のA/D変換要求信号S1′(〜S3′)
を受けると、この新たな変換要求に応答して、改めてA/
D変換モードとなる。
In addition, the A / D conversion control circuit 11
Other A / D conversion request signal S1 '(~ S3') during / D conversion mode
In response to this new conversion request, A /
It becomes the D conversion mode.

すなわち、変換開始信号、書込み開始信号が新たなA/
D変換要求S1′(〜S3′)について改めて出力されると
共に、チャネル書替え信号d1(〜d3)及び書込みレジス
タ選択信号を新たなA/D変換要求S1′(〜S3′)に対し
てのものに切換えるようになっている。
That is, the conversion start signal and the write start signal
The D-request S1 '(-S3') is output again, and the channel rewrite signal d1 (-d3) and the write register selection signal are sent to the new A / D conversion request S1 '(-S3'). Is switched to.

次に、上記のように構成されたA/D変換装置の動作に
ついて第2図をも参照しつつ説明する。
Next, the operation of the A / D converter configured as described above will be described with reference to FIG.

まず、同図(イ)に示すように時刻t1において変換要
求のフラッグF1がセットされたとする。すると、これ
が最上位検出回路12によって検出され、このとき他の要
求,のフラッグF2,F3はセットされていないため、
ゲート回路101にイネーブル信号E1が入力され、このゲ
ート回路101から変換要求S1′がA/D変換制御回路11に供
給される。そして、これを受けたA/D変換制御回路11は
同図(ト)に示すように変換開始信号を出力するととも
に、チャネル書替え信号d1をチャネル記憶部81bに入力
し、書込み開始信号及びレジスタ選択信号をR/W制御回
路6に入力する。また、変換要求S1′はトライステート
バッファ91にも与えられているため、これがオンとなっ
て、変換チャネル記憶部81bからのチャネルデータがマ
ルチプレクサ2に与えられる。
First, it is assumed that the conversion request flag F1 is set at time t1 as shown in FIG. Then, this is detected by the highest-order detection circuit 12, and at this time, the flags F2 and F3 of other requests are not set.
The enable signal E1 is input to the gate circuit 101, and the conversion request S1 'is supplied from the gate circuit 101 to the A / D conversion control circuit 11. Then, the A / D conversion control circuit 11 receiving this outputs a conversion start signal and a channel rewrite signal d1 to the channel storage unit 81b as shown in FIG. The signal is input to the R / W control circuit 6. Further, since the conversion request S1 'is also supplied to the tri-state buffer 91, it is turned on, and the channel data from the conversion channel storage unit 81b is supplied to the multiplexer 2.

これにより、マルチプレクサ2からA/Dコンバータ3
に変換要求の指定するチャネルの信号が供給され、A/
Dコンバータ3はその信号をデジタル信号に変換する。R
/W制御回路6はそのデジタル信号をレジスタ選択信号の
指定するレジスタ71に書込む。
Thereby, the A / D converter 3
Is supplied with the signal of the channel specified by the conversion request, and A /
The D converter 3 converts the signal into a digital signal. R
The / W control circuit 6 writes the digital signal into the register 71 specified by the register selection signal.

この変換処理途中の時刻t2において、第2図(ハ)に
示すように変換要求より優先度の低い変換要求のフ
ラッグF3がセットされたとする。これは最上位検出回路
12により検出され、変換要求との優先度比較が行われ
るが、変換要求の優先度の方が高いため、イネーブル
信号E3は発生されない。したがって、変換要求につい
ての処理が続行され、変換要求については保留とな
る。
It is assumed that a flag F3 of a conversion request having a lower priority than the conversion request is set at a time t2 during the conversion process as shown in FIG. This is the top detection circuit
12, the priority is compared with the conversion request, but since the priority of the conversion request is higher, the enable signal E3 is not generated. Therefore, the processing for the conversion request is continued, and the conversion request is suspended.

やがて、時刻t3において、その変換要求のA/D変換
処理が終了し、第2図(チ)に示すようにコンバータ3
から完了信号が変換制御回路11に与えられると、この変
換制御回路11は当該完了信号の立下がり時である時刻t4
においてクリア信号c1を出力することによりフラッグF1
をクリアする。
Eventually, at time t3, the A / D conversion processing of the conversion request ends, and the converter 3
Is supplied to the conversion control circuit 11, the conversion control circuit 11 outputs the completion signal at time t4 when the completion signal falls.
The flag F1 is output by outputting the clear signal c1 at
Clear

最上位検出回路12は、このフラッグF1のクリアを検出
し、フラッグF3のみセットされている状態となるため、
イネーブル信号E3が出力され、A/D変換要求信号S3′が
変換制御回路11に入力される。すると、第2図(ト)に
示すように、この変換制御回路11から変換開始信号が発
生されるとともに、チャネル書替え信号d3がチャネル記
憶部83bに入力され、書込み開始信号及び書込みレジス
タ選択信号がR/W制御回路6に与えられる。また、変換
要求信号S3′によりトライステートバッファ93がオンと
なる。
Since the highest-order detection circuit 12 detects the clearing of the flag F1 and only the flag F3 is set,
The enable signal E3 is output, and the A / D conversion request signal S3 'is input to the conversion control circuit 11. Then, as shown in FIG. 2 (g), a conversion start signal is generated from the conversion control circuit 11, a channel rewrite signal d3 is input to the channel storage unit 83b, and a write start signal and a write register selection signal are output. It is provided to the R / W control circuit 6. The tristate buffer 93 is turned on by the conversion request signal S3 '.

これにより、変換要求の変換チャネルの指定するア
ナログ信号がマルチプレクサ2からA/Dコンバータ3に
与えられ、その変換データがレジスタ73に書込まれるこ
ととなる。
As a result, the analog signal specified by the conversion channel of the conversion request is supplied from the multiplexer 2 to the A / D converter 3, and the converted data is written into the register 73.

この変換要求の変換処理途中の時刻t5において第2
図(ロ)に示すように、変換要求よりも優先度の高い
変換要求のフラッグF2がセットされたとする。する
と、最上位検出回路12では変換要求の方が優先度が高
いためにイネーブル信号をE3からE2へ切換える。これに
より、変換制御回路11への変換要求信号もS3′からS2′
に切換わり、この制御回路11から変換要求についての
A/D変換開始信号、書込み開始信号、チャネル書替え信
号d2及びレジスタ選択信号が出力され、またトライステ
ートバッファ93がオフ、92がオンとなって、変換要求
の変換処理が開始される。このとき、変換要求の途中
までのデータはレジスタ73に保持されたままとなるとと
もに、チャネル書替え信号d3の出力停止によりチャネル
記憶部83bの出力チャネルはその許可信号出力停止時の
状態に保持される。
At time t5 during the conversion processing of this conversion request, the second
Assume that a flag F2 of a conversion request having a higher priority than the conversion request is set as shown in FIG. Then, since the conversion request has a higher priority in the uppermost detection circuit 12, the enable signal is switched from E3 to E2. Thereby, the conversion request signal to the conversion control circuit 11 is also changed from S3 'to S2'.
To the conversion request from the control circuit 11.
The A / D conversion start signal, the write start signal, the channel rewrite signal d2, and the register selection signal are output, and the tri-state buffer 93 is turned off and the tri-state buffer 92 is turned on, thereby starting the conversion processing of the conversion request. At this time, the data up to the middle of the conversion request remains held in the register 73, and the output channel of the channel storage unit 83b is held in the state at the time of stop of the permission signal output due to the stop of the output of the channel rewrite signal d3. .

そして、この変換要求の処理が終了し、第2図
(チ)に示すようにA/Dコンバータ3からその完了信号
が時刻t6において発生されると、その立下がり時である
時刻t7においてクリア信号c2を出力することによりフラ
ッグF2をクリアする。
When the conversion request processing is completed and the completion signal is generated from the A / D converter 3 at time t6 as shown in FIG. 2 (h), the clear signal is generated at time t7 which is the falling time. Clears flag F2 by outputting c2.

最上位検出回路12は、このフラッグF2のクリアを検出
し、フラッグF3のみセットされている状態となるため、
イネーブル信号E3が出力され、A/D変換要求信号S3′が
変換制御回路11に入力される。すると、第2図(ト)に
示すように、この変換制御回路11から変換開始信号が発
生されるとともに、書込み開始信号及び書込みレジスタ
選択信号がR/W制御回路6に与えられ、しかもチャネル
書替え信号d3がチャネル記憶部83bに与えられる。ま
た、変換要求信号S3′によりトライステートバッファ93
がオンとなる。
The highest-order detection circuit 12 detects the clearing of the flag F2, and only the flag F3 is set.
The enable signal E3 is output, and the A / D conversion request signal S3 'is input to the conversion control circuit 11. Then, as shown in FIG. 2 (g), a conversion start signal is generated from the conversion control circuit 11, a write start signal and a write register selection signal are given to the R / W control circuit 6, and the channel rewriting is performed. The signal d3 is provided to the channel storage unit 83b. Also, the conversion request signal S3 'causes the tristate buffer 93
Turns on.

これにより、変換要求についての変換が再開される
こととなる。
As a result, the conversion for the conversion request is restarted.

このとき、レジスタ73には中断前に済んでいる処理分
のデータが確保され、かつ変換チャネル記憶部83bは中
断時の状態に保持されていたため、その時の変換チャネ
ルからA/D変換処理が開始されることとなる。
At this time, the data for the processing completed before the interruption is secured in the register 73, and the conversion channel storage unit 83b is held in the state at the time of the interruption, so that the A / D conversion processing starts from the conversion channel at that time. Will be done.

上述したように、本実施例によれば、ハードウエアに
よる優先制御を達成しているとともに、中断した処理を
再開する場合に、ある変換要求の処理を中断した場合で
も処理済みのデータは無駄にすることなくその要求に対
する処理を再開させることができる。
As described above, according to this embodiment, the priority control by the hardware is achieved, and when the interrupted process is restarted, the processed data is wasted even if the process of a certain conversion request is interrupted. The processing for the request can be resumed without performing the request.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、A/D変換装置
に、変換要求を処理するための優先順位がそれぞれ異な
る複数の変換要求記憶手段と、これら複数の変換要求記
憶手段に1以上の変換要求が保持された場合にその優先
順位を制御して、優先順位の高い変換要求から変換処理
を開始する優先制御手段とを設けたので、CPUは変換要
求を出力しておくだけで良く、その後は他の処理を実行
することができ、変換要求の優先制御のために生ずる他
の処理の停滞を防止することができる。
As described above, according to the present invention, the A / D converter includes a plurality of conversion request storage units having different priorities for processing the conversion requests, and one or more conversion request storage units in the plurality of conversion request storage units. When the request is held, the priority is controlled, and the priority control means for starting the conversion process from the conversion request having the higher priority is provided, so that the CPU only needs to output the conversion request, and thereafter, Can execute other processing, and can prevent stagnation of other processing caused by priority control of conversion requests.

また、デジタル信号に変換されたデータを格納するデ
ータ格納手段を、複数の変換要求記憶手段に対設して複
数設け、変換されたデータを格納する際には、変換要求
の処理をしている変換要求記憶手段に対設するデータ格
納手段に格納することとしたので、ある変換要求の処理
を中断したときでも、中断した処理を再開する場合に、
処理済みのデータは無駄にすることなくその要求に対す
る処理を再開することができる。
In addition, a plurality of data storage means for storing data converted into digital signals are provided opposite to the plurality of conversion request storage means, and when storing the converted data, a conversion request process is performed. Since the data is stored in the data storage means provided opposite the conversion request storage means, even when the processing of a certain conversion request is interrupted, when the interrupted processing is resumed,
Processing of the processed data can be resumed without wasting the data.

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

第1図は本発明の一実施例に係るA/D変換装置のブロッ
ク図、第2図はその動作タイミングチャート、第3図は
従来のA/D変換装置のブロック図である。 2……アナログ入力チャネルマルチプレクサ、3……A/
Dコンバータ、6……R/W制御回路、71〜73……データ格
納レジスタ、81〜83……A/Dステータス回路、91〜93…
…トライステートバッファ、101〜103……変換要求ゲー
ト回路、11……A/D変換制御回路、12……最上位検出回
路、E1〜E3……イネーブル信号(実行許可)、F1〜F3…
…変換要求フラッグ、S1〜S3……A/D変換要求信号、S
1′〜S3′……A/D変換要求信号(実行指令)。
FIG. 1 is a block diagram of an A / D converter according to an embodiment of the present invention, FIG. 2 is an operation timing chart thereof, and FIG. 3 is a block diagram of a conventional A / D converter. 2 ... Analog input channel multiplexer, 3 ... A /
D converter, 6 R / W control circuit, 71 to 73 Data storage register, 81 to 83 A / D status circuit, 91 to 93
... tri-state buffers, 101 to 103 ... conversion request gate circuits, 11 ... A / D conversion control circuits, 12 ... top-level detection circuits, E1 to E3 ... enable signals (execution permission), F1 to F3 ...
… Conversion request flag, S1 to S3 …… A / D conversion request signal, S
1 'to S3' A / D conversion request signal (execution command).

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−147618(JP,A) 特開 昭62−133(JP,A) 特開 平2−166549(JP,A) 特開 平3−134782(JP,A) 特開 昭63−225821(JP,A) 特開 昭62−204305(JP,A) 実開 昭61−60340(JP,U) 特表 昭63−500341(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 3/05 H03M 1/12 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-147618 (JP, A) JP-A-62-133 (JP, A) JP-A-2-166549 (JP, A) JP-A-3- 134782 (JP, A) JP-A-63-225821 (JP, A) JP-A-62-204305 (JP, A) Japanese utility model application Sho 61-60340 (JP, U) (58) Field surveyed (Int.Cl. 6 , DB name) G06F 3/05 H03M 1/12

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のチャネルからアナログ信号が入力さ
れ、これら複数のチャネルのうちの1つのチャネルをチ
ャネル選択信号に基づいて選択し、この選択したチャネ
ルのアナログ信号を入力アナログ信号として出力するチ
ャネル選択手段と、 複数の変換要求各々に対設され、各々対応する変換要求
を受信保持する複数の変換要求記憶手段であって、変換
要求を処理するための優先順位がそれぞれ異なる複数の
変換要求記憶手段と、 前記複数の変換要求記憶手段各々に対設され、前記チャ
ネル選択手段で選択するチャネルを記憶し、前記チャネ
ル選択手段へ前記チャネル選択信号として出力する、複
数の変換チャネル記憶手段と、 前記チャネル選択手段から前記入力アナログ信号が入力
されるとともに、変換開始信号に応答して入力アナログ
信号をデジタル信号に変換してデータとして出力する、
変換手段と、 このデジタル信号に変換されたデータを格納するための
データ格納手段と、 前記複数の変換要求記憶手段のうち1以上に変換要求が
保持され且つ前記複数の要求記憶手段のうちのいずれか
1つの状態が更新されたとき、前記複数の変換要求記憶
手段のうち最も優先順位の高い変換要求記憶手段に記憶
されている変換要求を処理すべく、最も優先順位の高い
変換要求記憶手段に対設した変換チャネル記憶手段を選
択し、この選択した変換チャネル記憶手段に記憶されて
いるチャネルを前記チャネル選択信号として前記チャネ
ル選択手段へ出力するように制御する、優先制御手段
と、 この優先制御手段により選択したチャネルのアナログ信
号をデジタル信号に変換するための処理を開始する信号
である前記変換開始信号を前記変換手段へ出力する開始
制御手段と、 前記変換手段により1つの変換要求の処理が終了したと
きに、前記複数の変換要求記憶手段のうちの該当する変
換要求をクリアする、終了制御手段と、 を備えていることを特徴とするA/D変換装置。
An analog signal is input from a plurality of channels, one of the plurality of channels is selected based on a channel selection signal, and an analog signal of the selected channel is output as an input analog signal. Selecting means; and a plurality of conversion request storage means provided for each of the plurality of conversion requests and receiving and holding the corresponding conversion request, wherein a plurality of conversion request storages having different priorities for processing the conversion requests are provided. A plurality of conversion channel storage means provided for each of the plurality of conversion request storage means, storing a channel selected by the channel selection means, and outputting the selected channel to the channel selection means as the channel selection signal; The input analog signal is input from the channel selection means, and the input analog signal is input in response to the conversion start signal. And outputs it as data and converts the signal into a digital signal,
A conversion unit; a data storage unit for storing the data converted into the digital signal; and a conversion request held in at least one of the plurality of conversion request storage units, and one of the plurality of request storage units. When the one state is updated, the highest-priority conversion request storage means is processed to process the conversion request stored in the highest-priority conversion request storage means of the plurality of conversion request storage means. Priority control means for selecting the conversion channel storage means provided opposite thereto, and controlling to output the channel stored in the selected conversion channel storage means as the channel selection signal to the channel selection means; Means for converting the analog signal of the channel selected by the means into a digital signal. Start control means for outputting to a stage, and end control means for clearing a corresponding conversion request among the plurality of conversion request storage means when the processing of one conversion request is completed by the conversion means. A / D converter characterized by the fact that:
【請求項2】デジタル信号に変換されたデータを格納す
る前記データ格納手段は、前記複数の変換要求記憶手段
に対設して複数設けられており、変換された前記データ
を格納する際には、変換要求の処理をしている前記変換
要求記憶手段に対設する前記データ格納手段に格納す
る、ことを特徴とする請求項1に記載のA/D変換装置。
2. The data storage means for storing data converted into a digital signal is provided in a plurality opposite to the plurality of conversion request storage means, and when storing the converted data, 2. The A / D conversion apparatus according to claim 1, wherein the data is stored in the data storage unit provided opposite the conversion request storage unit that processes the conversion request.
JP18844890A 1990-07-17 1990-07-17 A / D converter Expired - Lifetime JP2896207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18844890A JP2896207B2 (en) 1990-07-17 1990-07-17 A / D converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18844890A JP2896207B2 (en) 1990-07-17 1990-07-17 A / D converter

Publications (2)

Publication Number Publication Date
JPH0477117A JPH0477117A (en) 1992-03-11
JP2896207B2 true JP2896207B2 (en) 1999-05-31

Family

ID=16223872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18844890A Expired - Lifetime JP2896207B2 (en) 1990-07-17 1990-07-17 A / D converter

Country Status (1)

Country Link
JP (1) JP2896207B2 (en)

Also Published As

Publication number Publication date
JPH0477117A (en) 1992-03-11

Similar Documents

Publication Publication Date Title
JP3181515B2 (en) Data transfer method and data transfer device using the method
US20020026544A1 (en) DMA controller
JP3525518B2 (en) Data transfer device
JP2996183B2 (en) Data processing device with DMA function
JP2896207B2 (en) A / D converter
JPH0798663A (en) Asynchronous i/o control system
JP2846760B2 (en) Programmable controller
JPH0322032A (en) Program exception code control circuit
JPH0736819A (en) Dma data transfer device
JPH0447350A (en) Main storage read/response control
JP3022848B2 (en) Multitask task switching method and real-time operating system
JPH064472A (en) Input/output priority order control system
JPH0283779A (en) Instruction execution control system for vector processor
JP2000010908A (en) Dma controller
JPH0561668B2 (en)
JPS60142450A (en) Storage system
JPH05189357A (en) Method and device for data chaining control
JPH06274448A (en) Dma controller
JPH1124941A (en) Method and device for instruction execution control
JPH04342011A (en) Asynchronous input/output controlling system
JPH0520165A (en) System bus controller
JP2000172629A (en) Method and device for transfer data
JPH05143524A (en) Counter control system
JPH05189300A (en) Buffer controller
JPH04160459A (en) Data transfer device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080305

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20100305

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20110305