JP2655889B2 - Lamp display method - Google Patents

Lamp display method

Info

Publication number
JP2655889B2
JP2655889B2 JP63217338A JP21733888A JP2655889B2 JP 2655889 B2 JP2655889 B2 JP 2655889B2 JP 63217338 A JP63217338 A JP 63217338A JP 21733888 A JP21733888 A JP 21733888A JP 2655889 B2 JP2655889 B2 JP 2655889B2
Authority
JP
Japan
Prior art keywords
lamp
microcomputer
state
led
lamp display
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 - Lifetime
Application number
JP63217338A
Other languages
Japanese (ja)
Other versions
JPH0266642A (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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63217338A priority Critical patent/JP2655889B2/en
Publication of JPH0266642A publication Critical patent/JPH0266642A/en
Application granted granted Critical
Publication of JP2655889B2 publication Critical patent/JP2655889B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、中央処理装置(以下、CPUという)により
プログラム制御されるプリンタ、ワードプロセッタ等の
機器において、その機能の状態を発光ダイオード(以
下、LEDという)等のランプで表示するランプ表示方法
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention relates to a device such as a printer or a word processor which is program-controlled by a central processing unit (hereinafter referred to as a CPU). The present invention relates to a method of displaying a lamp using a lamp such as an LED.

(従来の技術) 第2図は、従来のランプ表示方法の一例を説明するた
めのランプ表示装置の構成図である。
(Prior Art) FIG. 2 is a configuration diagram of a lamp display device for explaining an example of a conventional lamp display method.

このランプ表示装置は、操作パネルを有するプリン
タ、ワードプロセッサ等の機器に設けられたものであ
る。機器は、マイクロコンピュータ1を備え、そのマイ
クロコンピュータ1には機能回路2が接続されると共
に、拡張入出力ポート(以下、I/Oポートという)3を
介して操作パネル10が接続されている。マイクロコンピ
ュータ1は機能回路2及び操作パネル10をプログラム制
御するもので、全体の制御を行うCPU、プログラムを格
納した読出し専用メモリ(以下、ROMという)、データ
を格納する随時読み書き可能なメモリ(以下、RAMとい
う)、及びI/Oポート等により構成されている。機能回
路2は、機器が例えばプリンタの場合にはモータ、印字
ヘッド等のプリンタ機構部の回路で構成されている。操
作パネル10は、外部から機器を制御したり、機器の動作
状態を表示したりするもので、動作モードの設定等を行
うキースイッチ11、機器の状態を表示するLED12、及びL
ED駆動用のドライバ13等を備えている。これらのスイッ
チ11、LED12、ドライバ13及びマイクロコンピュータ1
等により、ランプ表示装置が構成されている。
This lamp display device is provided in a device having an operation panel, such as a printer or a word processor. The device includes a microcomputer 1, a functional circuit 2 is connected to the microcomputer 1, and an operation panel 10 is connected via an extended input / output port (hereinafter, referred to as an I / O port) 3. The microcomputer 1 performs program control of the functional circuit 2 and the operation panel 10. The microcomputer 1 controls the entire operation, a read-only memory (hereinafter referred to as ROM) storing programs, and a memory (hereinafter referred to as ROM) for storing data. , RAM), and I / O ports. When the device is, for example, a printer, the functional circuit 2 includes a circuit of a printer mechanism such as a motor and a print head. The operation panel 10 controls the device from the outside and displays the operation state of the device. The operation panel 10 includes a key switch 11 for setting an operation mode and the like, an LED 12 for displaying the state of the device, and an L.
It has a driver 13 for ED drive and the like. These switches 11, LED 12, driver 13, and microcomputer 1
Thus, a lamp display device is configured.

