JPS5826583B2 - Data collection - Google Patents

Data collection

Info

Publication number
JPS5826583B2
JPS5826583B2 JP50049321A JP4932175A JPS5826583B2 JP S5826583 B2 JPS5826583 B2 JP S5826583B2 JP 50049321 A JP50049321 A JP 50049321A JP 4932175 A JP4932175 A JP 4932175A JP S5826583 B2 JPS5826583 B2 JP S5826583B2
Authority
JP
Japan
Prior art keywords
data
analog data
time
control computer
converter
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
Application number
JP50049321A
Other languages
Japanese (ja)
Other versions
JPS51123540A (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.)
Denso Corp
Original Assignee
NipponDenso Co 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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP50049321A priority Critical patent/JPS5826583B2/en
Publication of JPS51123540A publication Critical patent/JPS51123540A/en
Publication of JPS5826583B2 publication Critical patent/JPS5826583B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は制御用コンピュータにアナログデータを入力す
る場合のデータ入力装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data input device for inputting analog data to a control computer.

従来周知の如く、アナログデータを制御用コンピュータ
に入力する場合、そのアナログデータをディジタルデー
タに変換し、この変換されたディジタルデータを制御用
コンピュータに入力させており、前記アナログデータか
らディジタルデータに変換するには一般にA−D変換器
が使用されている。
As is conventionally known, when analog data is input to a control computer, the analog data is converted to digital data, and this converted digital data is input to the control computer, and the analog data is converted to digital data. An analog to digital converter is generally used for this purpose.

このA−D変換器は、変換指令パルス(以下コマンドパ
ルス)によりアナログデータをディジタルデータに変換
する動作を開始し、ある一定時間抜変換が完了し、ディ
ジタルデータが有効となる。
This A-D converter starts an operation of converting analog data into digital data in response to a conversion command pulse (hereinafter referred to as a command pulse), completes the conversion for a certain period of time, and the digital data becomes valid.

この為、制御用コンピュータで前記A−D変換器を通し
てアナログデータを読取る場合、制御用コンピュータが
コマンドパルスをA−D変換器に加え、アナログデータ
からディジタルデータへ変換される時間だけ待ち、前記
A−D変換器のディジタルへの変換が完了したデータを
読取るか、或はデータが必要となる時点から前記A−D
変換器の変換時間だけ前にさかのぼった時点にコマンド
パルスを前記A−D変換器に加え、このA−D変換器の
変換作動中に他の命令を実行し、この人り変換器の変換
時間経過後にこのA−D変換器にて変換したディジタル
データを読取る処理作動を実行している。
Therefore, when the control computer reads analog data through the A-D converter, the control computer applies a command pulse to the A-D converter, waits for the time required for conversion from analog data to digital data, and then reads the A-D converter. - Read the data that has been converted to digital by the D converter, or read the data from the point where the data is needed.
A command pulse is applied to the A-D converter at a point in time that is back in time by the conversion time of the converter, and other commands are executed while this A-D converter is converting, and the conversion time of this human converter is After the lapse of time, a processing operation is executed to read the digital data converted by the A-D converter.

しかしながら、前述した従来周知の方法では、多数のア
ナログデータを取扱う場合、変換時間の間、制御用コン
ピュータを待期させると時間が無駄となってしまい、ま
たデータが必要となる時点から変換時間分さかのぼって
コマンドパルスをAD変換器に加え、変換作動中は他の
命令を実行させる方法では、前記制御用コンピュータの
演算処理を実行するためのプログラムを定めるソフトウ
ェアが非常に煩雑、となってしまうという欠点があった
However, in the conventional well-known method described above, when a large amount of analog data is handled, time is wasted if the control computer waits during the conversion time. If a command pulse is retroactively applied to the AD converter and other commands are executed during the conversion operation, the software that defines the program for executing the arithmetic processing of the control computer becomes extremely complicated. There were drawbacks.

