Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5489880B2 - Central processing unit, control system, and port setting method - Google Patents
[go: Go Back, main page]

JP5489880B2 - Central processing unit, control system, and port setting method - Google Patents

Central processing unit, control system, and port setting method Download PDF

Info

Publication number
JP5489880B2
JP5489880B2 JP2010145815A JP2010145815A JP5489880B2 JP 5489880 B2 JP5489880 B2 JP 5489880B2 JP 2010145815 A JP2010145815 A JP 2010145815A JP 2010145815 A JP2010145815 A JP 2010145815A JP 5489880 B2 JP5489880 B2 JP 5489880B2
Authority
JP
Japan
Prior art keywords
wait
processing unit
central processing
terminal
cpu
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.)
Active
Application number
JP2010145815A
Other languages
Japanese (ja)
Other versions
JP2012008898A (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.)
Yazaki Corp
Original Assignee
Yazaki 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 Yazaki Corp filed Critical Yazaki Corp
Priority to JP2010145815A priority Critical patent/JP5489880B2/en
Publication of JP2012008898A publication Critical patent/JP2012008898A/en
Application granted granted Critical
Publication of JP5489880B2 publication Critical patent/JP5489880B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Bus Control (AREA)

Description

本発明は、中央演算処理装置、制御システム、及び、ポート設定方法に係り、ウエイト信号がウエイト端子に入力されると一時的に処理を停止するウエイト処理を行う中央演算処理装置、当該中央演算処理装置を備えた制御システム、及び、当該中央演算処理装置によって実施されるポート設定方法に関するものである。   The present invention relates to a central processing unit, a control system, and a port setting method, and relates to a central processing unit that performs weight processing for temporarily stopping processing when a wait signal is input to a weight terminal, and the central processing unit The present invention relates to a control system including a device and a port setting method implemented by the central processing unit.

近年、中央演算処理装置(以下CPU)の高性能化に伴って、1つのCPUで複数の外部機器の制御を行っている。このように複数の外部機器の制御を行うCPUとして例えば図3に示された制御システムが提案されている。   In recent years, with the improvement in performance of a central processing unit (hereinafter referred to as CPU), a single CPU controls a plurality of external devices. For example, a control system shown in FIG. 3 has been proposed as a CPU for controlling a plurality of external devices.

同図に示すように、制御システム1は、システム全体の制御を司るCPU2を備えている。このCPU2は、電源3からの電源供給を受けて動作を行う。このCPU2のポートP1には、入力I/F4が接続されていて、車両に搭載された各種センサの計測値や操作手段の操作状態が入力されている。   As shown in the figure, the control system 1 includes a CPU 2 that controls the entire system. The CPU 2 operates by receiving power from the power source 3. An input I / F 4 is connected to the port P1 of the CPU 2, and the measurement values of various sensors mounted on the vehicle and the operation states of the operation means are input.

また、上記CPU2の複数のポートP2〜P5にはそれぞれ、外部機器としてのステッパ制御IC5と、LED制御IC6と、LCDコントローラIC7と、CAN通信I/FIC8と、が接続されている。上記ステッパ制御IC5は、車両に搭載されたスピードメータやタコメータの指針を動かすステッパモータ51、52の駆動を制御するICである。   Further, a stepper control IC 5, an LED control IC 6, an LCD controller IC 7, and a CAN communication I / FIC 8 as external devices are connected to the plurality of ports P 2 to P 5 of the CPU 2. The stepper control IC 5 is an IC that controls the driving of stepper motors 51 and 52 that move the pointers of a speedometer and a tachometer mounted on the vehicle.

LED制御IC6は、LED61、62の点灯を制御するICである。LCDコントローラIC7は、LCD71の表示を制御するICである。CAN通信I/FIC8は、車両内でのCAN通信を行うためのICである。上記CPU2は、例えば入力I/F4から入力された各種センサの計測値や操作手段の操作状態に応じて、これらIC5〜8の動作を制御する。   The LED control IC 6 is an IC that controls the lighting of the LEDs 61 and 62. The LCD controller IC 7 is an IC that controls display on the LCD 71. The CAN communication I / FIC 8 is an IC for performing CAN communication in the vehicle. The CPU 2 controls the operations of the ICs 5 to 8 according to, for example, the measurement values of various sensors input from the input I / F 4 and the operation state of the operation means.

ところで、上述したCPU2には、例えばLCDコントローラIC7などCPU2自身よりも処理速度の遅い外部機器が接続されることがある。このようにLCDコントローラIC7の処理速度に比べてCPU2の処理速度が非常に速い場合、LCDコントローラIC7によるCPU2から送信されるデータの処理が間に合わないことがある。   By the way, an external device having a slower processing speed than the CPU 2 itself, such as the LCD controller IC 7, may be connected to the CPU 2 described above. As described above, when the processing speed of the CPU 2 is much higher than the processing speed of the LCD controller IC 7, processing of data transmitted from the CPU 2 by the LCD controller IC 7 may not be in time.

