JPS6234353Y2 - - Google Patents
Info
- Publication number
- JPS6234353Y2 JPS6234353Y2 JP1981091816U JP9181681U JPS6234353Y2 JP S6234353 Y2 JPS6234353 Y2 JP S6234353Y2 JP 1981091816 U JP1981091816 U JP 1981091816U JP 9181681 U JP9181681 U JP 9181681U JP S6234353 Y2 JPS6234353 Y2 JP S6234353Y2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- output
- terminal
- decoder
- external
- 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
Landscapes
- Bus Control (AREA)
Description
【考案の詳細な説明】
本考案は、割込み認知がレベルで行なわれるマ
イクロコンピユータに付加する割込み信号幅制御
回路に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an interrupt signal width control circuit added to a microcomputer in which interrupt recognition is performed at a level.
割込みが信号レベルで行なわれるマイクロコン
ピユータでは、外部割込み信号が直接マイクロコ
ンピユータの割込み端子に供給されるので、外部
割込み信号幅が長い場合には同じ処理ルーチンを
何回も繰り返し実行することがある。第1図はそ
の一例で、外部割込み信号SINのLレベルが割込
みと認識される。割込み信号SINは1回の割込み
処理ルーチンの実行を要求するものであつて
も、Lレベルの信号幅が長いと1回の割込み処理
が終つてもまだ割込み信号端子がLレベルのため
再び割込みがあつたものと認識して同じ割込み処
理ルーチンの実行を行ない、それが終つてもま
だ割込み信号がLレベルのため再び同を行な
い、無駄に同じ処理ルーチンの実行,を繰り
返すことになる。この様な動作は処理時間を長く
するばかりでなく、例えば処理ルーチンがモータ
を動かす制御内容である場合等は実用上問題にな
ることがある。 In a microcomputer in which interrupts are performed at the signal level, the external interrupt signal is directly supplied to the microcomputer's interrupt terminal, so if the external interrupt signal width is long, the same processing routine may be repeatedly executed many times. FIG. 1 is an example of this, in which the L level of the external interrupt signal S IN is recognized as an interrupt. Even if the interrupt signal S IN requests the execution of one interrupt processing routine, if the signal width at L level is long, the interrupt signal terminal will still be at L level even after one interrupt processing is completed, so the interrupt will be generated again. The same interrupt processing routine is executed after recognizing that the interrupt has occurred, and even after that, the interrupt signal is still at the L level, so the same processing routine is executed again, and the execution of the same processing routine is repeated in vain. Such an operation not only lengthens the processing time, but also may pose a practical problem if, for example, the processing routine involves controlling a motor.
本考案は、簡単な回路を付加することによつて
外部割込み信号に対する処理ルーチンの実行を1
回に制限するようにしたもので、その特徴とする
ところはプログラムメモリCSを外部に有しそし
て割込み端子および該プログラムメモリをア
クセスするアドレスADDを出力する端子を有す
るマイクロコンピユータMPUの該アドレスを出
力する端子に接続され、割込み処理用のプログラ
ムを読出す特定アドレスが出力されたとき出力を
生じるデコーダDECと、出力端が前記割込み端
子へ接続され、そして信号レベルで割込みを行な
う外部割込み信号SINでセツトされ、前記デコー
ダの出力でクリヤされるフリツプフロツプFFと
を備える点にある。以下図示の実施例を参照しな
がらこれを詳細に説明する。 The present invention enables execution of a processing routine for an external interrupt signal by adding a simple circuit.
This is a microcomputer MPU that has an external program memory CS and has an interrupt terminal and a terminal that outputs the address ADD for accessing the program memory. a decoder DEC which is connected to a terminal that outputs an output when a specific address for reading a program for interrupt processing is output; and an external interrupt signal S IN whose output terminal is connected to the interrupt terminal and which causes an interrupt at the signal level. and a flip-flop FF which is set by the output of the decoder and cleared by the output of the decoder. This will be explained in detail below with reference to the illustrated embodiments.
第2図は本考案の一実施例を示すブロツク図
で、MPUはマイクロコンピユータ(プロセツ
サ)、CSは外部プログラムメモリ、DECはMPU
からCSに出力するアドレスADDを受けそれが特
定アドレスであるとき出力を生じるデコーダ、
FFはDタイプ(S−Rタイプでもよい)のフリ
ツプフロツプである。このマイクロコンピユータ
MPUはメモリCSの各種アドレスADDを指定して
そこから読み出したデータ(プログラム)
DATAに従つて処理を行なうが、外部割込み信
号SINに対しては当該割込みの処理プログラムを
格納しているメモリCSの特定アドレスを出力す
る。第3図に示すように、信号SINの前縁立下り
でフリツプフロツプFFがセツトされその出力
が立下つてLレベルになるとMPUの割込み端子
がそのLレベルを受けるので、MPUは外部
割込みを認知し、割込み処理を開始する。この処
理開始に当つては先ず前記特定アドレスを送出
し、CSから割込み処理用のプログラムを読出す
が、このとき該特定アドレスはデコーダDECで
デコードされてデコーダ出力を生じ、該出力はフ
リツプフロツプFFのクリア端子CRを一時的にL
レベルにする。これによりフリツプフロツプFF
はクリアされ、割込み端子はHレベルにな
る。この時点でも外部割込み信号SINはLレベル
であるが、フリツプフロツプFFはSINの立下り
でしか駆動されないので、が再びLレベルに
なることはない。マイクロコンピユータが割込み
処理ルーチンアクセス用のアドレスを送出したと
いうことは該割込みを受付けたということであ
り、この時点で割込み端子の信号をHレベル
へ復帰させるので、マイクロコンピユータに入力
する割込み信号の幅は必要最小限のものにされ、
1回の割込み処理が終了した後に同じ処理ルーチ
ンを繰り返すことは確実に防止される。 Figure 2 is a block diagram showing an embodiment of the present invention, where MPU is a microcomputer (processor), CS is an external program memory, and DEC is an MPU.
a decoder that receives an address ADD to be output from CS and produces an output when it is a specific address;
FF is a D type (or S-R type) flip-flop. this microcomputer
MPU specifies various addresses ADD of memory CS and reads data (program) from there.
Processing is performed according to DATA, but in response to external interrupt signal S IN , a specific address of memory CS storing the interrupt processing program is output. As shown in Figure 3, when the leading edge of the signal S IN falls, the flip-flop FF is set and its output falls to the L level, and the MPU's interrupt terminal receives the L level, so the MPU recognizes the external interrupt. and starts interrupt processing. To start this process, the specific address is first sent and the interrupt processing program is read from the CS. At this time, the specific address is decoded by the decoder DEC to generate a decoder output, and this output is sent to the flip-flop FF. Clear terminal CR is temporarily set to L.
level. This allows flip-flop FF
is cleared and the interrupt terminal becomes H level. At this point, the external interrupt signal S IN is still at the L level, but since the flip-flop FF is driven only at the falling edge of S IN , it does not go to the L level again. The fact that the microcomputer has sent the address for accessing the interrupt processing routine means that it has accepted the interrupt, and at this point the signal on the interrupt terminal is returned to H level, so the width of the interrupt signal input to the microcomputer is is reduced to the bare minimum,
Repeating the same processing routine after one interrupt processing is completed is reliably prevented.
以上述べたように本考案では、外部割込み信号
の到来でセツトされてその出力でマイクロコンピ
ユータに割込みを認知させそして割込み処理実施
に当つて出力されるアドレスのデコード出力でリ
セツトされるフリツプフロツプを設けるという、
簡単な回路構成の追加で、1回の割込み信号受信
に対し割込み処理ルーチンの実行を確実に1回だ
け行なうようにすることができる。また追加する
回路は外付けであるから、マイクロコンピユータ
自体には何ら改変を必要としない利点がある。更
にレベル割込型のものは割込み処理ルーチンの繰
り返し実行を積極的に利用して時間調整を行なう
ものもあるが、かゝる場合は追加回路部をバイパ
スさせて外部割込信号を直接割込み端子INTへ入
力させればよいなどの融通性も得られる。 As described above, the present invention includes a flip-flop that is set upon the arrival of an external interrupt signal, uses its output to make the microcomputer recognize the interrupt, and is reset when the address is decoded and output when the interrupt is processed. ,
By adding a simple circuit configuration, it is possible to ensure that the interrupt processing routine is executed only once for each interrupt signal reception. Furthermore, since the added circuit is external, there is an advantage that the microcomputer itself does not require any modification. Furthermore, some level interrupt types actively utilize repeated execution of interrupt processing routines to adjust the time, but in such cases, the additional circuitry is bypassed and the external interrupt signal is directly connected to the interrupt terminal. It also provides flexibility such as inputting data to INT.
第1図はレベルによる割込みの認識とその処理
ルーチンの関係を示す説明図、第2図は本考案の
一実施例を示す説明図、第3図はその動作を示す
タイムチヤートである。
図中、MPUはマイクロコンピユータ、CSは外
部プログラムメモリ、DECはデコーダ、FFはフ
リツプフロツプである。
FIG. 1 is an explanatory diagram showing the relationship between level-based interrupt recognition and its processing routine, FIG. 2 is an explanatory diagram showing an embodiment of the present invention, and FIG. 3 is a time chart showing its operation. In the figure, MPU is a microcomputer, CS is an external program memory, DEC is a decoder, and FF is a flip-flop.
Claims (1)
み端子および該プログラムメモリをアクセス
するアドレスADDを出力する端子を有するマイ
クロコンピユータMPUの該アドレスを出力する
端子に接続され、割込み処理用のプログラムを読
出す特定アドレスが出力されたとき出力を生じる
デコーダDECと、 出力端が前記割込み端子へ接続され、そして信
号レベルで割込みを行なう外部割込み信号SINで
セツトされ、前記デコーダの出力でクリヤされる
フリツプフロツプFFとを備えることを特徴とす
る割込み信号幅制御回路。[Claims for Utility Model Registration] A microcomputer that has an external program memory CS and has an interrupt terminal and a terminal that outputs an address ADD for accessing the program memory. a decoder DEC that produces an output when a specific address for reading a program for the decoder is output; and a decoder DEC whose output terminal is connected to the interrupt terminal, and which is set by an external interrupt signal S IN that interrupts at the signal level, and the output of the decoder 1. An interrupt signal width control circuit comprising a flip-flop FF that is cleared by.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9181681U JPS582046U (en) | 1981-06-22 | 1981-06-22 | Interrupt signal width control circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9181681U JPS582046U (en) | 1981-06-22 | 1981-06-22 | Interrupt signal width control circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS582046U JPS582046U (en) | 1983-01-07 |
JPS6234353Y2 true JPS6234353Y2 (en) | 1987-09-02 |
Family
ID=29886888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9181681U Granted JPS582046U (en) | 1981-06-22 | 1981-06-22 | Interrupt signal width control circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS582046U (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5413737B2 (en) * | 1973-02-22 | 1979-06-01 | ||
JPS5672744A (en) * | 1979-11-19 | 1981-06-17 | Nec Corp | Interruption control circuit |
-
1981
- 1981-06-22 JP JP9181681U patent/JPS582046U/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS582046U (en) | 1983-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5809517A (en) | Detachable memory apparatus capable of varying number of wait states for access based on stored timing information | |
US4550369A (en) | Apparatus and method for processing macroinstructions and microinstructions | |
JPS6234353Y2 (en) | ||
JPS6234355Y2 (en) | ||
JPH0630088B2 (en) | TSS command processing method | |
JPS6229814B2 (en) | ||
CA1270572A (en) | Microprogram control device | |
KR890001798B1 (en) | Data signal processing apparatus | |
JPS6242305B2 (en) | ||
JPS6266335A (en) | Interruption system | |
JPS57164320A (en) | Reset system for microprocessor | |
JPH0656387B2 (en) | Rotation direction discrimination method | |
JPS63120340A (en) | Data processor | |
KR0157456B1 (en) | User determined function of robot controller | |
JPH03225551A (en) | I/O device access control method | |
JPH0745088A (en) | PROM access circuit | |
JPS6398010A (en) | Method for distinguishing power application and reset of microcomputer | |
JPH05119880A (en) | Microprocessor system | |
JPS62243032A (en) | Information processor | |
JPS6230452B2 (en) | ||
JPH06214805A (en) | Microcomputer | |
JPH09128247A (en) | Program conversion adapter | |
JPH04312144A (en) | Prom processor | |
JPH07225691A (en) | Interrupt processing apparatus and method | |
JPH0638233B2 (en) | Data processing device |