JPS63208965A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS63208965A
JPS63208965A JP62044289A JP4428987A JPS63208965A JP S63208965 A JPS63208965 A JP S63208965A JP 62044289 A JP62044289 A JP 62044289A JP 4428987 A JP4428987 A JP 4428987A JP S63208965 A JPS63208965 A JP S63208965A
Authority
JP
Japan
Prior art keywords
hold
signal
cpu
output
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.)
Granted
Application number
JP62044289A
Other languages
Japanese (ja)
Other versions
JP2569534B2 (en
Inventor
Toshinori Tamura
田村 俊則
Yukihiro Nishiguchi
西口 幸弘
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 JP62044289A priority Critical patent/JP2569534B2/en
Publication of JPS63208965A publication Critical patent/JPS63208965A/en
Application granted granted Critical
Publication of JP2569534B2 publication Critical patent/JP2569534B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To improve the executing efficiency of a program incorporated into a CPU by stopping the operation of the CPU only when an external access action is carried out by the CPU in a hold accepting state. CONSTITUTION:When a hold request signal HOLD is set at '1', a hold control circuit 2 outputs a hold accepting state signal HLDMD to an access control circuit 12 in the CPU 1 and a hold signal HLD to an external bus interface 3 respectively. When the interface 3 receives the signal HLD, the external bus signal connected to a peripheral chip is set at a high impedance. While the contents of a built-in program memory 11 are continuously executed by the CPU 1 even though the signal HLDM is outputted. However, the operation of the CPU 1 is stopped by the circuit 12 in case external memory access is produced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムを記憶する内蔵プログラムメモリ
と、該内蔵プログラムメモリに記憶されているプログラ
ムの指示にしたがい、演算を実行するCPUと、外部メ
モリに対しアクセスするための外部バス信号を有する外
部バスインタフェースと、ホールド信号と、該ホールド
信号を受はホールド受付状態を示すホールド状態信号お
よび外部バス信号をハイ・インピーダンス状態にする信
号。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention comprises a built-in program memory that stores a program, a CPU that executes calculations according to instructions of the program stored in the built-in program memory, and an external An external bus interface having an external bus signal for accessing a memory, a hold signal, and a signal that receives the hold signal and sets the hold state signal indicating a hold acceptance state and the external bus signal to a high impedance state.

を発生するホールド制御回路とを備えたマイクロコンピ
ュータ(以下、マイコンと称す)に間する。
A microcomputer (hereinafter referred to as a microcomputer) is equipped with a hold control circuit that generates a hold control circuit.

(従来の技術〕 アドレスバス、データバスおよびメモリを共有するマイ
コンの応用システムにおいて共有バスの制御権を管理し
ているCPUとCPUにバス使用要求を出し、許可され
てバスを使用する周辺LSIとが存在する0周辺LSI
側からメモリをアクセスするにはCPUのアドレスバス
、データバス、リード信号およびライト信号(以下”外
部バス信号”と称す)をハイ・インピーダンスにしなけ
ればならない、一般に、このようにCPUを共有バスか
ら切り離し、周辺LSI側がアクセス可能な状態にする
ためにホールド機能が使用される。ここで、バスおよび
メモリ共有システムの例としてCPUとDMAC(ダイ
レクト・メモリ・アクセス・コントローラ)を用いたシ
ステムを考える。第6図はアドレスバス、データバスお
よびメモリを共有するDMAシステムのブロック図、第
7図はそのタイミングチャートである。 CPU 60
1は外部アクセスを行なうことによりメモリ603をア
クセスすることができる。一方、周辺袋@604はメモ
リ603をアクセスする必要が生じた時DMAC602
に対してDMA !要求するOM^要求信号DRQを出
す、 DMAC602はDMA要求信号DRQ 8受け
るとcpu ao+に対してホールド要求信号HOLD
を出す、 CPU 601はホールド要求信号H叶0を
受けると、外部バス信号をハイ・インピーダンスにして
CPU 601がメモリ603ヲアクセスできない状態
にする。そのあとCPU 601はホールド要求信号H
OLDが受けつけられたことを知らせるホールド受付は
信号HLDAをDMAC602に出し、DMAC602
はホールド受付は信号HLDAM受けると周辺装置60
4に対してDMAが受けつけられたことを知らせるDM
A受付は信号DACにを出す。
(Prior art) In an application system of microcontrollers that share an address bus, data bus, and memory, a CPU that manages the control right of the shared bus issues a bus use request to the CPU, and if granted, a peripheral LSI that uses the bus 0 peripheral LSI where exists
To access memory from the shared bus, the CPU's address bus, data bus, read signals, and write signals (hereinafter referred to as "external bus signals") must be set to high impedance. A hold function is used to disconnect and make it accessible to the peripheral LSI side. Here, a system using a CPU and a DMAC (Direct Memory Access Controller) will be considered as an example of a bus and memory sharing system. FIG. 6 is a block diagram of a DMA system that shares an address bus, data bus, and memory, and FIG. 7 is a timing chart thereof. CPU 60
1 can access the memory 603 by performing external access. On the other hand, when the peripheral bag @604 needs to access the memory 603, the DMAC 602
DMA against! When the DMAC 602 receives the DMA request signal DRQ 8, it issues a hold request signal HOLD to the CPU ao+.
When the CPU 601 receives the hold request signal H00, it sets the external bus signal to high impedance so that the CPU 601 cannot access the memory 603. After that, the CPU 601 sends a hold request signal H
The hold reception notifying that OLD has been accepted sends a signal HLDA to the DMAC 602, and the DMAC 602
When the hold reception is received, the peripheral device 60 receives the signal HLDAM.
DM informing that DMA was accepted for 4
The A reception outputs a signal to the DAC.

以上のようにホールド機能を使用してDMAC:602
は共有バスを使ってCPU 601を介さずにメモリ6
03とデータの転送をすることができる。従来技術とし
では、u PD7809のホールド機能制御回路(u 
PD7809ユーザーズマニアル(IEM−8400)
の第11.2章)がある。
DMAC:602 using the hold function as above
uses a shared bus to access memory 6 without going through CPU 601.
Data can be transferred with 03. As a conventional technology, the hold function control circuit (u
PD7809 User's Manual (IEM-8400)
Chapter 11.2).

以下にCPUにおける従来のホールド機能の制御回路を
説明する。第8図は従来のホールド制御機能を備えたマ
イコンのブロック図である。CPUは内蔵プログラムメ
モリ11の内容にしかって演算を実行する。その他にC
PUはメモリアクセス制御を行なうアクセス制御回路+
2Aを備えている。アクセス制御回路+2Aより外部ア
クセス信号が出力されると外部バスインタフェース3は
CPU内部アドレスバス・データバス4の内容をアドレ
スバス・データバス4を介して出力しリード信号面また
はライト信号WRを用いて外部の周辺袋Mliアクセス
する。ホールド要求信号HOLDが1”になると、ホー
ルド制御回路2Aはホールド要求が発生したことを知ら
せるホールド受付は状態信号HLDMOをCPUへ、ホ
ールド信号)ILOを外部バスインタフェース3に対し
発生する(以下ホールド制御回路2Aがホールド要求信
号HLDMOをcpu +へホールド信号HLDを外部
バスインクフェース3へ発生した状態を”ホールド受付
は状態”と称す> 、 cpuはホールド受付は状態信
号HLDMDを受けるとCPU1をホールド受付は状態
を示すステートT MLOに固定させ、CPUの動作を
止めで一切のプログラムの実行を直ちに停止する。また
、外部バスインタフェース3はホールド信号ゼを受ける
と周辺チップにつながっている外部バス信号をハイ・イ
ンピーダンスにする。ホールド受付は状態になると、ホ
ールド制御回路2Aは、ホールド要求信号HOLDを受
ゆつけたことをあられすホールド受付信号HLDAを1
″′にする。
A conventional hold function control circuit in a CPU will be described below. FIG. 8 is a block diagram of a conventional microcomputer with a hold control function. The CPU executes calculations according to the contents of the built-in program memory 11. Other C
PU is an access control circuit that performs memory access control +
Equipped with 2A. When an external access signal is output from the access control circuit +2A, the external bus interface 3 outputs the contents of the CPU internal address bus/data bus 4 via the address bus/data bus 4 and uses the read signal surface or write signal WR. Access the external peripheral bag Mli. When the hold request signal HOLD becomes 1'', the hold control circuit 2A sends a status signal HLDMO to the CPU to notify that a hold request has occurred, and generates a hold signal (hold signal) ILO to the external bus interface 3 (hereinafter referred to as hold control). The state in which the circuit 2A generates the hold request signal HLDMO to the CPU + and the hold signal HLD to the external bus interface 3 is referred to as the "hold acceptance state". When the CPU receives the hold acceptance state signal HLDMD, it accepts the hold of the CPU1. is fixed at the state T MLO indicating the state, and stops the operation of the CPU and immediately stops the execution of all programs.Furthermore, when the external bus interface 3 receives the hold signal 0, it outputs the external bus signals connected to the peripheral chips. When the hold reception state is set, the hold control circuit 2A sets the hold reception signal HLDA to 1 to indicate that it has received the hold request signal HOLD.
Make it ″′.

第9図はプログラム実行中にホールド要求信号HOLD
が”0″から”1”になった場合およびホールド要求信
号HOLDが”1”から”0″になった場合のタイミン
グチャートである。今、マシンサイクルがT1.T2.
T3というステートからなっていで、T3が最終ステー
トであるとする。ホールド要求信号HOLDが”1“に
なると、ステート■3の最終クロックで外部バス信号を
ハイ・インピーダンスにしてステートT HLOにうつ
る。同時にホールド受付は信号HLD^を”1″にする
、ステートT、4.。では常にホールド要求信号HOシ
0をチェ・シフしホールド要求信号HOLDの”0″を
検出すると次のステートの第2クロツクでホールド受付
は信号HLDAを”0”にし、最終クロックで外部バス
信号のハイ・インピーダンス状態を解除し、次のマシン
サイクルに進む。
Figure 9 shows the hold request signal HOLD during program execution.
2 is a timing chart when the hold request signal HOLD changes from "0" to "1" and when the hold request signal HOLD changes from "1" to "0". Now, the machine cycle is T1. T2.
Assume that the state consists of states T3, and T3 is the final state. When the hold request signal HOLD becomes "1", the external bus signal is made high impedance at the final clock of state 3 and transferred to state THLO. At the same time, hold reception sets the signal HLD^ to "1", state T, 4. . Then, the hold request signal HOSH0 is always checked and when the hold request signal HOLD is detected as "0", the hold acceptance signal is set to "0" at the second clock of the next state, and the external bus signal is changed at the final clock. Release the high impedance state and proceed to the next machine cycle.

(発明が解決しようとする問題点) 上述した従来のホールド機能を備えたマイコンでは、ホ
ールド要求信号HOLDが受けつけられるだけで直ちに
CPUを停止しホールド受付は状態となり、ホールド受
付は状態では周辺LSIが共有バス、メモリを使用する
ためにCPUの外部アクセスを禁止するが、そのために
内蔵プログラムの実行までもが中断されることになり、
プログラムメモリを内蔵したシングルチップマイコンで
は、たとえホールド受付は状態で共有バスを使用できな
くても内蔵プログラムを実行できるにもかかわらず従来
の制御回路ではCPUの動作を停止するため内蔵プログ
ラムの実行効率が下がるという欠点がある。
(Problem to be Solved by the Invention) In the conventional microcontroller equipped with the hold function described above, when the hold request signal HOLD is received, the CPU is immediately stopped and the hold reception becomes the state. External access to the CPU is prohibited in order to use the shared bus and memory, but this also interrupts the execution of internal programs.
In single-chip microcontrollers with built-in program memory, the built-in program can be executed even if the shared bus cannot be used due to the hold reception state.However, in conventional control circuits, the CPU operation is stopped, so the execution of the built-in program is efficient. The disadvantage is that the value decreases.

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

本発明のマイクロコンピュータは、ホールド受付は状態
中にCPUによる外部アクセス動作を検出したときのみ
CPUの動作を停止させるアクセス制御回路を有してい
る。
The microcomputer of the present invention has an access control circuit that stops the operation of the CPU only when an external access operation by the CPU is detected during the hold acceptance state.

〔作 用〕[For production]

ホールド信号を受けつけると外部バス信号はハイ・イン
ピーダンスになるが、CPUの実行を停止するのではな
く、CPUによる外部アクセス動作の実行までCPUの
動作を停止させないため、内蔵プログラムの実行効率が
向上する。
When a hold signal is received, the external bus signal becomes high impedance, but instead of stopping CPU execution, it does not stop CPU operation until the CPU executes an external access operation, improving the execution efficiency of internal programs. .

(実施例〕 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明のマイコンの一実施例の全体のブロック
図である0本実施例が第8図の従来例と異なるところは
、アクセス制御回路12の動作およびアクセス制御回路
12からホールド制御回路2ヘホールド受付は状態禁止
信号01SHLDがつけくわわるところである。ホール
ド受付は状態禁止信号0ISHLDというのは、ホール
ド制御回路2がホールド受付は状態信号HLDMOを出
さないようにする信号である。その他は同様の機能であ
るので説明を省略する。
FIG. 1 is an overall block diagram of an embodiment of a microcomputer according to the present invention. This embodiment differs from the conventional example shown in FIG. 8 in that the operation of the access control circuit 12 and the hold control circuit from the access control circuit 12 The hold reception to 2 is where the state prohibition signal 01SHLD is added. The hold reception state prohibition signal 0ISHLD is a signal that prevents the hold control circuit 2 from outputting the hold reception state signal HLDMO. Since the other functions are the same, the explanation will be omitted.

第2図はアクセス制御回路12の詳細図、第3図はホー
ルド制御回路2の詳細図、第4図は外部バスインタフェ
ース3の詳細図、第5図は第2図、第3図の回路動作の
タイミング図である。φ]およびΦ2は2相のシステム
クロックである。
Fig. 2 is a detailed diagram of the access control circuit 12, Fig. 3 is a detailed diagram of the hold control circuit 2, Fig. 4 is a detailed diagram of the external bus interface 3, and Fig. 5 is the circuit operation of Figs. 2 and 3. FIG. φ] and φ2 are two-phase system clocks.

アクセス制御回路12は、アンドゲート101.+02
゜+04j09.110,113と、インバータ103
.108と、オアゲート105,112と、ラッチ10
6,107.INで構成されている。ホールド制御回路
2は、ラッチ301〜305.312,313と、RS
フリップフロtンブ304.306と、アンドゲート3
07.309.311と、ノアゲート308.310と
、その他のゲート回路で構成されている。外部バスイン
タフェース3は、インバータ401 と、アンドゲート
402,403と、スリーステートバッファ404〜4
08で構成されている。
The access control circuit 12 includes AND gates 101 . +02
゜+04j09.110,113 and inverter 103
.. 108, or gates 105, 112, and latch 10
6,107. It is composed of IN. The hold control circuit 2 includes latches 301 to 305, 312, 313, and RS
Flip flop 304, 306 and AND gate 3
07.309.311, NOR gate 308.310, and other gate circuits. The external bus interface 3 includes an inverter 401, AND gates 402 and 403, and three-state buffers 404 to 4.
It consists of 08.

まず、内蔵プログラムメモリ11に記憶されているプロ
グラムの実行時にホールド要求信号HOLDが発生した
時のアクセス制御回路12およびホールド制御回路2に
ついて第2図のアクセス制御回路12の詳細図、第3図
のホールド制御回路2の詳細図および第5図のタイミン
グチャートを用いで述べる。
First, regarding the access control circuit 12 and the hold control circuit 2 when the hold request signal HOLD is generated during execution of a program stored in the built-in program memory 11, the detailed diagram of the access control circuit 12 in FIG. 2 and the detailed diagram of the access control circuit 12 in FIG. This will be described using a detailed diagram of the hold control circuit 2 and a timing chart in FIG.

いま、サイクルM2のシステムクロックφ1が”1”の
サイクルでホールド要求信号)10LD;/)(”O”
から”1”に変化したとする。すると、次のシステムク
ロックΦ2(サイクルM2)でラッチ301のd出力は
”1”になる、ラッチ301のQ出力が次のシステムク
ロックφ1(サイクルM3)でラッチ302にラッチさ
れ、次のシステムクロ・νりφ2(サイクルM3)でラ
ッチ303にラッチされる。ホールド要求信号H叶0が
2クロック間″1”であるのでラッチ301のd出力と
ラッチ303のd出力がともに”1”となり、アンドゲ
ート307の出力が”1′となり、次のシステムクロッ
クφ1(サイクルM4)でRSフリップフロップ304
がセットされる。もし、逆にホールド要求信号HOLO
が2クロック間”0”であればラッチ301のQ出力と
ラッチ303のQ出力がともに”0”となりノアゲート
308の出力が”1”となり次のシステムクロックφ1
でRSフリップフロップ304はリセットされる。今は
ホールド要求信号HOLDが2クロック間”1”でRS
フリップフロップ304がセ、ツトされていて外部アク
セス命令の実行ではない場合を考える。外部アクセス要
求信号SLEXMは”0”であるからアンドゲート++
0の出力DISHLDは”0”となり、ノアゲート31
0の出力は”1″となる。そとて次のシステムクロック
中2(サイクルM4)でラッチ312のQ出力は”1”
、次のシステムクロックφ1(サイクルM5)でラッチ
313のC出力、すなわちホールド受付は状態信号HL
OMOは”1”となる。ざらに、次のシステムクロック
φ2(サイクルM5)でラッチ305のC出力は”0”
となってホールド信号HLDが”0”になる。
Now, in cycle M2, when the system clock φ1 is "1", the hold request signal)10LD;/)("O"
Suppose that the value changes from 1 to 1. Then, the d output of the latch 301 becomes "1" at the next system clock Φ2 (cycle M2), the Q output of the latch 301 is latched by the latch 302 at the next system clock Φ1 (cycle M3), and the next system clock - It is latched by the latch 303 at νriφ2 (cycle M3). Since the hold request signal H0 is "1" for two clocks, both the d output of the latch 301 and the d output of the latch 303 become "1", the output of the AND gate 307 becomes "1", and the next system clock φ1 (Cycle M4) RS flip-flop 304
is set. If, on the other hand, the hold request signal HOLO
If is "0" for two clocks, both the Q output of latch 301 and the Q output of latch 303 are "0", the output of NOR gate 308 is "1", and the next system clock φ1
Then, the RS flip-flop 304 is reset. Currently, the hold request signal HOLD is “1” for 2 clocks and RS
Consider a case where flip-flop 304 is set and an external access instruction is not being executed. Since the external access request signal SLEXM is “0”, the AND gate ++
The output DISHLD of 0 becomes “0” and the NOR gate 31
The output of 0 becomes "1". Then, in the next system clock 2 (cycle M4), the Q output of the latch 312 becomes “1”.
, at the next system clock φ1 (cycle M5), the C output of the latch 313, that is, the hold acceptance is the state signal HL.
OMO becomes "1". Roughly speaking, the C output of the latch 305 becomes “0” at the next system clock φ2 (cycle M5).
As a result, the hold signal HLD becomes "0".

次のシステムクロックφ1でラッチ306の出力である
ホールド受付は信号HLDAは”1”となる、ホールド
信号)ILDが”0”になるとインバータ401の出力
が”1”となり、データインタイミングおよびデータイ
ンタイミングが”1”であればアンドゲート402.4
03の出力は”1”となるので、トライステートバッフ
ァ404,405につながるデータバスはハイ・インピ
ーダンスになる。このように、内蔵プログラムメモリ1
1に記憶されでいるプログラムの実行時にはホールド要
求信号HOLDが発生すると直ちにホールド受付は状態
になる。また、ホールド受付は状態信号HLDMOが”
1”であっても外部アクセス要求信号SLEXMが”0
”であるのでアンドゲート109の出力は”0”となり
ラッチ111のC出力も”0″となる。よって、CPU
の2相の動作クロックCK1.Cに2はオアゲート11
2.アンドゲート113ヲ介してシステムクロックφ1
..t+2と同相で出力される。ゆえにホールド受付は
状態であってもCPUは動作を続ける。
At the next system clock φ1, the hold reception signal HLDA, which is the output of the latch 306, becomes "1". When the hold signal (hold signal) ILD becomes "0", the output of the inverter 401 becomes "1", and the data in timing and data in If the timing is “1”, AND gate 402.4
Since the output of 03 becomes "1", the data bus connected to tristate buffers 404 and 405 becomes high impedance. In this way, the built-in program memory 1
When the program stored in 1 is executed, the hold reception status is immediately changed to the hold reception status as soon as the hold request signal HOLD is generated. In addition, for hold reception, the status signal HLDMO is "
Even if the external access request signal SLEXM is “0”
”, the output of the AND gate 109 is “0” and the C output of the latch 111 is also “0”. Therefore, the CPU
The two-phase operating clock CK1. 2 to C is or gate 11
2. System clock φ1 via AND gate 113
.. .. It is output in phase with t+2. Therefore, even if the hold reception is in the state, the CPU continues to operate.