そこで、上記LCDコントローラIC7に、データ処理が間に合わない場合、CPU2のウエイト端子T1に対してHiレベルのウエイト信号を出力させる。さらに、CPU2に、ウエイト端子T1にHレベルのウエイト信号が入力されると、一時的に処理を停止してLCDコントローラIC7に対するデータの処理を停止するウエイト動作を行わせることが考えられている。   Therefore, when the data processing is not in time, the LCD controller IC 7 outputs a high-level wait signal to the wait terminal T1 of the CPU 2. Further, it is considered that when a wait signal at H level is input to the wait terminal T1, the CPU 2 is caused to perform a wait operation to temporarily stop processing and stop data processing for the LCD controller IC7.

このウエイト端子T1にウエイト信号を入力されている間、CPU2はウエイト動作の解除を優先的に待つため、何も処理できない状態となり、他のIC5、6、8を制御する処理も停止してしまう。通常であれば、LCDコントローラIC7によりすぐにウエイト信号の出力が停止されるので、問題はないが、何らかの理由でウエイト端子T1がHiで一定になることがある。この場合、CPU2のウエイト動作が解除されずLCDコントローラIC7の制御だけでなく、他のIC5、6、8の制御も停止されてしまう、という問題が生じていた。   While the wait signal is input to the wait terminal T1, the CPU 2 preferentially waits for the release of the wait operation, so that nothing can be processed, and processing for controlling the other ICs 5, 6, and 8 is also stopped. . Normally, there is no problem since the output of the wait signal is immediately stopped by the LCD controller IC7, but there is no problem, but the wait terminal T1 may be constant at Hi for some reason. In this case, there is a problem in that the wait operation of the CPU 2 is not released and not only the control of the LCD controller IC 7 but also the control of the other ICs 5, 6, 8 are stopped.

WO98/38571WO98 / 38571

そこで、本発明は、何らかの信号異常が生じて、ウエイト動作が継続する状態になってもウエイト信号を出力する低速外部機器以外の外部機器の制御を行うことができる演算処理装置、当該演算処理装置を備えた制御システム及び中央演算処理装置によって実施されるポート設定方法を提供することを課題とする。   Therefore, the present invention provides an arithmetic processing device capable of controlling an external device other than a low-speed external device that outputs a wait signal even when a signal abnormality occurs and the wait operation continues, and the arithmetic processing device It is an object of the present invention to provide a port setting method implemented by a control system and a central processing unit including

上述した課題を解決するための請求項1記載の発明は、複数の外部機器を制御する制御処理を行う中央演算処理装置であって、前記複数の外部機器にそれぞれ接続される複数のポートと、前記複数の外部機器のうち前記中央演算処理装置よりも処理能力が遅い低速外部機器からのウエイト信号が入力されるウエイト端子と、前記ウエイト端子に前記ウエイト信号が入力されると前記制御処理を停止するウエイト処理を行うウエイト手段と、立ち上がり時に前記複数のポート及び前記ウエイト端子の設定を行うポート設定手段と、を備えた中央演算処理装置において、立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されている場合、前記ポート設定手段が、前記低速外部機器に接続されるポート及び前記ウエイト端子の設定を行わずに前記複数のポートのうち前記低速外部機器に接続されるポートを除いて設定を行うことを特徴とする中央演算処理装置に存する。   The invention according to claim 1 for solving the above-described problem is a central processing unit that performs control processing for controlling a plurality of external devices, and includes a plurality of ports respectively connected to the plurality of external devices; Among the plurality of external devices, a wait terminal to which a wait signal is input from a low-speed external device whose processing capability is slower than that of the central processing unit, and the control process is stopped when the wait signal is input to the wait terminal In a central processing unit comprising weight means for performing weight processing and port setting means for setting the plurality of ports and the weight terminal at the time of rising, a weight signal is input to the weight terminal at the time of rising. The port setting means sets the port connected to the low-speed external device and the weight terminal. It lies in a central processing unit, characterized in that to set except the port which is connected to the low-speed external device among the plurality of ports without.

請求項2記載の発明は、立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されていない場合、前記ポート設定手段が、前記複数のポート全て及び前記ウエイト端子の設定を行うことを特徴とする請求項1に記載の中央演算処理装置に存する。   According to a second aspect of the present invention, the port setting means sets all of the plurality of ports and the weight terminal when no wait signal is input to the weight terminal at the time of rising. It exists in the central processing unit of item 1.

請求項3記載の発明は、請求項1又は2に記載の中央演算処理装置と、定期的に前記中央演算処理装置との通信を行い、一定時間以上通信できないと前記中央演算処理装置をリセットするウオッチドックタイマと、を備えたことを特徴とする制御システムに存する。   The invention according to claim 3 periodically communicates with the central processing unit according to claim 1 or 2 with the central processing unit, and resets the central processing unit when communication cannot be performed for a certain time or more. A control system comprising a watchdog timer.

