JPH0565893B2 - - Google Patents

Info

Publication number
JPH0565893B2
JPH0565893B2 JP58063261A JP6326183A JPH0565893B2 JP H0565893 B2 JPH0565893 B2 JP H0565893B2 JP 58063261 A JP58063261 A JP 58063261A JP 6326183 A JP6326183 A JP 6326183A JP H0565893 B2 JPH0565893 B2 JP H0565893B2
Authority
JP
Japan
Prior art keywords
reset
microcomputer
output
key
port signal
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
JP58063261A
Other languages
Japanese (ja)
Other versions
JPS59188718A (en
Inventor
Hiroyuki Tada
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP58063261A priority Critical patent/JPS59188718A/en
Publication of JPS59188718A publication Critical patent/JPS59188718A/en
Publication of JPH0565893B2 publication Critical patent/JPH0565893B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Calculators And Similar Devices (AREA)
  • Retry When Errors Occur (AREA)

Description

【発明の詳細な説明】 本発明は、キースキヤン入力装置を備えたマイ
クロコンピユータに関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microcomputer with a key scan input device.

キースキヤン方式の入力装置は少ない信号線で
多くのキースイツチを備えることができるため、
比較的低価格のキーボードや、電卓や電子腕時計
等の携帯用電子機器に応用されている。
Key scan type input devices can have many key switches with fewer signal lines, so
It is applied to relatively low-cost keyboards and portable electronic devices such as calculators and electronic watches.

キースキヤン入力回路の例を第1図に示す。1
はマイクロコンピユータ、2はキースイツチ、3
は出力ポート、4は入力ポート、5はプルダウン
抵抗である。I0〓〜I3の4本の入力ポート信号線
はマイクロコンピユータに内蔵されたプルダウン
抵抗の作用により、通常L0レベルに保たれてい
る。0〓〜3の4本の出力ポート信号線は、一
定の周期でスキヤンされており、第1の状態では
0123の順に、(Hi、L0、L0、L0
レベル、第2の状態では(L0、Hi、L0、L0)レ
ベル、第3の状態では(L0、L0、Hi、L0)レベ
ル、第4の状態では(L0、L0、L0、Hi)レベル
となり、これらの4つの状態が繰り返されてい
る。また、出力ポートの駆動インピーダンスは、
プルダウン抵抗のインピーダンスと比較して十分
低く設定されている。たとえば、2がHiレベル
の期間には2ラインに接続された4つのキース
イツチの情報が入力ポートに読み込まれる。
An example of a key scan input circuit is shown in FIG. 1
is a microcomputer, 2 is a key switch, 3 is a
is an output port, 4 is an input port, and 5 is a pull-down resistor. The four input port signal lines I0 to I3 are normally kept at the L0 level by the action of a pull-down resistor built into the microcomputer. The four output port signal lines from 0 to 3 are scanned at a constant cycle, and in the first state, the signals (Hi, L 0 , L 0 , L 0 )
level, (L 0 , Hi, L 0 , L 0 ) level in the second state, (L 0 , L 0 , Hi, L 0 ) level in the third state, (L 0 ,L 0 ) level in the fourth state. 0 , L 0 , Hi) level, and these four states are repeated. In addition, the driving impedance of the output port is
It is set sufficiently low compared to the impedance of the pull-down resistor. For example, while 2 is at Hi level, information from the four key switches connected to line 2 is read into the input port.

電子腕時計のような高密度の実装効率が要求さ
れる超小型機器においては、マイクロコンピユー
タのシステムリセツト用キースイツチを専用に設
けることは困難で、通常、4個のキースイツチの
同時押しにより、システムリセツトを起動させる
方法を用いるのが有利である。ところが、マイク
ロコンピユータが、システムダウンしている時に
は、各出力ポートがHiレベルであるとは限らな
いため、前記の方法でシステムリセツトを起動
し、マイクロコンピユータを初期化することはで
きない。したがつて、従来はキースキヤン入力方
式によるマイクロコンピユータを備えた電子機器
には専用リセツトキーが必要となり、機器の小型
化やデザイン上の障害となつていた。また、これ
を無視して、キーマトリツクスのみで機器を構成
した場合には、システムダウン時に電源再投入に
よる始動が不要になることがあり、機器の商品と
しての信頼度を低下させていた。
For ultra-compact devices such as electronic wristwatches that require high-density packaging efficiency, it is difficult to provide a dedicated key switch for resetting the system of a microcomputer, and the system reset is usually performed by pressing four key switches at the same time. It is advantageous to use a method of activation. However, when the microcomputer is system down, each output port is not necessarily at Hi level, so it is not possible to initiate a system reset and initialize the microcomputer using the method described above. Therefore, in the past, electronic devices equipped with microcomputers using the key scan input method required a dedicated reset key, which was an obstacle to miniaturization and design of the devices. Furthermore, if this is ignored and the device is configured with only the key matrix, it may not be necessary to restart the device by turning the power back on when the system goes down, reducing the reliability of the device as a product.

本発明は、上記の欠点を解決しようとするもの
であり、マイクロコンピユータのシステムダウン
時においても、専用リセツトキーを設けることな
く、キーマトリツクスからのリセツト起動が可能
なキースキヤン方式のマイクロコンピユータを提
供することを目的としている。
The present invention aims to solve the above-mentioned drawbacks, and provides a key scan type microcomputer that can be reset and started from a key matrix without providing a dedicated reset key even when the microcomputer system is down. The purpose is to

また、本発明によるマイクロコンピユータは、
マイクロコンピユータのシステムダウンを検知す
る手段と、システムダウン時に出力ポートの状態
を強制的に初期化する手段を備え、マイクロコン
ピユータの非正常動作時においても、キーマトリ
ツクスの特定のキースイツチまたは特定のキース
イツチ群の組み合せにより、システムリセツトを
起動する手段を備えたことを特徴としている。
Furthermore, the microcomputer according to the present invention includes:
It is equipped with a means to detect a system down of the microcomputer and a means to forcibly initialize the state of the output port when the system goes down, so that even when the microcomputer is operating abnormally, a specific key switch in the key matrix or a specific key switch can be activated. The present invention is characterized in that it includes a means for activating a system reset by a combination of groups.

第2図は、本発明によるキースキヤン入力方式
マイクロコンピユータの実施例である。6,7は
マスターレイブ型フリツプフロツプ、8はNOR
ゲート、9はインバータ、10はハーフビツト型
フリツプフロツプ、11は異電源間インターフエ
ース、12は出力バツフア、13はプルダウン抵
抗、iとIiの交点にキースイツチが設けられてい
る。6と7によりカウンターを構成しており、そ
の入力クロツクはφ1で、1Hz信号である。また、
10にはアキユームレータの最下位ビツト出力で
ある0〓が入力されている。SWは0の読み込み
信号である。14はシステムリセツトを起動させ
るNANDゲートである。
FIG. 2 shows an embodiment of a key scan input type microcomputer according to the present invention. 6 and 7 are master rave type flip-flops, 8 is NOR
A gate, 9 is an inverter, 10 is a half-bit flip-flop, 11 is an interface between different power sources, 12 is an output buffer, 13 is a pull-down resistor, and a key switch is provided at the intersection of i and I i . 6 and 7 constitute a counter, whose input clock is φ1 , which is a 1Hz signal. Also,
10 is inputted with 0, which is the least significant bit output of the accumulator. SW is a 0 read signal. 14 is a NAND gate that activates system reset.

従来、アキユームレータの出力をインターフエ
ースと出力バツフアを通して直接出力ポートへ出
力していたが、本実施例においては、出力ポート
0の系統に限り、新たにカウンター(所定時
間を計測するタイマー動作をする)を設け、一定
時間以上0がL0レベルになると、強制的に0
Hiレベルへセツトする機能がある。
Conventionally, the output of the accumulator was directly output to the output port through an interface and an output buffer, but in this embodiment, a new counter (timer operation that measures a predetermined time) is added only to the output port 0 system. ), and if 0 reaches the L 0 level for a certain period of time, it will force 0.
There is a function to set it to Hi level.