次に、ホールド受付は状態中に外部メモリアクセスが発
生した場合について述べる。一般に、外部メモリアクセ
スは外部メモリアクセス信号の規格、メモリのアクセス
時閉の規格のため3サイクル以上の時間が必要である。
Next, we will discuss the case where an external memory access occurs during the hold reception state. Generally, external memory access requires three cycles or more due to the standards for external memory access signals and the standards for closing when accessing the memory.

プログラムメモリ11から外部アクセス命令がサイクル
M6のシステムクロックφ1のタイミングで出力される
とすると、CPUはシステムクロック小1(サイクルM
6)の立上がりで外部アクセス要求信号SLEXMを出
力する。外部アクセス要求信号SLEXMが”1”にな
るとホールド受付は状態信号HLDMOが”1”および
インバータ10日の出力が1”であるのでアンドゲート
109の出力は”1”となり、サイクルM6のシステム
クロックΦ1でう1シチ111のC出力は1″となる。
Assuming that an external access instruction is output from the program memory 11 at the timing of system clock φ1 of cycle M6, the CPU outputs the system clock small 1 (cycle M
6), outputs an external access request signal SLEXM. When the external access request signal SLEXM becomes "1", the hold reception is performed because the status signal HLDMO is "1" and the output of the inverter 10 is "1", so the output of the AND gate 109 becomes "1", and the system clock Φ1 of cycle M6 The C output of the second circuit 111 is 1''.

