JPH0287721A - Analog input device - Google Patents

Analog input device

Info

Publication number
JPH0287721A
JPH0287721A JP23904588A JP23904588A JPH0287721A JP H0287721 A JPH0287721 A JP H0287721A JP 23904588 A JP23904588 A JP 23904588A JP 23904588 A JP23904588 A JP 23904588A JP H0287721 A JPH0287721 A JP H0287721A
Authority
JP
Japan
Prior art keywords
data
signal
channel number
buffer
analog input
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
JP23904588A
Other languages
Japanese (ja)
Inventor
Makoto Takeishi
誠 武石
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 JP23904588A priority Critical patent/JPH0287721A/en
Publication of JPH0287721A publication Critical patent/JPH0287721A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To correctly read and input an analog signal of plural channels by providing a device reading a channel number and a device reading an A/D conversion data of a relevant channel by the former reader. CONSTITUTION:An external analog input signal S1 is inputted to an adjustment circuit and sample-hold circuit multiplexer 3 samples and holds only an input data of a channel corresponding to the channel number sent from a timing generating circuit 5 from plural inputs. The output of the multiplexer 34 is subjected to A/D conversion 4 and a digital data S2 is obtained. When the A/D conversion of the A/D converter 4 is finished, an RDY signal S6 from the converter 4 is fed to a buffer 9. A channel number data S4 and a signal S6 are read via the buffer 9 and the data S2 is held in the buffer 10. When the signal S6 is the RDY, the digital data stored in the buffer 10 is read by using a digital data read instruction.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、アナログ入力を使用する制御システム等に用
いられるアナログ入力装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to an analog input device used in a control system using analog input.

(従来の技術) 従来のアナログ入力装置では、各チャンネルのデータを
取り入れる場合、チャンネル番号データ読み取り処理(
同時にA/D変換データのRDY状態も読み取る)とR
DYからA/D変換変換データ数り処理の2つの処理を
実行している。
(Prior Art) In conventional analog input devices, when inputting data from each channel, channel number data reading processing (
At the same time, read the RDY status of A/D conversion data) and R
Two processes are executed: DY to A/D conversion conversion data counting process.

このような従来のアナログ入力装置の一例を第3図のブ
ロック図を参照して説明する。
An example of such a conventional analog input device will be explained with reference to the block diagram of FIG.

第3図において、1はアナログ入力装置であり、このア
ナログ入力装置1はオフセットゲイン調整回路2と、マ
ルチプレクサ・サンプルホールド回路3と、A/D変換
器4と、タイミング発生回路5とから構成されている。
In FIG. 3, 1 is an analog input device, and this analog input device 1 is composed of an offset gain adjustment circuit 2, a multiplexer/sample hold circuit 3, an A/D converter 4, and a timing generation circuit 5. ing.

なお、6はCPU7を有するCPU基板である。Note that 6 is a CPU board having a CPU 7.

次に、従来のアナログ入力装置の作用について説明する
Next, the operation of the conventional analog input device will be explained.

外部からのアナログ入力信号S1は、調整回路2゜マル
チプレクサ・サンプルホールド回路3を経由してA/D
変換器4へ入力される。タイミング発生回路5からのA
/D変換開始信号S5によりアナログ信号Stの変換が
開始されA/D変換後のディジタルデータS2とタイミ
ング発生回路5から順次送出されるアナログ入カポイン
ド番号(チャンネル番号)データS4及びA/D変換器
4からのRDY信号S6を読み取る。この時A/I)変
換器後のディジタルデータS2が、有効(っまりRDY
信号S6が出力される)ならば1次に間を入れず、すぐ
ディジタルデータS2を読み取りその値を格納する。
Analog input signal S1 from the outside is sent to A/D via adjustment circuit 2゜multiplexer/sample hold circuit 3.
It is input to converter 4. A from timing generation circuit 5
The conversion of the analog signal St is started by the /D conversion start signal S5, and the digital data S2 after A/D conversion, the analog input point number (channel number) data S4 and the A/D converter are sequentially sent from the timing generation circuit 5. Read the RDY signal S6 from 4. At this time, the digital data S2 after the A/I converter is valid (completely RDY).
If the signal S6 is output), the digital data S2 is immediately read and its value is stored without any pause.

以上の動作を定周期で、自動的に繰り返す。The above operations are automatically repeated at regular intervals.