請求項4記載の発明は、複数の外部機器を制御する制御処理を行う中央演算処理装置であって、前記複数の外部機器にそれぞれ接続される複数のポートと、前記複数の外部機器のうち前記中央演算処理装置よりも処理能力が遅い低速外部機器からのウエイト信号が入力されるウエイト端子と、前記ウエイト端子に前記ウエイト信号が入力されると前記制御処理を停止するウエイト処理を行うウエイト手段と、を備えた中央演算処理装置のポート設定方法において、立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されている場合、前記低速外部機器に接続されるポート及び前記ウエイト端子の設定を行わずに前記複数のポートのうち前記低速外部機器に接続されるポートを除いて設定を行う
ことを特徴とするポート設定方法に存する。
The invention according to claim 4 is a central processing unit that performs a control process for controlling a plurality of external devices, and a plurality of ports respectively connected to the plurality of external devices, and of the plurality of external devices, the A weight terminal for inputting a weight signal from a low-speed external device having a processing capacity slower than that of the central processing unit, and a weight means for performing a weight process for stopping the control processing when the weight signal is input to the weight terminal; In the port setting method of the central processing unit having the above, when a wait signal is input to the weight terminal at the time of start-up, the port connected to the low-speed external device and the weight terminal are not set. In the port setting method, the setting is performed except for a port connected to the low-speed external device among the plurality of ports. To do.

以上説明したように請求項1及び4記載の発明によれば、立ち上がり時にウエイト端子に対してウエイト信号が入力されている場合、信号異常と判断して、低速外部機器に接続されるポート及びウエイト端子の設定を行わず複数のポートのうち低速外部機器に接続されるポートを除いて設定を行う。これにより、何らかの信号異常が生じて、ウエイト動作が継続する状態になっても低速外部機器の制御及びウエイト動作のみが停止され、低速外部機器以外の外部機器の制御は行うことができる。   As described above, according to the first and fourth aspects of the invention, when a wait signal is input to the weight terminal at the time of rising, it is determined that the signal is abnormal, and the port and the weight connected to the low-speed external device Do not set the terminal, but set the ports except those connected to low-speed external devices. As a result, even if some signal abnormality occurs and the wait operation continues, only the control of the low speed external device and the wait operation are stopped, and the control of the external device other than the low speed external device can be performed.

請求項2記載の発明によれば、立ち上がり時にウエイト端子に対してウエイト信号が入力されていない場合、ポート設定手段が、複数のポート全て及び前記ウエイト端子の設定を行うので、正常時は全ての外部機器の制御とウエイト動作を行うことができる。   According to the second aspect of the present invention, when no wait signal is input to the weight terminal at the time of rising, the port setting means sets all of the plurality of ports and the weight terminal. External device control and wait operation can be performed.

請求項3記載の発明によれば、ウオッチドックタイマが、定期的に中央演算処理装置との通信を行い、ウエイト動作が継続して一定時間以上通信できないと中央演算処理装置をリセットする。これにより、何らかの信号異常が生じて、ウエイト動作が継続する状態になるとウオッチドックタイマが中央演算処理装置をリセットして立ち上げられるので、自動的に低速外部機器以外の外部機器の制御を復帰することができる。   According to the third aspect of the present invention, the watchdog timer periodically communicates with the central processing unit, and resets the central processing unit when the wait operation continues and communication cannot be performed for a predetermined time or longer. As a result, when some signal abnormality occurs and the wait operation continues, the watchdog timer resets the central processing unit and starts up, so control of external devices other than low-speed external devices is automatically restored. be able to.

本発明のCPU、情報処理装置を組み込んだ制御システムの一実施形態を示すブロック図である。It is a block diagram which shows one Embodiment of the control system incorporating CPU and information processing apparatus of this invention. 図1に示すCPUのイニシャル時のポート設定処理手順を示すフローチャートである。It is a flowchart which shows the port setting process sequence at the time of initialization of CPU shown in FIG. 従来のCPUを組み込んだ制御システムの一例を示すブロック図である。It is a block diagram which shows an example of the control system incorporating the conventional CPU.

以下、本発明の中央演算処理装置(CPU)、制御システム及びポート設定方法を図1及び図2に基づいて説明する。同図に示すように、本発明のCPU2を組み込んだ制御システム1は、複数の外部機器としてのステッパ制御IC5、LED制御IC6、LCDコントローラIC7及びCAN通信I/FIC8に接続され、これらIC5〜8を制御するCPU2と、CPU2と定期的に通信を行い、一定時間以上通信できないとCPU2をリセットするウオッチドックタイマ(以下W/D)10と、を備えている。   Hereinafter, a central processing unit (CPU), a control system, and a port setting method according to the present invention will be described with reference to FIGS. As shown in the figure, the control system 1 incorporating the CPU 2 of the present invention is connected to a stepper control IC 5, LED control IC 6, LCD controller IC 7 and CAN communication I / FIC 8 as a plurality of external devices. And a watchdog timer (hereinafter referred to as W / D) 10 that resets the CPU 2 when it communicates with the CPU 2 periodically and cannot communicate for a certain period of time.