第3図は、第2図のランプ表示方法を示すフローチャ
ートである マイクロコンピュータ1は、実時間処理において機能
回路2による印字処理等のような優先度の高い処理がな
い場合には、キースイッチ11の押下状態に対応したLED1
2の点灯状態設定処理という優先度の低いバックグラン
ド処理を行う。即ち、マイクロコンピュータ1中のCPU
は、ROMに格納されたプログラム中のバックグランド処
理プログラムを読出し(ステップ20)、そのバックグラ
ンド処理プログラムに従ってキースイッチ11の押下状態
の検出処理を行い(ステップ21)、キースイッチ11が押
下されたか否か、その押下状態が変化したか否かの判断
を行う(ステップ22)。キースイッチ11の押下なしで、
押下状態の変化もない時にはキースイッチセンス処理21
に戻る。キースイッチ11の押下有り、あるいは押下状態
が変化している場合、CPUはそれに対応したLED12の点灯
状態の設定を行い(ステップ23)、LED表示用の制御信
号を出力し(ステップ24)、拡張I/Oポート3及びドラ
イバ13を介してLED12の点灯状態を制御してキースイッ
チ11に対応した表示状態を設定する。この設定後は、キ
ースイッチ11のセンス処理21に戻る。
FIG. 3 is a flowchart showing the lamp display method shown in FIG. 2. If there is no high-priority processing such as the printing processing by the functional circuit 2 in the real-time processing, the microcomputer 1 LED1 corresponding to the pressed state of
A background process with a low priority, ie, a lighting state setting process of 2, is performed. That is, the CPU in the microcomputer 1
Reads the background processing program from the program stored in the ROM (step 20), detects the pressed state of the key switch 11 according to the background processing program (step 21), and checks whether the key switch 11 has been pressed. It is determined whether or not the pressed state has changed (step 22). Without pressing the key switch 11,
Key switch sense processing 21 when there is no change in the pressed state
Return to When the key switch 11 is pressed or the pressed state is changed, the CPU sets the lighting state of the LED 12 corresponding to the pressed state (step 23), outputs a control signal for LED display (step 24), and expands. The display state corresponding to the key switch 11 is set by controlling the lighting state of the LED 12 via the I / O port 3 and the driver 13. After this setting, the process returns to the sensing process 21 of the key switch 11.

このように、従来のランプ表示方法では、キースイッ
チ11を用いて外部より設定された機器の状態の変化を、
CPUによるバックグランド処理にて検出し、変化があっ
た時だけ、LED12の点灯状態を再設定していた。
As described above, in the conventional lamp display method, the change in the state of the device set externally using the key switch 11 is
It was detected by the background processing by the CPU, and the lighting state of the LED 12 was reset only when there was a change.

(発明が解決しようとする課題) しかしながら、従来のランプ表示方法では、次のよう
な課題があった。
(Problems to be Solved by the Invention) However, the conventional lamp display method has the following problems.

例えば、静電気等の外来ノイズで、拡張I/Oポート3
が誤動作してLED駆動用のドライバ13の出力レベルが変
化し、LED12が誤表示状態になることがある。このよう
な場合、キースイッチ11で拡張I/Oポート3を再設定す
るか、あるいは電源スイッチをオン,オフしてマイクロ
コンピュータ1をリセットする等の処置をとらなけれ
ば、正常な表示状態に復帰させることができない。とこ
ろが、キースイッチ11を押下して再設定を行う場合、操
作ミスが起きてマイクロコンピュータ1が他の処理を実
行したり、あるいは電源スイッチをオン,オフしてリセ
ットする場合、マイクロコンピュータ1中のRAMの内容
が消去して機能回路2の動作障害を起す等のおそれがあ
るばかりか、復帰処理に手数を要し、それらを解決する
ことが困難であった。
For example, external I / O port 3 due to external noise such as static electricity
Malfunctions, the output level of the LED drive driver 13 changes, and the LED 12 may enter an erroneous display state. In such a case, if the expansion I / O port 3 is not reset by the key switch 11 or the microcomputer 1 is reset by turning on / off the power switch, the display returns to the normal display state. I can't let it. However, when the key switch 11 is pressed to perform resetting, when an operation error occurs and the microcomputer 1 executes another process, or when the power switch is turned on and off to reset, the microcomputer 1 Not only may the contents of the RAM be erased, causing an operational failure of the functional circuit 2 or the like, but also the recovery process requires time and effort, and it is difficult to solve them.