(発明が解決しようとする課題) このような従来のアナログ入力装置1では、チャンネル
番号データS4を読み取った後一定時間(次のチャンネ
ルのデータが送出される直前までの時間)以内にディジ
タルデータS2を読み取らないと、A/D変換データを
正しく読み取れないためプログラムの挿入等は不可能で
、さらにデータ取り入れが遅れた場合不良データを取り
入れる等の問題があった。
(Problem to be Solved by the Invention) In such a conventional analog input device 1, after reading the channel number data S4, the digital data S2 is read within a certain period of time (the time immediately before the data of the next channel is transmitted). If the A/D conversion data is not read, the A/D conversion data cannot be read correctly, making it impossible to insert a program, and furthermore, there are problems such as defective data being imported if there is a delay in data import.

本発明は上記問題点を解消するためになされたもので、
その目的は、プログラム(ソフトウェア)の挿入を可能
にし、さらにA/D変換データも正しく読み取れるアナ
ログ入力装置を提供することにある。
The present invention was made to solve the above problems, and
The purpose is to provide an analog input device that allows insertion of programs (software) and also allows correct reading of A/D conversion data.

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

(課題を解決するための手段) 上記目的を達成するために、本発明はアナログ信号を入
力するための複数のチャンネルを備え。
(Means for Solving the Problems) In order to achieve the above object, the present invention includes a plurality of channels for inputting analog signals.

これら複数チャンネルの各々の番号を示すチャンネル番
号データを時系列的に発生させて、当該チャンネル番号
データに対応するチャンネルのアナログ入力信号のみを
選択してそのデータ値を出力するアナログ入力装置にお
いて、前記チャンネル番号を読み取る手段と、前記読み
取り手段により該当するチャンネルのA/D変換データ
を保持する手段と、前記保持されたデータを読み取る手
段とから構成されたことを特徴とするものである。
The analog input device generates channel number data indicating the number of each of the plurality of channels in time series, selects only the analog input signal of the channel corresponding to the channel number data, and outputs the data value. The apparatus is characterized in that it comprises means for reading a channel number, means for holding A/D conversion data of the corresponding channel by the reading means, and means for reading the held data.

(作 用) 本発明のアナログ入力装置によれば、チャンネル番号の
読み取りと同時にA/D変換データをラッチするためハ
ードウェアの信頼性が向上し、さらにチャンネル番号の
読み取りのコマンドの間に他のプログラムも挿入できる
。さらに不良データ等の取り入れも皆無になる。
(Function) According to the analog input device of the present invention, since the A/D conversion data is latched at the same time as reading the channel number, the reliability of the hardware is improved. You can also insert programs. Furthermore, there is no need to introduce bad data.

(実施例) 本発明の一実施例を図面について説明する。(Example) An embodiment of the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例のブロック構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.

第1図において、8はアナログ入力装置であり、このア
ナログ入力装置8はオフセットゲイン調整回路2と、マ
ルチプレクサ・サンプルホールド回路3と、A/D変換
器4と、タイミング発生回路5と、バッファ9と、ラッ
チ付バッファ10およびインバートゲート11とから構
成されている。
In FIG. 1, 8 is an analog input device, and this analog input device 8 includes an offset gain adjustment circuit 2, a multiplexer/sample hold circuit 3, an A/D converter 4, a timing generation circuit 5, and a buffer 9. , a latch buffer 10 and an invert gate 11.

ところで、調整回路2は、各チャンネルのオフセット・
ゲイン調整を行うためのものである。マルチプレクサ・
サンプルホールド回路3は、入力された複数のチャンネ
ルの中からチャンネル番号データS4により指定された
1つを選択し、そのチャンネルの入力データをホールド
する。A/D変換器4は、マルチプレクサ・サンプルホ
ールド回路3からのアナログ入力データをディジタルデ
ータS2に変換するもので、変換はタイミング発生回路
5からのA/D変換開始信号S5により開始される。
By the way, the adjustment circuit 2 adjusts the offset and
This is for performing gain adjustment. Multiplexer
The sample and hold circuit 3 selects one designated by the channel number data S4 from among the plurality of input channels, and holds the input data of that channel. The A/D converter 4 converts analog input data from the multiplexer/sample hold circuit 3 into digital data S2, and the conversion is started by an A/D conversion start signal S5 from the timing generation circuit 5.

タイミング発生回路5は、チャンネル番号データS3.
S4を最初のチャンネル番号から最終チャンネル番号(
1→2→3というように)まで、一定周期で順次送出す
る。RDY信号s6はA/D変換器3からの変換完了を
示す信号で、この信号とチャンネル番号データS4がバ
ッファ9に入力され、ディジタルデータS2はラッチ付
バッファ10に入力される。
The timing generation circuit 5 generates channel number data S3.
S4 from the first channel number to the last channel number (
1 → 2 → 3) are transmitted sequentially at a constant cycle. The RDY signal s6 is a signal indicating completion of conversion from the A/D converter 3. This signal and channel number data S4 are input to the buffer 9, and the digital data S2 is input to the latch buffer 10.