したがうで、オアゲート112の出力は1”、アンドゲ
ート113の出力はO”となり、CPUを動作させるC
PUクロックCKIは1”、Cに2は0”となる。以上
のようにラッチ111のC出力が”1“の間はCPUク
ロックCに1力び+” 、Cに2が0″と固定されでい
るためCPU1は動作を停止している。このようにホー
ルド受付は状態であるために、外部アクセス要求信号S
LEXM tfi″1”であっても外部アクセス信号は
出力されず、ホールド受付は状態が続く、そこで、サイ
クルM6のシステムクロックφ1が”1”のサイクル中
にホールド要求信号HOLDが”1”から”0”にかわ
ったとすると、次のシステムクロックφ2(サイクルM
6)でラッチ301のd出力が”0”になり、次のシス
テムクロックφ1(サイクルM7)でラッチ302のd
出力が”0“に、その次のシステムクロックφ2(サイ
クルM7)でラッチ303のC出力が”0“になる、2
クロック間ホールド要求信号HOLDが0″であるとノ
アゲート308の出力が”1”になり次のシステムクロ
ックφ1(サイクルM8)でRSフリップフロップ30
4はリセットされる。ノアゲート310の出力が“0”
になるので次のシステムクロ・ンクφ2(サイクルM8
)でラッチ312のC出力は0”、次のシステムクロッ
クφ1(サイクルM9)でラッチ313のC出力、すな
わちホールド受付ケ状態信号HLDMOは”0”となる
0次のシステムクロックφ2(サイクルM9)でラッチ
305の出力Qは1”となり、ホールド信号HLD“1
″が出力される。これにより外部バス信号のハイ・イン
ピーダンスは解除される。また、ホールド受付は状態信
号HLDMOが”0”になった時に88フリツプフロツ
プ306はリセットされるのでホールド受付は信号HL
D^信号はサイクルM9のシステムクロックφ1が”1
”で、システムクロック中2カ<0”となる0以上のよ
うにホールド受付は状態は終了する。
Therefore, the output of the OR gate 112 is 1", the output of the AND gate 113 is O", and the C
The PU clock CKI is 1", and the clock C is 0". As described above, while the C output of the latch 111 is "1", the CPU clock C is fixed at 1 +" and C is fixed at 0", so the CPU 1 stops operating. Since the hold reception is in this state, the external access request signal S
Even if LEXM tfi is "1", the external access signal is not output and the hold reception status continues. Therefore, during the cycle in which the system clock φ1 of cycle M6 is "1", the hold request signal HOLD changes from "1" to "1". 0”, the next system clock φ2 (cycle M
6), the d output of the latch 301 becomes "0", and the d output of the latch 302 becomes "0" at the next system clock φ1 (cycle M7).
The output becomes "0", and the C output of the latch 303 becomes "0" at the next system clock φ2 (cycle M7), 2
When the inter-clock hold request signal HOLD is 0'', the output of the NOR gate 308 becomes ``1'', and the RS flip-flop 30 is activated at the next system clock φ1 (cycle M8).
4 is reset. The output of Noah gate 310 is “0”
Therefore, the next system clock φ2 (cycle M8
), the C output of the latch 312 becomes 0", and at the next system clock φ1 (cycle M9), the C output of the latch 313, that is, the hold reception status signal HLDMO becomes "0". The 0th order system clock φ2 (cycle M9) The output Q of the latch 305 becomes 1, and the hold signal HLD becomes 1.
'' is output. This releases the high impedance of the external bus signal. Also, when the hold reception status signal HLDMO becomes "0", the 88 flip-flop 306 is reset, so the hold reception is performed by the signal HL.
For the D^ signal, system clock φ1 in cycle M9 is “1”.
”, the hold acceptance state ends as 0 or more, where 2<0 during the system clock.