本発明は上記の欠点を解消するもので、複数のアナログ
データを選択的にディジタルデータに変換するA−D変
換手段の変換作動の完了時点を示すスティタス信号をア
ナログデータセレクタのアドレス指定を行うアドレスカ
ウンタに加えてそのアドレス指定を変更し、さらにその
スティタス信号により各種の演算処理を実行する制御用
コンピュータの割込作動を指令して前記A−D変換手段
より発生するディジタルデータを前記制御用コンピュー
タに読取ることによって、前記複数のアナログデータを
効率よく前記制御用コンピュータに読取ることができ、
しかもこの制御用コンピュータの演算処理のソフトウェ
アも簡単にできるデータ入力装置を提供することを目的
とするものである。
The present invention solves the above-mentioned drawbacks, and provides a status signal indicating the completion point of the conversion operation of an A-D conversion means for selectively converting a plurality of analog data into digital data at an address for specifying the address of an analog data selector. In addition to the counter, the address designation is changed, and the status signal is used to instruct an interrupt operation of a control computer that executes various arithmetic processing, so that the digital data generated by the A-D conversion means is transferred to the control computer. By reading the plurality of analog data to the control computer, the plurality of analog data can be efficiently read by the control computer,
Moreover, it is an object of the present invention to provide a data input device that can be easily configured with software for arithmetic processing of this control computer.

以下本発明を第1図に従って説明する。The present invention will be explained below with reference to FIG.

第1図に於いて、1はアナログデータセレクタで、1a
はこのアナログデータセレクタ1に加わる多数のアナロ
グデータ、1bはアナログデータセレクタ1により前記
アナログデータ1aの中の1つのデータを選択したセレ
クトアナログデータである。
In Figure 1, 1 is an analog data selector, 1a
is a large number of analog data added to the analog data selector 1, and 1b is selected analog data obtained by selecting one data from the analog data 1a by the analog data selector 1.

2はサンプルホールド回路で、前記アナログデータセレ
クタ1より発生するセレクトアナログデータ1bをホー
ルドするものであり、2aはサンプルホールド回路2に
よりホールドされたホールドデータである。
Reference numeral 2 denotes a sample and hold circuit, which holds the selected analog data 1b generated by the analog data selector 1, and 2a represents the hold data held by the sample and hold circuit 2.

3はA−D変換器で、前記サンプルホールド回路2より
発生するホールドデータ2aをディジタルデータに変換
するものであり、3cはA−D変換器3にて変換された
ディジタルデータである。
3 is an AD converter which converts the hold data 2a generated by the sample hold circuit 2 into digital data; 3c is the digital data converted by the AD converter 3;

4は読取回路をなすディジタルデータセレクタ、5は制
御用コンピュータ、5aは前記ディジタルデータセレク
タ4のコントロール信号であり、どのデータを選択する
かをコントロールするものである。
4 is a digital data selector forming a reading circuit, 5 is a control computer, and 5a is a control signal for the digital data selector 4, which controls which data is selected.

4aは前記ディジタルデータセレクタ4の出力で前記コ
ントロール信号5aによって選択されたデータが出力さ
れ、前記制御用コンピュータ5の入力に印加されている
Reference numeral 4a denotes the output of the digital data selector 4, from which data selected by the control signal 5a is output, and is applied to the input of the control computer 5.

3aは前記A−D変換器3がアナログデータをディジタ
ルデータに変換している間論理レベルがルベルになり変
換完了時点に反転するスティタス信号である。
3a is a status signal whose logic level becomes level while the A/D converter 3 converts analog data into digital data and is inverted at the time of completion of the conversion.

7はインバータで前記スティタス信号3aを反転して制
御クロックパルス7aを発生するものである。
An inverter 7 inverts the status signal 3a to generate a control clock pulse 7a.

6はアドレスカウンタで、前記制御クロックパルス7a
を受けて計数作動し、前記アナログデータセレクタ1に
加わる多数のアナログデータ1aを時分割的に選択する
ための選択信号6aを発生している。
6 is an address counter, and the control clock pulse 7a
A selection signal 6a is generated for time-divisionally selecting a large number of analog data 1a to be applied to the analog data selector 1.

また、前記インバータ7より発生する制御クロックパル
ス7aは前記サンプルホールド回路2のホールド信号、
前記制御用コンピータ5の割込み信号、及び前記アドレ
スカウンタ6のクロック入力となっている。
Further, the control clock pulse 7a generated by the inverter 7 is a hold signal of the sample hold circuit 2,
It serves as an interrupt signal for the control computer 5 and a clock input for the address counter 6.

3bは前記A−D変換器3のコマンドパルスであり、前
記制御用コンピュータ5から変換作動開始時点に発生す
るものである。
3b is a command pulse for the A/D converter 3, which is generated from the control computer 5 at the time of starting the conversion operation.

次に本発明の動作を第2図に示すタイミング図に従って
説明する。
Next, the operation of the present invention will be explained according to the timing diagram shown in FIG.