上記ステッパ制御IC5は、車両に搭載されたスピードメータやタコメータの指針を動かすステッパモータ51、52の駆動を制御するICである。上記LED制御IC6は、車両に搭載されたLED61、62の点灯を制御するICである。LCDコントローラIC7は、LCD71の表示を制御するICである。CAN通信I/FIC8は、車両内でのCAN通信を行うためのICである。   The stepper control IC 5 is an IC that controls the driving of stepper motors 51 and 52 that move the pointers of a speedometer and a tachometer mounted on the vehicle. The LED control IC 6 is an IC that controls lighting of the LEDs 61 and 62 mounted on the vehicle. The LCD controller IC 7 is an IC that controls display on the LCD 71. The CAN communication I / FIC 8 is an IC for performing CAN communication in the vehicle.

上述したLCDコントローラIC7は、後述するCPU2よりも処理能力が遅い低速外部機器であり、CPU2から送信されるデータの処理が間に合わない場合、ウエイト信号を出力してCPU2の動作を一時的に停止してデータの送信を停止させる。   The LCD controller IC 7 described above is a low-speed external device whose processing capability is slower than that of the CPU 2 to be described later. If the processing of data transmitted from the CPU 2 is not in time, a wait signal is output to temporarily stop the operation of the CPU 2. Stop sending data.

上記CPU2は、電源3からの電源供給を受けて動作を行う。CPU2には、複数のポートP1〜P6、ウエイト端子T1、リセット端子T2及びリフレッシュ端子T3が設けられている。上記ポートP1には、入力I/F4が接続されていて、車両に搭載された各種センサの計測値や操作手段の操作状態がCPU2に入力される。   The CPU 2 operates by receiving power from the power source 3. The CPU 2 is provided with a plurality of ports P1 to P6, a wait terminal T1, a reset terminal T2, and a refresh terminal T3. An input I / F 4 is connected to the port P1, and measurement values of various sensors mounted on the vehicle and operation states of operation means are input to the CPU 2.

上記ポートP2には、上記ステッパ制御IC5が接続されている。CPU2は、ポートP2からステッパ制御IC5に対して駆動制御信号を出力して、ステッパ制御IC5を制御している。上記ポートP3には、上記LED制御IC6が接続されている。CPU2は、ポートP3からLED制御IC6に対して点灯制御信号を出力して、LED制御IC6を制御している。   The stepper control IC 5 is connected to the port P2. The CPU 2 controls the stepper control IC 5 by outputting a drive control signal from the port P2 to the stepper control IC 5. The LED control IC 6 is connected to the port P3. The CPU 2 controls the LED control IC 6 by outputting a lighting control signal from the port P3 to the LED control IC 6.

上記ポートP4には、上記LCDコントローラIC7が接続されている。CPU2は、ポートP4からLCDコントローラIC7に対してLCD71に表示させるデータを送信して、LCDコントローラIC7を制御している。上記ポートP5及びP6には、CAN通信I/FIC8が接続されている。CPU2は、ポートP5からCAN通信I/FIC8に対して送信データを出力し、CAN通信I/FIC8からの受信データをポートP6から入力して、CAN通信I/FIC8を制御している。   The LCD controller IC 7 is connected to the port P4. The CPU 2 controls the LCD controller IC 7 by transmitting data to be displayed on the LCD 71 to the LCD controller IC 7 from the port P4. A CAN communication I / FIC 8 is connected to the ports P5 and P6. The CPU 2 outputs transmission data from the port P5 to the CAN communication I / FIC 8 and inputs reception data from the CAN communication I / FIC 8 from the port P6 to control the CAN communication I / FIC 8.

また、上記ウエイト端子T1には、LCDコントローラIC7が接続されていて、LCDコントローラIC7から出力されるHiレベルのウエイト信号が入力される。CPU2は、ウエイト信号の入力によりウエイト端子T1がHiレベルになると、ウエイト手段として働き、所定クロックだけ動作を停止する所謂ウエイト動作を行う。このウエイト動作中、CPU2は何も処理ができないため、全てのIC5〜7の制御が停止される。   Further, the LCD controller IC7 is connected to the weight terminal T1, and a high-level wait signal output from the LCD controller IC7 is input. When the wait terminal T1 becomes Hi level by the input of the wait signal, the CPU 2 performs a so-called wait operation that functions as a wait means and stops the operation for a predetermined clock. During this wait operation, the CPU 2 cannot perform any processing, so control of all the ICs 5 to 7 is stopped.

