JPH0230524B2 - - Google Patents
Info
- Publication number
- JPH0230524B2 JPH0230524B2 JP56117324A JP11732481A JPH0230524B2 JP H0230524 B2 JPH0230524 B2 JP H0230524B2 JP 56117324 A JP56117324 A JP 56117324A JP 11732481 A JP11732481 A JP 11732481A JP H0230524 B2 JPH0230524 B2 JP H0230524B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- key input
- input
- key
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】
本発明は、制御回路を具備した集積回路におけ
るキー入力回路に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a key input circuit in an integrated circuit equipped with a control circuit.
従来、キー入力を検出する場合、常時あるい
は、所定のサンプリングによつて、キー入力変化
を検出していた。しかし、常時あるいは所定のサ
ンプリングによつてキー入力変化を検出する方法
では、キー入力回路の動作している時間の割合が
大きく、それだけ消費電力が大きくなり、低消費
電力化をめざす集積回路においては、障害となつ
ていた。また、キー入力には、チヤツタ防止機構
を設け、不安定なキー入力は、無効とする制御回
路が必要であるが、このチヤツター防止制御回路
が比較的大きな構成を必要とし、チツプ面積の増
大がコスト上昇を招く集積回路においては、障害
となつていた。 Conventionally, when detecting key inputs, changes in key inputs have been detected constantly or by predetermined sampling. However, in the method of detecting key input changes constantly or by predetermined sampling, the key input circuit spends a large percentage of the time in operation, which increases power consumption. , had become an obstacle. In addition, key input requires a control circuit to provide a chatter prevention mechanism and invalidate unstable key input, but this chatter prevention control circuit requires a relatively large configuration and increases the chip area. This has been a stumbling block in integrated circuits, leading to increased costs.
本発明は、この様な欠点を無くすために、キー
入力に係る回路動作時間を短縮し、かつ、チヤツ
ター防止制御を専用の入力回路で行なわず、キー
入力変化直後だけ、汎用レジスタ等で実行可能と
し、集積回路における、低消費電力化、チツプ面
積の減少を計ることを目的とする。 In order to eliminate such drawbacks, the present invention shortens the circuit operation time related to key input, and also makes it possible to perform chatter prevention control using a general-purpose register, etc. only immediately after a change in key input, without using a dedicated input circuit. The purpose is to reduce power consumption and chip area in integrated circuits.
以下、本発明の実施例を図面を参照しながら説
明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は、本発明の構成要件を示すブロツク図
である。SW1〜SW3等のKey入力群よりの信
号を選択微分回路10により検出し、10の出力
信号で、フリツプフロツプ20をセツトし、20
の出力信号a、サンプリングクロツク発生回路3
0を許可し、30の出力信号bv、キー入力判定
回路40を動作させ、所定の判定動作の後、20
をリセツトする信号cを出力し、10によつて意
味づけられた入力変化の後の所定期間のみをキー
入力検出を行なう。10ブロツク中の11は、キー
SW1のpositive going edgeとnegative going
edgeの両方を検出し、12はキーSW2の
positive going edeのみ、13はキーSW3の
negative going edgeのみを検出し、14は、1
1,12,13の出力信号の論理和をとつてい
る。40ブロツク中の41は、カウンタ回路で、所
定のサンプリングクロツクを計数後、キヤリー信
号cを発生するカウンタ、42はSW1,SW2,
SW3の入力端の信号をそのまま、サンプリング
クロツクbによつてストロープする、Dフリツプ
フロツプ回路、43は、42の出力を入力とする
Dフリツプフロツプ回路、44は、42と43の
出力を比較し一致を判定する回路、信号dは、一
致した場合、所定のレベルとなる信号であり、e
はcとdのAND信号である。 FIG. 1 is a block diagram showing the constituent elements of the present invention. The signals from the key input group such as SW1 to SW3 are detected by the selective differentiation circuit 10, and the flip-flop 20 is set with the output signal of 10.
output signal a, sampling clock generation circuit 3
0 is allowed, the key input determination circuit 40 is operated with the output signal bv of 30, and after a predetermined determination operation, 20
It outputs a signal c to reset the key input, and detects key input only during a predetermined period after the input change signified by 10. 11 out of 10 blocks are keys
SW1 positive going edge and negative going
Detect both edges, 12 is key SW2
positive going ede only, 13 is key SW3
Only negative going edges are detected, 14 is 1
The logical sum of the output signals 1, 12, and 13 is calculated. 41 of the 40 blocks is a counter circuit that generates a carry signal c after counting a predetermined sampling clock; 42 is a counter circuit that generates a carry signal c after counting a predetermined sampling clock; and 42, SW1, SW2,
43 is a D flip-flop circuit that receives the output of 42 as an input; 44 compares the outputs of 42 and 43 to find a match. The circuit to judge, the signal d, is a signal that becomes a predetermined level when they match, and e
is an AND signal of c and d.
第2図は、第1図の構成における、各部信号の
タイミングの1例を示す図である。SW2が与え
られると、第2図のタイムシーケンスが発生し、
dに一致信号、lにその判定期間を除く信号が得
られる。ここで、サンプリングクロツクbの周期
を、キー入力系のチヤタリングに対応した適当な
値に設定する事により、チヤツタリング防止機能
を持つたキー入力検出を行ない、検出時点t1にお
ける42あるいは43の並列出力を、キー入力群
の入力データとして、次段のキー入力識別処理
に回すことが可能となる。 FIG. 2 is a diagram showing an example of the timing of each part signal in the configuration of FIG. 1. When SW2 is given, the time sequence shown in Figure 2 occurs,
A coincidence signal is obtained at d, and a signal excluding the determination period is obtained at l. Here, by setting the period of sampling clock b to an appropriate value that corresponds to chattering in the key input system, key input detection with a chattering prevention function is performed, and 42 or 43 parallel signals at detection time t1 are detected. The output can be passed to the next stage of key input identification processing as input data for the key input group.
キー入力群の識別処理は、マイクロコンピユ
ータによるソフト処理等の任意の方法で実現可能
である。 The key input group identification process can be realized by any method such as software processing using a microcomputer.
第1図における、40ブロツクの機能を、b信号
を、マイクロコンピユータの割込入力端子に与え
ることによつて、SW1,SW2,SW3のキー入
力検出をマイクロコンピユータのソフト処理によ
つて、キー入力群として検出し、機能の識別処
理の前処理として、実現することも出来る。 The function of block 40 in Fig. 1 is achieved by applying the b signal to the interrupt input terminal of the microcomputer, and detecting the key inputs of SW1, SW2, and SW3 by software processing of the microcomputer. It is also possible to detect them as a group and implement them as pre-processing for the function identification process.
また、第1図における、10ブロツクの微分回路
を、第2図中に示される信号bのサンプル周期よ
り短い所定の周期で、SW1,SW2,SW3信号
をサンプルした、元信号と1周期遅延の微分をと
る回路で実現することも出来る。以上の様に、本
発明により、意味のある入力変化の後の所定期間
のみ、キー識別処理することを可能とし、かつキ
ー群の入力群の入力があつた事を、一括処理する
ため、個々のキー入力毎に、チヤタリング防止回
路等の処理を必要とせず、キー検出機能を備えた
集積回路において、動作処理時間の低減による低
消費電力化、又、個々のチヤツタリング防止回路
を持たないため、少ないハードウエアで実現出来
る事、等の効果がある。特に、マイクロコンピユ
ータ制御回路を具備した、集積回路において、そ
の効果が著しい。 In addition, the 10-block differentiator circuit in Fig. 1 is used to sample the SW1, SW2, and SW3 signals at a predetermined period shorter than the sampling period of signal b shown in Fig. 2. It can also be realized with a circuit that takes differentiation. As described above, according to the present invention, key identification processing can be performed only for a predetermined period after a meaningful input change, and in order to collectively process inputs of input groups of keys, individual Since there is no need for processing such as a chattering prevention circuit for each key input, power consumption is reduced by reducing operation processing time in an integrated circuit equipped with a key detection function, and there is no individual chattering prevention circuit. It has the advantage of being able to be realized with less hardware. This effect is particularly remarkable in integrated circuits equipped with microcomputer control circuits.
第1図は、本発明の1実施例で、ブロツク10,
20,30,40は、本発明の構成要件を示す。
10……選択微分回路、20……フリツプフロ
ツプ回路、30……サンプリングクロツク発生回
路、40……キー入力判定回路
第2図は、第1図における、各部信号のタイム
シーケンスを表わす、タイミングチヤート図であ
る。
FIG. 1 shows one embodiment of the invention, in which blocks 10,
20, 30, and 40 indicate constituent elements of the present invention. 10... Selection differentiation circuit, 20... Flip-flop circuit, 30... Sampling clock generation circuit, 40... Key input determination circuit FIG. 2 is a timing chart showing the time sequence of each part signal in FIG. It is.
Claims (1)
入力レベル変化を選択する選択微分回路と、該選
択微分回路の出力信号によつてセツトされるフリ
ツプフロツプ回路と、該フリツプフロツプ回路が
セツトされているときに所定数のサンプリングク
ロツクを発生するサンプリングクロツク発生回路
と、該所定数のサンプリングクロツクによつてサ
ンプリングされた前記キー入力群の入力信号の値
の一致を判定するキー入力判定回路とを備え、該
キー入力判定回路により一致が判定されたときに
サンプリングされていた前記キー入力群の入力信
号を入力データとすることを特徴とするキー入力
検出回路。1. A selection differentiator circuit that selects a predetermined input level change among changes in the input level of a key input group, a flip-flop circuit that is set by the output signal of the selection differentiator circuit, and when the flip-flop circuit is set. a sampling clock generation circuit that generates a predetermined number of sampling clocks, and a key input determination circuit that determines whether values of input signals of the key input group sampled by the predetermined number of sampling clocks match. A key input detection circuit comprising: an input signal of the key input group sampled when a match is determined by the key input determination circuit as input data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP56117324A JPS5818734A (en) | 1981-07-27 | 1981-07-27 | Key input detecting circuit system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP56117324A JPS5818734A (en) | 1981-07-27 | 1981-07-27 | Key input detecting circuit system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5818734A JPS5818734A (en) | 1983-02-03 |
JPH0230524B2 true JPH0230524B2 (en) | 1990-07-06 |
Family
ID=14708917
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP56117324A Granted JPS5818734A (en) | 1981-07-27 | 1981-07-27 | Key input detecting circuit system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5818734A (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61116734A (en) * | 1984-11-12 | 1986-06-04 | Mitsubishi Electric Corp | Forming of blackened film of steel plate parts for color cathode-ray tube |
JPS61172330U (en) * | 1985-04-16 | 1986-10-25 | ||
JP2599489B2 (en) * | 1990-07-09 | 1997-04-09 | 三菱電機株式会社 | Metal oxide film forming method and metal oxide film forming furnace |
-
1981
- 1981-07-27 JP JP56117324A patent/JPS5818734A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS5818734A (en) | 1983-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0331228B2 (en) | ||
JPH0230524B2 (en) | ||
US4878189A (en) | Microcomputer having Z-flag capable of detecting coincidence at high speed | |
JP3099927B2 (en) | Microcomputer | |
JP2789900B2 (en) | State history storage device | |
JPH0748647B2 (en) | Duty ratio discrimination circuit | |
JPS6339069A (en) | Periodical interruption informing method for digital input/output controller | |
SU1405061A2 (en) | Device for shaping interrupt signals in program debugging | |
JPS5864542A (en) | State change detection system | |
SU1451726A1 (en) | Multipurpose association module | |
SU813432A1 (en) | Device for testing microprogramme automatic apparatus | |
JPH0415912B2 (en) | ||
JPH09114541A (en) | Interrupt generation time confirmation circuit, processor | |
SU1758860A2 (en) | Multiplicator of pulse sequence frequency | |
JP2990111B2 (en) | Timer circuit | |
JPS5413236A (en) | Bus control system | |
SU1185343A1 (en) | Device for generating interruption signals in case of debugging programs | |
SU1322267A1 (en) | Device for calculatig values of inverse function | |
SU1661755A1 (en) | Device for function extremums detection | |
JP3308670B2 (en) | Event-driven processing equipment failure detection device | |
US6901423B1 (en) | Noise invariant circuits, systems and methods | |
JPH0635998B2 (en) | Capture device | |
SU1256175A1 (en) | Device for delaying pulses | |
JP2961750B2 (en) | Microcomputer | |
SU1322281A1 (en) | Microprogram control device |