本発明は前記従来技術が持っていた課題として、ラン
プ誤表示を復帰させるために再設定あるいはリセットし
なければならず、復帰操作が煩わしいばかりか、操作ミ
ス等の弊害が生じるという点について解決したランプ表
示方法を提供するものである。
The present invention has solved the problem of the prior art that the lamp must be reset or reset in order to recover the erroneous lamp display, not only is the recovery operation troublesome, but also causes adverse effects such as operation errors. A lamp display method is provided.

(課題を解決するための手段) 本発明は前記課題を解決するために、内部レジスタを
有するワンチップマイクロコンピュータによりプログラ
ム制御される機器の状態を、ランプで表示するランプ表
示方法において、前記ワンチップマイクロコンピュータ
によって前記機器の状態を検出する検出処理と、前記検
出処理の検出結果を前記ワンチップマイクロコンピュー
タの内部レジスタに格納する格納処理と、前記内部レジ
スタに格納された検出結果に基づき、ランプ駆動手段に
よって所定の時間幅のパルス信号で前記ランプの点灯/
消灯を設定する設定処理とを有し、前記検出処理、前記
格納処理及び前記設定処理を所定周期で繰り返し行うよ
うにしている。
(Means for Solving the Problems) According to the present invention, there is provided a lamp display method for displaying, with a lamp, a state of a device programmed by a one-chip microcomputer having an internal register. A detection process for detecting the state of the device by a microcomputer, a storage process for storing a detection result of the detection process in an internal register of the one-chip microcomputer, and a lamp drive based on the detection result stored in the internal register. Means for turning on / off the lamp with a pulse signal having a predetermined time width.
A setting process for setting the light to be turned off, wherein the detection process, the storage process, and the setting process are repeatedly performed at a predetermined cycle.

(作 用) 本発明によれば、検出処理、格納処理及び設定処理を
所定周期で繰り返し行うことにより、所定周期でランプ
点灯状態が再設定される。ランプ駆動手段は、パルス信
号でランプを点灯させるが、そのパルス信号の時間幅を
小さく設定することにより、再設定時のランプのちらつ
きが外見上、消去される。これにより、ランプ誤表示が
自動的に、かつ外見上何ら違和感なく、正常表示状態に
復帰する。従って、前記課題を解決できるのである。
(Operation) According to the present invention, the lamp lighting state is reset at a predetermined cycle by repeatedly performing the detection processing, the storage processing, and the setting processing at a predetermined cycle. The lamp driving means turns on the lamp with a pulse signal. By setting the time width of the pulse signal to be small, the lamp flicker at the time of resetting is apparently eliminated. As a result, the erroneous display of the lamp automatically returns to the normal display state without any apparent discomfort. Therefore, the above problem can be solved.

(実施例) 第1図は、本発明の一実施例を示すランプ表示方法を
説明するためのランプ表示装置の構成図である。
Embodiment FIG. 1 is a configuration diagram of a lamp display device for explaining a lamp display method according to an embodiment of the present invention.

このランプ表示装置は、操作パネルを有するプリン
タ、ワードプロセッサ等の機器に設けられたものであ
る。機器は、マイクロコンピュータ30を備え、そのマイ
クロコンピュータ30には機能回路33及び操作パネル40が
接続されている。
This lamp display device is provided in a device having an operation panel, such as a printer or a word processor. The device includes a microcomputer 30, to which a functional circuit 33 and an operation panel 40 are connected.

