JPH04294432A - Electronic apparatus controlled by built-in microcomputer - Google Patents

Electronic apparatus controlled by built-in microcomputer

Info

Publication number
JPH04294432A
JPH04294432A JP3081311A JP8131191A JPH04294432A JP H04294432 A JPH04294432 A JP H04294432A JP 3081311 A JP3081311 A JP 3081311A JP 8131191 A JP8131191 A JP 8131191A JP H04294432 A JPH04294432 A JP H04294432A
Authority
JP
Japan
Prior art keywords
control
microcomputer
memory area
built
memory
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
JP3081311A
Other languages
Japanese (ja)
Inventor
Koichi Soda
曽田 耕一
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.)
Fujitsu General Ltd
Original Assignee
Fujitsu General 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 Fujitsu General Ltd filed Critical Fujitsu General Ltd
Priority to JP3081311A priority Critical patent/JPH04294432A/en
Publication of JPH04294432A publication Critical patent/JPH04294432A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily seek the cause of abnormal operation and to easily obtain its counterplan by storing the execution order of respective moduled control procedures controlled by a built-in microcomputer and tracing control history at the time of occurrence of abnormal operation. CONSTITUTION:Prior to the start of execution of respective moduled control procedures for the built-in microcomputer by a prescribed procedure, the start addresses of the same modules are successively stored in a prescribed memory area constituted of a ring memory, and at the time of inputting a remote control signal having a prescribed code or inputting a key, the data stored in the memory are successively read out from the one next to the finally stored address in the reverse order and outputted from an output terminal through an output port.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、組み込みマイクロコン
ピュータによる制御の電子機器のモジュール化した各制
御手順の実行順を記憶し、異常動作発生以前の制御動作
のトレースを可能とする制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method for storing the execution order of each modularized control procedure of an electronic device controlled by a built-in microcomputer, and making it possible to trace control operations before an abnormal operation occurs.

【0002】0002

【従来の技術】組み込みマイクロコンピュータで動作制
御の電子機器のモジュール化した複数の制御手順を、所
定の手続きに従って順次実行するのみであった。
2. Description of the Related Art A plurality of modularized control procedures of an electronic device whose operation is controlled by a built-in microcomputer are simply executed sequentially according to a predetermined procedure.

【0003】0003

【発明が解決しようとする課題】前記モジュール化した
制御手順による制御機器の開発段階において、同制御手
順の特定の組み合わせ順で実行したときのみ発生する異
常動作は、稀にしか起こらず同動作の再現および原因追
求は困難なものであった。本発明はモジュール毎の制御
手順の実行順をメモリに記憶し、異常発生時に同履歴記
憶を読み出し、実行した制御手順の順序をトレースし、
異常動作の発生原因の発見および対策を容易ならしめる
ものである。
[Problem to be Solved by the Invention] During the development stage of control equipment based on the modularized control procedures, abnormal operations that occur only when the same control procedures are executed in a specific combination order rarely occur and It was difficult to reproduce and find the cause. The present invention stores the execution order of control procedures for each module in a memory, reads out the same history storage when an abnormality occurs, and traces the order of executed control procedures.
This makes it easier to discover the cause of abnormal operation and take countermeasures.

【0004】0004

【課題を解決するための手段】組み込みマイクロコンピ
ュータのモジュール化した各制御手順を所定の手続きに
より実行開始する前に、同モジュールの開始アドレスを
リングメモリ構成とした所定のメモリ領域に順次記憶し
、所定コードのリモコン信号またはキー入力により同メ
モリ領域の、最後に記憶の次のアドレスに記憶のデータ
から順に出力ポートを介し、出力する。
[Means for Solving the Problems] Before starting execution of each modularized control procedure of an embedded microcomputer according to a predetermined procedure, the start address of the module is sequentially stored in a predetermined memory area having a ring memory configuration, In response to a remote control signal or key input of a predetermined code, the stored data is sequentially output from the last stored address to the next address in the same memory area via the output port.

【0005】[0005]

