[go: up one dir, main page]

JPH0381831A - Interrupting operation device for microcomputer - Google Patents

Interrupting operation device for microcomputer

Info

Publication number
JPH0381831A
JPH0381831A JP21938989A JP21938989A JPH0381831A JP H0381831 A JPH0381831 A JP H0381831A JP 21938989 A JP21938989 A JP 21938989A JP 21938989 A JP21938989 A JP 21938989A JP H0381831 A JPH0381831 A JP H0381831A
Authority
JP
Japan
Prior art keywords
microcomputer
port
switches
key
switch
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
JP21938989A
Other languages
Japanese (ja)
Inventor
Kazuo Koyama
和男 小山
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.)
Faurecia Clarion Electronics Co Ltd
Original Assignee
Clarion 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 Clarion Co Ltd filed Critical Clarion Co Ltd
Priority to JP21938989A priority Critical patent/JPH0381831A/en
Publication of JPH0381831A publication Critical patent/JPH0381831A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute the power ON/OFF operation of plural modes by a single operation by means of an interruption port by one interruption port by preparing plural ON/OFF switches corresponding to plural normal ports and connecting these switches to one interruption port. CONSTITUTION:A master microcomputer 1 is provided with the interruption port 4 having a stand-by releasing function and plural ON/OFF switches 2 are connected to the port 4 in common. Respective switches 2 are connected to corresponding normal ports 5 through a key matrix 3, and in the case of keying in the computer 1, the matrix 3 inputs a code corresponding to the depressed switch out of plural switches 2. When the switch 2 is depressed in an interruption allowable state, the computer 1 is turned to an interruption mode and decides which key out of the switches 2 is depressed while scanning the port 5. When an operation command corresponding to the depressed key is sent to a slave microcomputer 6, the power ON/OFF operation of plural modes such as CD and a cassette tape recorder can be executed only by a single operation.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 この発明はマイクロコンピュータの割り込み動作装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to an interrupt operation device for a microcomputer.

〈従来の技術〉 マイクロコンピュータのスタンバイモードから直接各モ
ードのパワーオン/オフを行うには、従来はスタンバイ
解除の可能な割り込みポートを各モードの数だけ備えた
マイクロコンピュータを用いるか、或は−度パワーオン
キーで割り込みを行った後に、キースキャン動作により
それぞれのモードに対応したオン、オフスイッチを押す
必要があった。
<Prior Art> In order to directly turn on/off power in each mode from the standby mode of a microcomputer, conventionally a microcomputer has been used that is equipped with the same number of interrupt ports as each mode that can release standby, or - After interrupting with the power-on key, it was necessary to press the on/off switch corresponding to each mode using the key scan operation.

第5図はモードに対応した数の割込ポート12を有する
マスタマイクロコンピュータ10の例を示すもので、各
割込ボート12にオンオフスイッチ13を接続し、各モ
ードのパワーオン、オフを行うようになっている。そし
て、マスタマイクロコンピュータ10は押されたスイッ
チに対応して。
FIG. 5 shows an example of a master microcomputer 10 having the number of interrupt ports 12 corresponding to the modes. An on/off switch 13 is connected to each interrupt port 12 to turn power on and off for each mode. It has become. Then, the master microcomputer 10 responds to the pressed switch.

各モードのスレーブマイクロコンピュータ11に指令を
送るように構成されている。なお、14は表示器、15
はキーマトリクスである。
It is configured to send commands to the slave microcomputer 11 in each mode. In addition, 14 is a display, 15
is a key matrix.

第6図は割り込みポートが1つのマスタマイクロコンピ
ュータ10′の例を示すものである。この例では割込ポ
ート12′にパワーオンキー16を接続し、−度パワー
オンキー16を押してからオンオフスイッチ13′を押
してモードを選択する構成になっている。マスタマイク
ロコンピュータ10′はパワーオンキー16のオンによ
りオンオフスイッチ13′のキースキャンを実行し、選
択されたモードを判定して、スレーブマイクロコンピュ
ータ11に指令を送るように構成されている。
FIG. 6 shows an example of a master microcomputer 10' having one interrupt port. In this example, the power on key 16 is connected to the interrupt port 12', and the mode is selected by pressing the power on key 16 once and then pressing the on/off switch 13'. The master microcomputer 10' is configured to execute a key scan of the on/off switch 13' by turning on the power on key 16, determine the selected mode, and send a command to the slave microcomputer 11.