その動作は、カウンターのクロツク信号が1Hz
であるから、0が1〜2秒以上連続してHiとな
り、I0〜I3に接続された4本の信号線に設けられ
たスイツチのうち、0に接続されているものを
全て同時にONしたとき、NANDゲート14より
システムリセツト信号が出力され、ハードウ
エア的にシステムリセツト動作が開始される。
Its operation is based on a counter clock signal of 1Hz.
Therefore, when 0 becomes Hi for more than 1 to 2 seconds continuously, all switches connected to 0 among the four signal lines connected to I 0 to I 3 are turned on at the same time. At this time, a system reset signal is output from the NAND gate 14, and a system reset operation is started in terms of hardware.

さらに詳述すると、マイクロコンピユータの正
常動作時においては、0〓が1秒以上連続して
L0レベルとなるような状態をソフトウエアで使
用していないので、0〓のレベルを観測すること
により、システムダウン状態の検知が可能になる
のである。6,7のマスタースレイプ型フリツプ
フロツプは、アキユームレータのA0信号のレベ
ルに応じて、0=L0の時にはリセツト状態、0
=Hiの時には動作状態となる。0=L0の時に
は、NORゲート8の作用により、0=Hiとなる
ので、特別な処理なしにシステムリセツト起動可
能である。また、逆に、0=Hiの期間が1秒以
上続くとフリツプフロツプ6,7のリセツト入力
RがHiとなり、フリツプフロツプ6,7が1秒
以上リセツトされずに動作を続けることができ、
フリツプフロツプ6のに入力されたL0が、シ
フトされフリツプフロツプ7の出力QにHiとな
つて出力され、0のレベルを強制的にHiへセツ
トし、この状態においてもシステムリセツト起動
可能とするのである。
To explain in more detail, during normal operation of a microcomputer, 0 = continues for more than 1 second.
Since the software does not use a state that would result in the L 0 level, it is possible to detect a system down state by observing the 0〓 level. The master slave flip-flops 6 and 7 are in the reset state when 0 = L 0, depending on the level of the A 0 signal of the accumulator, and are in the reset state when 0 = L 0 .
When = Hi, it is in the operating state. When 0 = L0 , 0 =Hi due to the action of the NOR gate 8, so the system can be reset and activated without special processing. Conversely, if the period of 0 = Hi continues for more than 1 second, the reset inputs R of flip-flops 6 and 7 become Hi, allowing flip-flops 6 and 7 to continue operating for more than 1 second without being reset.
The L 0 input to flip-flop 6 is shifted and output as Hi to the output Q of flip-flop 7, forcing the 0 level to Hi, making it possible to start the system reset even in this state. .