また、上記リフレッシュ端子T2及びリセット端子T3には、W/D10が接続されている。CPU2は、処理が正常に行われている間は定期的にリフレッシュ端子T2からリフレッシュ信号を出力する。CPU2が暴走したりウエイト動作を行っている間など、CPU2が何も処理できない状態では上記リフレッシュ信号を出力することができない。   Further, the W / D 10 is connected to the refresh terminal T2 and the reset terminal T3. The CPU 2 periodically outputs a refresh signal from the refresh terminal T2 while the process is normally performed. The refresh signal cannot be output when the CPU 2 cannot process anything, such as when the CPU 2 runs out of control or performs a wait operation.

上記W/D10は、CPU2の暴走やウエイト信号異常が発生してウエイト動作が継続して、リフレッシュ端子T2からリフレッシュ信号が出力されていない状態が一定時間以上継続すると、リセット端子T3に対してリセット信号を出力する。   The W / D 10 is reset with respect to the reset terminal T3 when the runaway of the CPU 2 or the wait signal abnormality occurs and the wait operation continues and the state where the refresh signal is not output from the refresh terminal T2 continues for a certain time or more. Output a signal.

CPU2は、リセット端子T3からリセット信号が入力されると、強制的に処理を終了して、再び立ち上げを行い初期状態に戻す。CPU2には、図示しないROMが接続されている。このROMには、ポート設定処理などを含む初期化プログラムや、各IC5〜6の制御プログラムが記録されている。CPU2は、リセットや電源オンなどの立ち上がり時には図示しないROMから初期化プログラムを読み出して初期化を実行し、その後、制御プログラムを読み出してICの制御を実行する。   When the reset signal is input from the reset terminal T3, the CPU 2 forcibly ends the process, starts up again, and returns to the initial state. A ROM (not shown) is connected to the CPU 2. The ROM stores an initialization program including port setting processing and the like, and control programs for the ICs 5 to 6. The CPU 2 reads an initialization program from a ROM (not shown) at the time of start-up such as reset or power-on and executes initialization, and then reads the control program and executes control of the IC.

上述した構成の制御システム1の動作について図2のフローチャートを参照して以下説明する。まず、リセットや電源オンなどの立ち上げ時にCPU2は、ROMに記録された初期化プログラムを実行して、初期化を行う。CPU2は、ポート設定手段として働き、この初期化において図2に示すポート設定処理を実行する。まず、CPU2は、複数のポートP1〜P6のうちLCDコントローラIC7に接続されたポートP4を除いたポートP1〜P3、P5及びP6と、リセット端子T2及びリフレッシュ端子T3のポート設定を行う(ステップS1)。このとき、CPU2は、ウエイト端子T1については単なる入出力端子としてポート設定を行う。   The operation of the control system 1 configured as described above will be described below with reference to the flowchart of FIG. First, when starting up such as reset or power-on, the CPU 2 executes an initialization program recorded in the ROM to perform initialization. The CPU 2 functions as a port setting means, and executes the port setting process shown in FIG. 2 in this initialization. First, the CPU 2 performs port settings of the ports P1 to P3, P5, and P6 except for the port P4 connected to the LCD controller IC 7 among the plurality of ports P1 to P6, and the reset terminal T2 and the refresh terminal T3 (step S1). ). At this time, the CPU 2 performs port setting as a simple input / output terminal for the weight terminal T1.

次に、CPU2は、IC5〜8の電源をオンする(ステップS2)。その後、CPU2は、ウエイト端子T1の状態を確認する(ステップS3)。ウエイト信号の異常が発生していない場合、立ち上がり時にはLCDコントローラIC7からはHiレベルのウエイト信号が出力されていない。CPU2は、ウエイト端子T1がLoレベルであれば(ステップS4でY)、ウエイト信号の異常が発生していないと判断して、LCDコントローラIC7に接続されたポートP4のポート設定を行うと共にウエイト端子T1にウエイト機能の設定を行った後に(ステップS5)、処理を終了する。   Next, the CPU 2 turns on the power of the ICs 5 to 8 (step S2). Thereafter, the CPU 2 confirms the state of the weight terminal T1 (step S3). When no abnormality of the wait signal has occurred, a high-level wait signal is not output from the LCD controller IC 7 at the time of rising. If the wait terminal T1 is at the Lo level (Y in step S4), the CPU 2 determines that no abnormality of the wait signal has occurred, sets the port P4 connected to the LCD controller IC 7, and sets the wait terminal. After setting the wait function at T1 (step S5), the process is terminated.

よって、ウエイト信号の異常が発生していない場合、全てのポートP1〜P6のポート設定が行われ、初期化プログラムに続いて行われる制御プログラムでは全てのIC5〜8の制御やウエイト動作を行うことができる。   Therefore, when no abnormality of the wait signal has occurred, all the ports P1 to P6 are set, and in the control program executed following the initialization program, all the ICs 5 to 8 are controlled and the wait operation is performed. Can do.