〈発明が解決しようとする問題点〉 しかし、上記した割り込みポートを各モードに対応して
設ける構成ではコストが高くなる欠点がある。また、1
つの割り込みポートによる場合には構成が簡単でコスト
が安くなるが1反面操作が2度になるため操作性に劣る
欠点がある。
<Problems to be Solved by the Invention> However, the configuration in which the above-mentioned interrupt ports are provided corresponding to each mode has the drawback of increasing costs. Also, 1
The configuration using two interrupt ports is simple and the cost is low, but on the other hand, it requires two operations, resulting in poor operability.

〈発明の概要〉 本発明は上記した従来の構成の欠点を改善するためにな
されたもので、各種の動作に対応した複数の通常ポート
と、これら複数の通常ポートに対して共通に使用される
1つの割り込みポートを有するマイクロコンピュータと
、複数の通常ポートに夫々対応して設けられた複数のオ
ンオフスイッチ2を備え、該複数のオンオフスイッチは
総て1つの割り込みポートに接続されており、何れかの
オンオフスイッチがオンされると、その信号が割り込み
ポートに入力されてマイクロコンピュータのスタンバイ
状態が解除され、続いてマイクロコンピュータがどのオ
ンオフスイッチがオンされたか走査して指示された動作
を検出すること基本的な特徴とするものである。
<Summary of the Invention> The present invention has been made in order to improve the drawbacks of the conventional configuration described above, and includes a plurality of normal ports corresponding to various operations and a port commonly used for these plurality of normal ports. It is equipped with a microcomputer having one interrupt port, and a plurality of on/off switches 2 provided corresponding to a plurality of normal ports, and all of the plurality of on/off switches are connected to one interrupt port. When the on/off switch of the microcomputer is turned on, that signal is input to the interrupt port to release the microcomputer from standby, and then the microcomputer scans which on/off switch was turned on and detects the instructed operation. This is a basic feature.

く作用〉 複数のオンオフスイッチの中の1つをオンするとその信
号が割り込みポートに入力されると共に。
Function> When one of the multiple on/off switches is turned on, that signal is input to the interrupt port.

マイクロコンピュータはオンされたオンオフスイッチを
走査して、該当するモードの動作を実行する。これによ
り、1つの割り込みポートで複数のモードのパワーオン
/オフを1つの動作で行うことができる。
The microcomputer scans the on/off switches that are turned on and executes the corresponding mode of operation. Thereby, power on/off in multiple modes can be performed in one operation using one interrupt port.

〈実施例〉 以下本発明の一実施例を図面に基づいて説明する。<Example> An embodiment of the present invention will be described below based on the drawings.

第1図においてマスタマイクロコンピュータ1はスタン
バイ解除機能を有する1つの割込ポート4を有しており
、この割込ポート4に複数のオンオフスイッチ2が共通
して接続している。オンオフスイッチ2はキーマトリク
ス3を介して通常ポート5に接続し、またキーマトリク
ス3はマスタマイクロコンピュータ1のキー人力にオン
オフスイッチ2の中の押されたスイッチに対応するコー
ドを入力するように構成されている。
In FIG. 1, a master microcomputer 1 has one interrupt port 4 having a standby release function, and a plurality of on/off switches 2 are commonly connected to this interrupt port 4. The on/off switch 2 is normally connected to the port 5 via a key matrix 3, and the key matrix 3 is configured to input a code corresponding to a pressed switch in the on/off switch 2 to a key of the master microcomputer 1. has been done.