次に、外部アクセス時のアクセス制御回路12の動作に
ついて述べる。第2図において、ホールド受付は状態信
号HLDMOが”0”になると、アンドゲート109の
出力が”0”となりサイクルM9のシステムクロックφ
1でラッチ111のC出力は”0”に、C出力は”1”
になる。また、アンドゲート101の出力が”1”とな
りインバータ10日の出力が”1”であるからアンドゲ
ート102の出力も”1”、オアゲート105の出力も
”1”となる、よって、サイクルM9のシステムクロッ
クφ1が”1″′の間にラッチ106のQ出力はnl”
、Q出力は”0“となる、したがって、オアゲート11
2の出力は”1”、アンドゲート113の出力は”0”
となり、CP旧を動作させるCPUりOツクCに1は”
1”、Cに2は”0“となる。以上のようにラッチ10
6のQ出力が”1”の間はCPUクロックCに1が”I
” 、Cに2が”0”と固定されているためcpu +
は動作を停止している。また、アンドゲート110の出
力DISHLDは”1”となる。次のシステムクロック
φ2が”1”(サイクルM9)でラッチ107の出力は
1”となり、インバータ108の出力は0”になる、外
部バスインタフェース3はサイクル閘9のφ1、タイミ
ングからサイクルM2のシステムクロックφ2の1周期
間、外部アクセスに必要な3ステートのタイミングをつ
くるためにレディ信号RDY @”0“にする、すると
、インバータ103の出力は”1”となりアンドゲート
104の出力およびオアゲート105の出力は”I”と
なる、よって次のシステムクロック中1(サイクルM1
0)でラッチ106のQ出力は”1”のまま変化しない
のでCPUクロックCにLCに2はそれぞれ”1”、”
0”に固定される0次のシステムクロック中2が”1”
のとき(サイクルM10)にレディ信号ROYが”1”
になるのでアンドゲート104の出力およびオアゲート
105の出力は”0”となる0次のシステムクロックφ
1が”1” (サイクルM11)でラッチ106のQ出
力は”0”となる、したがって、サイクルMflにおい
てはCPUクロックCに1はシステムクロック中1と、
CPUクロックCに2はシステムクロックφ2と同タイ
ミングで動作する。また、サイクルMl+のシステムク
ロック中1が”1”になるタイミングでアンドゲート1
10の出力は0″になる。このようにして外部データア
クセスが実行される。
Next, the operation of the access control circuit 12 during external access will be described. In FIG. 2, for hold reception, when the status signal HLDMO becomes "0", the output of the AND gate 109 becomes "0" and the system clock φ of cycle M9
1, the C output of the latch 111 becomes “0”, and the C output becomes “1”.
become. Also, since the output of the AND gate 101 is "1" and the output of the inverter 10 is "1", the output of the AND gate 102 is also "1", and the output of the OR gate 105 is also "1". While the system clock φ1 is "1", the Q output of the latch 106 is "nl"
, the Q output is "0", therefore, the OR gate 11
The output of 2 is “1”, and the output of AND gate 113 is “0”
So, 1 is for the CPU operating C that runs the old CP.
1", and 2 becomes "0" in C. As described above, latch 10
While the Q output of 6 is “1”, 1 is “I” on the CPU clock C.
”, since 2 is fixed as “0” in C, CPU +
has stopped working. Further, the output DISHLD of the AND gate 110 becomes "1". When the next system clock φ2 is "1" (cycle M9), the output of the latch 107 becomes 1", and the output of the inverter 108 becomes 0". During one cycle of the clock φ2, the ready signal RDY is set to "0" to create the three-state timing necessary for external access. Then, the output of the inverter 103 becomes "1" and the output of the AND gate 104 and the OR gate 105 are set to "1". The output becomes “I”, so 1 in the next system clock (cycle M1
0), the Q output of the latch 106 remains "1" and does not change, so the CPU clock C, LC and 2 are "1", respectively.
2 of the 0-order system clocks fixed at 0 is 1.
When (cycle M10), the ready signal ROY is “1”
Therefore, the output of the AND gate 104 and the output of the OR gate 105 are "0", which is the zero-order system clock φ.
When 1 is "1" (cycle M11), the Q output of the latch 106 is "0".Therefore, in cycle Mfl, 1 in the CPU clock C becomes 1 in the system clock.
The CPU clock C2 operates at the same timing as the system clock φ2. Also, at the timing when 1 in the system clock of cycle Ml+ becomes "1", the AND gate 1
The output of 10 becomes 0''. In this way, external data access is performed.