制御プログラムの実行中、CPU2は定期的にリフレッシュ信号をリフレッシュ端子T3から出力している。また、制御プログラムの実行中、CPU2から送信されるデータの処理が間に合わずにLCDコントローラIC7からウエイト信号が出力されると、CPU2は所定クロックだけ動作を停止するウエイト動作を行う。ウエイト動作中、CPU2は何も処理できない状態となり、リフレッシュ信号の出力やLCDコントローラIC7に対するデータの送信だけでなく全てIC5、6、8に対する制御が停止される。   During the execution of the control program, the CPU 2 periodically outputs a refresh signal from the refresh terminal T3. Further, when the wait signal is output from the LCD controller IC 7 without processing the data transmitted from the CPU 2 in time during execution of the control program, the CPU 2 performs a wait operation for stopping the operation for a predetermined clock. During the wait operation, the CPU 2 is in a state where it cannot process anything, and not only the output of the refresh signal and the transmission of data to the LCD controller IC 7 but also the control of all the ICs 5, 6, 8 is stopped.

通常は、すぐにLCDコントローラIC7からのウエイト信号の出力が停止されるため、CPU2はウエイト動作を解除して各IC5〜8に対する制御処理を再開する。しかしながら、何らかの異常が発生し、ウエイト端子T1がHiレベルの状態が継続してCPU2のウエイト動作が解除されず、リフレッシュ信号が一定時間以上出力されなくなると、W/D10がこれを検出してリセット端子T2に対してリセット信号を出力してCPU2をリセットする。   Normally, since the output of the wait signal from the LCD controller IC 7 is stopped immediately, the CPU 2 cancels the wait operation and restarts the control process for each of the ICs 5 to 8. However, if some abnormality occurs and the wait terminal T1 remains in the Hi level state and the wait operation of the CPU 2 is not released and the refresh signal is not output for a predetermined time or longer, the W / D 10 detects this and resets it. A reset signal is output to the terminal T2 to reset the CPU2.

リセットされるとCPU2は、再びROMに記録された初期化プログラムを実行して、初期化を行い、図2に示すポート設定処理が実行される。このポート設定処理においてCPU2は、既に説明したように正常時と同様にステップS1〜S3を行う。上述したようにウエイト信号の異常が発生して、立ち上がり時もウエイト端子T1がHiレベルであれば(ステップS4でN)、CPU2は、LCDコントローラIC7に接続されたポートP4のポート設定やウエイト端子T1にウエイト機能の設定を行わず、直ちに処理を終了する。   When reset, the CPU 2 executes the initialization program recorded in the ROM again to perform initialization, and the port setting process shown in FIG. 2 is executed. In this port setting process, the CPU 2 performs steps S1 to S3 as in the normal state as described above. As described above, if the wait signal is abnormal and the wait terminal T1 is at the Hi level even at the rising edge (N in step S4), the CPU 2 sets the port P4 connected to the LCD controller IC 7 and the wait terminal. The process is immediately terminated without setting the wait function at T1.

よって、ウエイト信号の異常が発生した場合であっても、ポートP1〜P6のうちLCDコントローラIC7に接続されたポートP4以外のポート設定が行われ、初期化プログラムに続いて行われる制御プログラムではLCDコントローラIC7については制御できないがLCDコントローラIC7以外のIC5、6、8の制御を行うことができる。   Therefore, even when a wait signal abnormality occurs, port settings other than the port P4 connected to the LCD controller IC 7 among the ports P1 to P6 are set, and the control program executed following the initialization program uses the LCD. Although the controller IC 7 cannot be controlled, the ICs 5, 6, and 8 other than the LCD controller IC 7 can be controlled.

上述した実施形態によれば、立ち上がり時にウエイト端子T1に対してウエイト信号が入力されている場合、信号異常と判断して、LCDコントローラIC7に接続されるポートP4及びウエイト端子T1の設定を行わず複数のポートP1〜P6のうちLCDコントローラIC7に接続されるポートP4を除いて設定を行う。これにより、何らかの信号異常が生じて、ウエイト動作が継続する状態になってもLCDコントローラIC7の制御及びウエイト動作のみが停止され、LCDコントローラIC7以外の外部機器であるIC5、6、8の制御は行うことができる。   According to the above-described embodiment, when a wait signal is input to the wait terminal T1 at the time of rising, it is determined that the signal is abnormal, and the port P4 connected to the LCD controller IC 7 and the wait terminal T1 are not set. Setting is performed except for the port P4 connected to the LCD controller IC 7 among the plurality of ports P1 to P6. As a result, even if some signal abnormality occurs and the wait operation continues, only the control of the LCD controller IC 7 and the wait operation are stopped, and the control of the ICs 5, 6, 8 which are external devices other than the LCD controller IC 7 is controlled. It can be carried out.