本発明によるキースキヤン方式マイクロコンピ
ユータを使用すれば、キーマトリツクス以外に専
用リセツトキースイツチを必要としないので、機
器の実装の効率と自由度を高め、小型化が可能に
なり、電卓付電子腕時計等の超小型電子機器のシ
ステムダウン状態からのリスタートを信頼性良く
実施できる。
If the key scan type microcomputer according to the present invention is used, a dedicated reset key switch is not required other than the key matrix, which increases the efficiency and flexibility of equipment implementation and makes it possible to reduce the size of the device, such as an electronic wristwatch with a calculator. It is possible to reliably restart a microelectronic device from a system down state.

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

第1図は、従来のキースキヤン入力回路の例を
示すブロツク図。 1……マイクロコンピユータ、2……キースイ
ツチ、3……出力ポート、4……入力ポート、5
……プルダウン抵抗。 第2図は、本発明によるキースキヤン入力方式
マイクロコンピユータの実施例を示す回路図。 6,7……マスタースレイブ型フリツプフロツ
プ、8……NORゲート、9……インバータ、1
0……ハーフビツト型フリツプフロツプ、11…
…異電源間インターフエース、12……出力バツ
フア、13……プルダウン抵抗、14……
NANDゲート。
FIG. 1 is a block diagram showing an example of a conventional key scan input circuit. 1... Microcomputer, 2... Key switch, 3... Output port, 4... Input port, 5
...Pull-down resistance. FIG. 2 is a circuit diagram showing an embodiment of a key scan input type microcomputer according to the present invention. 6, 7...Master-slave type flip-flop, 8...NOR gate, 9...Inverter, 1
0...Half-bit flip-flop, 11...
... Interface between different power supplies, 12 ... Output buffer, 13 ... Pull-down resistor, 14 ...
NAND gate.