第2図に於いて、(a)はコマンドパルス3b、(b)
はスティタス信号3a、(c)は制御クロックパルス7
a、(d)は選択信号6aを示している。
In Figure 2, (a) is the command pulse 3b, (b)
is status signal 3a, (c) is control clock pulse 7
a and (d) indicate the selection signal 6a.

まず、時刻t 1にコマンドパルス3bが制御用コンピ
ュータ5からA−D変換器3に印加され、コマンドパル
ス3bがルベルからOレベルに反転した時すなわち時刻
t2でA−D変換器3は動作を開始しスティタス信号3
aを出力する。
First, at time t1, a command pulse 3b is applied from the control computer 5 to the A-D converter 3, and when the command pulse 3b is reversed from level to O level, that is, at time t2, the A-D converter 3 starts operating. Start status signal 3
Output a.

この時、インバータ7の出力の制御クロックパルス7a
は反転されルベルからOレベルになる。
At this time, the control clock pulse 7a of the output of the inverter 7
is inverted and goes from Lebel to O level.

また、アドレスカウンタ6はネガティブ、エツジでトリ
ガされ選択信号6aがカウントアツプされる。
Further, the address counter 6 is triggered by a negative edge or an edge, and the selection signal 6a is counted up.

この為、アナログデータセレクタ1は次のアナログデー
タを選択してセレクトアナログデータ1bを出力する。
Therefore, the analog data selector 1 selects the next analog data and outputs the selected analog data 1b.

その後、A−D変換器3の変換動作が完了する時点の時
刻t3でスティタス信号3aは反転し、インバータIの
出力の制御クロックパルス7aは0レベルからルベルと
なる。
Thereafter, at time t3 when the conversion operation of the AD converter 3 is completed, the status signal 3a is inverted, and the control clock pulse 7a output from the inverter I changes from the 0 level to the level.

この制御クロックパルスは制御用コンピュータ5の割込
み信号となっている為、制御用コンピュータ5は割込サ
ービスルーチンのプログラムを実行する。
Since this control clock pulse serves as an interrupt signal for the control computer 5, the control computer 5 executes the interrupt service routine program.

このとき、ディジタルデータセレクタ4はA−D変換器
3の出力ディジタルデータ3c及びアドレスカウンタ6
の出力の選択信号6aを入力し、その選択信号6aによ
り伺チャンネルのデータかを判断しそのチャンネルに対
応した所定のメモリに記憶する。
At this time, the digital data selector 4 selects the output digital data 3c of the A-D converter 3 and the address counter 6.
The output selection signal 6a is inputted, and based on the selection signal 6a, it is determined whether the data is for the requested channel, and the data is stored in a predetermined memory corresponding to that channel.

この割込サービスルーチンの動作が終了すると、時刻t
4で制御用コンピュータ5はA−D変換器3にコマンド
パルス3bを出力する。
When the operation of this interrupt service routine is completed, time t
At step 4, the control computer 5 outputs a command pulse 3b to the A-D converter 3.

そして、時刻t5でコマンドパルス3bがルベルからO
レベルに反転するとスティタス信号3aはOレベルから
ルベルとなり、インバータ7の出力の制御クロックパル
ス7aはルベルから0レベルに反転する。
Then, at time t5, command pulse 3b is output from Lebel to O.
When the level is inverted, the status signal 3a changes from the O level to the level, and the control clock pulse 7a output from the inverter 7 changes from the level to the 0 level.

この制御クロックパルス1aはサンプルホールド回路2
のホールド信号になっている為、時刻t3からt4時に
アドレスカウンタ6の出力の選択信号6aで選択された
アナログデータをホールドする。
This control clock pulse 1a is supplied to the sample and hold circuit 2.
Therefore, the analog data selected by the selection signal 6a output from the address counter 6 from time t3 to time t4 is held.

また、時刻t5でアドレスカウンタ6はカウントアツプ
する。
Further, the address counter 6 counts up at time t5.

以下この動作を繰り返し次々とアナログデータを制御用
コンピュータ5に人力する。
Thereafter, this operation is repeated and analog data is manually input to the control computer 5 one after another.

このとき、前記選択信号6aは時刻t2からt5まで1
チヤンネルのアナログデータを選択し、時刻t5からt
8までは2チヤンネルのアナログデータを選択し、以後
釜チャンネルのアナログデータを選択することになる。
At this time, the selection signal 6a is 1 from time t2 to t5.
Select the analog data of the channel, and from time t5 to t
Up to 8, analog data of 2 channels is selected, and thereafter analog data of the pot channel is selected.