マイクロコンピュータ30は、機能回路33及び操作パネ
ル40をプログラム制御するもので、例えばワンチップ
(1チップ)8ビット8051マイクロコンピュータ(イン
テル社、沖電気工業(株)製)が使用されている。この
8051のマイクロコンピュータは、1チップの中に、並列
処理演算回路、送信データと受信データが収納される特
殊機能レジスタSBUF(Serial Port Buffer Register)
等のレジスタ類、プログラムROM、データRAM、タイマカ
ウンタ、I/Oポート、I/O拡散モード等を設定できる。シ
リアル・インタフェースRXD,TXD、優先順位設定可能な
割込み入力端子、発振用端子XTAL1,XTAL2を有する発振
回路、及び電源端子Vcc,Vss等が集積されている。そし
て、発振用端子XTAL1,XTAL2には例えば周波数12MHZで発
振される水晶等の振動子31が接続されると共に、電源端
子Vcc,Vssには充電用のコンデンサ33が接続されてい
る。
The microcomputer 30 program-controls the functional circuit 33 and the operation panel 40. For example, a one-chip (one-chip) 8-bit 8051 microcomputer (manufactured by Intel Corporation, Oki Electric Industry Co., Ltd.) is used. this
The 8051 microcomputer has a special function register SBUF (Serial Port Buffer Register) in which a parallel processing operation circuit and transmission data and reception data are stored in one chip.
And other registers, program ROM, data RAM, timer counter, I / O port, I / O diffusion mode, etc. The serial interfaces RXD and TXD, an interrupt input terminal whose priority can be set, an oscillation circuit having oscillation terminals XTAL1 and XTAL2, and power supply terminals Vcc and Vss are integrated. Then, for example, with the transducer 31 of quartz or the like which is oscillated at a frequency 12MH Z is connected to the oscillation terminals XTAL1, XTAL2, power supply terminal Vcc, the Vss is connected to a capacitor 33 for charging.

機能回路33は、機器が例えばプリンタの場合にはモー
タ、印字ヘッド等のプリンタ機能部の回路で構成されて
いる。
When the device is, for example, a printer, the functional circuit 33 is configured by a circuit of a printer function unit such as a motor and a print head.

操作パネル40は、外部から機器を制御したり、機器の
動作状態を表示したりするもので、動作モードの設定等
を行う複数のキースイッチ41、シリアル/パラレル変換
用のシフトレジスタ42、インバータからなる8個のLED
駆動用ドライバ43、8個のLED44、及び8個の過電流防
止用の抵抗45等を備えている。シフトレジスタ42として
は、例えば74LS164集積回路(三菱電気(株)製)が使
用されている。この回路は、シリアルデータ入力端子
D、クロック入力端子T、及び出力端子Q0〜Q7等を有
し、8個のエッジトリガD型フリップフロップで構成さ
れている。そして、データ入力端子D及びクロック入力
端子Tはマイクロコンピュータ20のシリアル・インタフ
ェースRXD,TXDにそれぞれ接続され、さらに出力端子Q0
〜Q7がドライバ43、LED44及び抵抗45を介して電源電圧
(例えば、+5V)に接続されている。これらのキースイ
ッチ41、シフトレジスタ42、LED44、及びマイクロコン
ピュータ30等により、ランプ表示装置が構成され、その
うちシフトレジスタ42及びドライバ43でランプ駆動手段
が構成されている。
The operation panel 40 controls the device from the outside and displays the operation state of the device. The operation panel 40 includes a plurality of key switches 41 for setting an operation mode, a shift register 42 for serial / parallel conversion, and an inverter. 8 LEDs
A drive driver 43, eight LEDs 44, eight overcurrent prevention resistors 45, and the like are provided. As the shift register 42, for example, a 74LS164 integrated circuit (manufactured by Mitsubishi Electric Corporation) is used. This circuit has a serial data input terminal D, a clock input terminal T, output terminals Q0 to Q7, and the like, and is composed of eight edge-triggered D-type flip-flops. The data input terminal D and the clock input terminal T are connected to the serial interfaces RXD and TXD of the microcomputer 20, respectively.
To Q7 are connected to a power supply voltage (for example, +5 V) via a driver 43, an LED 44, and a resistor 45. The key switch 41, the shift register 42, the LED 44, the microcomputer 30 and the like constitute a lamp display device, and the shift register 42 and the driver 43 constitute a lamp driving means.