Claims (1)

【特許請求の範囲】 1 複数の入力ポート信号線と複数の出力ポート
信号線とをマトリツクス状に配列し、該マトリツ
クスの交点にキースイツチを配置し、前記複数の
入力ポート信号線の電位が前記出力ポート信号線
に出力された第1の電位であることを検出し前記
マイクロコンピユータをリセツトする信号を発生
するリセツト信号発生手段を有するキースキヤン
入力方式マイクロコンピユータにおいて、 所定の周期でリセツトされるカウンタと、前記
カウンタが前記所定の周期でリセツトされず動作
したときの出力に基づき強制的に前記複数の出力
ポート信号線のうち少なくとも1本の電位を前記
第1の電位とする手段を有することを特徴とする
キースキヤン入力方式マイクロコンピユータ。
[Scope of Claims] 1 A plurality of input port signal lines and a plurality of output port signal lines are arranged in a matrix, a key switch is arranged at the intersection of the matrix, and the potential of the plurality of input port signal lines is set to the output port signal line. A key scan input type microcomputer having a reset signal generating means for detecting a first potential output to a port signal line and generating a signal for resetting the microcomputer, comprising: a counter that is reset at a predetermined period; It is characterized by comprising means for forcibly setting the potential of at least one of the plurality of output port signal lines to the first potential based on an output when the counter operates without being reset in the predetermined period. A key scan input type microcomputer.
JP58063261A 1983-04-11 1983-04-11 Microcomputer of key scan inputting system Granted JPS59188718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58063261A JPS59188718A (en) 1983-04-11 1983-04-11 Microcomputer of key scan inputting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58063261A JPS59188718A (en) 1983-04-11 1983-04-11 Microcomputer of key scan inputting system

Publications (2)

Publication Number Publication Date
JPS59188718A JPS59188718A (en) 1984-10-26
JPH0565893B2 true JPH0565893B2 (en) 1993-09-20

Family

ID=13224154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58063261A Granted JPS59188718A (en) 1983-04-11 1983-04-11 Microcomputer of key scan inputting system

Country Status (1)

Country Link
JP (1) JPS59188718A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4721683B2 (en) * 2004-09-30 2011-07-13 日野自動車株式会社 Vehicle front structure
WO2006038430A1 (en) * 2004-09-30 2006-04-13 Hino Motors, Ltd. Front structure for vehicle
JP4854222B2 (en) * 2005-06-17 2012-01-18 日野自動車株式会社 Vehicle front structure
JP4854232B2 (en) * 2005-08-05 2012-01-18 日野自動車株式会社 Vehicle front structure

Also Published As

Publication number Publication date
JPS59188718A (en) 1984-10-26

Similar Documents

Publication Publication Date Title
US4134073A (en) Clock system having adaptive synchronization feature
US4631702A (en) Computer speed control
EP0388131A2 (en) Random number generator
KR920005167A (en) Semiconductor memory with multiple clocks for entering test mode
JPH0311036B2 (en)
US4224531A (en) Data transfer circuit
JPH0565893B2 (en)
JPS6232486B2 (en)
EP0262674A3 (en) Microcomputer having z-flag capable of detecting coincidence at high speed
JP4240657B2 (en) Counting device and driving method thereof
JPS596112B2 (en) Power supply device for television receivers
JPS6222874Y2 (en)
JP2509668B2 (en) Electronics
JPS6222433B2 (en)
JP2889331B2 (en) Small portable electronic devices
JPS58129522A (en) Microcomputer device
JPS6040048B2 (en) Keyboard input circuit
US3964251A (en) Watch system having asynchronous counters implemented by D and inverted D flip-flops
JP2501666Y2 (en) Unit duplication device
KR920007510B1 (en) State detecting device of processor
JPH01194014A (en) Clock switching device
JP2833603B2 (en) Oscillator
KR920009665B1 (en) Key matrix input signal discrimination circuit
JPH0230929Y2 (en)
JPS63134995A (en) Electronic metronome