JPS6235143B2 - - Google Patents
Info
- Publication number
- JPS6235143B2 JPS6235143B2 JP53129255A JP12925578A JPS6235143B2 JP S6235143 B2 JPS6235143 B2 JP S6235143B2 JP 53129255 A JP53129255 A JP 53129255A JP 12925578 A JP12925578 A JP 12925578A JP S6235143 B2 JPS6235143 B2 JP S6235143B2
- Authority
- JP
- Japan
- Prior art keywords
- flip
- flop
- signal
- circuit
- interrupt
- 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
Links
- 230000000630 rising effect Effects 0.000 claims description 16
- 230000010365 information processing Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 7
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Description
【発明の詳細な説明】
この発明は、情報処理装置に関し、特に外部回
路から信号を入力して、それに基いて内部信号を
発生する信号発生回路を有する情報処理装置に関
する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device, and more particularly to an information processing device having a signal generation circuit that receives a signal from an external circuit and generates an internal signal based on the input signal.
従来より、マイクロ・プログラムによつて制御
される情報処理装置において、外部回路からの信
号の変化を検出し、この変化時に内部制御用信号
(例えば割込信号等)を発生し、この割込信号を
中央処理装置(以下CPUと記す)に入力し割込
処理を実行させる処理方式が知られている。この
処理において、外部回路の差異等により、信号の
立ち上りあるいは立ち下がりまたは、その双方い
ずれの場合を検出して、CPUに割込処理を実行
させるかは装置の機能に応じて、夫々異なつた制
御信号として使用するために一様でない。このた
め、従来の情報処理装置は信号の立ち上りを検出
し第1の割込信号とするための第1の入力端子
と、信号の立ち上がりを検出して第2の割込信号
とするための第2の入力端子とをそれぞれ別個に
設けており、検出回路も、それぞれについて別個
に必要であつた。しかしながらこれを大規模集積
回路(以下LSIと記す)に適用した場合、ピン数
の増大や、ハードウエアーの増大を招き、汎用性
に乏しいという欠点があつた。 Conventionally, in an information processing device controlled by a microprogram, a change in a signal from an external circuit is detected, an internal control signal (for example, an interrupt signal, etc.) is generated at the time of this change, and this interrupt signal There is a known processing method in which a central processing unit (hereinafter referred to as CPU) is input to execute interrupt processing. In this process, depending on the differences in external circuits, whether the rising edge, falling edge, or both of the signals are detected and the CPU executes the interrupt processing is controlled differently depending on the function of the device. Not uniform for use as a signal. For this reason, a conventional information processing device has a first input terminal for detecting the rising edge of a signal and generating the first interrupt signal, and a second input terminal for detecting the rising edge of the signal and generating the second interrupt signal. Two input terminals are provided separately, and separate detection circuits are required for each. However, when this is applied to large-scale integrated circuits (hereinafter referred to as LSI), the number of pins and hardware increases, resulting in a lack of versatility.
この発明の目的は、前述の欠点を除去し、少な
いピンと少量のハードウエアで信号の判別が可能
な信号発生回路をもつ情報処理装置を提供するこ
とである。 SUMMARY OF THE INVENTION An object of the present invention is to provide an information processing device having a signal generation circuit that eliminates the above-mentioned drawbacks and can discriminate signals with a small number of pins and a small amount of hardware.
以下この発明を図面を用いて説明する。 This invention will be explained below with reference to the drawings.
従来の割込信号発生回路を示した第1図におい
て、F11〜F14はD−タイプのフリツプ・フ
ロツプであり、N11,N12はインバータ、A
11,A12は、ANDゲート、C11は割込制
御回路、φはクロツクである。今第2図のI20
を外部回路からの一入力信号として、その立ち上
り及び立ち下り双方の変化を検出して割込信号を
発生させこれを割込制御回路C11を介して、
CPU(図示せず)に入力し割込処理を実行させ
る場合、第1図に示したI11及びI12の双方
の信号入力端子に入力信号I20を導入する。今
第2図に示す時間t21において、フリツプ・フ
ロツプF11は高レベル(以下“1”と記す)、
フリツプ・フロツプF12は低レベル(以下
“0”と記す)であるのでANDゲートA11は
“1”となり割込信号を発生する。時間t21を
過ぎるとフリツプ・フロツプF11,F12は
“1”となるのでANDゲートA11の出力は
“0”となる。従つてANDゲートA11はA21
に示す波形となり入力信号I20の立ち上り時の
第1の割込信号を発生する回路である。一方時間
t22においてはフリツプ・フロツプF13が
“0”・F14が“1”となるのでANDゲートA
12は“1”となり、A22に示す波形の割込信
号を発生する。よつてANDゲートA12は入力
信号I20の立ち上り時の第2の割込信号を発生
する回路である。即ち、従来は入力信号I20の
立ち上り・立ち下り双方の変化を検出し、割込信
号を発生するために、2種類の入力端子I11,
I12を設け、それぞれに別個の割込信号発生回
路を付加しなければならないため、LSIに適用し
た場合ピン数の増大や、割込信号発生回路の増大
を招き、LSIの原価低減に支障をきたすという欠
点があつた。 In FIG. 1, which shows a conventional interrupt signal generation circuit, F11 to F14 are D-type flip-flops, N11 and N12 are inverters, and A
11 and A12 are AND gates, C11 is an interrupt control circuit, and φ is a clock. I20 in Figure 2 now
is used as one input signal from an external circuit, changes in both the rising and falling edges are detected to generate an interrupt signal, which is sent via the interrupt control circuit C11.
When inputting to a CPU (not shown) to execute interrupt processing, input signal I20 is introduced to both signal input terminals I11 and I12 shown in FIG. At time t21 shown in FIG. 2, the flip-flop F11 is at a high level (hereinafter referred to as "1").
Since the flip-flop F12 is at a low level (hereinafter referred to as "0"), the AND gate A11 becomes "1" and generates an interrupt signal. After time t21, flip-flops F11 and F12 become "1", so the output of AND gate A11 becomes "0". Therefore, AND gate A11 is A21
This circuit generates the first interrupt signal at the rising edge of the input signal I20 with the waveform shown in FIG. On the other hand, at time t22, flip-flop F13 becomes "0" and flip-flop F14 becomes "1", so AND gate A
12 becomes "1", and an interrupt signal having the waveform shown in A22 is generated. Therefore, AND gate A12 is a circuit that generates a second interrupt signal at the rising edge of input signal I20. That is, conventionally, two types of input terminals I11,
Since it is necessary to provide I12 and add a separate interrupt signal generation circuit to each, when applied to LSI, the number of pins and the number of interrupt signal generation circuits will increase, which will hinder the cost reduction of LSI. There was a drawback.
第3図は、この発明の参考図を示すブロツク図
であり、入力信号の立ち上りを検出する回路と、
立ち下りを検出する回路とを備え、前記検出回路
の入力信号を同一端子より導入して成る割込信号
発生回路である。F31,F32はフリツプ・フ
ロツプであり、N31,N32はインバータ、A
31,A32はANDゲート、31はORゲー
ト、C31は割込制御回路である。 FIG. 3 is a block diagram showing a reference diagram of the present invention, which includes a circuit for detecting the rising edge of an input signal,
The interrupt signal generation circuit includes a circuit for detecting a falling edge, and inputs an input signal of the detection circuit from the same terminal. F31 and F32 are flip-flops, N31 and N32 are inverters, and A
31 and A32 are AND gates, 31 is an OR gate, and C31 is an interrupt control circuit.
I31の入力端子に第2図に示す外部回路から
の入力信号I20を導入すると、時間t21にお
いて、フリツプ・フロツプF31が“1”、F3
2が“0”となるためANDゲートA31が
“1”ORゲート31が“1”となり入力信号I
20の立上りを検出した第1の割込信号を発生す
る。一方時間t22においては、フリツプ・フロ
ツプF31が“0”、F32が“1”となるため
ANDゲートA32が“1”、ORゲート32が
“1”となり入力信号I20の立下りを検出した
第2の割込信号を発生し、これら2つの割込信号
は割込制御回路C31によつて制御され、CPU
へ送られる。また時間t23においては、時間t
21の場合と同様である。上記以外の時間におい
てはANDゲートA31,A32は全て“0”で
あるので、ORゲート31は“0”となり、割
込信号は発生されない。従つてORゲート31
の出力は、21に示す波形となり、これは、入
力信号I20の立ち上り、及び立ち下り双方の変
化時に2つの割込信号を発生する。 When input signal I20 from the external circuit shown in FIG. 2 is introduced into the input terminal of I31, flip-flop F31 becomes "1" and F3 becomes "1" at time t21.
2 becomes "0", AND gate A31 becomes "1", and OR gate 31 becomes "1", so input signal I
A first interrupt signal is generated when the rising edge of 20 is detected. On the other hand, at time t22, flip-flop F31 becomes "0" and F32 becomes "1".
AND gate A32 becomes "1", OR gate 32 becomes "1", and a second interrupt signal is generated by detecting the fall of input signal I20, and these two interrupt signals are controlled by interrupt control circuit C31. controlled by CPU
sent to. Also, at time t23, time t
This is the same as in case 21. At times other than the above, AND gates A31 and A32 are all "0", so OR gate 31 is "0" and no interrupt signal is generated. Therefore, OR gate 31
The output is the waveform shown in 21, which generates two interrupt signals when both the rising and falling edges of the input signal I20 change.
この様にして1個の入力信号端子と1個の信号
発生回路により2個の異なつた割込信号を発生す
ることができ、回路構成を簡易化しピン数を減少
できLSI化には非常に有効である。しかしなが
ら、2種類の信号を立下りと立上りとで発生する
ことはできるものの、従来別々の端子から入力さ
れていた信号を1本の端子で兼したため、発生さ
れた信号が立上りに基づくものか立下りに基づく
ものかを判定することができないという不都合が
ある。従つて、信号が発生されてもその信号のも
つ意味が不明なため、それに適した処理を行なう
にはさらに複雑な回路もしくは機能が要求され
る。 In this way, two different interrupt signals can be generated using one input signal terminal and one signal generation circuit, which simplifies the circuit configuration and reduces the number of pins, making it very effective for LSI implementation. It is. However, although it is possible to generate two types of signals at the falling edge and rising edge, since signals that were conventionally input from separate terminals are combined into one terminal, the generated signal may be based on the rising edge or the rising edge. There is an inconvenience that it is not possible to determine whether it is based on the downlink. Therefore, even if a signal is generated, the meaning of the signal is unknown, and more complex circuits or functions are required to perform appropriate processing.
第4図は上記問題を解決した本発明の一実施例
を示すブロツク図で、フリツプ・フロツプF45
は、マイクロ・オーダ(マイクロ命令)M41,
M42により制御されるセツト・リセツト型フリ
ツプフロツプである。 FIG. 4 is a block diagram showing an embodiment of the present invention that solves the above problem.
is micro order (micro instruction) M41,
This is a set/reset type flip-flop controlled by M42.
第3図に示した回路にこのフリツプ・フロツプ
F45を付加し、ANDゲートA41及びA42
を制御するようにしている。今、フリツプ・フロ
ツプF45のQ出力を“1”(=0)にしてお
けば入力信号の立ち上りのみが、又フリツプ・フ
ロツプF45の出力を“1”(Q=0)にして
おけば入力信号の立ち下りのみが検出でき、どち
らか一方の割込信号の発生が可能となる。また、
割込処理後、フリツプ・フロツプF45の出力を
反転するよう制御すれば、双方の割込信号の発生
が可能となる。 This flip-flop F45 is added to the circuit shown in FIG. 3, and AND gates A41 and A42 are
I'm trying to control it. Now, if the Q output of flip-flop F45 is set to "1" (=0), only the rising edge of the input signal will be detected, and if the output of flip-flop F45 is set to "1" (Q=0), the input signal will be Only the falling edge of can be detected, making it possible to generate either one of the interrupt signals. Also,
After interrupt processing, if the output of flip-flop F45 is controlled to be inverted, it is possible to generate both interrupt signals.
すなわち、このような選択回路を付加すること
によつて、発生される信号に意味をもたせること
ができ、他に何等付加回路を設けることなく信号
の識別ができるという優れた効果を奏することが
できる。しかも、フリツプ・フロツプはマイクロ
命令(ソフトウエア)で制御できるので、複雑な
制御は何等必要としない。 That is, by adding such a selection circuit, it is possible to give meaning to the generated signal, and it is possible to achieve the excellent effect of being able to identify the signal without providing any other additional circuit. . Moreover, since flip-flops can be controlled by microinstructions (software), no complicated control is required.
以上の説明で明らかなように、本発明によれば
1端子にて入力信号の立ち上り及び立ち下りの
夫々を検出し2つの意味のある割込信号を発生で
き、またどちらか一方の割込信号のみを選択的に
発生させることもできる。 As is clear from the above explanation, according to the present invention, two meaningful interrupt signals can be generated by detecting each of the rising and falling edges of an input signal using one terminal, and one terminal can generate two meaningful interrupt signals. It is also possible to selectively generate only the
従つて、本発明によればピン数の減少やハード
ウエアーの減少が可能となり、特にLSIには非常
に有効でかつ汎用性の高い情報処理装置を提供す
ることができる。 Therefore, according to the present invention, it is possible to reduce the number of pins and hardware, and it is possible to provide an information processing device that is extremely effective and highly versatile, especially for LSI.
第1図は、従来の情報処理装置を示すブロツク
図、第2図は第1図及び第3図を説明するための
タイミングチヤート、第3図は本発明の参考図を
示すブロツク図、第4図は本発明の一実施例を示
すブロツク図である。
F11,F12,F31,F14,F31,F
32,F41,F42……D型フリツプ・フロツ
プ、N11,N12,N13,N32,N41,
N42……インバータ、A11,A12,A3
1,A32,A41,A42……ANDゲート、
31,41……ORゲート、F45……セツ
ト・リセツト型フリツプ・フロツプ、C11,C
31,C41……割込制御回路、I11,I1
2,I31,I41……外部入力信号入力端子、
I20……外部入力信号、φ……クロツク信号。
FIG. 1 is a block diagram showing a conventional information processing device, FIG. 2 is a timing chart for explaining FIGS. 1 and 3, FIG. 3 is a block diagram showing a reference diagram of the present invention, and FIG. The figure is a block diagram showing one embodiment of the present invention. F11, F12, F31, F14, F31, F
32, F41, F42...D type flip-flop, N11, N12, N13, N32, N41,
N42...Inverter, A11, A12, A3
1, A32, A41, A42...AND gate,
31, 41...OR gate, F45...set/reset type flip-flop, C11,C
31, C41...Interrupt control circuit, I11, I1
2, I31, I41...External input signal input terminal,
I20...External input signal, φ...Clock signal.
Claims (1)
ンに接続された第1のフリツプフロツプと、該第
1のフリツプフロツプの出力をうける第2のフリ
ツプフロツプと、前記第1のフリツプフロツプの
出力と前記第2のフリツプフロツプの出力とに基
いて入力信号の立上りを検出し第1のパルスを発
生する第1の回路と、前第1のフリツプフロツプ
の出力と前記第2のフリツプフロツプの出力とに
基いて入力信号の立下りを検出し第2のパルスを
発生する第2の回路と、命令によつて状態が設定
される第3のフリツプフロツプと、該第3のフリ
ツプフロツプの状態に応じて前記第1のパルスと
第2のパルスとのいずれか一方を選択する選択回
路と、選択されたパルスを共通の端子を介して処
理回路に供給する手段とを有することを特徴とす
る情報処理装置。1: an input pin to which an input signal is input; a first flip-flop connected to the input pin; a second flip-flop receiving the output of the first flip-flop; a first circuit that detects the rising edge of the input signal based on the output of the flip-flop and generates a first pulse; and a first circuit that detects the rising edge of the input signal based on the output of the first flip-flop and the output of the second flip-flop; a second circuit that detects the falling edge and generates a second pulse; a third flip-flop whose state is set by a command; and a third flip-flop whose state is set according to a command; An information processing device comprising: a selection circuit for selecting one of the pulses; and means for supplying the selected pulse to a processing circuit via a common terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12925578A JPS5556260A (en) | 1978-10-20 | 1978-10-20 | Information processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12925578A JPS5556260A (en) | 1978-10-20 | 1978-10-20 | Information processor |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5556260A JPS5556260A (en) | 1980-04-24 |
JPS6235143B2 true JPS6235143B2 (en) | 1987-07-30 |
Family
ID=15005040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12925578A Granted JPS5556260A (en) | 1978-10-20 | 1978-10-20 | Information processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5556260A (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS57185044U (en) * | 1981-05-12 | 1982-11-24 | ||
JPS5870336A (en) * | 1981-10-21 | 1983-04-26 | Nec Corp | Oscillating device |
JPS61150062A (en) * | 1984-12-24 | 1986-07-08 | Matsushita Electric Ind Co Ltd | Interruption control circuit |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5125946A (en) * | 1974-08-27 | 1976-03-03 | Kawasaki Heavy Ind Ltd |
-
1978
- 1978-10-20 JP JP12925578A patent/JPS5556260A/en active Granted
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5125946A (en) * | 1974-08-27 | 1976-03-03 | Kawasaki Heavy Ind Ltd |
Also Published As
Publication number | Publication date |
---|---|
JPS5556260A (en) | 1980-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
GB1397617A (en) | Input-output controller for a data processing system | |
JPS6235143B2 (en) | ||
US4616335A (en) | Apparatus for suspending a system clock when an initial error occurs | |
EP0130293B1 (en) | Latching circuit array of logic gates | |
JPS6167148A (en) | Microcomputer | |
JPS6215664A (en) | Logic simulation | |
JPH0478960A (en) | Logical simulator unit time setting system | |
JPS5934188Y2 (en) | signal input circuit | |
JPH0778076A (en) | Automatic program generating device | |
VONHENKE | On the representation of data structures in LCF with applications to program generation | |
JPS61249142A (en) | Interruption circuit | |
GB2189912A (en) | Data processing system; A.C. motor control | |
JPH01123329A (en) | Interrupting circuit | |
JPH01243141A (en) | Information processor | |
JPS60173484A (en) | Logical simulation system | |
JPS5835626A (en) | Controlling system for bus contention | |
JPH0343812A (en) | Initial value setting system for flip-flop in lsi | |
JPS63262575A (en) | Integrated circuit for processing digital signal | |
JPH0222414B2 (en) | ||
JPS61289749A (en) | Serial data transmitter | |
JPH02124635A (en) | Counter control circuit | |
JPS63304181A (en) | Test mode selecting circuit | |
JPH0448344A (en) | Software debug mechanism | |
JPS5562373A (en) | Logic circuit test unit | |
JPH02217935A (en) | Interruption generating circuit for debugging |