【作用】図1に示す電子機器10の要部ブロック図にお
いて、リモコン信号受信部13を介したリモコン送信機
17の出力するリモコン信号、またはキー入力部11の
出力する操作信号を制御部12で解読し、同信号で指定
の制御を実行し、対応する制御信号14を出力する。前
記制御部12の前記入力信号の読み込みにあたり、実行
中の図2に示す主制御ルーチンの制御動作を中断し、図
4に示す如くそれぞれの入力信号より生成した割込要求
信号を確認し、同割込要求信号を発生した信号に対応の
処理を実行し、相当する信号フラグをONにし、中断し
た制御動作に戻る。
[Operation] In the main part block diagram of the electronic device 10 shown in FIG. It decodes the signal, executes specified control using the same signal, and outputs the corresponding control signal 14. When reading the input signals of the control unit 12, the control operation of the main control routine shown in FIG. 2 that is being executed is interrupted, and the interrupt request signals generated from each input signal are checked as shown in FIG. It executes the process corresponding to the signal that generated the interrupt request signal, turns on the corresponding signal flag, and returns to the interrupted control operation.

【0006】図4に示す割込制御ルーチンを終えて復帰
した図2に示す主制御ルーチンのループにおいて、前記
割込制御ルーチンでONとした各信号フラグを順次確認
し、ON状態にある信号フラグに対応する制御手順を実
行する。前記主制御ルーチンにおいて各信号フラグのO
Nを確認し、対応する制御手順の実行に先立って、図3
に示す如く同制御手順の前記制御部12内の読出専用メ
モリ(ROM)の記憶開始アドレスを、同制御部12内
メモリ(RAM)の一部に設定したメモリ領域に記憶す
るとともに、同メモリ領域内の次の記憶位置を指定する
ポインタの内容を漸増する。
In the loop of the main control routine shown in FIG. 2 which has returned after completing the interrupt control routine shown in FIG. Execute the corresponding control procedure. In the main control routine, each signal flag is
3 before confirming N and executing the corresponding control procedure.
As shown in FIG. 2, the storage start address of the read-only memory (ROM) in the control unit 12 of the same control procedure is stored in a memory area set as a part of the memory (RAM) in the control unit 12, and the memory area is Increments the contents of a pointer that points to the next storage location within.

【0007】前記ポインタ内容の漸増により指定する前
記メモリ領域内のアドレスが、設定した同メモリ領域を
越えるものであれば、同メモリ領域の開始アドレスを同
ポインタに設定し、古い記憶データを新しいデータで書
き換え所定容量の最新データを保存するリングメモリ状
の構成とし、同メモリ領域の容量に対応するステップ数
の最新の処理履歴を記憶する。
If the address in the memory area specified by the gradual increase in the contents of the pointer exceeds the set memory area, the start address of the memory area is set to the same pointer, and the old stored data is replaced with new data. It has a ring memory-like configuration that stores a predetermined capacity of the latest data that is rewritten in the memory area, and stores the latest processing history of the number of steps corresponding to the capacity of the memory area.

【0008】前記リモコン送信機17またはキー入力部
11の出力する特定コードの操作信号により、前記制御
部12は同信号の処理手順により前記メモリ領域内の記
憶データを前記ポインタで指定するアドレスより順次読
み出すことにより、同メモリ領域に記憶の古いデータよ
り順に同制御部12と接続した出力ポート15を介して
出力し、同ポート出力の出力端子16に接続したプリン
タまたは表示装置(図示せず)で表示する。
[0008] In response to a specific code operation signal output from the remote control transmitter 17 or the key input unit 11, the control unit 12 sequentially sequentially stores data in the memory area from the address specified by the pointer according to the processing procedure of the signal. By reading out the data, the oldest data stored in the same memory area is output via the output port 15 connected to the control unit 12, and is output to a printer or display device (not shown) connected to the output terminal 16 of the port output. indicate.

【0009】[0009]

【実施例】図1に示すマイコン制御電子機器の要部ブロ
ック図において、リモコン送信機17の操作したキーに
対応するリモコン信号のコードを生成し、同コードで変
調したリモコン信号を出力する。前記リモコン信号を入
力した電子機器10のリモコン信号受信部13で同信号
を復調し、出力したデジタル信号を前記制御部12に供
給するとともに、同信号より生成した割込要求信号を同
制御部12に供給する。前記電子機器10に備えたキー
入力部11のキー操作により出力した操作信号も前記リ
モコン信号と同様に、同信号より生成した割込要求信号
とともに前記制御部12に供給する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In the main block diagram of a microcomputer-controlled electronic device shown in FIG. 1, a remote control signal code corresponding to a key operated by a remote control transmitter 17 is generated, and a remote control signal modulated with the code is output. The remote control signal receiving unit 13 of the electronic device 10 that receives the remote control signal demodulates the signal, supplies the output digital signal to the control unit 12, and also sends an interrupt request signal generated from the signal to the control unit 12. supply to. Similarly to the remote control signal, an operation signal outputted by a key operation of a key input section 11 provided in the electronic device 10 is also supplied to the control section 12 together with an interrupt request signal generated from the signal.