次に、外部アクセス要求信号SLEXMとホールド要求
信号HOLDが競合した場合について述べる。サイクル
M8のシステムクロック中1ステートの間にホールド要
求信号HOLDが”0”から”1“にがわると、前述し
たような動作を経てサイクルMIOのシステムクロック
中1のタイミングT:Rsフリップフロップ304はセ
ットされる。ところが、ホールド受付は状態禁止信号D
ISHLDが”1″であるためにノアゲート310の出
力は”0”のままである9次のシステムクロック中1(
サイクルM11)でホールド受付は状態禁止信号DIS
HLD信号が”0”になるとノアゲート310の出力は
”1”となる、そしてサイクルMI2のシステムクロ・
ンクΦ1でホールド受付は状態信号HLDMOが”1”
になりホールド受付は状態にうつる。このように、本実
施例では外部データアクセスが終了するまでホールド受
付は状態禁止信号DISHLDによってホールド受付は
状態にうつるのを禁止している。
Next, a case will be described in which there is a conflict between the external access request signal SLEXM and the hold request signal HOLD. When the hold request signal HOLD changes from "0" to "1" during one state of the system clock in cycle M8, the timing T:Rs flip-flop 304 goes through the above-described operation and returns to the timing T:Rs flip-flop 304 in one state of the system clock in cycle MIO. is set. However, the hold reception is a state prohibition signal D.
Since ISHLD is "1", the output of the NOR gate 310 remains "0".
In cycle M11), hold reception is performed by the state prohibition signal DIS.
When the HLD signal becomes "0", the output of the NOR gate 310 becomes "1", and the system clock signal of cycle MI2
For hold reception at link Φ1, status signal HLDMO is “1”
The hold reception is transferred to the state. As described above, in this embodiment, the hold reception state is prohibited from transitioning to the hold reception state by the hold reception state prohibition signal DISHLD until the external data access is completed.