マスタマイクロコンピュータ1は各モードを実行する機
器のスレーブマイクロコンピュータ6に指令を送るよう
に構成されている。この実施例ではCD、カセットテー
プレコーダ、チューナのスレーブマイクロコンピュータ
6を制御するようになっている。マスタマイクロコンピ
ュータlはまた表示器7を接続し、電源Aceとバック
アップ電源により電源の供給を受けている。なお、rは
プルアップ抵抗、Rはプルダウン抵抗である。
The master microcomputer 1 is configured to send commands to the slave microcomputers 6 of devices that execute each mode. In this embodiment, a slave microcomputer 6 for a CD, a cassette tape recorder, and a tuner is controlled. The master microcomputer 1 is also connected to the display 7, and is supplied with power by the power source Ace and the backup power source. Note that r is a pull-up resistor and R is a pull-down resistor.

マスタマイクロコンピュータlは割り込み許可状態でオ
ンオフスイッチ2が押されると、割り込みモードに入り
、通常ポート5を走査してオンオフスイッチ2の中のど
のキーが押されたか判断する。そして、押されたキーに
対応する動作指令をスレーブマイクロコンピュータ6に
送出し、各動作を実行させる構成になっている。
When the on/off switch 2 is pressed while the master microcomputer 1 is in an interrupt enabled state, it enters an interrupt mode, scans the normal port 5, and determines which key in the on/off switch 2 has been pressed. Then, an operation command corresponding to the pressed key is sent to the slave microcomputer 6 to cause it to execute each operation.

次に動作を説明する。Next, the operation will be explained.

第2図に示すようにバックアップ電源Vddを立ち上げ
たとき、イニシャライズをスタートしくステップ20)
、キー出力ポートをHi(ステップ21)、割り込みを
許可状態とする(ステップ22)、そしてその他のイニ
シャライズを行い(ステップ23)、スタンバイモード
1に入る(ステップ24)、そして、第3図(A)に示
すように、Acc電源がオンか否か判断しくステップ2
5)、オフであればスタンバイモード1を継続する(ス
テップ26 ) * A c c電源がオンであれば、
前回A c c電源がオフになった時どれかのモードで
動作していたか否かの判断を行い(ステップ27)、モ
ード動作中にAce電源が落ちた場合には割り込みの禁
止をして通常動作を行う(ステップ28)、モード動作
中にAce電源が落ちていなかった場合にはスタンバイ
モード2に入る(ステップ29)、この状態で第1図の
a〜C何れかのキーがONされるとlNTlに信号が入
り、割込みが行われてマイコンが動作を開始する(ステ
ップ30)、これと共に、僅かの差で別のキーがONさ
れてしまうことによる不都合を回避するためにlNTl
からの割込み入力を禁止する(ステップ31)。
As shown in Figure 2, when the backup power supply Vdd is turned on, initialization should start (Step 20)
, set the key output port to Hi (step 21), enable interrupts (step 22), perform other initialization (step 23), enter standby mode 1 (step 24), and ) As shown in step 2, it is difficult to judge whether the Acc power is on or not.
5), if it is off, continue standby mode 1 (step 26) * If the AC power is on,
It is determined whether the Ace was operating in any mode the last time the Ace power was turned off (step 27), and if the Ace power is turned off while operating in that mode, interrupts are disabled and the operation returns to normal. performs the operation (step 28), and if the Ace power is not turned off during mode operation, enters standby mode 2 (step 29); in this state, any key a to c in Figure 1 is turned on. A signal is input to lNTl, an interrupt is generated, and the microcomputer starts operating (step 30).At the same time, in order to avoid the inconvenience caused by another key being turned on due to a slight difference, lNTl
Interrupt input from is prohibited (step 31).