【0010】前記割込要求信号入力の前記制御部12は
、実行中の制御手順を中断し、図4に示す例の割込ルー
チンの制御手順を実行する。すなわち、前記入力信号と
ともに入力の割込要求信号を所定の順序で確認し、同割
込要求のあった入力に応じてそれぞれの制御手順を実行
し、関連する制御処理要求のフラグをONにする。前記
割込要求信号のあった制御手順を実行後、割込ルーチン
の制御動作を終了し、中断中の制御手順に戻り同制御手
順の実行を再開する。
The control unit 12 to which the interrupt request signal is input interrupts the control procedure being executed and executes the control procedure of the interrupt routine shown in FIG. That is, the input signal and the input interrupt request signal are checked in a predetermined order, the respective control procedures are executed according to the input that has the same interrupt request, and the flag of the related control processing request is turned ON. . After executing the control procedure for which the interrupt request signal was issued, the control operation of the interrupt routine is terminated, and the control procedure returns to the interrupted control procedure and resumes execution of the same control procedure.

【0011】図2に示すテレビ受像機の例の要約した主
ルーチンの制御手順により、前記制御部12は制御処理
要求の各フラグを順次確認し、同フラグがON状態のサ
ブルーチンの制御手順を実行する。前記制御部12のサ
ブルーチンの実行に先立って、実行する同サブルーチン
の記憶開始アドレスを、同制御部12内メモリに設定し
た所定容量のメモリ領域に記憶するとともに、同メモリ
領域内の次の記憶位置を指定するポインタの内容を漸増
する。
According to the main routine control procedure summarized in the example of the television receiver shown in FIG. 2, the control section 12 sequentially checks each flag of the control processing request, and executes the subroutine control procedure for which the flag is in the ON state. do. Prior to execution of a subroutine in the control unit 12, the storage start address of the subroutine to be executed is stored in a memory area of a predetermined capacity set in the memory within the control unit 12, and the next storage location within the same memory area is stored. Gradually increments the contents of the pointer that specifies .

【0012】実行する前記サブルーチンの履歴の記憶の
様子は図3に示す。すなわち、前記制御部12内の読出
専用メモリに記憶の次に実行する処理ルーチンの記憶開
始アドレスを、前記メモリ領域内の前記ポインタの指定
する位置に記憶する。続いて前記ポインタの内容を漸増
し、同ポインタの内容が指定する前記制御部12内メモ
リのアドレスが、前記メモリ領域を越えたときは同ポイ
ンタに同メモリ領域の開始アドレスを記憶する。
FIG. 3 shows how the history of the subroutines to be executed is stored. That is, the storage start address of the processing routine to be executed next after being stored in the read-only memory in the control unit 12 is stored in the position specified by the pointer in the memory area. Subsequently, the contents of the pointer are gradually increased, and when the address of the memory in the control unit 12 specified by the contents of the pointer exceeds the memory area, the start address of the memory area is stored in the pointer.

【0013】[0013]

【発明の効果】以上のようにモジュール化した機能単位
の各制御手順の実行前に、実行する制御手順の読出専用
メモリの記憶開始アドレスを記憶保存することにより、
異常動作に至る制御動作の履歴を把握することができ、
細分化した機能単位のモジュール化した制御手順の特定
の組み合わせ時に発生するプログラムのミスも容易に発
見することができる。
Effects of the Invention By storing the storage start address of the control procedure to be executed in the read-only memory before executing each control procedure in the modularized functional unit as described above,
It is possible to understand the history of control operations that lead to abnormal operation,
Program errors that occur when a specific combination of modularized control procedures of subdivided functional units are also easily discovered.

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