本実施例では外部データアクセスとホールド受付は状態
との動作について述べたが、ホールド受付す状態で外部
バスを使用できなくても内部ROMプログラムメモリを
用いてメインプログラムを実行している問、外部バスイ
ンタフェースを起動させ、外部のプログラムメモリをア
クセスするまでcpu を停止させないことができる。
In this embodiment, the operation of external data access and hold reception has been described with respect to the state. It is possible to activate the bus interface and not stop the CPU until external program memory is accessed.

したがって、外部プログラムメモリをアクセスするまで
CPUを停止させないために第2図において外部アクセ
ス要求信号SLEXMの代りに外部プログラムメモリア
クセスを示す信号を用いて前記実施例と同様な制御を行
なうことができる。
Therefore, in order to prevent the CPU from stopping until the external program memory is accessed, the same control as in the previous embodiment can be performed by using a signal indicating external program memory access instead of the external access request signal SLEXM in FIG.

(発明の効果) 以上説明したように本発明は、ホールド受付は状態中に
CPUによる外部アクセス動作が発生した時にだけCP
υ′の動作を停止させることにより、ホールド受付は状
態で外部バスを使用できなくても、CPUから外部アク
セス要求信号が出力されるまで内蔵プログラムによるC
PUの動作を停止させないで内蔵プログラムの実行効率
を上げることができるという大きな効果がある。
(Effects of the Invention) As explained above, in the present invention, hold reception is performed only when an external access operation by the CPU occurs during the state.
By stopping the operation of υ′, even if the hold reception state is such that the external bus cannot be used, the internal program will continue to use the CPU until an external access request signal is output from the CPU.
This has the great effect of increasing the execution efficiency of built-in programs without stopping the operation of the PU.

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