第4図(1),(2)は第1図の装置を制御するため
のプログラムのフローチャート例、第5図は第1図の装
置を第4図(1),(2)のフローチャートで示すプロ
グラムで制御した場合のタイムチャートであり、これら
の図を参照しつつ第1図のランプ表示方法を説明する。
FIGS. 4 (1) and (2) are flowchart examples of a program for controlling the apparatus of FIG. 1, and FIG. 5 is a flowchart of the apparatus of FIG. 1 in the flowcharts of FIGS. 4 (1) and (2). FIG. 6 is a time chart in the case where control is performed by a program, and the lamp display method of FIG. 1 will be described with reference to these drawings.

先ず、第1図の装置において、マイクロコンピュータ
30は第4図(1)に示すように、プログラムROMに格納
されたプログラムに従ってバックグランド処理の状態に
あるとする(ステップ50)。この時、機能回路33に対す
る受信、印字等の割込みが発生すれば、それが優先され
て随時、図示しない割込み処理が実行され、その割込み
処理終了後、再びバックグランド処理(ステップ50)に
制御が戻されるものとする。このバックグランド処理
(ステップ50)において、第1図のマイクロコンピュー
タ30は、定期的にI/Oポートを介して操作パネル40のキ
ースイッチ41をセンス(検出)し(ステップ51)、その
キースイッチ41の押下状態に応じてLED44の点灯状態の
データをマイクロコンピュータ内部のレジスタにセット
した後(ステップ52)、LED44への出力を実行する(ス
テップ53)。
First, in the apparatus shown in FIG.
It is assumed that 30 is in the background processing state according to the program stored in the program ROM as shown in FIG. 4 (1) (step 50). At this time, if an interruption such as reception or printing to the functional circuit 33 occurs, it is prioritized and interrupt processing (not shown) is executed at any time. After the interrupt processing is completed, the control returns to the background processing (step 50). Shall be returned. In this background processing (step 50), the microcomputer 30 of FIG. 1 periodically senses (detects) the key switch 41 of the operation panel 40 via the I / O port (step 51), and After the data of the lighting state of the LED 44 is set in a register in the microcomputer in accordance with the pressed state of 41 (step 52), the output to the LED 44 is executed (step 53).

LED表示出力処理(ステップ53)は、第4図(2)に
示すように、マイクロコンピュータ30のシリアル・イン
タフェースRXD,TXDを利用して、先ずマイクロコンピュ
ータ30のシリアルモードをモード0に設定し(ステップ
53−1)、I/O拡張モードとする。これにより、シリア
ル・インタフェースTXDから出力されるクロックCKに同
期して、シリアル・インタフェースRXDを介して8ビッ
トのデータD(=D0〜D7)の入力また出力が可能とな
る。そこで、先のステップ52で設定したLED点灯状態の
データをマイクロコンピュータ30内の特殊機能レジスタ
SBUFに書込むことにより(ステップ53−2)、LED表示
出力はシリアル・インタフェースRXDより、第5図に示
すシリアルデータD(=D0〜D7)の形で出力される。こ
れと同時に、シリアル・インタフェースTXDより、第5
図に示す同期用のクロックCKが出力される。
In the LED display output process (step 53), the serial mode of the microcomputer 30 is first set to mode 0 by using the serial interfaces RXD and TXD of the microcomputer 30 as shown in FIG. Steps
53-1), set to I / O expansion mode. As a result, in synchronization with the clock CK output from the serial interface TXD, input and output of 8-bit data D (= D0 to D7) can be performed via the serial interface RXD. Therefore, the data of the LED lighting state set in the previous step 52 is stored in the special function register in the microcomputer 30.
By writing to SBUF (step 53-2), the LED display output is output from the serial interface RXD in the form of serial data D (= D0 to D7) shown in FIG. At the same time, the serial interface TXD
The synchronization clock CK shown in the figure is output.

