JPS61235951A - One chip microcomputer - Google Patents

One chip microcomputer

Info

Publication number
JPS61235951A
JPS61235951A JP60077801A JP7780185A JPS61235951A JP S61235951 A JPS61235951 A JP S61235951A JP 60077801 A JP60077801 A JP 60077801A JP 7780185 A JP7780185 A JP 7780185A JP S61235951 A JPS61235951 A JP S61235951A
Authority
JP
Japan
Prior art keywords
interrupt
interruption
flag
memory part
data memory
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
JP60077801A
Other languages
Japanese (ja)
Inventor
Yoshiro Harada
原田 佳郎
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60077801A priority Critical patent/JPS61235951A/en
Publication of JPS61235951A publication Critical patent/JPS61235951A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the processing time of after an interruption has been generated, by providing an interruption processing table selecting flag having information for selecting one of a data memory part and an interruption vector address. CONSTITUTION:A data memory part 11 and a program memory part 12 have an interruption vector address. An interruption processing table selecting flag 13 has information for selecting an interruption vector address of one of the data memory part 11 and the program memory part 12. An interruption permitting flag 14 has information of a permission or an inhibition to a processing of the time when an interruption has been generated, and if the interruption is generated at the time of a state that the interruption is inhibited, the processing is reserved until the interruption is permitted. With respect to the generation of the interruption from an interruption factor, an interruption controlling circuit 15 refers to the interruption vector address of the data memory part 11 or the program memory part 12 by the interruption processing table selecting flag 13 and the interruption permitting flag 14.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、割込み機能を有するワンチップ・マイクロコ
ンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a one-chip microcomputer with an interrupt function.

〔従来の技術〕[Conventional technology]