そして、前記割込サービスルーチンを実行する時刻t3
からt5、時刻t6からt8の間以外の時間となるA−
D変換器3の変換作動中に、制御用コンピュータ5のメ
インルーチンのプログラムを実行する。
Then, time t3 at which the interrupt service routine is executed.
to t5, and A-, which is a time other than between time t6 and t8.
During the conversion operation of the D converter 3, the main routine program of the control computer 5 is executed.

すなわち、制御用コンピュータ5は時刻t2からt3ま
でメインルーチンのプログラムを実行し、時刻t3から
t5までの間前記メインルーチンを中断して割込サービ
スルーチンのデータ読取作動を実行し、時刻t5から時
刻t6まで再び前記メインルーチンの中断以後のプログ
ラムを実行する。
That is, the control computer 5 executes the main routine program from time t2 to t3, interrupts the main routine from time t3 to t5, executes the data reading operation of the interrupt service routine, and executes the data reading operation of the interrupt service routine from time t5 to time t5. The program after the interruption of the main routine is executed again until t6.

また、制御用コンピュータ5で読取ったディジタルデー
タに対して選択信号5aは1つカウントアツプされた状
態であるが、ソフトウェアで1つずらして判断すれば倒
ら問題がない。
Further, the selection signal 5a is in a state in which the digital data read by the control computer 5 is incremented by one, but there is no problem if the selection signal 5a is counted up by one by software.

なお、前述した実施例ではアナログデータは順次入力さ
れるのみであるが同時に2つのアナログデータを入力し
たい場合には、そのアナログデータのみを並列にそれぞ
れ独立のA−D変換器を挿入して行なえばよい。
Note that in the embodiment described above, analog data is only input sequentially, but if it is desired to input two analog data at the same time, only the analog data can be input in parallel by inserting independent A-D converters for each. Bye.

また、前記A−D変換器3として数m5ecの変換作動
時間を要するものを用いたが、例えばその変換作動時間
が非常に短いA−D変換器を複数個並列に設け、その全
ての変換作動が完了した時点に割込サービスルーチンを
利用して前記全てのAD変換器のディジタルデータを集
中的に読取るような作動を周期的に繰返してもよい。
In addition, although the A-D converter 3 used requires a conversion operation time of several m5ec, for example, a plurality of A-D converters whose conversion operation time is very short may be provided in parallel, and all of the conversion operations can be performed. The operation of intensively reading the digital data of all the AD converters using an interrupt service routine at the time of completion may be periodically repeated.

以上述べたように本発明においては、複数のアナログデ
ータを選択的にディジタルデータに変換するA−D変換
手段の変換作動の完了時点を示すスティタス信号をアナ
ログデータセレクタのアドレス指定を行うアドレスカウ
ンタに加えてそのアドレス指定を変更し、さらにそのス
ティタス信号により各種の演算処理を実行する制御用コ
ンピュータの割込作動を指令して前記A−D変換手段よ
り発生するディジタルデータを前記制御用コンピュータ
に読取るための読取回路を具備しているから、前記アド
レスカウンタのアドレス指定を前記スティタス信号によ
り変更してそのアドレス指定のための制御用コンピュー
タのソフトウェアの負担を不要にでき、複数のアナログ
データを順次選択しA−D変換された後、割込作動を使
用して制御用コンピュータに入力する為、この制御用コ
ンピュータが複数のアナログデータの選択を行なう必要
がなく効率よく読取ることができ、また常に新しいデー
タが参照でき、しかも前記制御用コンピュータの演算処
理のソフトウェアも簡単にできるという優れた効果があ
る。
As described above, in the present invention, the status signal indicating the completion point of the conversion operation of the A-D conversion means for selectively converting a plurality of analog data into digital data is sent to the address counter that specifies the address of the analog data selector. In addition, the address designation is changed, and furthermore, the status signal is used to instruct an interrupt operation of a control computer that executes various arithmetic processing, and the digital data generated by the A/D conversion means is read into the control computer. Since the address designation of the address counter can be changed by the status signal, the burden on the control computer software for the address designation can be eliminated, and multiple analog data can be sequentially selected. After being A-D converted, it is input to the control computer using interrupt operation, so the control computer does not have to select multiple analog data and can read it efficiently. This has the advantage that the data can be referenced, and the software for the arithmetic processing of the control computer can be simplified.

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