チャンネル番号読み取りコマンドS8はバッファ9に入
力され、さらにラッチバッファ10に入力される。この
このコマンドでチャンネル番号データS4を読み取り、
さらにコマンドの反転信号の後縁でディジタルS2をラ
ッチ(保持)する。
The channel number read command S8 is input to the buffer 9 and further input to the latch buffer 10. This command reads the channel number data S4,
Furthermore, digital S2 is latched (held) at the trailing edge of the inverted command signal.

ディジタルデータ読み取りコマンドs7は、前記で保持
したディジタルデータs2を読み取る。
The digital data read command s7 reads the digital data s2 held above.

次に、本実施例の作用を説明する。Next, the operation of this embodiment will be explained.

各チャンネルの外部からのアナログ入方信号s1が調整
回路2へ入力される。
An analog input signal s1 from the outside of each channel is input to the adjustment circuit 2.

調整回路2から出力された各チャンネルのアナログ入力
信号S1はマルチプレクサ・サンプルホールド回路3に
入力され、タイミング発生回路5から送出されたチャン
ネル番号に対応するチャンネルの入力データのみが通過
を許され、マルチプレクサ・サンプルホールド回路3に
保持される。タイミング発生回路から繰り返し定周期で
発生するA/D変換開始信号S5がA/D変換器4に送
出されると、保持されたアナログデータのA/D変換が
開始され、このA/D変換が終了すると、A/D変換器
4からのRDY信号S6が有効となる。この時A/D変
換器4から出力されるディジタルデータS2も有効とな
る。
The analog input signal S1 of each channel output from the adjustment circuit 2 is input to the multiplexer/sample hold circuit 3, and only the input data of the channel corresponding to the channel number sent from the timing generation circuit 5 is allowed to pass through. -Holded in sample hold circuit 3. When the A/D conversion start signal S5, which is repeatedly generated at regular intervals from the timing generation circuit, is sent to the A/D converter 4, A/D conversion of the held analog data is started. Upon completion, the RDY signal S6 from the A/D converter 4 becomes valid. At this time, the digital data S2 output from the A/D converter 4 also becomes valid.

タイミング発生回路5からは自動的にチャンネル番号デ
ータS4が、1番から最終番号データまで順次繰り返し
送出される。
The timing generation circuit 5 automatically and repeatedly sends out channel number data S4 from number 1 to the last number data.

CPU7 (ソフトウェア)によりチャンネル番号読み
取りコマンドS8が入力され、バッファ9を介してチャ
ンネル番号データS4と信号s6を読み取り、このコマ
ンドの後縁でディジタルデータS2をバッファ10に保
持する。この時、信号S6がBUSYならそのデータを
無効とし、RDYなら次にディジタルデータ読み取りコ
マンドS7でラッチ付バッファ10に保持されたディジ
タルデータを読み取る6第2図は本実施例の主要信号の
タイミング図であり、AID変換開始信号S5.RDY
信号S6、チャンネル番号データS4.ディジタルデー
タS2及びディジタルデータ読み取り可能領域(本実施
例、従来例)を表わしたものである。
The CPU 7 (software) inputs a channel number read command S8, reads the channel number data S4 and the signal s6 via the buffer 9, and holds the digital data S2 in the buffer 10 at the trailing edge of this command. At this time, if the signal S6 is BUSY, the data is invalidated, and if it is RDY, then the digital data held in the latch buffer 10 is read by the digital data read command S7.6 Figure 2 is a timing diagram of the main signals of this embodiment. and the AID conversion start signal S5. R.D.Y.
Signal S6, channel number data S4. This figure shows the digital data S2 and the digital data readable area (this embodiment, the conventional example).

このように本実施例によると、従来例に比べてディジタ
ルデータ読み取り可能領域が大きいので、ディジタルデ
ータ読み出しまでの間に他の処理も行なうことができる
As described above, according to this embodiment, the area in which digital data can be read is larger than that of the conventional example, so that other processing can be performed before reading the digital data.

〔発明の効果〕〔Effect of the invention〕

以上説明したように1本発明によれば、ディジタルデー
タがチャンネル番号読み取りと、同時に保持されるため
ハードウェア上の信頼性が向上し。
As described above, according to the present invention, digital data is held at the same time as channel number reading, so hardware reliability is improved.

