JPS5920029A - Taking-in device of sensor signal - Google Patents

Taking-in device of sensor signal

Info

Publication number
JPS5920029A
JPS5920029A JP12959282A JP12959282A JPS5920029A JP S5920029 A JPS5920029 A JP S5920029A JP 12959282 A JP12959282 A JP 12959282A JP 12959282 A JP12959282 A JP 12959282A JP S5920029 A JPS5920029 A JP S5920029A
Authority
JP
Japan
Prior art keywords
sensor
output
interruption
interrupt
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
JP12959282A
Other languages
Japanese (ja)
Inventor
Yukimasa Totsuka
戸塚 幸将
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP12959282A priority Critical patent/JPS5920029A/en
Publication of JPS5920029A publication Critical patent/JPS5920029A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To provide the adaptability and the noise resistance, by applying the output signal of a sensor to not only an interruption input terminal but also an input port to monitor an interruption signal. CONSTITUTION:An output (a) of a sensor 5 is inputted to not only an interruption input terminal INT of a microprocessor 1 through a buffer 3 for interruption input but also the processor 1 through a buffer 2 for input port. If the output (a) of the sensor 5 is changed, the interruption signal is supplied to the terminal INT to perform the interruption each time when the sensor 5 becomes active. The processor 1 reads the output of the buffer 2 after a certain time from the interruption. Thus, the processor 1 ends the execution of the interruption processing in case of the interruption caused by a noise or the like. Meanwhile, the processor 1 responds with a delay of a very short time in case of the interruption due to a true state change.

Description

【発明の詳細な説明】 本発明は、センサー信号取込装置に関し、特にマイクロ
プロセッサ等を用いた制御装置におけるセンサー信号取
込装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sensor signal acquisition device, and more particularly to a sensor signal acquisition device in a control device using a microprocessor or the like.

以下においては、本発明を複写機のセンサー信号読込ま
たは割込信号の取込みに適用した場合について述べるが
、本発明はこれに限られるものではないことは明らかで
あろう。
In the following, a case will be described in which the present invention is applied to reading a sensor signal or capturing an interrupt signal of a copying machine, but it will be clear that the present invention is not limited to this.

一般罠、マイクロプロセッサ等を用いた複写機の制御装
置においては、祖写機本体の各部に設けられたセンサー
の出力を監視し、制御装置1tC取込むことにより、複
写機本体の被制御部を制御している。
In a copying machine control device using a general trap, a microprocessor, etc., the output of the sensor installed in each part of the copying machine body is monitored, and the controlled parts of the copying machine body are controlled by incorporating the control device 1tC. It's in control.

センサーの出力の監視方法には、 (1)第1図の(b)に示すように、短期的に(サンプ
リング周期Tで)センサー出力をモニターするポーリン
グ方式と、 (2)  センサー出力がアクディプになった時(変化
したとき)に、その都度マイクロプロセッサに割込みを
行なうインターラブド方式 がある。
There are two ways to monitor sensor output: (1) As shown in Figure 1 (b), there is a polling method that monitors the sensor output in the short term (with sampling period T), and (2) a method that monitors the sensor output in the short term (with sampling period T). There is an interlaced method that interrupts the microprocessor each time a change occurs.

なお、第1図において、(a)はセンサーの出力波形、
(c)はマイクロプロセッサへの1読取信号波形をあら
れしている。tl+L2ば、センサー出力のモニタータ
イミング、TdはN号の読取り遅れ時間である。
In addition, in FIG. 1, (a) is the output waveform of the sensor,
(c) shows the waveform of one read signal to the microprocessor. tl+L2 is the sensor output monitor timing, and Td is the read delay time of the N number.

ポーリング方式は、第1図からも分るように、ヤンプリ
ング周期Tより燈い時間内に起った雑音に応答して、セ
ンサーが短時間アクテイブになるような誤動作は認識し
ないので、耐雑音性が高いという長所がある。しかし、
その反面、センサー出力が変化した時刻から、マイクロ
プロセッサがこれを認識する時刻までの間に、最大限サ
ンプリング周期だけの時間遅れが有るという欠点がある
インターラブド方式は、センサー出力がアクティブにな
ってから、マイクロプロセッサがこれを認識するまでの
間の時間遅れは無いという長所がある反面、雑音により
センサーが短詩1)Dアクティブになるようなセンサー
出力の誤動作に対しても、応答してしまうという欠点が
ある。
As can be seen from Figure 1, the polling method does not recognize malfunctions in which the sensor becomes active for a short period of time in response to noise that occurs during the lighting time after the ramping period T, so it has good noise resistance. It has the advantage of being high. but,
On the other hand, the interlaced method has the disadvantage that there is a time delay equal to the maximum sampling period between the time the sensor output changes and the time the microprocessor recognizes it. This has the advantage that there is no time delay until the microprocessor recognizes this, but on the other hand, it also responds to malfunctions in the sensor output, such as when the sensor becomes active due to noise. There are drawbacks.