【図1】本発明電子機器の要部ブロック図である。FIG. 1 is a block diagram of main parts of an electronic device according to the present invention.

【図2】本発明電子機器の主制御ルーチンのフローチャ
ートである。
FIG. 2 is a flowchart of a main control routine of the electronic device of the present invention.

【図3】処理サブルーチンの履歴記憶のフローチャート
である。
FIG. 3 is a flowchart of history storage of a processing subroutine.

【図4】本発明電子機器の割り込み制御ルーチンのフロ
ーチャートである。
FIG. 4 is a flowchart of an interrupt control routine of the electronic device of the present invention.

【符号の説明】[Explanation of symbols]

10  電子機器 11  キー入力部 12  リモコン信号受信部 13  制御部 16  出力端子 17  リモコン送信機 10 Electronic equipment 11 Key input section 12 Remote control signal receiving section 13 Control section 16 Output terminal 17 Remote control transmitter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】リモコン信号受信部を介したリモコン送信
機またはキー入力部の出力する操作信号により指定の制
御動作をするとともに、モジュール化した複数の制御手
順を所定の手続きに従って適宜選択して実行する組み込
みマイクロコンピュータ制御の電子機器において、所定
形式のデジタルデータ出力端子を備え、前記各制御手順
モジュールの実行開始前に同モジュールの開始アドレス
をリングメモリ構成としたメモリ領域に順次記憶し、所
定のリモコン信号またはキー入力により同メモリ領域の
最終記憶の次のアドレスに記憶のデータより順に同出力
端子より出力することを特徴とする組み込みマイコン制
御の電子機器。
Claim 1: A specified control operation is performed by an operation signal output from a remote control transmitter or a key input section via a remote control signal receiving section, and a plurality of modularized control procedures are appropriately selected and executed according to a predetermined procedure. An electronic device controlled by an embedded microcomputer is equipped with a digital data output terminal in a predetermined format, and before the start of execution of each control procedure module, the start address of each control procedure module is sequentially stored in a memory area configured as a ring memory, and a predetermined data output terminal is provided. An electronic device controlled by a built-in microcomputer, characterized in that, in response to a remote control signal or key input, stored data is sequentially output from the same output terminal to an address next to the last stored data in the same memory area.
JP3081311A 1991-03-22 1991-03-22 Electronic apparatus controlled by built-in microcomputer Pending JPH04294432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3081311A JPH04294432A (en) 1991-03-22 1991-03-22 Electronic apparatus controlled by built-in microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3081311A JPH04294432A (en) 1991-03-22 1991-03-22 Electronic apparatus controlled by built-in microcomputer

Publications (1)

Publication Number Publication Date
JPH04294432A true JPH04294432A (en) 1992-10-19

Family

ID=13742855

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3081311A Pending JPH04294432A (en) 1991-03-22 1991-03-22 Electronic apparatus controlled by built-in microcomputer

Country Status (1)

Country Link
JP (1) JPH04294432A (en)

Similar Documents

Publication Publication Date Title
US5042002A (en) Programmable controller with a directed sequencer
JPH10274600A (en) Diagnostic program preparing device for vehicle
US6725283B2 (en) Programmable controller
CN105045671B (en) The method for upgrading system and device of a kind of intelligent terminal
US5070476A (en) Sequence controller
EP0198170B1 (en) A monitor circuit
KR100317594B1 (en) Vehicle Control
JPH04294432A (en) Electronic apparatus controlled by built-in microcomputer
JPS62163115A (en) Control device
JP3358214B2 (en) Electronic equipment
JPH0333926A (en) Microcomputer
KR900007296B1 (en) Microcomputer application controller mounted on vehicle
KR100335643B1 (en) Computer system for setting value through software and method for controlling the same
JP2727717B2 (en) Programmable controller system
JP2004173128A (en) Digital broadcasting system, digital broadcasting receiver and digital broadcasting terminal device
JPS6118788B2 (en)
KR820002369B1 (en) Process control device
JP3974423B2 (en) Display control device
KR910006467B1 (en) Trunk station adress giving apparatus and method of two-way catv
JPH1165884A (en) Microcomputer and debugging method therefor
JPS6115460B2 (en)
JPH05216107A (en) Data writing method for camera
JPH0547842B2 (en)
JPS6365982B2 (en)
JP2001022573A (en) Electronic equipment