このクロックCKは、振動子21によるマイクロコンピュ
ータ30の基本クロックの周波数12MHZの1/2に固定される
ため、 12MHZ×1/2=1MHZ ∴1μsec の周期のクロックCKがシリアル・インタフェースTXDか
ら出力される。このバックグランド処理(ステップ50)
において、機能回路33に対する割込み処理が発生した場
合も含めて、平均的に30msecに1回、キースイッチセン
ス処理(ステップ51)及びLED表示出力処理(ステップ5
3)が実行されるとすると、第5図に示すように、30mse
c毎に、第1階のシフトレジスタ42にシリアルデータD
(=D0〜D7)が再入力され、そのシフトレジスタ42によ
りパラレルデータに変換された後、その出力端子Q0〜Q7
の出力によってLED44の点灯状態がキースイッチ41に応
じたモードで再設定される(ステップ54)。そのLED44
の点灯に要する時間は、第5図に示すように、8ビット
で表現できる状態に対して、約8μsecとなる。
This clock CK is to be fixed to the half of the frequency 12MH Z of the basic clock of the microcomputer 30 by the vibrator 21, 12MH Z × 1/2 = 1MH period of Z ∴1Myusec clock CK serial interface TXD Output from This background processing (step 50)
In this case, the key switch sensing process (step 51) and the LED display output process (step 51) are performed once every 30 msec on average, including the case where an interrupt process for the functional circuit 33 occurs.
If step 3) is executed, as shown in FIG.
For each c, the serial data D is stored in the shift register 42 on the first floor.
(= D0 to D7) are re-input and converted into parallel data by the shift register 42, and then the output terminals Q0 to Q7
With the output of (1), the lighting state of the LED 44 is reset in a mode corresponding to the key switch 41 (step 54). Its LED44
As shown in FIG. 5, the time required for lighting is about 8 μsec with respect to the state that can be expressed by 8 bits.

本実施例では、次のような利点を有している。 This embodiment has the following advantages.

交流ノイズや静電ノイズ等の外来ノイズなどにより、
第1図のLED駆動用のドライバ43の出力状態が変化し、L
ED44の点灯状態が誤表示になった場合、30msec毎にLED4
4の点灯状態が再設定され、その再設定時におけるLED44
のちらつきも約8μsecと数μsec単位であり、外見上そ
のちらつきを視認することがほとんどで不可能である。
そのため、従来のように入手によってLED43の再設定を
行うことなく、自動的に、かつ外見上何ら異和感なく、
LED44を誤表示状態から正常な表示状態に復帰させるこ
とができる。従って、従来のような入手によるLED再設
定時に生じる操作ミスや、機能回路30の動作障害等とい
った弊害を的確に防止できる。
Due to external noise such as AC noise and electrostatic noise,
The output state of the LED driving driver 43 shown in FIG.
If the lighting status of the ED44 becomes erroneous, LED4
The lighting state of 4 is reset, and LED44 at the time of resetting
The flicker is also about 8 μsec, which is in units of several μsec, and it is almost impossible to visually recognize the flicker.
Therefore, automatically and without any apparent discomfort, without having to reset the LED43 by acquisition as in the past,
The LED 44 can be returned from an erroneous display state to a normal display state. Therefore, it is possible to appropriately prevent adverse effects such as an operation error that occurs at the time of resetting the LED due to a conventional acquisition and an operation failure of the functional circuit 30.

なお、本発明は図示の実施例に限定されず、種々の変
形が可能である。その変形例としては、例えば次のよう
なものがある。
Note that the present invention is not limited to the illustrated embodiment, and various modifications are possible. For example, there are the following modifications.