第1図は本発明のマイクロコンピュータの一芙施例の構
成図、第2図はアクセス制御回路12の詳細図、第3図
はホールド制御回路2の詳細図、第4図は外部バスイン
タフェース3のデータバス、アドレスバス、リート/ラ
イト信号RD/WRの入出力制御図、第5図はアクセス
制御回路12とホールド制御回路2の動作タイミング図
、第6図はバスおよびメモリを共有するDMAシステム
図、第7図はホールドタイミング図、第8図はマイクロ
コンピュータの従来例の構成図、第9図は第8図のマイ
クロコンピュータのホールド制御タイミング図である。 1・−−−−−c p u、 2 ・−・−・ホールド制御回路、 3・・・・・・外部バスインタフェース、4・・・・・
・内部アドレスバス・データバス、11・・・・・・プ
ログラムメモリ、 +2−−−−−・アクセス制御回路、 106、107. +11,301,302,303,
305,312.313・・・・・・・・・・・・ラッ
チ、 304.306−−−−−−RSフリップフ0ツブ、1
0t、+02.+04.+09.+10,113.30
7,309.311.402゜403−−−−−−アン
ドゲート、 105.112−・・・・・オアゲート、103.40
1−−−−−−インバータ、404.405,406,
4G7,408−−−−−・・・・・・スリーステート
バッファ、DACに・・・・・・ダイレクトメモリアク
セス受付は信号、0口0・・・・・・ダイレクトメモリ
アクセス要求信号、HLD −・・・・・ホールド信号
、 HOLO−・・・・・ホールド要求信号、HLDA−・
・・・・ホールド受付は信号、HLDMD −・・ホー
ルド受付は状態信号、DISHLO−・・ホールド受付
は状WBM止信号、SLEXM −・・外部アクセス要
求信号、(tll、(t)2−・・・・・システムクロ
ック、Cに1.Cに’l −−−−−−−−−CPU 
’7 C1ツ’7、RDY −・・・・・レディ信号。 第1図 第6図 ・T・−ルト要求塩号HOLD ア)−レスバス、データバス =======]x−−
−−−−−−−−−−く======二リード・う什化
号戸り、■慢        “−一−−−−−−−−
−−・ボールド斐I引ア化号HLDA
1 is a block diagram of one embodiment of the microcomputer of the present invention, FIG. 2 is a detailed diagram of the access control circuit 12, FIG. 3 is a detailed diagram of the hold control circuit 2, and FIG. 4 is a detailed diagram of the external bus interface 3. Figure 5 is an operation timing diagram of the access control circuit 12 and hold control circuit 2, and Figure 6 is a DMA system that shares the bus and memory. 7 is a hold timing diagram, FIG. 8 is a configuration diagram of a conventional example of a microcomputer, and FIG. 9 is a hold control timing diagram of the microcomputer shown in FIG. 1.------cpu, 2.----Hold control circuit, 3..External bus interface, 4..
・Internal address bus/data bus, 11...Program memory, +2--Access control circuit, 106, 107. +11,301,302,303,
305,312.313・・・・・・・・・Latch, 304.306---RS flip flop 0 knob, 1
0t, +02. +04. +09. +10,113.30
7,309.311.402゜403--------AND gate, 105.112---OR gate, 103.40
1-------Inverter, 404.405,406,
4G7, 408 ----- Three-state buffer, to DAC --- Direct memory access reception signal, 0 port 0 --- Direct memory access request signal, HLD − ...Hold signal, HOLO-...Hold request signal, HLDA-...
...Hold reception is a signal, HLDMD--Hold reception is a status signal, DISHLO--Hold reception is a status WBM stop signal, SLEXM--External access request signal, (tll, (t)2-... ...System clock, C1.C'l -----------CPU
'7 C1'7, RDY - Ready signal. Figure 1 Figure 6 ・T・- Route request salt number HOLD A)-Response bus, data bus =======]x--
---
--・Bold HIKI AKA HLDA