そして、オンオフスイッチ2の中のどれかが押されて割
り込みが発生したかをチエツクする(ステップ32)0
割り込みが発生したら通常ポート5を走査して、チュー
ナキーが押されたか(ステップ33)、カセットキーが
押されたか(ステップ34)、CDキーが押されたか(
ステップ35)を順次判断し、その判断結果に応じて第
3図(B)の動作を順次実行する。
Then, it is checked whether any of the on/off switches 2 has been pressed and an interrupt has occurred (step 32).
When an interrupt occurs, it usually scans port 5 and determines whether the tuner key was pressed (step 33), the cassette key (step 34), or the CD key (step 34).
Step 35) is sequentially determined, and the operations shown in FIG. 3(B) are sequentially executed according to the determination results.

第3図(B)において、チューナ動作を実行しくステッ
プ40)、他のオンオフスイッチ2のキーが押されたか
判断しくステップ41)、押されていればそれがCDか
否か判断する(ステップ42)、押されていない場合に
はチューナのキーがオフになったか否か判断しくステッ
プ43)、オフであればスタンバイモード2に戻る(ス
テップ44)、オフでなければステップ40に戻る。
In FIG. 3(B), the tuner operation is executed (Step 40), it is determined whether the key of the other on/off switch 2 is pressed (Step 41), and if it is pressed, it is determined whether or not it is a CD (Step 42). ), if it is not pressed, it is determined whether the tuner key is turned off or not (step 43); if it is turned off, the process returns to standby mode 2 (step 44); if it is not turned off, the process returns to step 40.

ステップ42でCDキーが押された場合には、CD動作
を実行しくステップ45)、他のオンオフスイッチ2の
キーが押されたか判断しくステップ46)、押されてい
ればそれがチューナか否が判断する(ステップ47)、
押されていない場合にはCDのキーがオフになったか否
か判断しくステップ48)、オフであればスタンバイモ
ード2に戻る(ステップ49)、オフでなければステッ
プ45に戻る。
If the CD key is pressed in step 42, the CD operation is executed (step 45), and it is determined whether another on/off switch 2 key has been pressed (step 46), and if it is, it is determined whether the key is the tuner or not. Determine (step 47)
If it is not pressed, it is determined whether the CD key is turned off or not (step 48). If it is turned off, the process returns to standby mode 2 (step 49); if it is not turned off, the process returns to step 45.

ステップ47でチューナキーが押されている場合にはス
テップ40に戻る。ステップ42又は47でカセットキ
ーが押された場合には、カセット動作を実行しくステッ
プ50)、他のオンオフスイッチ2のキーが押されたか
判断しくステップ51)、押されていればそれがチュー
ナか否か判断する(ステップ52)、押されていない場
合にはカセットのキーがオフになったか否か判断しくス
テップ53)、オフであればスタンバイモード2に戻る
(ステップ54)、オフでなければステップ50に戻る
If the tuner key is pressed in step 47, the process returns to step 40. If the cassette key is pressed in step 42 or 47, the cassette operation is executed (step 50), and it is determined whether another on/off switch 2 key has been pressed (step 51); if it is, it is the tuner. If it is not pressed, it is determined whether the cassette key is turned off (step 53); if it is off, the mode returns to standby mode 2 (step 54); if it is not Return to step 50.

第4図に他の実施例を示す、この実施例は本発明をパワ
ースイッチのないタイプのカセットレコーダに適用した
もので、カセットを機器に挿入することにより電源がオ
ンとなり所定の動作を行うようになっている。この実施
例ではオンオフスイッチ2′としてカセットのパックイ
ン検出スイッチと、イジェクト及びプレイ/ストップス
イッチを用いており、これを通常ポート5′に接続する
と共に、割込ポート4′に接続している。そして、マス
タマイクロコンピュータ1はオンオフスイッチ2′の押
されたスイッチに対応して、各スイッチに対応する動作
をカセットメカニズム9に実行させるようになっている
Another embodiment is shown in FIG. 4. In this embodiment, the present invention is applied to a type of cassette recorder without a power switch, and when a cassette is inserted into the device, the power is turned on and the predetermined operation is performed. It has become. In this embodiment, a cassette pack-in detection switch and an eject and play/stop switch are used as the on/off switch 2', which are connected to the normal port 5' and also to the interrupt port 4'. The master microcomputer 1 is configured to cause the cassette mechanism 9 to perform an operation corresponding to each switch in response to the pressed on/off switch 2'.