本発明は、前記したポーリング方式とインターラブド方
式の欠点を除去し、利点だけを利用するために、インタ
ーラブド方式にポーリング方式を併用し、即応性と耐雑
音性を兼ね備えたセンサー信号取込装置を得ようとする
ものである。
In order to eliminate the disadvantages of the polling method and the interlaid method described above and utilize only their advantages, the present invention combines the polling method with the interlaid method, and provides a sensor signal acquisition device that has both quick response and noise resistance. It is an attempt to obtain.

このために、本発明においては、センサーの出力ヲ、マ
イクロプロセッサの割込入力端子に加えるとともに、別
に設けたポーリング用入力端子にも、同じセンサーの出
力を加え、割込み信号の状態を常に監視できるようにし
ている。
For this purpose, in the present invention, the output of the sensor is added to the interrupt input terminal of the microprocessor, and the output of the same sensor is also added to the separately provided polling input terminal, so that the state of the interrupt signal can be constantly monitored. That's what I do.

以下に、図面を参照して本発明の詳細な説明する。The present invention will be described in detail below with reference to the drawings.

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

図において、1は中央処理装置101.IJ−ドオンリ
ーメモリ 102.ランダムアクセスメモリ106、 
入出力インターフェイス104.およびこれらの間のデ
ータ伝送用の共通バス105を備えた制御用のマイクロ
プロセッサ、INTはその割込入力端子、2は入出力イ
ンターフェイス104を介して前記マイクロプロセッサ
1に接続された入力ボート用バッファ、3は割込入力用
バッファである。
In the figure, 1 is a central processing unit 101. IJ-Only Memory 102. random access memory 106,
Input/output interface 104. and a control microprocessor equipped with a common bus 105 for data transmission between them; INT is its interrupt input terminal; 2 is an input port buffer connected to the microprocessor 1 via an input/output interface 104; , 3 are interrupt input buffers.

4は、その一端を電源Vcc K接続され、他端を前記
入力ボート用バッファ2および割込入力用バッファ3に
接続された負荷抵抗、5はセンサーである。
4 is a load resistor whose one end is connected to the power supply Vcc K and the other end is connected to the input port buffer 2 and interrupt input buffer 3, and 5 is a sensor.

この例では、センサー5は前記電源V c c  およ
び接地間圧接続された発光素子51ならびに前記負荷抵
抗4の他端および接地間に接続された発光素子52より
構成される。したがって、発光素子51と受光素子52
との間に1用紙などの遮光物(図示せず)があるかない
かによって、センサー5の出力aが変化する。
In this example, the sensor 5 includes a light emitting element 51 connected to the power source Vcc and ground, and a light emitting element 52 connected between the other end of the load resistor 4 and ground. Therefore, the light emitting element 51 and the light receiving element 52
The output a of the sensor 5 changes depending on whether there is a light blocking object (not shown) such as a sheet of paper between the two.

センサー50出力aは、割込入力用バッファ6を介して
マイクロプロセンサ1の割込入力端子INTに入力され
ると共に、入力ボート用バッファ2および入出力インタ
ーフェイス104を介してマイクロプロセンサ1に入力
される。
The output a of the sensor 50 is input to the interrupt input terminal INT of the microprocessor sensor 1 via the interrupt input buffer 6, and is also input to the microprocessor sensor 1 via the input board buffer 2 and the input/output interface 104. be done.

いま、センサー50出力aが、第1図の波形(a)のよ
うに変化したとすると、センサーがアクティブ(この例
ではローレベル)Kなる度に、マイクロプロセッサ1の
割込入力端子INTに割込信号が供給されて、割込みが
行なわれる。このタイミングを、第1図(e)のII+
  ”2+  I3で示している。
Now, if the output a of the sensor 50 changes as shown in waveform (a) in FIG. An interrupt signal is provided to cause an interrupt. This timing is defined as II+ in FIG. 1(e).
”2+I3.

マイクロプロセッサ1は、前記の割込みを認識する為K
、割込処理プログラムを実行する。すなわち、“割込み
からある時間経過したときに、すなわち、第1図の(e
)に矢印で示す読取タイミングに、入出力インターフェ
イス104を介して入力ボート用バッファ2の出力を読
み込む。入力ボート用バッファ2の出力信号波形を第1
図の(d)に示している。
Microprocessor 1 uses K to recognize the above-mentioned interrupt.
, execute the interrupt processing program. In other words, "When a certain period of time has passed since the interruption, that is, (e
) The output of the input port buffer 2 is read through the input/output interface 104 at the read timing indicated by the arrow. The output signal waveform of input boat buffer 2 is
This is shown in (d) of the figure.