さらにディジタルデータ読み出しまで間がとれるため、
この間にソフトウェアの他の処理も追加でき、また例え
その処理時間がのび次のチャンネルデータが送出される
時間と重なってもデータは正しく読み取ることができる
Furthermore, since it takes time to read the digital data,
During this time, other software processing can be added, and even if the processing time overlaps with the time when the next channel data is transmitted, the data can be read correctly.

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

第1図は本発明の一実施例のブロック構成図。 第2図は第1図の主要信号のタイミング図、第3図は従
来のアンログ入力装置のブロック構成図である。 1.8・・・アナログ入力装置  2・・・調整回路3
・・・マルチプレクサ・サンプルホールド回路4・・・
A/D変換器      5・・・タイミング発生回路
6・・・CPtJ基板      7・・・CPU9・
・・バッファ       10・・・ラッチ付バッフ
ァ11・・・インバートゲート 第1図 (8733)  代理人 弁理士 猪 股 祥 晃(ほ
か1名)第2図
FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is a timing diagram of the main signals shown in FIG. 1, and FIG. 3 is a block diagram of a conventional anlog input device. 1.8...Analog input device 2...Adjustment circuit 3
...Multiplexer/sample hold circuit 4...
A/D converter 5... Timing generation circuit 6... CPtJ board 7... CPU9.
...Buffer 10...Buffer with latch 11...Invert gate Fig. 1 (8733) Agent Patent attorney Yoshiaki Inomata (and 1 other person) Fig. 2

Claims (1)

【特許請求の範囲】[Claims] (1)アナログ信号を入力するための複数のチャンネル
を備え、これら複数チャンネルの各々の番号を示すチャ
ンネル番号データを時系列的に発生させて、当該チャン
ネル番号データに対応するチャンネルのアナログ入力信
号のみを選択してそのデータ値を出力するアナログ入力
装置において、前記チャンネル番号を読み取る手段と、
前記読み取り手段により該当するチャンネルのA/D変
換データを保持する手段と、前記保持されたデータを読
み取る手段とから構成されたことを特徴とするアナログ
入装置。
(1) Provides multiple channels for inputting analog signals, generates channel number data indicating the number of each of these multiple channels in chronological order, and only generates analog input signals of channels corresponding to the channel number data. In an analog input device for selecting a channel number and outputting the data value thereof, means for reading the channel number;
An analog input device comprising: means for holding A/D converted data of a corresponding channel by the reading means; and means for reading the held data.
JP23904588A 1988-09-26 1988-09-26 Analog input device Pending JPH0287721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23904588A JPH0287721A (en) 1988-09-26 1988-09-26 Analog input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23904588A JPH0287721A (en) 1988-09-26 1988-09-26 Analog input device

Publications (1)

Publication Number Publication Date
JPH0287721A true JPH0287721A (en) 1990-03-28

Family

ID=17039055

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23904588A Pending JPH0287721A (en) 1988-09-26 1988-09-26 Analog input device

Country Status (1)

Country Link
JP (1) JPH0287721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05183438A (en) * 1991-12-27 1993-07-23 Nec Corp Analog digital conversion circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05183438A (en) * 1991-12-27 1993-07-23 Nec Corp Analog digital conversion circuit

Similar Documents

Publication Publication Date Title
JPH0287721A (en) Analog input device
JPS63200234A (en) Data processor
JPS6145370A (en) Buffer memory device of data processor
JP3479847B2 (en) Input device, output device, and input / output device
RU2199146C1 (en) Software-logic timing device
JPS6059441A (en) Data control circuit
JP2002032233A (en) Data I / O processing method in multi-thread system
JP2749057B2 (en) Sequence controller
JPS6316329A (en) Data sending circuit for arithmetic unit
KR900004047B1 (en) Image data input control circuit
JPH01258020A (en) Data reader
JPH01232420A (en) Stack device for data
SU656050A1 (en) Arrangement for interfacing input-output channel with peripheral devices
JPS6156530B2 (en)
JPS60181972A (en) Mask arithmetic unit
JPH04250583A (en) Information collecting device
JPH02139652A (en) Microcomputer
JPS613282A (en) Logical arithmetic unit between binary images
JPS60238765A (en) Synchronous signal generation circuit
JPS6059461A (en) Program memory device
JPS63143624A (en) Multi-point analog signal input system
JPS59106057A (en) Address stop system
JPH06208614A (en) Image processing device
JPS61118843A (en) Interruption test system of processor
JPH01166123A (en) Analog input device