以上説明した構成ではマスタマイクロコンピュータ1に
1つの割込ボート4を備えればよく、オンオフスイッチ
2を1度押せば、割込ボート4に割り込み信号が入力さ
れ、マスタマイクロコンピュータ1は押されたスイッチ
を走査してそのスイッチに対応する動作を実行させる。
In the configuration described above, the master microcomputer 1 only needs to be equipped with one interrupt port 4, and when the on/off switch 2 is pressed once, an interrupt signal is input to the interrupt port 4, and the master microcomputer 1 is pressed. Scan the switch and cause the switch to perform the corresponding action.

そのため、簡単な操作で種々のモードを選択することが
できる。
Therefore, various modes can be selected with a simple operation.

〈発明の効果〉 以上説明したように本発明のマイクロコンピュータの割
込み動作動作装置は、各種の動作に対応した複数の通常
ポートと、これら複数の通常ポートに対して共通に使用
される1つの割り込みポートを有するマイクロコンピュ
ータと、複数の通常ポートに夫々対応して設けられた複
数のオンオフスイッチを備え、該複数のオンオフスイッ
チは総て1つの割り込みポートに接続されており、何れ
かのオンオフスイッチがオンされると、その信号が割り
込みポートに入力されてマイクロコンビュ−夕のスタン
バイ状態が解除され、続いてマイクロコンピュータがど
のオンオフスイッチ2がオンされたか走査して指示され
た動作を検出する構成になっているため、比較的簡単な
構成でしかも簡単な操作により複数のモードの割り込み
を実行できる効果がある。
<Effects of the Invention> As explained above, the microcomputer interrupt operation device of the present invention has a plurality of normal ports corresponding to various operations and one interrupt commonly used for these plurality of normal ports. It is equipped with a microcomputer having a port, and a plurality of on/off switches provided corresponding to the plurality of normal ports, and the plurality of on/off switches are all connected to one interrupt port, and when any of the on/off switches When it is turned on, the signal is input to the interrupt port and the standby state of the microcomputer is canceled, and then the microcomputer scans which on/off switch 2 is turned on and detects the instructed operation. Therefore, it has the advantage of being able to execute interrupts in multiple modes with a relatively simple configuration and simple operations.

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

第1図は本発明の一実施例を示すブロック図、第2図と
第3図は動作説明のためのフローチャート図、第4図は
他の実施例を示すブロック図、第5図と第6図は従来の
例を示すブロック図である。 l:マスタマイクロコンピュータ、2:オンオフスイッ
チ、3:キーマトリクス、4:割込ポート、5:通常ポ
ート、6:スレーブマイクロコンピュータ、7:表示器
、9:カセットメカニズム、10:マスタマイクロコン
ピュータ、11ニスレープマイクロコンピユータ、12
:割込ポート、13:オンオフスイッチ、14:表示器
、15:キーマトリクス、 16:パワーオンキー
FIG. 1 is a block diagram showing one embodiment of the present invention, FIGS. 2 and 3 are flowcharts for explaining the operation, FIG. 4 is a block diagram showing another embodiment, and FIGS. The figure is a block diagram showing a conventional example. l: Master microcomputer, 2: On/off switch, 3: Key matrix, 4: Interrupt port, 5: Normal port, 6: Slave microcomputer, 7: Display, 9: Cassette mechanism, 10: Master microcomputer, 11 Nislep microcomputer, 12
: Interrupt port, 13: On/off switch, 14: Display, 15: Key matrix, 16: Power on key

Claims (1)