また、上述した実施形態によれば、立ち上がり時にウエイト端子T1に対してウエイト信号が入力されていない場合、CPU2が、複数のポートP1〜P6全て及びウエイト端子T1の設定を行うので、正常時は全てのIC5〜8の制御とウエイト動作を行うことができる。   Further, according to the above-described embodiment, when no wait signal is input to the wait terminal T1 at the time of rising, the CPU 2 sets all of the plurality of ports P1 to P6 and the wait terminal T1. All ICs 5 to 8 can be controlled and the wait operation can be performed.

また、上述した実施形態によれば、W/D10が、定期的にCPU2との通信を行い、ウエイト動作が継続して一定時間以上通信できないとCPU2をリセットする。これにより、何らかの信号異常が生じて、ウエイト動作が継続する状態になるとW/D10がCPU2をリセットして立ち上げられるので、自動的にLCDコントローラIC7以外のIC5、6、8の制御を復帰することができる。   Further, according to the above-described embodiment, the W / D 10 periodically communicates with the CPU 2 and resets the CPU 2 when the wait operation continues and communication cannot be performed for a predetermined time or longer. As a result, when some signal abnormality occurs and the wait operation is continued, the W / D 10 is reset and started up by the CPU 2, so that the control of the ICs 5, 6, 8 other than the LCD controller IC 7 is automatically restored. be able to.

なお、上述した実施形態によれば、ポート設定処理においてまずポートP4以外のポートP1〜P3、P5〜P8の設定を行った後に、ウエイト端子T1の状態を確認してウエイト信号が出力されていればポートP4のポート設定及びウエイト端子T1の設定を行っていたが、本発明はこれに限ったものではない。例えば、ポート設定処理において、まずウエイト端子T1の確認を行った後に、ウエイト信号が出力されていなければポートP1〜P6の設定を行い、ウエイト信号が出力されていればポートP4を除いたポートP1〜P3、P5〜P8の設定を行うようにしてもよい。   According to the above-described embodiment, after the ports P1 to P3 and P5 to P8 other than the port P4 are first set in the port setting process, the state of the wait terminal T1 is confirmed and the wait signal is output. For example, the port P4 and the weight terminal T1 are set. However, the present invention is not limited to this. For example, in the port setting process, after first confirming the wait terminal T1, if the wait signal is not output, the ports P1 to P6 are set. If the wait signal is output, the port P1 excluding the port P4 is set. -P3 and P5-P8 may be set.

また、前述した実施形態は本発明の代表的な形態を示したに過ぎず、本発明は、実施形態に限定されるものではない。即ち、本発明の骨子を逸脱しない範囲で種々変形して実施することができる。   Further, the above-described embodiments are merely representative forms of the present invention, and the present invention is not limited to the embodiments. That is, various modifications can be made without departing from the scope of the present invention.

1 制御システム
2 CPU(中央演算処理装置、ウエイト手段、ポート設定手段)
5 ステッパ制御IC(外部機器)
6 LED制御IC(外部機器)
7 LCDコントローラIC(低速外部機器)
8 CAN通信I/FIC(外部機器)
10 ウオッチドックタイマ
T1 ウエイト端子
P1〜P6 ポート
1 control system 2 CPU (central processing unit, weight means, port setting means)
5 Stepper control IC (external device)
6 LED control IC (external device)
7 LCD controller IC (low speed external device)
8 CAN communication I / FIC (external equipment)
10 Watchdog timer T1 Wait terminal P1 to P6 port

Claims (4)