第1図は本発明になるデータ入力装置の一実施例を示す
ブロック線図、第2図は本発明の詳細な説明するタイミ
ング図である。 1・・・・・・アナログデータセレクタ、2・・・・・
・サンプルホールド回路、3・・・・・・A−D変換器
、4・・・・・・読取回路をなすディジタルデータセレ
クタ、5・・・・・・制御用コンピュータ、6・・・・
・・アドレスカウンタ、7・・・・・・インバータ。
FIG. 1 is a block diagram showing an embodiment of a data input device according to the present invention, and FIG. 2 is a timing diagram illustrating the present invention in detail. 1...Analog data selector, 2...
- Sample hold circuit, 3...A-D converter, 4...Digital data selector forming a reading circuit, 5...Control computer, 6...
...Address counter, 7...Inverter.

Claims (1)

【特許請求の範囲】 1 複数のアナログデータから順次その1つを選択する
アナじグデータセレクタと、 このアナログデータセレクタのアドレス指定を行うアド
レスカウンタと、 前記アナログデータセレクタよりの出力のアナログデー
タをディジタルデータに変換するとともに、その変換作
動の完了時点を示すスティタス信号により前記アドレス
カウンタのアドレス指定を変更させるA/D変換手段と
、 各種の演算処理を実行する制御用コンピュータの割込作
動を前記スティタス信号により指令して前記A/D変換
手段より発生するディジタルデータを前記制御用コンピ
ュータに読取るための読取手段とを具備することを特徴
とするデータ入力装置。
[Claims] 1. An analog data selector that sequentially selects one of a plurality of analog data; an address counter that specifies an address for the analog data selector; A/D conversion means for converting into digital data and changing the address designation of the address counter by a status signal indicating the completion point of the conversion operation; A data input device comprising reading means for reading digital data generated by the A/D converting means into the control computer in response to a command based on a status signal.
JP50049321A 1975-04-22 1975-04-22 Data collection Expired JPS5826583B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP50049321A JPS5826583B2 (en) 1975-04-22 1975-04-22 Data collection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP50049321A JPS5826583B2 (en) 1975-04-22 1975-04-22 Data collection

Publications (2)

Publication Number Publication Date
JPS51123540A JPS51123540A (en) 1976-10-28
JPS5826583B2 true JPS5826583B2 (en) 1983-06-03

Family

ID=12827696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP50049321A Expired JPS5826583B2 (en) 1975-04-22 1975-04-22 Data collection

Country Status (1)

Country Link
JP (1) JPS5826583B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61112994U (en) * 1984-12-28 1986-07-17
JPS63188181U (en) * 1987-05-26 1988-12-02

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2441956A1 (en) * 1978-11-17 1980-06-13 Inst Francais Du Petrole MULTIPLEX SIGNAL AMPLIFICATION METHOD AND IMPLEMENTATION DEVICE
JPS59122632U (en) * 1983-02-01 1984-08-18 三洋電機株式会社 information gathering device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PDP11 PERIPHERALS AND INTERFACING HANDBOOK=1971 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61112994U (en) * 1984-12-28 1986-07-17
JPS63188181U (en) * 1987-05-26 1988-12-02

Also Published As

Publication number Publication date
JPS51123540A (en) 1976-10-28

Similar Documents

Publication Publication Date Title
JPS60237527A (en) A-d converting device
JPS5936857A (en) Processor unit
US4368433A (en) Signal converter circuit
JP2804402B2 (en) Analog-to-digital converter
JPS5826583B2 (en) Data collection
JPH0766286B2 (en) Processing method of NC device
JP3830199B2 (en) A / D converter and microcontroller
JP2003345406A (en) Control device
JPS6339939B2 (en)
JPS599307Y2 (en) Multi-point data input/output method
KR200157336Y1 (en) Analog multi-input signal processing apparatus
JPH02124691A (en) Sampling circuit
JP2715656B2 (en) Analog-to-digital converter
JPH088777B2 (en) Control circuit for inverter device
JPS6115453B2 (en)
JPS6270951A (en) Memory system for information hysteresis
JPS6152702A (en) Sequence controller
JP2884764B2 (en) Signal processor
JPH0895797A (en) Data processor
JPH0194393A (en) Electronic musical instrument
JPH0634063Y2 (en) Welding controller for resistance welding machine
JPS6140680A (en) Data gathering device
JPS61182135A (en) Process selecting system
JPH04105131A (en) Dynamic scheduling system
JPS62133A (en) Analog-digital converter