従来、ワンチップ争マイクロコンピュータの割込み機能
には、プログラム・メモリ部(R,OM)のみに割込み
発生時に処理されるテーブル(以下、割込み発生時に処
理されるテーブル金側込みベクタ・アドレスと称す]が
おかれていた。
Conventionally, the interrupt function of a one-chip microcomputer has a table that is processed only in the program memory section (R, OM) when an interrupt occurs (hereinafter referred to as a side input vector address) was placed there.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の割込み機能では、割込みが発生すると常に同じア
ドレスより処理されていた。したがって、1つの割込み
要因から発生し几割込みに対し、いくつかの内容の異な
る処理全行なり際、割込みが発生した後、各処理に分岐
するための処理全必要とし、割込みが発生した後の処理
時間が長くなるといり欠点がある。
With conventional interrupt functions, when an interrupt occurs, it is always processed from the same address. Therefore, when an interrupt occurs from one interrupt source and all processes with different contents are performed, all processes necessary to branch to each process are required after the interrupt occurs. The drawback is that the processing time is longer.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の割込み機能は、割込みベクタ・アドレスに7’
ログラム・メモリ部(几AM)にも有し、さらに、こ゛
のデータ・メモリ部とプログラム・メモリ部それぞれに
おかれた割込みベクタアドレスのうちのどちら全選択す
るかの情報をもつ割込み処理テーブル選択フラグ’L[
する。
The interrupt function of the present invention has the interrupt vector address set to 7'.
The interrupt processing table selection also has information on which of the interrupt vector addresses stored in the data memory section and the program memory section are to be selected. Flag 'L[
do.

〔実施例〕   − 次に、この本発明について図面を参照して説明する。[Example] - Next, the present invention will be explained with reference to the drawings.

第1図および第2図に本発明の一実施例のブロック図で
ある。データ・メモリ部11お工びプログラム・メモリ
部12は割込みペクタ・アドレスを有する。割込み処理
テーブル選択7ラグ13はデータ・メモリ部11とプロ
グラム・メモリ部12のどちらの割込みペクタ・アドレ
スを選択するかの情@tもつ。割込み許可フラグ14は
割込み発生時の処理に対する許可ま友は禁止の情報音も
ち、割込み禁止状態の時に割込みが発生すれば、割込み
許可されるまで保留される。割込み制御回路15は割込
み要因からの割込み発生に対し、割込み処理テーブル選
択フラグ13および割込み許可7ラグ14により、デー
タ・メモリ部11またはプログラム・メモリ部12の割
込みペクタ・アドレス全参照する。このように、データ
・メモリ部11゜プログラム・メモリ部121割込み処
理テーブル選択フラグ13割込み許可フラグ141割込
み制御部15を有するワンチップ・マイクロコンビエー
タ21に割込み信号発生要因21,22.23から割り
込みがかけられる。
FIGS. 1 and 2 are block diagrams of an embodiment of the present invention. Data memory section 11 and program memory section 12 have interrupt vector addresses. The interrupt processing table selection 7 lag 13 has information as to which interrupt vector address in the data memory section 11 or the program memory section 12 is to be selected. The interrupt permission flag 14 has information indicating whether processing is permitted or prohibited when an interrupt occurs, and if an interrupt occurs while the interrupt is prohibited, the interrupt is suspended until the interrupt is permitted. The interrupt control circuit 15 refers to all interrupt vector addresses in the data memory section 11 or the program memory section 12 using the interrupt processing table selection flag 13 and the interrupt enable 7 flag 14 in response to the occurrence of an interrupt from an interrupt cause. In this way, the one-chip microcombiator 21 having the data memory section 11, the program memory section 121, the interrupt processing table selection flag 13, the interrupt permission flag 141, and the interrupt control section 15 receives an interrupt from the interrupt signal generation factors 21, 22, and 23. is applied.

第2図に示すブロック図の回路に電源が投入された際、
リセット信号により割込み処理テーブル選択フラグ13
に割込みが発生すればプログラム・メモリ部12の割込
みペクタ・アドレスが参照されるように情報を書き込む
。この時、割込み信号発生要因21より割込みが発生す
ると、プログラム・メそり部12の割込みペクタ・アド
レス全参照する。次に、プログラムの実行が進むにし几
がい、割込み信号発生要因22より割込みが発生するよ
うになると、割込み許可7ラグ14會割込み禁止状態に
し、データ・メモリ部11の割込みペクタ・アドレスに
データ全書き込むと共に割込み処理テーブル選択フラグ
13にデータ・メモリ部11の割込みペクタ・アドレス
を参照されるよりに情報音11き込み、割込み許可フラ
グ14に割込み許可状態にする。この時、割込み信号発
生要因22より割込みが発生すると、データ・メモリ部
11の割込みペクタ・アドレスを参照する。さらに、プ
ログラムの実行が進むにしたがい、割込み信号発生要因
23より割込みが発生する時、割込み許可7ラグ14全
割込み禁止状態にし、データ・メモリ部11の割込みペ
クタ・アドレスに割込み信号発生要因23のtめのデー
タt−書き込み、割込み許可フラグ14會割込み許可状
態にする。
When power is applied to the circuit shown in the block diagram shown in Figure 2,
Interrupt processing table selection flag 13 is set by the reset signal.
When an interrupt occurs, information is written so that the interrupt vector address in the program memory unit 12 is referenced. At this time, when an interrupt is generated by the interrupt signal generation factor 21, all interrupt vector addresses in the program memory unit 12 are referenced. Next, as the execution of the program progresses and an interrupt starts to be generated from the interrupt signal generation factor 22, interrupts are enabled and disabled, and all the data is stored at the interrupt vector address in the data memory section 11. At the same time as writing, the interrupt handler address of the data memory section 11 is referred to in the interrupt processing table selection flag 13, the information sound 11 is written, and the interrupt permission flag 14 is set to an interrupt permission state. At this time, when an interrupt is generated by the interrupt signal generation factor 22, the interrupt vector address in the data memory section 11 is referred to. Furthermore, as the execution of the program progresses, when an interrupt occurs from the interrupt signal generation factor 23, all interrupts are set to the interrupt enable 7 lag 14 state, and the interrupt vector address of the data memory section 11 is set to the interrupt signal generation factor 23. t-th data t-write, interrupt permission flag 14, set to interrupt permission state.

この時、割込み信号発生要因23より割込みが発生する
と、データ・メモリ部11の新たに書き込まれた割込み
ペクタ・アドレスを参照する。
At this time, when an interrupt is generated by the interrupt signal generation factor 23, the newly written interrupt vector address in the data memory section 11 is referred to.

〔発明の効果〕〔Effect of the invention〕

以上説明し次よつに本発明の割込み機能は、データ・メ
モリ部にも割込みペクタ・アドレスがおかれていること
により、割込みが発生する前に、1つの割込み要因から
発生した割込みに対し、いくつもの異なる内容の処mt
−設定および変更ができる効果と、割込みが発生した後
の処理内容の簡易化および処理時間の短縮化の効果があ
る。
As explained above and as follows, the interrupt function of the present invention has an interrupt vector address stored in the data memory section, so that the interrupt function can be used to respond to an interrupt generated from one interrupt factor before the interrupt occurs. Processing of several different contents
- It has the effect of allowing settings and changes, and the effect of simplifying the processing contents and shortening the processing time after an interrupt occurs.

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

第1図は本発明の一実施例によるーチップマイクロコン
ビエータの発明に関する部分のブロック図、第2図は本
発明の一実施例によるーチップマイクロコンビエータを
用いたシステムのブロック図である。 11・・・データ・メモリ部、12・・・プログラム・
メモリ部、13・・・割込み処理テーブル選択フラグ、
14・・・割込み許可フラグ、15・・・割込み制御回
路、16・・・リセット信号、17・・・割込み要因、
18・・・プログラムカウンタ、19・・・中央処理部
、10・・・バス、21・・・ワンチップマイクロコン
ビエータ、22.23.24・・・割込み信号発生要因
11:デーモノ七ソ郭 12ニブログラム、メ七ソ部 13;側人界処理テーブル蓮釈フラグ 14: 富り這丑言午可7ラグ +5:  tり込Jト制#Cフ1@− 16; リセ、・7トイ言号 17:官り込h$51 1S: プロ2゛う4.カウンタ 19;中央処理部 10: ハ゛ス
FIG. 1 is a block diagram of a part related to the invention of a chip micro combinator according to an embodiment of the present invention, and FIG. 2 is a block diagram of a system using a chip micro combinator according to an embodiment of the present invention. be. 11...Data memory section, 12...Program...
Memory section, 13... Interrupt processing table selection flag,
14... Interrupt permission flag, 15... Interrupt control circuit, 16... Reset signal, 17... Interrupt factor,
18...Program counter, 19...Central processing unit, 10...Bus, 21...One-chip micro combiator, 22.23.24...Interrupt signal generation factor 11: Daemono Shichisogu 12 Nibrogram, meshichiso part 13; sideman world processing table lotus flag 14: wealth crawling ox language 7 lag + 5: t entry J to system #C fu 1 @- 16; lyse, 7 toy language 17: Official h$51 1S: Pro 2゛U4. Counter 19; Central processing unit 10: High speed

Claims (1)

【特許請求の範囲】[Claims] 割込み発生時に処理されるテーブルを有するデータ・メ
モリ部と、割込み発生時に処理されるテーブルを有する
プログラム・メモリ部と、割込み処理テーブル選択フラ
グと、割込み処理アドレスを発生する制御部と、割込み
許可フラグとを備えたことを特徴とするワンチップ・マ
イクロコンピュータ。
A data memory section that has a table that is processed when an interrupt occurs, a program memory section that has a table that is processed when an interrupt occurs, an interrupt processing table selection flag, a control section that generates an interrupt processing address, and an interrupt enable flag. A one-chip microcomputer characterized by:
JP60077801A 1985-04-12 1985-04-12 One chip microcomputer Pending JPS61235951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60077801A JPS61235951A (en) 1985-04-12 1985-04-12 One chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60077801A JPS61235951A (en) 1985-04-12 1985-04-12 One chip microcomputer

Publications (1)

Publication Number Publication Date
JPS61235951A true JPS61235951A (en) 1986-10-21

Family

ID=13644106

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60077801A Pending JPS61235951A (en) 1985-04-12 1985-04-12 One chip microcomputer

Country Status (1)

Country Link
JP (1) JPS61235951A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0331932A (en) * 1989-06-28 1991-02-12 Nec Corp Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0331932A (en) * 1989-06-28 1991-02-12 Nec Corp Data processor

Similar Documents

Publication Publication Date Title
JPH02235156A (en) Information processor
JPS61235951A (en) One chip microcomputer
JPS6238738B2 (en)
JPS603049A (en) Bus interface apparatus
JPS5854422B2 (en) Control method for multiprocessing equipment
JPS60126731A (en) Program control method
JPS633358A (en) Multiprocessor
JPH0353336A (en) Single chip microcomputer
JPS5919287A (en) Input and output processing system by memory access instruction
JPH0561669A (en) Semiconductor calculating device and electronic apparatus
JPS61151745A (en) Interruption processing system
JPH0683640A (en) Interruption response processing system
JPH0259829A (en) Microcomputer
JPH0293971A (en) Memory access circuit
JPS62117044A (en) Program intermission system
JPS6214866B2 (en)
JPS63266568A (en) Data transfer controller
JPS59123030A (en) Data processor
JPH06103154A (en) Shared memory controller
JPS6284353A (en) Memory reading system
JPS61202231A (en) Data processor containing microprocessor
JPS57130137A (en) Data processor
JPS62191934A (en) Interruption control circuit
JPH01243158A (en) Information processor
JPH0367357A (en) Multi-cpu system