第1図の(d)〜(f)を参照すれば明らかなように、
例えば、同図(a)K Ir *  12のタイミング
で示したような、雑音などによって生じた偽の割込みの
場合には、ある時間後の(矢印で示す)読取タイミング
における人力ボート用バッファ2の出力〔第1図のCa
) )はローレベルである。この時は、マイクロプロセ
ッサ1、は前記の割込みは偽のものであったと判断し、
割込処理プログラムの実行を打切って、元のプログラム
に復帰する。
As is clear from FIG. 1 (d) to (f),
For example, in the case of a false interrupt caused by noise, as shown at the timing of K Ir * 12 in FIG. Output [Ca in Figure 1
)) is low level. At this time, microprocessor 1 determines that the interrupt is false,
Aborts execution of the interrupt processing program and returns to the original program.

一方、 ■3で示したように、真実の状態変化による割
込みの場合には、その後の矢印で示す読取タイミングに
おける入力ボート用バッファ2の出力は、ハイレベルで
ある。この時は、マイクロプロセッサ1は正しくこのこ
とを認識し、正規の割込みデータとして取込み、所定の
割込処理プログラムを続行する。
On the other hand, as shown in (3), in the case of an interrupt due to a real state change, the output of the input port buffer 2 at the subsequent reading timing indicated by the arrow is at a high level. At this time, the microprocessor 1 correctly recognizes this, takes it in as regular interrupt data, and continues the predetermined interrupt processing program.

したがって、この場合には、割込発生から極めて短時間
の遅れ(第1図では、I3と次の欠目Jの間の時間)で
、センサー出カの変化を認識することができ、高速応答
を実現することができる。
Therefore, in this case, changes in the sensor output can be recognized with an extremely short delay from the occurrence of the interrupt (in Figure 1, the time between I3 and the next notch J), resulting in a high-speed response. can be realized.

前述のような処理を実行するための、マイクロプロセン
サ1内K iiける動作を、第3図の割込処理プログラ
ムフローチャートによって説明する。
The operation of the microprocessor sensor 1 to execute the above-mentioned processing will be explained with reference to the interrupt processing program flowchart shown in FIG.

ステツ7’S1・・・センサー5の出力aがローレベル
に変化すると、割込み要求を生じたことが判定され、割
込処理プログラムが走り始める。
Step 7'S1: When the output a of the sensor 5 changes to low level, it is determined that an interrupt request has occurred, and the interrupt processing program starts running.

ステップS2・・・タイマが起動され、第1図(e)に
示した予定時間の計測が開始される。
Step S2: A timer is activated, and measurement of the scheduled time shown in FIG. 1(e) is started.

ステップS3・・・前記予定時間が経過したがどうが−
すなわち、タイマがカウントアツプしたか否かが判定さ
れる。
Step S3...The scheduled time has passed, what do you think?
That is, it is determined whether or not the timer has counted up.

ステップS4・・・タイマがカウントアツプすると、ス
テップS4へ進み、入力ボートバッファ2の出力が読込
まれる。
Step S4: When the timer counts up, the process advances to step S4, where the output of the input vote buffer 2 is read.

ステップS5・・・入力ポートバッファ2の出力がハイ
レベルか否か、すなわち、センサー50出力aがローレ
ベルかどうかが判定される。
Step S5: It is determined whether the output of the input port buffer 2 is at a high level, that is, whether the output a of the sensor 50 is at a low level.

このステップでの判定が成立しないときは、雑音などに
よる偽の割込みであったと判断し、割込処理プログラム
を中断して元のプログラムへ復帰する。
If the determination in this step is not satisfied, it is determined that the interrupt is a false one due to noise or the like, and the interrupt processing program is interrupted and the original program is returned to.

ステップS6・・・ステップS5での判定が成立すると
きは、割込みは正規のものであったと判断されるので、
予め決められている割込処理プログラムが続行される。
Step S6: When the determination in step S5 is established, it is determined that the interrupt was a regular one, so
The predetermined interrupt processing program continues.

なお、以上では、光カブラをセンサー5として)14い
た例について述べたが、センサーが他の種類−例えばリ
ミットスイッチなどであっても、全く同様に本発明は実
施可能である。
Although an example in which an optical coupler is used as the sensor 5 has been described above, the present invention can be implemented in the same manner even if the sensor is of another type, such as a limit switch.

