JPH05173803A - Single chip microcomputer - Google Patents

Single chip microcomputer

Info

Publication number
JPH05173803A
JPH05173803A JP3355223A JP35522391A JPH05173803A JP H05173803 A JPH05173803 A JP H05173803A JP 3355223 A JP3355223 A JP 3355223A JP 35522391 A JP35522391 A JP 35522391A JP H05173803 A JPH05173803 A JP H05173803A
Authority
JP
Japan
Prior art keywords
signal
hold
interrupt
request
cpu
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.)
Granted
Application number
JP3355223A
Other languages
Japanese (ja)
Other versions
JP2722908B2 (en
Inventor
Wataru Okamoto
渉 岡本
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 JP3355223A priority Critical patent/JP2722908B2/en
Publication of JPH05173803A publication Critical patent/JPH05173803A/en
Application granted granted Critical
Publication of JP2722908B2 publication Critical patent/JP2722908B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To perform the interrupt handling even at the time of a hold request by preventing a CPU from stopping the processing regardless of input of the hold request. CONSTITUTION:An operation control circuit 10 is added to the single chip microcomputer incorporating a CPU 2, an interrupt control circuit 1, a processing I/F 3, a peripheral part 6, a ROM 5, and a RAM 4, and it is designated whether the hold request should be processed as an interrupt handling request or be processed as a hold request to the CPU 2 in the conventional manner in accordance with the level of a preliminarily set control signal CNTL. That is, when the control signal CNTL is '1', a hold request signal HLDR is outputted as a request signal RQ1, and the interrupt control circuit 1 accepts this signal as the interrupt handling request and causes the CPU 2 to perform the interrupt handling and outputs an acknowledge signal AK1. An operation designating circuit 10 outputs the signal AK1 as a hold acknowledge signal HLDA.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、単一半導体基板上に、
メモリ機能およびコンピュータ機能を集積化してなるシ
ングルチップマイクロコンピュータに関し、特にホール
ド機能および割込み機能を有するシングルチップマイク
ロコンピュータに関する。
This invention relates to a single semiconductor substrate,
The present invention relates to a single-chip microcomputer having a memory function and a computer function integrated, and more particularly to a single-chip microcomputer having a hold function and an interrupt function.

【0002】[0002]

【従来の技術】近年、LSI製造技術の進歩により、シ
ングルチップマイクロコンピュータの分野においても高
集積化が進み、多機能化も著しくなってきている。ま
た、シングルチップマイクロコンピュータの応用分野も
広がりそれに伴い、チップ外部にメモリを有し、DMA
コントローラを使用してシステムを構成する例も多くな
ってきている。
2. Description of the Related Art In recent years, due to advances in LSI manufacturing technology, high integration has been advanced in the field of single-chip microcomputers, and multi-functionalization has become remarkable. In addition, the application field of single-chip microcomputers has expanded, and along with this, it has a memory outside the chip, and DMA
There are many examples of configuring a system using a controller.

【0003】DMAが採用されたシステムでは、DMA
コントローラは上記シングルチップマイクロコンピュー
タに対しホールド要求を出力し、中央処理装置(以下、
CPUと記す)をホールド状態にした後で外部バスを専
有しDMA転送を行なう。
In a system employing DMA, the DMA
The controller outputs a hold request to the single chip microcomputer, and the central processing unit (hereinafter,
The CPU holds the external bus and performs DMA transfer.

【0004】図4は、この種従来のシングルチップマイ
クロコンピュータの構成を示すブロック図である。シン
グルチップマイクロコンピュータ400は、割込み制御
回路1、CPU2、外部インターフェイス(以下、外部
I/Fと記す)3、RAM4、ROM5、周辺部6、内
部バス7〜9およびその信号線により構成されている。
ROM5は、ユーザプログラムおよび固定データの格納
に用いる読み出し専用メモリである。RAM4は、デー
タの格納に用いる読み出し、書き込みがともに可能なメ
モリである。
FIG. 4 is a block diagram showing the structure of a conventional single-chip microcomputer of this type. The single-chip microcomputer 400 includes an interrupt control circuit 1, a CPU 2, an external interface (hereinafter, referred to as an external I / F) 3, a RAM 4, a ROM 5, a peripheral section 6, internal buses 7 to 9 and signal lines thereof. ..
The ROM 5 is a read-only memory used for storing user programs and fixed data. The RAM 4 is a readable / writable memory used for storing data.

【0005】内部バス7は、アドレスおよびデータを時
分割に転送するバスである。内部バス8は、外部メモリ
アクセス時に外部I/F3を介して内部バス7からアド
レスを転送する際に用いるバスである。内部バス9は、
外部メモリアクセス時に外部I/F3を介して内部バス
7からデータを転送する際に用いるバスである。
The internal bus 7 is a bus for transferring addresses and data in a time division manner. The internal bus 8 is a bus used when transferring an address from the internal bus 7 via the external I / F 3 when an external memory is accessed. The internal bus 9 is
This is a bus used when transferring data from the internal bus 7 via the external I / F 3 when accessing an external memory.

【0006】CPU2は、ROM5および外部メモリに
格納されたプログラムに従ってデータ処理を行う。CP
U2内のプログラムカウンタ(以下、PCと記す)2a
は、フェッチする命令のアドレスを格納するレジスタで
ある。CPU2は、ホールド要求信号HLDRが“1”
になると、ホールドアクノリッジ信号HLDAを“1”
として、ホールド状態に入る。
The CPU 2 performs data processing according to the programs stored in the ROM 5 and the external memory. CP
Program counter (hereinafter referred to as PC) 2a in U2
Is a register that stores the address of the instruction to be fetched. The CPU 2 determines that the hold request signal HLDR is "1".
Becomes, the hold acknowledge signal HLDA is set to "1".
As a result, the hold state is entered.

【0007】周辺部6は、チップ外部との通信を行なう
ためのポート等から構成され、内部バス7を介して入力
したデータを外部端子6aに出力し、外部端子6aから
入力したデータを、内部バス7に出力する機能を持つ。
The peripheral section 6 is composed of a port for communicating with the outside of the chip, outputs data input via the internal bus 7 to the external terminal 6a, and outputs data input from the external terminal 6a to the internal. It has a function of outputting to the bus 7.

【0008】割込み制御部1は、外部より割込み処理要
求信号INTPRが入力されると、CPU2に対し割込
み要求信号INTRを出力する。その後、CPU2の出
力する割込み受け付け信号INTAに同期して割込みベ
クタを内部バス7に出力する。CPU2は、割込みベク
タに応じて割込み処理プログラムを実行する。
When the interrupt processing request signal INTPR is input from the outside, the interrupt control section 1 outputs the interrupt request signal INTR to the CPU 2. After that, the interrupt vector is output to the internal bus 7 in synchronization with the interrupt acceptance signal INTA output from the CPU 2. The CPU 2 executes the interrupt processing program according to the interrupt vector.

【0009】外部I/F3は、ホールドアクノリッジ信
号HLDAが“1”の時、リードストローブ信号RST
B、ライトストローブ信号WSTB、アドレス信号A
D、データ信号DTを入、出力する回路を全てハイ・イ
ンピーダンス状態とする。ホールドアクノリッジ信号H
LDAが“0”となり、ホールド状態が解除されると、
リードストローブ信号RSTB、ライトストローブ信号
WSTB、アドレス信号AD、およびデータ信号DTは
全て活性化される。
The external I / F 3 receives the read strobe signal RST when the hold acknowledge signal HLDA is "1".
B, write strobe signal WSTB, address signal A
All circuits for inputting and outputting the D and data signals DT are set to the high impedance state. Hold acknowledge signal H
When LDA becomes "0" and the hold state is released,
Read strobe signal RSTB, write strobe signal WSTB, address signal AD, and data signal DT are all activated.

【0010】次に、本従来例のホールド要求信号HLD
R入力時の動作について説明する。チップ外部より入力
されるホールド要求信号HLDRが“1”となると、C
PU2は、PC2aの格納値に従い、以下のように動作
する。 PC2aの格納値がチップ内部のROM5を指して
いる場合 CPU2は、ホールドアクノリッジ信号HLDAをチッ
プ外および外部I/F3に出力した後、処理を続行す
る。また、外部I/F3は、外部回路と接続された入、
出力回路を全てハイ・インピーダンス状態とする。
Next, the hold request signal HLD of this conventional example.
The operation at the time of R input will be described. When the hold request signal HLDR input from the outside of the chip becomes "1", C
PU2 operates as follows according to the stored value of PC2a. When the stored value of the PC 2a indicates the ROM 5 inside the chip The CPU 2 continues the processing after outputting the hold acknowledge signal HLDA to the outside of the chip and the external I / F 3. The external I / F 3 is an input connected to an external circuit,
All output circuits are in high impedance state.

【0011】 PC2aの格納値がチップ外のメモリ
領域を指している場合 CPU2は、ホールドアクノリッジ信号HLDAをチッ
プ外および外部I/F3に出力した後、処理を中断し、
停止する。また、外部I/F3は、外部回路と接続され
た入、出力回路を全てハイ・インピーダンス状態とす
る。
When the stored value of the PC 2a points to the memory area outside the chip The CPU 2 interrupts the processing after outputting the hold acknowledge signal HLDA to the outside of the chip and the external I / F 3.
Stop. Further, the external I / F 3 puts all the input and output circuits connected to the external circuit into a high impedance state.

【0012】チップ外部より入力されたホールド要求信
号HLDRが“0”となると、以下のように動作する。 PC2aの格納値がチップ内部のROM5を指して
いる場合 CPU2は、処理続行のまま、ホールドアクノリッジH
LDAを“0”とし、また外部I/F3は、自己の入、
出力回路のハイ・インピーダンス状態を解除する。 PC2aの格納値がチップ外のメモリ領域を指して
いる場合 CPU2は、ホールドアクノリッジ信号HLDAを
“0”とし、処理を再開する。外部I/F3は、自己の
入、出力回路のハイ・インピーダンス状態を解除する。
When the hold request signal HLDR input from the outside of the chip becomes "0", it operates as follows. When the stored value of PC2a indicates the ROM5 in the chip CPU2 holds hold acknowledge H while continuing the processing.
Set LDA to “0”, and external I / F3 is
Release the high impedance state of the output circuit. When the stored value of the PC 2a indicates a memory area outside the chip The CPU 2 sets the hold acknowledge signal HLDA to "0" and restarts the processing. The external I / F 3 releases the high impedance state of its own input / output circuit.

【0013】以上述べたように、従来のシングルチップ
マイクロコンピュータにおいては、チップ外部に格納し
たプログラムを実行中にホールド要求信号が入力される
と、CPUの処理が停止する。
As described above, in the conventional single-chip microcomputer, when the hold request signal is input during the execution of the program stored outside the chip, the processing of the CPU is stopped.

【0014】[0014]

【発明が解決しようとする課題】上述した従来のシング
ルチップマイクロコンピュータにおいては、外部メモリ
に格納したプログラムを実行中に外部からホールド要求
が発生すると、CPUは、その処理を中断し、以後、ホ
ールド状態が解除になるまで割込み要求があってもこれ
を受け付けない。そのため高速の応答を要する割込み要
求があってもこれに応じられないという不都合があっ
た。また、従来はホールド状態ではCPUが単に休止し
ているだけのことがあったためCPUの使用効率が悪く
システムのスループットが低下するという欠点があっ
た。
In the above-mentioned conventional single-chip microcomputer, when a hold request is issued from the outside while the program stored in the external memory is being executed, the CPU interrupts the processing, and then the hold operation is performed. Even if there is an interrupt request, it will not be accepted until the status is cleared. Therefore, there is an inconvenience that even if there is an interrupt request that requires a high-speed response, it cannot be fulfilled. Further, conventionally, there is a drawback that the CPU is simply inactive in the hold state, so that the CPU usage efficiency is low and the system throughput is reduced.

【0015】[0015]

【課題を解決するための手段】本発明のシングルチップ
マイクロコンピュータは、単一半導体基板上に、CP
U、記憶部、割込み制御部および外部インターフェース
部が構成され、CPUに対しホールド要求を行えるよう
にしたものにおいて、動作指定回路を追加し、前記動作
指定回路に対して、外部より選択制御信号を入力し、該
選択制御信号に従って前記動作指定回路がホールド要求
時にCPUに動作停止を指示するか否かを選択できるよ
うにしたものである。
A single-chip microcomputer according to the present invention has a CP on a single semiconductor substrate.
U, a storage unit, an interrupt control unit, and an external interface unit are configured so that a hold request can be issued to the CPU, and an operation designating circuit is added, and a selection control signal is externally supplied to the operation designating circuit. By inputting, the operation designating circuit can select whether or not to instruct the CPU to stop the operation when a hold request is made in accordance with the selection control signal.

【0016】[0016]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、本発明の第1の実施例を示すブロ
ック図である。本実施例のシングルチップマイクロコン
ピュータ100は、本発明に従って新たに動作指定回路
10が追加された点と、割込み制御回路1に動作指定回
路10との間で信号の授受が行われるようになされてい
る点で図4の従来例と相違しているが、他の点では従来
例と同じであるので、以下、動作指定回路10を中心に
説明する。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the present invention. The single-chip microcomputer 100 of the present embodiment is designed so that the operation designating circuit 10 is newly added according to the present invention and signals are exchanged between the interrupt control circuit 1 and the operation designating circuit 10. 4 is different from the conventional example in FIG. 4 in other respects, but the other points are the same as the conventional example, and therefore the operation designating circuit 10 will be mainly described below.

【0017】動作指定回路10に入力される制御信号C
NTLは、予めユーザにより“1”または“0”に設定
されている信号である。そして、動作指定回路10は、
制御信号CNTLに従って、ホールド要求信号HLDR
を要求信号RQ0 または要求信号RQ1 として出力し、
かつアクノリッジ信号AK0 またはアクノリッジ信号A
1 をホールドアクノリッジ信号HLDAとして出力す
る機能を有する。
A control signal C input to the operation designating circuit 10
NTL is a signal which is set to "1" or "0" by the user in advance. Then, the operation designating circuit 10
Hold request signal HLDR according to control signal CNTL
Is output as the request signal RQ 0 or the request signal RQ 1 ,
And acknowledge signal AK 0 or acknowledge signal A
It has a function of outputting K 1 as a hold acknowledge signal HLDA.

【0018】以下、動作指定回路10について、その構
成および動作を図2を参照して説明する。動作指定回路
10はマルチプレクサ10a、デマルチプレクサ10b
から構成されるブロックである。マルチプレクサ10a
は、制御信号CTRLが“1”の時、割込み制御回路1
から出力されるアクノリッジ信号AK1 をホールドアク
ノリッジ信号HLDAとして出力し、また、CTNLが
“0”の時、CPU2から出力されるアクノリッジ信号
AK0 をホールドアクノリッジ信号HLDAとして出力
する。
The structure and operation of the operation designating circuit 10 will be described below with reference to FIG. The operation designating circuit 10 includes a multiplexer 10a and a demultiplexer 10b.
It is a block composed of. Multiplexer 10a
Is the interrupt control circuit 1 when the control signal CTRL is "1".
The acknowledge signal AK 1 output from the CPU 2 is output as the hold acknowledge signal HLDA, and when CTNL is “0”, the acknowledge signal AK 0 output from the CPU 2 is output as the hold acknowledge signal HLDA.

【0019】デマルチプレクサ10bは、制御信号CT
RLが“1”の時、ホールド要求信号HLDRを要求信
号RQ1 として割込み制御回路1へ出力し、また、CN
TLが“0”の時、ホールド要求信号HLDRを要求信
号RQ0 としてCPU2へ出力する。
The demultiplexer 10b has a control signal CT.
When RL is “1”, the hold request signal HLDR is output to the interrupt control circuit 1 as the request signal RQ 1 , and CN
When TL is “0”, the hold request signal HLDR is output to the CPU 2 as the request signal RQ 0 .

【0020】次に、外部DMAコントローラ等によりホ
ールド要求信号HLDRが“1”になされた場合の本実
施例の動作について説明する。動作指定回路10は、制
御信号CTRLのレベルに従って、以下のように動作す
る。 制御信号CNTLが“1”の場合 動作指定回路10は、要求信号RQ1 を出力し、割込み
制御回路1は、上記信号を割込み処理要求として受信す
る。割込み制御回路1は、割込み要求信号INTRを
“1”とし、CPU2に対し割込み処理を要求する。C
PU2は、命令実行の最終タイミングにて割込み処理要
求を受け付け、割込み受け付け信号INTAを出力す
る。
Next, the operation of this embodiment when the hold request signal HLDR is set to "1" by an external DMA controller or the like will be described. The operation designating circuit 10 operates as follows according to the level of the control signal CTRL. If the operation designating circuit 10 of the control signal CNTL is "1", and outputs the request signal RQ 1, the interrupt control circuit 1 receives the signal as an interrupt processing request. The interrupt control circuit 1 sets the interrupt request signal INTR to "1" and requests the CPU 2 to perform interrupt processing. C
PU2 accepts an interrupt processing request at the final timing of instruction execution, and outputs an interrupt acceptance signal INTA.

【0021】割込み制御回路1は、割込み受け付け信号
INTAに同期し割込みベクタ情報を出力し、アクノリ
ッジ信号AK1 を“1”とする。CPU2は、割込みベ
クタ情報に従って、内部ROM5に格納した割込み処理
プログラムに分岐する。続いて、CPU2はPC2aの
格納値に従って、待機状態となる(処理プログラムが外
部メモリに展開している場合)か、元のプログラムに復
帰する(処理プログラムがチップ内のROM5上に存在
している場合)。
The interrupt control circuit 1 outputs the interrupt vector information in synchronization with the interrupt acceptance signal INTA and sets the acknowledge signal AK 1 to "1". The CPU 2 branches to the interrupt processing program stored in the internal ROM 5 according to the interrupt vector information. Then, the CPU 2 enters a standby state (when the processing program is expanded in the external memory) or returns to the original program (the processing program exists on the ROM 5 in the chip) according to the value stored in the PC 2a. If).

【0022】動作制御回路10は、制御信号CNTLが
“1”であるためアクノリッジ信号AK1 を選択して
“1”のホールドアクノリッジ信号HLDAを出力す
る。外部I/F3は、外部回路と接続された入、出力回
路を全てハイ・インピーダンス状態とする。この状態
で、割込み処理要求信号INTPRが“1”となった場
合、CPU2ではこの割込み要求について処理を行う。
Since the control signal CNTL is "1", the operation control circuit 10 selects the acknowledge signal AK 1 and outputs the hold acknowledge signal HLDA of "1". The external I / F 3 puts all the input and output circuits connected to the external circuit into a high impedance state. In this state, when the interrupt processing request signal INTPR becomes "1", the CPU 2 processes this interrupt request.

【0023】 制御信号CTRLが“0”の場合 動作指定回路10は、“1”のホールド要求信号HLD
Rを要求信号RQ0 として出力し、CPU2は、上記信
号をホールド要求信号として受信する。CPU2は、動
作を停止しホールド状態に移行するとともに、アクノリ
ッジ信号AK0 を“1”とする。動作指定回路10は、
制御信号CTRLが“0”のためアクノリッジ信号AK
0 を選択して、“1”のホールドアクノリッジ信号HL
DAを出力する。外部I/F3は、外部回路と接続され
た入、出力回路を全てハイ・インピーダンス状態とす
る。この状態では外部から割込み要求が入力されてもC
PU2はこの要求を受け付けない。
When the control signal CTRL is “0” The operation designating circuit 10 sets the hold request signal HLD of “1”.
R is output as a request signal RQ 0 , and the CPU 2 receives the above signal as a hold request signal. The CPU 2 stops the operation, shifts to the hold state, and sets the acknowledge signal AK 0 to “1”. The operation designating circuit 10 is
Acknowledge signal AK because the control signal CTRL is "0"
Select 0 to select "1" hold acknowledge signal HL.
Output DA. The external I / F 3 puts all the input and output circuits connected to the external circuit into a high impedance state. In this state, even if an interrupt request is input from the outside, C
PU2 does not accept this request.

【0024】次に、ホールド要求信号HLDRが“0”
となった時の本実施例の動作について説明する。 制御信号CNTLが“1”の場合 動作指定回路10は、“0”の要求信号RQ1 を割込み
制御回路1へ出力し、割込み制御回路1は、割込み処理
要求なしと判断する。CPU2はROM5上のプログラ
ムで動作している場合は処理をそのまま続行する。ま
た、外部メモリのプログラムの実行途中で待機状態とな
っていた場合には、待機状態を解除して、そのプログラ
ムの実行を再開する。割込み制御回路1は、アクノリッ
ジ信号AK1 を“0”とする。動作指定回路10は、制
御信号CTRLが“1”であるためアクノリッジ信号A
1 を選択して、“0”のホールドアクノリッジ信号H
LDAを出力する。外部I/F3は、その入、出力回路
のハイ・インピーダンス状態を解除する。
Next, the hold request signal HLDR is "0".
The operation of this embodiment when If the operation designating circuit 10 of the control signal CNTL is "1", and outputs the request signal RQ 1 of "0" to the interrupt control circuit 1, the interrupt control circuit 1 determines that no interrupt processing request. When the CPU 2 is operating according to the program on the ROM 5, the processing is continued as it is. If the program in the external memory is in the waiting state during execution, the waiting state is released and the execution of the program is restarted. The interrupt control circuit 1 sets the acknowledge signal AK 1 to “0”. Since the control signal CTRL is "1", the operation designating circuit 10 acknowledges the acknowledge signal A.
Select K 1 and hold acknowledge signal H of “0”
Output LDA. The external I / F 3 releases the high impedance state of its input and output circuits.

【0025】 制御信号CTRLが“0”の場合 動作指定回路10は、“0”の要求信号RQ0 を出力
し、CPU2はこの信号をホールド解除信号として受信
する。CPU2は、動作を再開しホールド状態を解除す
るとともに、アクノリッジ信号AK0 を“0”とする。
動作指定回路10は、制御信号CTRLが“0”である
ためアクノリッジ信号AK0 を選択して、“0”のホー
ルドアクノリッジ信号HLDAを出力する。外部I/F
3は、その入、出力回路のハイ・インピーダンス状態を
解除する。
When the control signal CTRL is “0” The operation designating circuit 10 outputs the request signal RQ 0 of “0”, and the CPU 2 receives this signal as the hold release signal. The CPU 2 restarts the operation, releases the hold state, and sets the acknowledge signal AK 0 to “0”.
The operation designating circuit 10 selects the acknowledge signal AK 0 because the control signal CTRL is “0” and outputs the hold acknowledge signal HLDA of “0”. External I / F
3 releases the high impedance state of its input and output circuits.

【0026】以上述べたように、第1の実施例において
は、簡単なハードウエアから構成される動作指定回路を
付加し、その制御信号の値を適宜設定することにより、
ホールド要求入力時におけるCPUの動作を、割込みモ
ードあるいはホールドモードのいずれかに指定できる。
割込みモードに指定した場合には、ホールド要求入力時
であっても内部ROMに格納したプログラムを割込み処
理として実行することが可能であり、ホールド状態にお
いて発生した割込み処理要求もすみやかに処理すること
ができる。ホールド状態は、例えばDMA転送の場合数
100μsecにも及ぶ場合があるが、本実施例ではこ
の間に数100個の命令を実行させることができる。
As described above, in the first embodiment, the operation designating circuit composed of simple hardware is added and the value of the control signal is set appropriately,
The operation of the CPU at the time of inputting a hold request can be designated as either the interrupt mode or the hold mode.
When the interrupt mode is specified, the program stored in the internal ROM can be executed as an interrupt process even when the hold request is input, and the interrupt process request generated in the hold state can be processed promptly. it can. The hold state may reach several 100 μsec in the case of DMA transfer, for example, but in this embodiment several hundred instructions can be executed during this period.

【0027】図3は、本発明の第2の実施例を示すブロ
ック図である。本実施例のシングルチップマイクロコン
ピュータ300の、図1に示した実施例と相違する点
は、先の実施例では動作指定回路10に対する制御信号
CNTLがユーザによって予め与えられたものであるの
に対し、本実施例ではこの信号が割込み制御回路1の内
蔵する割込みマスクフラグ1aから出力されるようにな
されている点である。
FIG. 3 is a block diagram showing a second embodiment of the present invention. The single-chip microcomputer 300 of this embodiment is different from the embodiment shown in FIG. 1 in that the control signal CNTL for the operation designating circuit 10 is previously given by the user in the previous embodiment. In this embodiment, this signal is output from the interrupt mask flag 1a incorporated in the interrupt control circuit 1.

【0028】この割込みマスクフラグ1aの格納値は、
CPU2により内部バス7を介して書き換えが可能であ
る。即ち、先の実施例では制御信号CNTLは予め設定
された値が用いられたのに対し、本実施例ではユーザプ
ログラム等により適宜指定することができるため、より
多様な用途に対応することができる。
The stored value of the interrupt mask flag 1a is
Rewriting is possible by the CPU 2 via the internal bus 7. That is, the preset value is used as the control signal CNTL in the previous embodiment, but it can be appropriately designated by the user program or the like in the present embodiment, so that it can be applied to more various applications. ..

【0029】なお、割込みマスクフラグ1aの格納値が
“1”または“0”である場合の、即ち、制御信号CT
RLが“1”または“0”である場合の、シングルチッ
プマイクロコンピュータへホールド要求がなされたとき
の動作は、先の実施例の場合と同様であるのでその説明
は省略する。
When the stored value of the interrupt mask flag 1a is "1" or "0", that is, the control signal CT
The operation when a hold request is issued to the single-chip microcomputer when RL is "1" or "0" is the same as in the previous embodiment, and therefore its explanation is omitted.

【0030】[0030]

【発明の効果】以上説明したように、本発明のシングル
チップマイクロコンピュータは、簡単な回路構成の動作
指定回路を備え、制御信号によりホールド要求時にCP
Uの動作を割込みモードに指定できるようになされたも
のであるので、本発明によれば、ホールド要求が提起さ
れたときに従来のようにCPUを停止させないようにす
ることができる。従って、本発明によれば、ホールド状
態にあるときにもCPUに割込み処理を行わせることが
できるようになるので、資源の有効利用が可能となりマ
イクロコンピュータの処理能力を向上させることができ
る。
As described above, the single-chip microcomputer of the present invention is provided with the operation designating circuit having a simple circuit configuration, and the CP is issued at the time of the hold request by the control signal.
Since the operation of U can be designated as the interrupt mode, the present invention can prevent the CPU from being stopped when a hold request is issued, unlike the conventional case. Therefore, according to the present invention, the CPU can be made to perform the interrupt processing even in the hold state, so that the resources can be effectively used and the processing capability of the microcomputer can be improved.

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

【図1】 本発明の第1の実施例を示すブロック図。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】 本発明の第1の実施例に用いられる動作指定
回路のブロック図。
FIG. 2 is a block diagram of an operation designating circuit used in the first embodiment of the present invention.

【図3】 本発明の第2の実施例を示すブロック図。FIG. 3 is a block diagram showing a second embodiment of the present invention.

【図4】 従来例のブロック図。FIG. 4 is a block diagram of a conventional example.

【符号の説明】[Explanation of symbols]

1 割込み制御回路 1a 割込みマスクフラグ 2 中央処理装置(CPU) 2a プログラムカウンタ(PC) 3 外部インターフェイス部(外部I/F) 4 RAM 5 ROM 6 周辺部 6a 外部端子 7、8、9 内部バス 10 動作指定回路 10a マルチプレクサ 10b デマルチプレクサ 100、300、400 シングルチップマイクロコン
ピュータ AK0 、AK1 アクノリッジ信号 CTRL 制御信号 HLDA ホールドアクノリッジ信号 HLDR ホールド要求信号 INTA 割込み受け付け信号 INTPR 割込み処理要求信号 INTR 割込み要求信号 RQ0 、RQ1 要求信号 RSTB リードストローブ信号 WSTB ライトストローブ信号
1 interrupt control circuit 1a interrupt mask flag 2 central processing unit (CPU) 2a program counter (PC) 3 external interface section (external I / F) 4 RAM 5 ROM 6 peripheral section 6a external terminals 7, 8, 9 internal bus 10 operation Designating circuit 10a Multiplexer 10b Demultiplexer 100, 300, 400 Single-chip microcomputer AK 0 , AK 1 Acknowledge signal CTRL control signal HLDA hold acknowledge signal HLDR hold request signal INTA interrupt acceptance signal INTPR interrupt processing request signal INTR interrupt request signal RQ 0 , RQ 1 request signal RSTB read strobe signal WSTB write strobe signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ホールド要求信号が入力されると動作が
停止する中央処理装置と、 ROMおよびRAMからなる内部メモリと、 割込み要求信号が入力されるとこれを前記中央処理装置
へ伝達する割込み制御回路と、 ホールドアクノリッジ信号が入力されると外部回路と接
続される入、出力回路がすべてハイインピーダンス状態
になされる外部インターフェイス部と、 選択制御信号が入力されており、ホールド要求信号が入
力されると、前記選択制御信号の状態によってホールド
要求信号を前記中央処理装置へ伝達するかまたは該信号
を割込み要求信号として割込み制御回路へ伝達するかを
選択できるようになされ、ホールドアクノリッジ信号を
前記外部インターフェイス部へ伝達するように構成され
ている動作指定回路と、を単一半導体基板上に具備する
シングルチップマイクロコンピュータ。
1. A central processing unit which stops its operation when a hold request signal is input, an internal memory consisting of ROM and RAM, and an interrupt control which transmits an interrupt request signal to the central processing unit when the interrupt request signal is input. Circuit, external interface that connects to external circuit when hold acknowledge signal is input, input interface and output circuit are all in high impedance state, selection control signal is input, hold request signal is input And whether the hold request signal is transmitted to the central processing unit or the signal is transmitted to the interrupt control circuit as an interrupt request signal according to the state of the selection control signal, and a hold acknowledge signal is transmitted to the external interface. An operation designating circuit configured to communicate to a single semiconductor substrate Single-chip microcomputer comprising above.
【請求項2】 前記動作指定回路が、 前記選択制御信号の状態により、ホールド要求信号を前
記割込み制御回路、前記中央処理装置のいずれかに伝達
するデマルチプレクサと、 前記選択制御信号の状態により、前記割込み制御回路が
出力するアクノリッジ信号、前記中央処理装置が出力す
るアクノリッジ信号のいずれかをホールドアクノリッジ
信号として出力するマルチプレクサと、を備えている請
求項1記載のシングルチップマイクロコンピュータ。
2. A demultiplexer for transmitting a hold request signal to one of the interrupt control circuit and the central processing unit according to the state of the selection control signal, and the operation designating circuit according to the state of the selection control signal. The single-chip microcomputer according to claim 1, further comprising a multiplexer that outputs either an acknowledge signal output by the interrupt control circuit or an acknowledge signal output by the central processing unit as a hold acknowledge signal.
JP3355223A 1991-12-20 1991-12-20 Single chip microcomputer Expired - Lifetime JP2722908B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3355223A JP2722908B2 (en) 1991-12-20 1991-12-20 Single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3355223A JP2722908B2 (en) 1991-12-20 1991-12-20 Single chip microcomputer

Publications (2)

Publication Number Publication Date
JPH05173803A true JPH05173803A (en) 1993-07-13
JP2722908B2 JP2722908B2 (en) 1998-03-09

Family

ID=18442672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3355223A Expired - Lifetime JP2722908B2 (en) 1991-12-20 1991-12-20 Single chip microcomputer

Country Status (1)

Country Link
JP (1) JP2722908B2 (en)

Also Published As

Publication number Publication date
JP2722908B2 (en) 1998-03-09

Similar Documents

Publication Publication Date Title
JP2822782B2 (en) Single chip microcomputer
JP2722908B2 (en) Single chip microcomputer
JPS60233757A (en) Microcomputer
JPH023217B2 (en)
JP2928036B2 (en) Logic semiconductor integrated circuit
JPH02144653A (en) Data processor
JPS62152064A (en) Single-chip microcomputer
JPH04338859A (en) Computer device
JPH07302255A (en) Semiconductor integrated circuit device, processor for emulating the same and emulator
JPH056333A (en) Multi-processor system
JPH06149722A (en) Computer device
JP3187117B2 (en) One-chip microcomputer with built-in multiprocessor
JPH10154124A (en) Microprocessor and multiprocessor system
JPS62150459A (en) Single chip microcomputer
JPH03134783A (en) Single chip microcomputer
JPS63279359A (en) Data transfer device for multi-cpu
JPS6214866B2 (en)
JPS62221062A (en) Single chip microcomputer
JPH05242008A (en) Data processor
JPH06301641A (en) Electronic computer
JPS5854462A (en) Shared memory device
JPS63128464A (en) Processor circuit
JPH0816535A (en) Cpu system
JPH0635864A (en) Interruption control circuit for multiprocessor
JPH02128269A (en) Program initial loading system