JPH01304560A - Microprocessor bus monitor controller - Google Patents
Microprocessor bus monitor controllerInfo
- Publication number
- JPH01304560A JPH01304560A JP63135953A JP13595388A JPH01304560A JP H01304560 A JPH01304560 A JP H01304560A JP 63135953 A JP63135953 A JP 63135953A JP 13595388 A JP13595388 A JP 13595388A JP H01304560 A JPH01304560 A JP H01304560A
- Authority
- JP
- Japan
- Prior art keywords
- microprocessor
- signal line
- bus
- control
- address
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野コ
この発明はマイクロプロセッサを用いた制御装置、マイ
クロプロセッサバス監視制御装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control device using a microprocessor and a microprocessor bus monitoring and control device.
[従来の技術]
この発明の先行技術としては、例えば本願出願人が昭和
59年7月25日に出願した、特願昭59−15476
1号「マイクロブロセ・ンサ監視装置」 (以上先出願
という〉の発明がある。[Prior Art] As prior art to this invention, for example, Japanese Patent Application No. 59-15476 filed by the applicant on July 25, 1980
There is an invention of No. 1 "Microbroses Monitoring Device" (hereinafter referred to as "earlier application").
第4図はこの先出願の発明の構成を示すプロ・−!り図
で、図において(MP)はマイクロプロセッサ、(C1
)は制御のタイミングを計測するためのタイマ、(Ml
)はマイクロプロセッサ(MP)のプログラムメモリを
構成するROM、(M2)はRAM、(M3)はメモリ
装置で、第4図の場合はROMを使用している。(Pl
)は出力ボート、(P2)は入力ポート、(AD)はア
ドレス信号線、(DT)はデータ信号線、(ST)はバ
ス状態信号線、(Do)は出力信号線、(DI)は入力
信号線、(TR)はトラップ信号線である。Figure 4 shows the structure of the invention of this earlier application. In the figure, (MP) is a microprocessor, (C1
) is a timer for measuring control timing, (Ml
) is a ROM constituting the program memory of the microprocessor (MP), (M2) is a RAM, and (M3) is a memory device; in the case of FIG. 4, a ROM is used. (Pl
) is the output port, (P2) is the input port, (AD) is the address signal line, (DT) is the data signal line, (ST) is the bus status signal line, (Do) is the output signal line, (DI) is the input The signal line (TR) is a trap signal line.
なお、アドレス信号線(AD)、データ信号線(DT)
、バス状態信号線(ST)を含めて、この明細書ではシ
ステムバスまたは単にバスということとする。Note that the address signal line (AD) and data signal line (DT)
, and the bus status signal line (ST) will be referred to as a system bus or simply a bus in this specification.
タイ?(C1)、ROM(Ml)、RAM(M2)、出
力ポート(PL>、入力ポート(P2)等の各デバイス
には、アドレス信号線(AD)。Thailand? (C1), ROM (Ml), RAM (M2), output port (PL>, input port (P2), etc., each has an address signal line (AD).
データ信号線(DT)、バス状態信号線(ST)が並列
に接続されており、従って総てのデバイスに同一信号が
同時に到達するが、アドレス信号線(AD)上のアドレ
ス信号が当該デバイスのアドレスと一致する場合にだけ
、バス状態信号線(ST)上の信号により指示された動
作を行う。そのため各デバイスには、それぞれアドレス
が設定されている。The data signal line (DT) and bus status signal line (ST) are connected in parallel, so the same signal reaches all devices at the same time, but the address signal on the address signal line (AD) is Only when the address matches, the operation instructed by the signal on the bus status signal line (ST) is performed. Therefore, each device has its own address set.
第6図は、アドレス信号が16ビツトで構成され(アド
レス信号線(AD)が16本ある)、アドレスが16進
数4桁で(0000)16から(FFFF)+6までの
アドレスが存在する場合、各デバイスに割り当てられた
アドレスの一例を示すメモリマツプで、斜線を施した部
分のアドレス信号は用いられていない例を示す。なお、
第5図はマイクロプロセッサ(MP)の動作を示すフロ
ーチャートであり、(10)〜(15)は各ステップを
示すものである。Figure 6 shows that when the address signal is composed of 16 bits (there are 16 address signal lines (AD)) and the address is a 4-digit hexadecimal number and there are addresses from (0000)16 to (FFFF)+6, This is a memory map showing an example of addresses assigned to each device, and the address signals in the shaded areas are not used. In addition,
FIG. 5 is a flowchart showing the operation of the microprocessor (MP), and (10) to (15) indicate each step.
以下、第5図について第4図に示す装置の動作を説明す
る。マイクロプロセッサ(MP)は、ROM(Ml)か
ら読み出したプログラムに従って動作し、制御対象プロ
セスの状態を表す信号を入力信号線(DI)、入カポ−
)−(P2)を経て入力し、これを処理して制御信号を
生成し、RAM(M2)に−時記憶して、これを出力ポ
ート(Pl)、出力信号線(DO)を経て制御対象プロ
セスへ出力することはよく知られているところである。The operation of the apparatus shown in FIG. 4 will be explained below with reference to FIG. The microprocessor (MP) operates according to a program read from the ROM (Ml), and sends a signal representing the state of the controlled process to the input signal line (DI) and the input port.
) - (P2), process this to generate a control signal, store it in RAM (M2), and send it to the controlled object via the output port (Pl) and output signal line (DO). Output to a process is well known.
このマイクロプロセッサ(MP)は、電源オンあるいは
リセット信号により、初期状態となり、ステップ(10
)でRAM(M2)及び出力ポート(Pl)の状態を初
期設定した後、制御動作を開始する。即ち、ステップ(
11)において、始めに入力ポート(P2)から被制御
装置の状態を取り込み、RAM(M2)に格納しである
制御情報との比較処理を行い、出力ポート(Pl)に送
出する制御信号を決定する。次のステップ(12)にお
いて、出力ポート(Pl〉に制御信号を送出するタイミ
ングを、出力ポート(Pl)の状態及びタイマ(C1)
の値から計測し、送出タイミングに達した場合、出力ポ
ート(Pl)へ制御信号を送出する(ステップ(13)
)。制御信号送出後、入力ポート(P2)の状態、RA
M (M2)のデータ等から、制御を継続するか否かス
テップ(14)で判断し、継続するものであればステッ
プ(11)へ戻り、制御を終了するものであればステッ
プ(15)に移り、制御終了の処理を行う。This microprocessor (MP) enters the initial state by turning on the power or by a reset signal, and step (10)
), after initializing the states of the RAM (M2) and the output port (Pl), the control operation is started. That is, step (
In step 11), the state of the controlled device is first fetched from the input port (P2), and a comparison process is performed with the control information stored in the RAM (M2) to determine the control signal to be sent to the output port (Pl). do. In the next step (12), the timing at which the control signal is sent to the output port (Pl) is determined based on the state of the output port (Pl) and the timer (C1).
When the sending timing is reached, a control signal is sent to the output port (Pl) (step (13)).
). After sending the control signal, the status of the input port (P2), RA
Based on the data of M (M2), it is determined in step (14) whether or not to continue the control. If the control is to be continued, the process returns to step (11), and if the control is to be terminated, the process is to step (15). and performs control termination processing.
但し、ノイズ等によりアドレス信号線(AD)上のアド
レス信号の値が異常な値となり、即ち、第6図の斜線に
示す値となると、メモリ装置(M3)からトラップ信号
線(TR)上に異常状態を示す信号が出力され、マイク
ロプロセッサ(MP)の動作を中断し、状況に応じて制
御装置、被制御装置の初期化、或はこれらの装置の動作
の停止を行う。これはROM (Ml )、RAM (
M2)。However, if the value of the address signal on the address signal line (AD) becomes an abnormal value due to noise or the like, that is, the value shown in the diagonal line in FIG. A signal indicating an abnormal state is output, the operation of the microprocessor (MP) is interrupted, and depending on the situation, the control device and the controlled device are initialized, or the operation of these devices is stopped. This is ROM (Ml), RAM (
M2).
入力ボート(P2)等に存在しないアドレスを指示して
不正なデータを取り込み、このデータが不正であること
に気づかないで処理を行い、その結果マイクロプロセッ
サ(MP)や制御装置、被制御装置が異常動作したり、
暴走したりするのを防止するためである。Invalid data is input by specifying a non-existent address to the input port (P2), etc., and the data is processed without realizing that it is invalid, resulting in damage to the microprocessor (MP), control device, and controlled device. It works abnormally or
This is to prevent the vehicle from running out of control.
[発明が解決しようとする課題]
従来の装置は以上のように構成されていているので、マ
イクロプロセッサ(MP)の暴走は防止できるが、次に
述べるような場合には対処することができないという問
題がある。[Problem to be solved by the invention] Since the conventional device is configured as described above, it is possible to prevent the microprocessor (MP) from running out of control, but it cannot deal with the following cases. There's a problem.
第2図は、出力ポート(Pl)及び入力ポート(P2>
(以下単にボートという)の動作タイミグを示す動作タ
イムチャートで、図において(P ″AC)はボー
トがアクセスされているタイミング、(MAY)はマイ
クロプロセッサ(MP)の動作状態を示すものであるが
、この第2図に示すようにボートに初めのコマンドを与
えてから次のコマンドを与えるまでには、初めのコマン
ドの影響が消滅するまで回復時間を必要とするが、この
回復時間がマイクロプロセッサ(MP)の動作の1サイ
クルより長い場合がある。このような場合マイクロプロ
セッサ(MP)の動作サイクルにしたがって次のコマン
ドがボートに与えられると、誤動作が生じることになる
。Figure 2 shows the output port (Pl) and input port (P2>
(hereinafter simply referred to as the boat) is an operation time chart showing the operation timing of the boat. In the figure, (P''AC) indicates the timing when the boat is being accessed, and (MAY) indicates the operating state of the microprocessor (MP). As shown in Figure 2, after giving the first command to the boat and before giving the next command, a recovery time is required until the influence of the first command disappears, but this recovery time is limited to the microprocessor. (MP) may be longer than one cycle of operation.In such a case, when the next command is given to the boat according to the operation cycle of the microprocessor (MP), a malfunction will occur.
従来の技術ではこのような場合に対処するため、同一ポ
ートを連続してアクセスする場合には、2つのアクセス
命令の間に意味のないダミーの命令、たとえば「ノー・
オペレーション」や「次番地へジャンプ」等の命令を挿
入するように、プログラムを組んで対処しているが、こ
のようなボートを意識しながらプログラムを組むのは面
倒であり、またマイクロプロセッサ(MP)以外のデバ
イスがバスを管理する場合には(この場合このデバイス
をバスマスタという)、プログラムによって問題を解決
することができない。In conventional technology, in order to deal with such cases, when accessing the same port consecutively, a meaningless dummy instruction, such as a "no" instruction, is inserted between two access instructions.
The solution is to write a program to insert commands such as ``operation'' and ``jump to next address,'' but it is troublesome to write a program while keeping these types of boats in mind, and the microprocessor (MP ) (in this case, this device is called the bus master), the problem cannot be solved programmatically.
この発明は従来の装置における上記の課題を解決するた
めになされたもので、マイクロプロセッサ(MP)を監
視制御することができるばかりでなく、システムバスに
接続されている総てのデバイスを監視制御することがで
きる装置を提供することを目的としている。This invention was made to solve the above-mentioned problems in conventional devices, and it is not only possible to monitor and control a microprocessor (MP), but also to monitor and control all devices connected to a system bus. The purpose is to provide a device that can.
[課題を解決するための手段]
この発明にかかる装置では、アドレス信号線上の信号や
バス状態信号線上の信号を監視し、これらの信号が予め
設定した設定値となった時点から所定時間の間、バスマ
スクがシステムバスを開放するように制御することとし
た。[Means for Solving the Problems] The device according to the present invention monitors the signals on the address signal line and the signals on the bus status signal line, and monitors the signals on the address signal line and the bus status signal line for a predetermined period of time from the time when these signals reach a preset value. , we decided to control the bus mask to open the system bus.
[作用]
この発明においては、ボートかアクセスされた場合、そ
のボートが回復するまでの間、システムバスはその状態
を維持しているので、引き続いてボートがアクセスされ
ても誤動作を生じることがなくなる。[Operation] In this invention, when a boat is accessed, the system bus maintains its state until the boat recovers, so that malfunctions will not occur even if the boat is subsequently accessed. .
[実施例]
以下、この発明の実施例を図面を用いて説明する。第1
図はこの発明の一実施例を示すブロック図で、図におい
て第4図と同一符号は同−又は相当部分を示し、(cp
)は比較回路、(TM)はタイマ回路である。[Examples] Examples of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing one embodiment of the present invention. In the figure, the same reference numerals as in FIG. 4 indicate the same or corresponding parts.
) is a comparison circuit, and (TM) is a timer circuit.
比較回路(CP)には出力ポート(PL)及び入力ポー
ト(P2)のアドレス(第6図参照)と、これらのボー
トへのアクセス命令を表すコードとが設定されており、
アドレス信号線(AD)上の信号がこれらのボートのア
ドレスに一致し、バス状態信号線(ST)上の信号がこ
れらのボートへのアクセス命令であるときには、比較回
路(cp)が一致信号を出力してタイマ回路(TM)を
制御する。タイマ回路(TM)は、この制御によりセッ
トされ、セット時点から予め設定した時間経過後に自動
的にリセットされる。The comparator circuit (CP) is set with the addresses of the output port (PL) and input port (P2) (see Figure 6) and codes representing access commands to these ports.
When the signal on the address signal line (AD) matches the address of these boats and the signal on the bus status signal line (ST) is an access command to these boats, the comparison circuit (cp) detects the match signal. It outputs and controls the timer circuit (TM). The timer circuit (TM) is set by this control, and is automatically reset after a preset time has elapsed from the time of setting.
第3図はこのタイマ回路(TM)の動作を示す動作タイ
ムチャートで、第2図と同一符号は同−又は相当信号を
示し、(TMO)はタイマ回路(TM)の出力波形を示
す。(TMO)が論理「L」である期間、マイクロプロ
セッサ(MP)へのクロック信号の入力を阻止すれば、
その間マイクロプロセッサ(MP)は動作を停止するの
で、この停止期間にボートが次のコマンドを受は付ける
ような状態に回復することになり、プログラム上ではボ
ートの回復時間を意識する必要がなくなる。FIG. 3 is an operation time chart showing the operation of this timer circuit (TM), where the same symbols as in FIG. 2 indicate the same or equivalent signals, and (TMO) indicates the output waveform of the timer circuit (TM). If the input of the clock signal to the microprocessor (MP) is blocked during the period when (TMO) is at logic "L",
Since the microprocessor (MP) stops operating during this period, the boat recovers to a state in which it can accept the next command during this halt period, and there is no need to be aware of the boat's recovery time in the program.
なお上記実施例では、比較回路(cp)でボートを監視
することとしているが、その他のデバイスをも監視する
ように構成することは容易でありまた第1図の比較回路
(CP)と第3図のメモリ装置(M3)とを併用して両
方の目的を達成する装置を構成することも可能である。In the above embodiment, the boat is monitored by the comparator circuit (CP), but it is easy to configure it to monitor other devices as well, and the comparator circuit (CP) in FIG. It is also possible to configure a device that achieves both objectives by using the memory device (M3) shown in the figure.
[発明の効果]
この発明は以上説明したとおり、マイクロプロセッサ(
MP)のシステムバスの状態を監視し、ボートがアクセ
スされる場合、所定時間バスマスタにシステムバスを開
放させることとしたので、ボートの回復時間をとること
ができ、引き続いてボートがアクセスされても誤動作を
生じることがなくなるという効果がある。[Effects of the Invention] As explained above, this invention utilizes a microprocessor (
The system bus status of MP) is monitored, and when the boat is accessed, the bus master is made to release the system bus for a predetermined period of time. This allows time for the boat to recover, and even if the boat is accessed subsequently, This has the effect of eliminating malfunctions.
第1図はこの発明の一実施例を示すブロック図、第2図
は第1図に示す出力ボート、入力ポートの動作を示す動
作タイムチャート、第3図は第]−図に示すタイマ回路
の動作を示す動作タイムチャート、第4図は従来の装置
の構成を示すブロック図、第5図は第4図に示すマイク
ロプロセッサの動作を示すフローチャート、第6図はア
ドレスの割り付けを示すメモリマツプ。
(MP)はマイクロプロセッサ、(AD)はアドレス信
号線、(ST)はバス状態信号線、(Pl)は出力ポー
ト、(P2)は入力ポート、(CP)は比較回路、(T
M)はタイマ回路。
なお、各図中同一符号は同−又は相当部分を示すものと
する。1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an operation time chart showing the operation of the output port and input port shown in FIG. 1, and FIG. 3 is a time chart showing the operation of the timer circuit shown in FIG. 4 is a block diagram showing the configuration of a conventional device; FIG. 5 is a flowchart showing the operation of the microprocessor shown in FIG. 4; and FIG. 6 is a memory map showing address allocation. (MP) is a microprocessor, (AD) is an address signal line, (ST) is a bus status signal line, (Pl) is an output port, (P2) is an input port, (CP) is a comparison circuit, (T
M) is a timer circuit. Note that the same reference numerals in each figure indicate the same or corresponding parts.
Claims (1)
クロプロセッサのシステムバスの状態を監視して必要な
制御を行うマイクロプロセッサバス監視制御装置におい
て、 上記システムバスのうちのアドレス信号線上のアドレス
信号とバス状態信号線上の信号とを入力し、これらの信
号が予め設定された値に一致したとき一致信号を出力す
る比較回路、 この比較回路からの一致信号によりセットされ、セット
時点から予め設定した時間経過後にリセットされるタイ
マ回路、 このタイマ回路がセット状態にある期間、上記システム
バスを管理するバスマスタが上記システムバスを開放す
るよう制御する手段、 を備えたことを特徴とするマイクロプロセッサバス監視
制御装置。[Scope of Claims] A microprocessor bus monitoring and control device that is attached to a control device using a microprocessor and monitors the state of a system bus of the microprocessor and performs necessary control, comprising: an address signal line of the system bus; A comparison circuit that inputs the address signal of the address signal and the signal on the bus status signal line and outputs a match signal when these signals match a preset value. A microcontroller comprising: a timer circuit that is reset after a preset time has elapsed; and means for controlling a bus master that manages the system bus to open the system bus while the timer circuit is in the set state. Processor bus monitoring control device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63135953A JPH01304560A (en) | 1988-06-02 | 1988-06-02 | Microprocessor bus monitor controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63135953A JPH01304560A (en) | 1988-06-02 | 1988-06-02 | Microprocessor bus monitor controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01304560A true JPH01304560A (en) | 1989-12-08 |
Family
ID=15163701
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63135953A Pending JPH01304560A (en) | 1988-06-02 | 1988-06-02 | Microprocessor bus monitor controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01304560A (en) |
-
1988
- 1988-06-02 JP JP63135953A patent/JPH01304560A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH08163883A (en) | Motor control device | |
| JPS59158425A (en) | Control system of input and output device | |
| JP6835422B1 (en) | Information processing device and information processing method | |
| JPH05327728A (en) | Central processing unit of data transfer system | |
| JP2000172575A (en) | Memory backup system | |
| JP2003050647A (en) | Memory device and protection method thereof | |
| JP3348775B2 (en) | LAN switch | |
| JPH0592833U (en) | Information processing equipment | |
| JPH09212201A (en) | Control circuit for production equipment | |
| JP3022906B2 (en) | Communication method of programmable controller | |
| JP3033640B2 (en) | CPU operation monitoring circuit | |
| JPH0716190Y2 (en) | Vending machine controller | |
| JPS6318229B2 (en) | ||
| SU1456966A1 (en) | Arrangement for controlling access to system bus in double-processor system | |
| JP2978626B2 (en) | DMA controller | |
| JPS63200254A (en) | Memory write control circuit | |
| JPS6278617A (en) | Power saving mpu system | |
| JPH04199208A (en) | System for controlling resetting of memory | |
| JPH05257752A (en) | Operation abnormality detecting system for cpu | |
| JPH10307601A (en) | CPU output control circuit | |
| JPS62198940A (en) | Abnormality detecting system for controller using microcomputer | |
| JPH1011325A (en) | Programmable controller | |
| JPH0635757A (en) | CPU abnormality detection device | |
| JPH0784813A (en) | CPU malfunction prevention circuit | |
| JPH0997244A (en) | Data communication monitoring system |