Claims (1)

【特許請求の範囲】 プログラムを記憶する内蔵プログラムメモリと、該内蔵
プログラムメモリに記憶されているプログラムの指示に
従い演算を実行するCPUと、外部メモリをアクセスす
るためのデータバス、アドレスバス、リード信号、ライ
ト信号を有する外部バスインタフェースと、ホールド要
求信号と、該ホールド要求信号を受付け、ホールド受付
け状態を示すホールド状態信号およびリード信号、ライ
ト信号をハイ・インピーダンス状態にする信号を発生す
るホールド制御回路とを備えたマイクロコンピュータに
おいて、 ホールド受付け状態中にCPUによる外部アクセス動作
を検出したときのみCPUの動作を停止させるアクセス
制御回路を有することを特徴とするマイクロコンピュー
タ。
[Claims] A built-in program memory that stores programs, a CPU that executes calculations according to instructions of the programs stored in the built-in program memory, a data bus, an address bus, and read signals for accessing external memory. , an external bus interface having a write signal, a hold request signal, and a hold control circuit that receives the hold request signal and generates a hold state signal indicating a hold acceptance state, a read signal, and a signal that puts the write signal in a high impedance state. A microcomputer comprising: an access control circuit that stops the operation of the CPU only when an external access operation by the CPU is detected during a hold acceptance state.
JP62044289A 1987-02-26 1987-02-26 Microcomputer Expired - Lifetime JP2569534B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62044289A JP2569534B2 (en) 1987-02-26 1987-02-26 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62044289A JP2569534B2 (en) 1987-02-26 1987-02-26 Microcomputer

Publications (2)

Publication Number Publication Date
JPS63208965A true JPS63208965A (en) 1988-08-30
JP2569534B2 JP2569534B2 (en) 1997-01-08

Family

ID=12687346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62044289A Expired - Lifetime JP2569534B2 (en) 1987-02-26 1987-02-26 Microcomputer

Country Status (1)

Country Link
JP (1) JP2569534B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324348A (en) * 1992-05-20 1993-12-07 Nec Corp Single chip microcomputer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55116124A (en) * 1979-03-01 1980-09-06 Nippon Telegr & Teleph Corp <Ntt> Information processor
JPS5671129A (en) * 1979-11-15 1981-06-13 Fujitsu Ltd Data processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55116124A (en) * 1979-03-01 1980-09-06 Nippon Telegr & Teleph Corp <Ntt> Information processor
JPS5671129A (en) * 1979-11-15 1981-06-13 Fujitsu Ltd Data processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324348A (en) * 1992-05-20 1993-12-07 Nec Corp Single chip microcomputer

Also Published As

Publication number Publication date
JP2569534B2 (en) 1997-01-08

Similar Documents

Publication Publication Date Title
JP2597954B2 (en) Full pipeline co-occurrence memory controller
TW293105B (en)
JPH07306827A (en) Method and apparatus for execution of synchronous data transmission between digital devices operated at frequency provided with p/q integer ratio relationship
JPS60258671A (en) Processor
JPH10134008A (en) Semiconductor device and computer system
JPH076094A (en) Operating method of computer system for overwriting of write protection state during execution of system management mode and computer system
JPH0258649B2 (en)
JPS608972A (en) Multi-processor system
US5163143A (en) Enhanced locked bus cycle control in a cache memory computer system
JPH0358164A (en) Lock control mechanism for multiprocessor system
US6163828A (en) Methods and apparatus for providing multi-processor access to shared memory
JP2024515055A (en) Seamlessly integrated microcontroller chip
US5546567A (en) System for limiting change in bus clock frequency to duration of I/O operation upon completion signal
JPH0690700B2 (en) Semiconductor integrated circuit
JPS63208965A (en) Microcomputer
EP0462622B1 (en) Microprocessor capable of ensuring flexible recovery time for I/O device
JPS60112158A (en) Control circuit of peripheral device
JPH0290260A (en) Asynchronous access system for dual port memory
JPS59123063A (en) Access system of shared resource of multi-processor system
JPH0551931B2 (en)
JP2539064B2 (en) Microprocessor
JPS63113751A (en) Multi-processor system
JPH03226882A (en) Single chip microcomputer
JPH10154124A (en) Microprocessor and multiprocessor system
JPS621059A (en) Shared memory access method for multi-microprocessor system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term