(a) マイクロコンピュータ30は8051、シフトレジス
タ42は74LS164のものを使用したが、これらを他の8ビ
ットや16ビット等のマイクロコンピュータ及びシフトレ
ジスタで構成してもよい。
(A) Although the microcomputer 30 uses the 8051 and the shift register 42 uses the 74LS164, these may be constituted by other 8-bit or 16-bit microcomputers and shift registers.

(b) ドライバ43はインバータ以外のバッファ等の他
の回路で構成したり、LED44は豆電球やエレクトロルミ
ネセンス(EL)等の他のランプに置き換えてもよい。
(B) The driver 43 may be constituted by another circuit such as a buffer other than the inverter, and the LED 44 may be replaced by another lamp such as a miniature bulb or electroluminescence (EL).

(c) LED44はシフトレジスタ42を用いて駆動してい
るが、マイクロコンピュータ30のI/Oポートに余裕があ
れば、そのシリアルレジスタ42を省略し、マイクロコン
ピュータ30のI/Oポートに直接、または拡張I/Oポートを
介して複数のLED44を接続し、それらをパラレル駆動す
る構成にしてもよい。
(C) The LED 44 is driven by using the shift register 42. If the I / O port of the microcomputer 30 has room, the serial register 42 is omitted and the LED 44 is directly connected to the I / O port of the microcomputer 30. Alternatively, a configuration may be employed in which a plurality of LEDs 44 are connected via an extended I / O port and driven in parallel.

(d) 第1図において、外来ノイズ等によって機能回
路33中の論理回路に誤動作が生じるような場合、第4図
のフローチャートを応用することにより、その誤動作を
防止することが可能である。
(D) In FIG. 1, when a malfunction occurs in the logic circuit in the functional circuit 33 due to external noise or the like, the malfunction can be prevented by applying the flowchart of FIG.

(発明の効果) 以上詳細に説明したように、本発明によれば、機器状
態を検出して内部レジスタに格納し、この格納した検出
結果に基づいてランプ表示状態の設定を所定周期で繰り
返し行うようにしたので、外来ノイズ等によってランプ
駆動手段の出力が変化し、ランプ点灯状態が誤表示にな
っても、所定周期でランプの点灯状態を再設定でき、さ
らにパルス信号の時間幅を短くすることにより、その再
設定時におけるランプのちらつきも、外見上視認不可能
な状態にできる。従って、従来のように入手によってラ
ンプの再設定を行うことなく、自動的に、かつ外見上何
ら異和感なく、ランプを誤表示状態から正常な表示状態
に復帰させることができ、それによってランプ再設定時
に生じる操作ミスや、他の回路の動作障害等といった弊
害を的確に防止できる。
(Effects of the Invention) As described in detail above, according to the present invention, the device state is detected and stored in the internal register, and the setting of the lamp display state is repeatedly performed at a predetermined cycle based on the stored detection result. Thus, even if the output of the lamp driving means changes due to external noise or the like and the lamp lighting state is erroneously displayed, the lighting state of the lamp can be reset at a predetermined cycle, and the time width of the pulse signal is further reduced. As a result, the lamp flicker at the time of resetting can also be made invisible. Therefore, the lamp can be returned from the erroneous display state to the normal display state automatically and without any apparent discomfort without resetting the lamp by obtaining the lamp as in the conventional case. It is possible to accurately prevent adverse effects such as an operation error at the time of resetting and an operation failure of another circuit.

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