以上の説明から明らかなように1本発明によれば、セン
サーの出力信号を割込入力端子に加えると共に、入力ポ
ートにも加え、割込信号の監視な行なうようにしたこと
により、センサーのアクティブ出力に対する高連応答性
を保ちつ一つ、雑音などによる誤動作を分離認識して高
い耐雑「性能を実現することができる。
As is clear from the above description, according to the present invention, the output signal of the sensor is added to the interrupt input terminal and also to the input port, and the interrupt signal is monitored. While maintaining high output response, it is also able to separate and recognize malfunctions caused by noise, achieving high noise resistance performance.

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

M1図は従来列および本発明の11の作な説明するため
のタイムチャート、第2図は本発明の一実施例のブロッ
ク図、第3図はその動作を説明するためのフローチャー
トである。 1・・・マイクロプロセッサ、  2・・・入力ボート
用バッファ、  3・・・割込入力用バッファ、  5
・・・センサー2、   −゛  ° −INT・・・
割込入力端子 代理人−jP埋士 平 木 道 人 外1名
FIG. M1 is a time chart for explaining the conventional system and 11 operations of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a flow chart for explaining its operation. DESCRIPTION OF SYMBOLS 1... Microprocessor, 2... Input board buffer, 3... Interrupt input buffer, 5
...Sensor 2, -゛ ° -INT...
Interrupt input terminal agent - JP Buri Michi Hiraki 1 non-person

Claims (1)

【特許請求の範囲】[Claims] (11割込入力端子を有し、入力ボートを介してデータ
を読込むマイクロプロセッサと、センサーと、前記セン
サーの出力を前記割込入力端子および入力ボートに供給
する手段とを具備したセンサー信号取込装置KJdいて
、マイクロプロセッサは、前記センサーの出力圧よる割
込みがあってから、予定時間後に、前記入力ボートを介
して+iiJ記センサーの出力を読込むことを特徴とす
るセンター信号取込装置。
a microprocessor having 11 interrupt input terminals and reading data via an input port; a sensor; and means for supplying the output of said sensor to said interrupt input terminal and input port; The center signal acquisition device KJd is characterized in that the microprocessor reads the output of the +iiJ sensor via the input port after a predetermined time after there is an interruption due to the output pressure of the sensor.
JP12959282A 1982-07-27 1982-07-27 Taking-in device of sensor signal Pending JPS5920029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12959282A JPS5920029A (en) 1982-07-27 1982-07-27 Taking-in device of sensor signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12959282A JPS5920029A (en) 1982-07-27 1982-07-27 Taking-in device of sensor signal

Publications (1)

Publication Number Publication Date
JPS5920029A true JPS5920029A (en) 1984-02-01

Family

ID=15013252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12959282A Pending JPS5920029A (en) 1982-07-27 1982-07-27 Taking-in device of sensor signal

Country Status (1)

Country Link
JP (1) JPS5920029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63236136A (en) * 1987-03-24 1988-10-03 Fujitsu Ten Ltd Input filter

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57201947A (en) * 1981-06-05 1982-12-10 Japan Electronic Control Syst Co Ltd Preventing method for interruption malfunction of computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57201947A (en) * 1981-06-05 1982-12-10 Japan Electronic Control Syst Co Ltd Preventing method for interruption malfunction of computer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63236136A (en) * 1987-03-24 1988-10-03 Fujitsu Ten Ltd Input filter

Similar Documents

Publication Publication Date Title
JPS5920029A (en) Taking-in device of sensor signal
KR930017341A (en) Data reception control device and method of remote controller
US5498981A (en) Ready signal control apparatus capable of automatically deactivating ready signal
JPS5878239A (en) Operation controlling circuit
JPH05289987A (en) Bus right arbitrating circuit
JPS6116094B2 (en)
JP2864861B2 (en) Response signal control circuit
JPH0317755A (en) Microprocessor application circuit
KR960010155Y1 (en) Apparatus for controlling arc discharge
JPH01321539A (en) Circuit for checking connecting state of bus connector
JPH04279912A (en) Clock control circuit
JPH04107663A (en) Control system for synchronous communication system
JPS607307B2 (en) Bus control method
JPH0222753A (en) Microcomputer system
JPS6129941A (en) Data input device
JPS60258627A (en) Microcomputer device
JPS61110242A (en) Method for detecting interrupt signal of microcomputer
JPH02166523A (en) Preventing device for interruption malfunction of computer
JPH0236636A (en) Data link system
JPH04107659A (en) Preventing circuit for miswrite of data to memory
JPH0120778B2 (en)
JPH04225432A (en) Interruption processing time control system for one-chip microcomputer
JPH01211128A (en) Phenomenon detecting system in microprocessor
JPH06110737A (en) Watchdog timer
JPS6327930A (en) Interruption control circuit