複数の外部機器を制御する制御処理を行う中央演算処理装置であって、前記複数の外部機器にそれぞれ接続される複数のポートと、前記複数の外部機器のうち前記中央演算処理装置よりも処理能力が遅い低速外部機器からのウエイト信号が入力されるウエイト端子と、前記ウエイト端子に前記ウエイト信号が入力されると前記制御処理を停止するウエイト処理を行うウエイト手段と、立ち上がり時に前記複数のポート及び前記ウエイト端子の設定を行うポート設定手段と、を備えた中央演算処理装置において、
立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されている場合、前記ポート設定手段が、前記低速外部機器に接続されるポート及び前記ウエイト端子の設定を行わずに前記複数のポートのうち前記低速外部機器に接続されるポートを除いて設定を行う
ことを特徴とする中央演算処理装置。
A central processing unit that performs control processing for controlling a plurality of external devices, and a plurality of ports respectively connected to the plurality of external devices, and a processing capability of the plurality of external devices than the central processing unit A wait terminal to which a wait signal from a slow low-speed external device is input; wait means for performing a wait process for stopping the control process when the wait signal is input to the wait terminal; In a central processing unit comprising a port setting means for setting the weight terminal,
When a wait signal is input to the weight terminal at the time of rising, the port setting means does not set the port connected to the low-speed external device and the weight terminal, and the low-speed among the plurality of ports. A central processing unit that performs settings except for ports connected to external devices.
立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されていない場合、前記ポート設定手段が、前記複数のポート全て及び前記ウエイト端子の設定を行う
ことを特徴とする請求項1に記載の中央演算処理装置。
2. The central processing unit according to claim 1, wherein, when a wait signal is not input to the weight terminal at the time of rising, the port setting unit sets all of the plurality of ports and the weight terminal. apparatus.
請求項1又は2に記載の中央演算処理装置と、
定期的に前記中央演算処理装置との通信を行い、一定時間以上通信できないと前記中央演算処理装置をリセットするウオッチドックタイマと、
を備えたことを特徴とする制御システム。
The central processing unit according to claim 1 or 2,
A watchdog timer that periodically communicates with the central processing unit, and resets the central processing unit when communication is not possible for a certain period of time,
A control system characterized by comprising:
複数の外部機器を制御する制御処理を行う中央演算処理装置であって、前記複数の外部機器にそれぞれ接続される複数のポートと、前記複数の外部機器のうち前記中央演算処理装置よりも処理能力が遅い低速外部機器からのウエイト信号が入力されるウエイト端子と、前記ウエイト端子に前記ウエイト信号が入力されると前記制御処理を停止するウエイト処理を行うウエイト手段と、を備えた中央演算処理装置のポート設定方法において、
立ち上がり時に前記ウエイト端子に対してウエイト信号が入力されている場合、前記低速外部機器に接続されるポート及び前記ウエイト端子の設定を行わずに前記複数のポートのうち前記低速外部機器に接続されるポートを除いて設定を行う
ことを特徴とするポート設定方法。
A central processing unit that performs control processing for controlling a plurality of external devices, and a plurality of ports respectively connected to the plurality of external devices, and a processing capability of the plurality of external devices than the central processing unit A central processing unit comprising: a weight terminal for inputting a wait signal from a slow low-speed external device; and weight means for performing a weight process for stopping the control process when the weight signal is input to the weight terminal In the port setting method of
When a wait signal is input to the weight terminal at the time of rising, the port connected to the low-speed external device and the low-speed external device among the plurality of ports are connected without setting the weight terminal. A port setting method, characterized in that settings are made excluding ports.
JP2010145815A 2010-06-28 2010-06-28 Central processing unit, control system, and port setting method Active JP5489880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010145815A JP5489880B2 (en) 2010-06-28 2010-06-28 Central processing unit, control system, and port setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010145815A JP5489880B2 (en) 2010-06-28 2010-06-28 Central processing unit, control system, and port setting method

Publications (2)

Publication Number Publication Date
JP2012008898A JP2012008898A (en) 2012-01-12
JP5489880B2 true JP5489880B2 (en) 2014-05-14

Family

ID=45539339

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010145815A Active JP5489880B2 (en) 2010-06-28 2010-06-28 Central processing unit, control system, and port setting method

Country Status (1)

Country Link
JP (1) JP5489880B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0465781A (en) * 1990-07-05 1992-03-02 Mitsubishi Electric Corp Input/output port control circuit
JPH10161943A (en) * 1996-11-27 1998-06-19 Tamura Electric Works Ltd Malfunction preventing system for equipment
JP2006163597A (en) * 2004-12-03 2006-06-22 Mitsubishi Electric Corp WAIT signal release circuit
JP2010049462A (en) * 2008-08-21 2010-03-04 Seiko Epson Corp Data processor

Also Published As

Publication number Publication date
JP2012008898A (en) 2012-01-12

Similar Documents

Publication Publication Date Title
US9170832B2 (en) Virtual machine control apparatus and virtual machine control method
WO2004114128A3 (en) Instruction controlled data processing device
JP6460137B2 (en) Control device, control method, and program
CN103748563B (en) Detect abnormal operation caused by interrupt handling
JP4437812B2 (en) Electronic control unit
JP5489880B2 (en) Central processing unit, control system, and port setting method
JP5649120B2 (en) Distributed control system
EP3696628B1 (en) Control device, and slave device conrol method
JP2003296133A (en) controller
KR102275869B1 (en) Apparatus and method of vehicle control
KR20190029977A (en) A control system for device and process for operationg the control system
JP2014115703A (en) Data processor
US9146140B2 (en) Display device having a stepper motor and a watchdog timer
JP2002091802A (en) Runaway monitor for electronic control system
JP6224545B2 (en) Electronic control unit
WO2018003560A1 (en) Electronic control device
CN111182514B (en) Method, device, equipment and medium for realizing pin time-sharing multiplexing
JP5788022B2 (en) Fail-safe electronic control unit
CN107256012A (en) A kind of utilization CIC61508's feeds the method that dog mechanism realizes multi-task monitoring
JP2025095631A5 (en)
KR20110042897A (en) PLC integrated control module and PLC control system using the same
JP2009258790A (en) Control device and control method of the same
JP2025095632A5 (en)
JP6906369B2 (en) Computer systems, their control methods, and programs
JP2010033475A (en) Electronic controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130514

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140129

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140225

R150 Certificate of patent or registration of utility model

Ref document number: 5489880

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250