【特許請求の範囲】 各種の動作に対応した複数の通常ポートと、これら複数
の通常ポートに対して共通に使用される1つの割り込み
ポートを有するマイクロコンピュータと、 複数の通常ポートに夫々対応して設けられた複数のオン
オフスイッチを備え、 該複数のオンオフスイッチは総て1つの割り込みポート
に接続されており、 何れかのオンオフスイッチがオンされると、その信号が
割り込みポートに入力されてマイクロコンピュータのス
タンバイ状態が解除され、続いてマイクロコンピュータ
がどのオンオフスイッチがオンされたか走査して指示さ
れた動作を検出すること特徴とするマイクロコンピュー
タの割り込み動作装置。
[Claims] A microcomputer having a plurality of normal ports corresponding to various operations, one interrupt port commonly used for the plurality of normal ports, and a microcomputer having a plurality of normal ports corresponding to each of the plurality of normal ports. The on/off switches are all connected to one interrupt port, and when any of the on/off switches is turned on, the signal is input to the interrupt port and sent to the microcomputer. A microcomputer interrupt operating device characterized in that when the standby state of the microcomputer is released, the microcomputer subsequently scans which on/off switch has been turned on and detects the instructed operation.
JP21938989A 1989-08-25 1989-08-25 Interrupting operation device for microcomputer Pending JPH0381831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21938989A JPH0381831A (en) 1989-08-25 1989-08-25 Interrupting operation device for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21938989A JPH0381831A (en) 1989-08-25 1989-08-25 Interrupting operation device for microcomputer

Publications (1)

Publication Number Publication Date
JPH0381831A true JPH0381831A (en) 1991-04-08

Family

ID=16734654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21938989A Pending JPH0381831A (en) 1989-08-25 1989-08-25 Interrupting operation device for microcomputer

Country Status (1)

Country Link
JP (1) JPH0381831A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381403B1 (en) * 1995-06-23 2003-07-18 칼소닉 칸세이 가부시끼가이샤 Microcomputer wake-up device
US9808595B2 (en) 2007-08-07 2017-11-07 Boston Scientific Scimed, Inc Microfabricated catheter with improved bonding structure
US9901706B2 (en) 2014-04-11 2018-02-27 Boston Scientific Scimed, Inc. Catheters and catheter shafts
US10207077B2 (en) 2003-03-27 2019-02-19 Boston Scientific Scimed, Inc. Medical device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100381403B1 (en) * 1995-06-23 2003-07-18 칼소닉 칸세이 가부시끼가이샤 Microcomputer wake-up device
US10207077B2 (en) 2003-03-27 2019-02-19 Boston Scientific Scimed, Inc. Medical device
US9808595B2 (en) 2007-08-07 2017-11-07 Boston Scientific Scimed, Inc Microfabricated catheter with improved bonding structure
US9901706B2 (en) 2014-04-11 2018-02-27 Boston Scientific Scimed, Inc. Catheters and catheter shafts

Similar Documents

Publication Publication Date Title
US6038671A (en) Power management of a computer system using a power button
JPH08272497A (en) Keyboard device
JP2000020285A (en) Computer system
JPH0381831A (en) Interrupting operation device for microcomputer
US5557739A (en) Computer system with component removal and replacement control scheme
JPH03171310A (en) Personal computer
JPS61176224A (en) On-vehicle acoustic device
JP2546386B2 (en) Redundant device
JPH0334755Y2 (en)
JP3453395B2 (en) Information transfer system
JPH0264845A (en) Electronic computer multiplexing main control part
JPH06208441A (en) System for controlling printing environment of printer device
KR950007739Y1 (en) Watch dog unit for pc
JPH0527920A (en) Magnetic disk cross call connection monitor circuit
JPS605379Y2 (en) microcomputer system
JPH0675653A (en) Computer redundancy control system
JPS6229822B2 (en)
JPH05260542A (en) System data initialization start-up system for telephone exchange system
JPS63126029A (en) Printer test printing method
JPH02293962A (en) Microprocessor controller
JPH0619723B2 (en) Redundant processor system
JPH10312227A (en) Microcomputer controlling reset device
JPH0683545A (en) Device for copying data between storage media
JPS60690B2 (en) Power control method
JPH03277079A (en) TV camera with integrated recording device