第1図は本発明の実施例を示すランプ表示方法を説明す
るためのランプ表示装置の構成図、第2図は従来のラン
プ表示方法を説明するためのランプ表示装置の構成図、
第3図は第2図のフローチャート、第4図(1),
(2)は第1図のフローチャート、第5図は第1図のタ
イムチャートである。 30……マイクロコンピュータ、33……機能回路、40……
操作パネル、41……キースイッチ、42……シフトレジス
タ、43……ドライバ、44……LED。
FIG. 1 is a configuration diagram of a lamp display device for explaining a lamp display method showing an embodiment of the present invention, FIG. 2 is a configuration diagram of a lamp display device for explaining a conventional lamp display method,
FIG. 3 is a flowchart of FIG. 2, and FIG.
(2) is a flowchart of FIG. 1, and FIG. 5 is a time chart of FIG. 30 …… Microcomputer, 33 …… Functional circuit, 40 ……
Operation panel, 41: Key switch, 42: Shift register, 43: Driver, 44: LED.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】内部レジスタを有するワンチップマイクロ
コンピュータによりプログラム制御される機器の状態
を、ランプで表示するランプ表示方法において、 前記ワンチップマイクロコンピュータによって前記機器
の状態を検出する検出処理と、 前記検出処理の検出結果を前記ワンチップマイクロコン
ピュータの内部レジスタに格納する格納処理と、 前記内部レジスタに格納された検出結果に基づき、ラン
プ駆動手段によって所定の時間幅のパルス信号で前記ラ
ンプの点灯/消灯を設定する設定処理とを有し、 前記検出処理、前記格納処理及び前記設定処理を所定周
期で繰り返し行うことを特徴とするランプ表示方法。
1. A lamp display method for displaying, with a lamp, a state of a device program-controlled by a one-chip microcomputer having an internal register, a detection process of detecting the state of the device by the one-chip microcomputer; A storage process of storing a detection result of the detection process in an internal register of the one-chip microcomputer; A lamp display method, comprising: a setting process for setting light-off, wherein the detection process, the storage process, and the setting process are repeatedly performed at a predetermined cycle.
JP63217338A 1988-08-31 1988-08-31 Lamp display method Expired - Lifetime JP2655889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63217338A JP2655889B2 (en) 1988-08-31 1988-08-31 Lamp display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63217338A JP2655889B2 (en) 1988-08-31 1988-08-31 Lamp display method

Publications (2)

Publication Number Publication Date
JPH0266642A JPH0266642A (en) 1990-03-06
JP2655889B2 true JP2655889B2 (en) 1997-09-24

Family

ID=16702610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63217338A Expired - Lifetime JP2655889B2 (en) 1988-08-31 1988-08-31 Lamp display method

Country Status (1)

Country Link
JP (1) JP2655889B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61105649A (en) * 1984-10-29 1986-05-23 Shimadzu Corp Operational situation displaying method

Also Published As

Publication number Publication date
JPH0266642A (en) 1990-03-06

Similar Documents

Publication Publication Date Title
US4965550A (en) Automatic wake-up circuit arrangement for a single wire multiplex switch monitoring system
JP3604962B2 (en) System activated by joystick movement
US7519005B2 (en) Single-wire communication bus for miniature low-power systems
KR910005187A (en) Line Computer
JP3057340B2 (en) Electronic clock
JP2655889B2 (en) Lamp display method
JP2000231939A (en) Portable terminal equipment
JPH05210470A (en) Printer and method for processing its type selection
JP2642541B2 (en) Key input circuit and key input detection method
JP2579657Y2 (en) Electronics
JPH07108116B2 (en) Electric motor controller
JP3144877B2 (en) Backup type absolute position encoder
US11809658B2 (en) Driving circuit of display and operation method of a timing controller that determines a current operating status of a touch driver according to a number of sub-falling edges of an instruction signal
JP2728811B2 (en) Motor drive
JP2713261B2 (en) Printing device
JP2539371B2 (en) Floppy disk drive
JPH0615311Y2 (en) Input device
JP2009169539A (en) Microcomputer
JP3921168B2 (en) Electronic device operation mode setting device and setting method
JPS584119Y2 (en) Segment lighting status check device
JPH0547657Y2 (en)
JPH0743696B2 (en) Electronics
JPS5913745B2 (en) Display drive device
JPH0565353B2 (en)
JPH11232035A (en) Wireless coordinate input device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080530

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090530

Year of fee payment: 12