JPH03183095A - Ram refresh system for microprocessor system - Google Patents

Ram refresh system for microprocessor system

Info

Publication number
JPH03183095A
JPH03183095A JP1320501A JP32050189A JPH03183095A JP H03183095 A JPH03183095 A JP H03183095A JP 1320501 A JP1320501 A JP 1320501A JP 32050189 A JP32050189 A JP 32050189A JP H03183095 A JPH03183095 A JP H03183095A
Authority
JP
Japan
Prior art keywords
signal
refresh
circuit
ram
ale
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
JP1320501A
Other languages
Japanese (ja)
Other versions
JPH0799624B2 (en
Inventor
Shunichi Ito
俊一 伊藤
Yasuhiro Takakura
高倉 康広
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1320501A priority Critical patent/JPH0799624B2/en
Publication of JPH03183095A publication Critical patent/JPH03183095A/en
Publication of JPH0799624B2 publication Critical patent/JPH0799624B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dram (AREA)

Abstract

PURPOSE:To save labor for exchanging a DRAM, which requires refresh, to an SRAM by generating a refresh signal based on a clock signal when stopping a microprocessor, and refreshing a RAM. CONSTITUTION:When a CPU is operated and an ALE signal is periodically outputted, a counter circuit 10 and an FF circuit 11 are reset each time the signal is outputted. When the CPU is stopped, the ALE signal is not generated even when a clock period from the preceding ALE signal is made 13rd period. The circuit 10 counting this 13rd period regards such a state as debugging time and generates an output at H. The FF 11 is inverted to be H and during the inversion, a refresh signal caused by the clock signal is passed through an AND circuit 13 and outputted from an OR circuit 16. Then, the refresh signal caused by the ALE signal is cut by an AND circuit 15. A comparator circuit 12 compares the count value of the circuit 10 with the ALE signal and when refresh is not executed by the clock signal, the refresh signal is switched.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、マイクロプロセッサを用いた装置における擬
似スタティックRAMやダイナミックRAMのリフレッ
シュ方式に係り、特にマイクロプロセッサが停止してい
るときでもRAMをリフレッシュすることが出来るよう
にしたマイクロプロセッサシステムのRAMリフレッシ
ュ方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a refresh method for pseudo-static RAM or dynamic RAM in a device using a microprocessor, and particularly relates to a method for refreshing RAM even when the microprocessor is stopped. The present invention relates to a RAM refresh method for a microprocessor system that enables

[従来の技術] 一般に、マイクロプロセッサには、ここで処理された結
果を記憶するために例えば擬似スタティックRAMやダ
イナミックRAM等の記憶保持用のリフレッシュを必要
とする記憶素子や、スタティックRAMなどのようにリ
フレッシュを必要としない記憶素子などが並用されてい
る。そして、前者の記憶素子のリフレッシュは通常、マ
イクロプロセッサが動作しているときに、これより定期
的に出力されるバス制御出力信号(以下ALE信号とい
う)に基づいて行われている。
[Prior Art] Generally, a microprocessor has a memory element that requires refreshing for memory retention, such as a pseudo-static RAM or a dynamic RAM, or a static RAM, etc., in order to store processed results. Memory elements that do not require refreshing are also used in parallel. The former storage element is normally refreshed based on a bus control output signal (hereinafter referred to as an ALE signal) that is periodically output from the microprocessor while it is operating.

ところで、マイクロプロセッサのプログラム開発を行な
う場合は、−船釣にマイクロプロセッサとしてデパック
装置を用いて連続動作させたり、停止させたりして、そ
のときにRAM内に記憶されている情報を消滅させるこ
となく読み出す必要がある。そして、マイクロプロセッ
サが停止しているときにはマイクロプロセッサのALE
信号が出力されないことからALE信号によるRAMの
リフレッシュを行なえない。したがってリフレッシュを
必要とするRAMを、リフレッシュを必要としないスタ
ティックRAMとあらかじめ交換しておき、RAM内の
情報が消滅しないようにしていた。[発明が解決しよう
とする課題]しかしながら、上述した如くスタティック
RAMに交換する方法にあっては、これに使用するスタ
ティックRAMを別途用意しなければならずコスト高に
なる問題があった。
By the way, when developing a program for a microprocessor, it is necessary to use the Depack device as a microprocessor during boat fishing to operate it continuously and stop it, and at that time erase the information stored in the RAM. It is necessary to read it without any errors. And when the microprocessor is stopped, the microprocessor's ALE
Since the signal is not output, the RAM cannot be refreshed using the ALE signal. Therefore, RAM that requires refreshing is replaced in advance with static RAM that does not require refreshing to prevent information in the RAM from disappearing. [Problems to be Solved by the Invention] However, in the method of replacing the RAM with a static RAM as described above, there is a problem in that the static RAM used for this must be prepared separately, which increases the cost.

また、スタティックRAMの配線のために基板のパター
ンカット等の改修が必要となるために時間がかかるのみ
ならず、後で元の状態に戻すこともできないという問題
もあった。
Further, wiring of the static RAM requires modification such as pattern cutting of the board, which not only takes time but also poses a problem that it is impossible to return to the original state later.

本発明は、以上のような問題点に着目し、これを有効に
解決すべく創案されたものである。
The present invention has focused on the above-mentioned problems and has been devised to effectively solve them.

本発明の目的は、マイクロプロセッサが停止していると
きには、クロック信号に基づいてリフレッシュ信号を発
生するようにし、もってスタティックRAMとの交換を
不要にして、設計評価やデパック効率を向上させること
ができるマイクロプロセッサシステムのRAMリフレッ
シュ方式ヲ提洪するにある。
An object of the present invention is to generate a refresh signal based on a clock signal when the microprocessor is stopped, thereby eliminating the need for replacement with static RAM and improving design evaluation and depacking efficiency. The purpose is to develop a RAM refresh method for microprocessor systems.

[課題を解決するための手段] 本発明は、データを保持し続けるためにリフレッシュ動
作を必要とするRAMを有し、マイクロプロセッサのバ
ス制御出力信号により前記RAMのリフレッシュのコン
トロールを行なうようにしたマイクロプロセッサシステ
ムにおいて、前記バス制御出力信号の連続性を検出する
ための連続性検出回路と、前記バス制御出力信号に同期
してリフレッシュ信号を発生する外部信号同期リフレッ
シュ信号発生回路と、クロック信号によりリフレッシュ
信号を発生する自己リフレッシュ信号発生回路と、上記
検出回路がバス制御出力信号の連続性を検出していると
きは、このバス制御出力信号に同期したリフレッシュ信
号でRAMのリフレッシュを行ない、これに対して非連
続性を検出したときは自己リフレッシュ信号発生回路の
出力信号でRAMのりフレッンユを行なうようにしたリ
フレッシュ信号切換え回路とを設けるようにしたもので
ある。
[Means for Solving the Problems] The present invention has a RAM that requires a refresh operation to continue retaining data, and the refresh of the RAM is controlled by a bus control output signal of a microprocessor. In a microprocessor system, a continuity detection circuit for detecting continuity of the bus control output signal, an external signal synchronous refresh signal generation circuit for generating a refresh signal in synchronization with the bus control output signal, and a clock signal. When the self-refresh signal generation circuit that generates a refresh signal and the detection circuit detect the continuity of the bus control output signal, the RAM is refreshed with a refresh signal synchronized with this bus control output signal, and On the other hand, a refresh signal switching circuit is provided so that when discontinuity is detected, the RAM is refreshed using the output signal of the self-refresh signal generating circuit.

[作用] 通常の動作時においては、マイクロプロセッサが動作し
ていることからこれよりALE信号が定期的に出力され
ており、このALE信号に基づいて発生したリフレッシ
ュ信号でRAM内の情報はリフレッシュされる。
[Function] During normal operation, since the microprocessor is operating, the ALE signal is output periodically, and the information in the RAM is refreshed by the refresh signal generated based on this ALE signal. Ru.

一方、マイクロプロセッサのプログラムの設計評価やデ
パックを行なうときにはマイクロプロセッサの動作が停
止される。するとALE信号の出力も停止されることに
なる。このとき連続性検出回路は、このALE信号の出
力の停止をただちに検出し、リフレッシュ信号切換え回
路を切換えることにより、クロック信号に基づいて発生
したリフレッシュ信号でRAMのリフレッシュを行なう
ようにする。
On the other hand, when performing design evaluation or depacking of a microprocessor program, the operation of the microprocessor is stopped. Then, the output of the ALE signal is also stopped. At this time, the continuity detection circuit immediately detects the stoppage of the output of the ALE signal and switches the refresh signal switching circuit so that the RAM is refreshed with the refresh signal generated based on the clock signal.

この結果、リフレッシュ信号は中断せず、リフレッシュ
動作を必要とするRAMを使用しても、RAM内に記憶
された受信データ等の情報は消滅することなく保持され
ることとなる。
As a result, the refresh signal is not interrupted, and even if a RAM that requires a refresh operation is used, information such as received data stored in the RAM is retained without being lost.

[実施例] 以下に、本発明の好適一実施例を添付図面に基づいて詳
述する。
[Embodiment] A preferred embodiment of the present invention will be described below in detail with reference to the accompanying drawings.

第4図は、本発明に係るRAMリフレ・ノシュ方式を使
用するためのマイクロプロセ、1サシステムを示す概略
図である。
FIG. 4 is a schematic diagram showing a microprocessor system for using the RAM reflex nosh method according to the present invention.

ここで、マイクロプロセッサlは、例えば、図示しない
ドツトマトリックスプリンタを制御するものであり、リ
ードオンリーメモリ (ROM)2にはプリントに必要
なプログラム及び文字、記号等のフォントデータが格納
されている。ランダムアクセスメモリ(RAM)3は外
部からの受信データ等を一時的に記憶するものであり、
これら受信データ等を保持するためにリフレッシュ動作
を必要とする。I10ドライバ4は上記マイクロプロセ
ッサlからの指令を受けて入出力装置を駆動するもので
ある。
Here, the microprocessor 1 controls, for example, a dot matrix printer (not shown), and a read only memory (ROM) 2 stores programs necessary for printing and font data such as characters and symbols. A random access memory (RAM) 3 temporarily stores data received from the outside.
A refresh operation is required to retain these received data. The I10 driver 4 receives instructions from the microprocessor 1 and drives the input/output device.

上記マイクロプロセッサ1.ROM2、RAM3及びI
10ドライバ4は、それぞれ相互にパスライン5により
接続されており、データ及び指令の送受信を行ない得る
ようになっている。
The above microprocessor 1. ROM2, RAM3 and I
The 10 drivers 4 are connected to each other by path lines 5, so that data and commands can be sent and received.

そして、上記r10ドライバ4には、外部装置(図示せ
ず)とのインタフェースを行なうインタフェース回路、
印字を行なう印字ヘッド、行の改行を行なう改行用モー
タ及び上記印字ヘッドを印字方向に移動させるスペーシ
ング用モータが接続されている。
The r10 driver 4 includes an interface circuit for interfacing with an external device (not shown);
A print head for printing, a line feed motor for line feed, and a spacing motor for moving the print head in the printing direction are connected.

そして、ドツトマトリックスプリンタの印字動作は、次
の如く行われる。まず、パソコン等のシステムから文字
コードを受信すると、このコードに対応したROM2の
格納アドレスよりフォントデータを取り出して印字ヘッ
ドのドツト駆動情報として印字ヘッドを駆動し、印字を
行なう。
The printing operation of the dot matrix printer is performed as follows. First, when a character code is received from a system such as a personal computer, font data is extracted from the storage address of the ROM 2 corresponding to this code, and the print head is driven as dot drive information for the print head to perform printing.

また、パソコン等のシステムからの受信データや印字を
するためのドツト駆動情報などは一時的にRAMに格納
されるが、記憶状態を保持するために、このRAMは定
期的にリフレッシュされなければならない。
In addition, data received from systems such as personal computers and dot drive information for printing are temporarily stored in RAM, but this RAM must be refreshed periodically to maintain the stored state. .

このように構成されたシステムに本発明に係るRAMリ
フレッシュ方式が採用されることになる。
The RAM refresh method according to the present invention will be adopted in the system configured as described above.

第1図は本発明に係るR A M !Jフレッシュ方式
例の概略ブロック図を示す。
FIG. 1 shows RAM! according to the present invention. FIG. 2 shows a schematic block diagram of an example J-Fresh method.

図示するごとく外部信号同期リフレッシュ信号発生回路
6は、CPU等から発生されるALE信号に基づいてR
AMのリフレッシュ信号を発生する回路であり、自己リ
フレッシュ信号発生回路7は、図示しないオシレータの
クロック信号に基づいてRAMリフレッシュ信号を発生
する回路である。そして、両回路6,7は、これらのリ
フレッシュ信号を切換えるためのリフレッシュ信号切換
え回路8へ接続されている。
As shown in the figure, the external signal synchronized refresh signal generation circuit 6 receives the R
The self-refresh signal generation circuit 7 is a circuit that generates an AM refresh signal, and the self-refresh signal generation circuit 7 is a circuit that generates a RAM refresh signal based on a clock signal of an oscillator (not shown). Both circuits 6 and 7 are connected to a refresh signal switching circuit 8 for switching these refresh signals.

また、ALE信号はこの信号が連続的に出力されている
か否かを検出するための連続性検出回路9へも人力され
ている。この連続性検出回路9は上記リフレッシュ信号
切換え回路8へ接続されており、検出結果をこの切換え
回路8へ出力するようになっている。ここで上記切換え
回路8は、上記連続性検出回路9からの検出信号がAL
E信号の連続性を示しているときは、上記外部信号同期
リフレッシュ信号発生回路6からのリフレッシュ信号を
出力し、他方、検出信号がALE信号が連続的でなく中
断したことを示したときは、上記自己リフレッシュ信号
発生回路7からのリフレッシュ信号を出力するように構
成されている。
Further, the ALE signal is also manually inputted to a continuity detection circuit 9 for detecting whether or not this signal is continuously output. This continuity detection circuit 9 is connected to the refresh signal switching circuit 8, and outputs the detection result to this switching circuit 8. Here, the switching circuit 8 detects that the detection signal from the continuity detection circuit 9 is AL.
When the E signal indicates continuity, the refresh signal from the external signal synchronized refresh signal generation circuit 6 is output; on the other hand, when the detection signal indicates that the ALE signal is not continuous and has been interrupted, It is configured to output a refresh signal from the self-refresh signal generation circuit 7.

ここで、上記外部信号同期リフレッシュ信号発生回路6
は、ALE信号を入力として、数段のフリップフロップ
回路を組み合わせることによりRAMに必要なリフレッ
シュ信号を発生することができ、また、上記自己リフレ
ッシュ信号発生回路7は、上記外部信号同期リフレッシ
ュ信号発生回路6と同様に、フリップフロップ回路を数
段組み合わせることにより構成することができる。
Here, the external signal synchronized refresh signal generation circuit 6
With the ALE signal as input, the refresh signal necessary for the RAM can be generated by combining several stages of flip-flop circuits, and the self-refresh signal generation circuit 7 can generate the refresh signal generation circuit synchronized with the external signal. Similarly to 6, it can be constructed by combining several stages of flip-flop circuits.

上記連続性検出回路9及びリフレッシュ信号切換え回路
8は、具体的には第2図に示す如く構成される。
The continuity detection circuit 9 and the refresh signal switching circuit 8 are specifically constructed as shown in FIG.

第2図は、上記連続性検出回路9とリフレッシュ信号切
換え回路8の構成を示す図である。
FIG. 2 is a diagram showing the configuration of the continuity detection circuit 9 and refresh signal switching circuit 8.

図示するごとく連続性検出回路9は、クロック信号をカ
ウントするカウンタ回路10と、このカウンタ回路lO
のカウント数が所定の数、例えば13に達すると入力を
受けるフリップフロップ回路11と、上記カウンタ回路
10の出力とALE信号とを比較する比較回路12とに
より主に構成されている。そして、上記比較回路12か
らの出力は、上記カウンタ回路10及びフリップフロッ
ブ回路IIのリセット入力にそれぞれ接続されている。
As shown in the figure, the continuity detection circuit 9 includes a counter circuit 10 that counts clock signals, and a counter circuit 10 that counts clock signals.
It is mainly composed of a flip-flop circuit 11 which receives an input when the count number reaches a predetermined number, for example 13, and a comparison circuit 12 which compares the output of the counter circuit 10 and the ALE signal. The outputs from the comparison circuit 12 are connected to the reset inputs of the counter circuit 10 and flip-flop circuit II, respectively.

上記フリップフロップ回路11は、ALE信号が入力さ
れているとき、即ちALE信号が連続しているときはL
ow”にセットされ、逆に上記カウンタ回路10から人
力が行われたとき、即ちALE信号が連続的でなく中断
したときには“High”にセットされ、これに基づい
て後述する如くリフレッシュ信号の切換えが行われる。
The flip-flop circuit 11 has an L level when the ALE signal is input, that is, when the ALE signal is continuous.
ow", and conversely, when the counter circuit 10 is manually operated, that is, when the ALE signal is not continuous but interrupted, it is set to "High", and based on this, the refresh signal is switched as described later. It will be done.

一方、リフレッシュ信号切換え回路8は、上記フリップ
フロップ回路11の出力とクロック信号により発生され
たリフレッシュ信号とを人力する第1アンド回路13と
、上記フリップフロップ回路11の出力をインバータ1
4を介して反転することにより得られる信号とALE信
号により発生されたリフレッシュ信号とを入力する第2
アンド回路15と、上記第1及び第2アンド回路13゜
15からの出力を人力としてリフレッシュ信号を出力す
るオア回路16とにより主に構成されている。
On the other hand, the refresh signal switching circuit 8 includes a first AND circuit 13 that manually inputs the output of the flip-flop circuit 11 and a refresh signal generated by a clock signal, and a first AND circuit 13 that inputs the output of the flip-flop circuit 11 and a refresh signal generated by the clock signal;
4 and the refresh signal generated by the ALE signal.
It is mainly composed of an AND circuit 15 and an OR circuit 16 which outputs a refresh signal using the outputs from the first and second AND circuits 13 and 15 as a human input.

次に、このように構成された回路の動作について説明す
る。
Next, the operation of the circuit configured as described above will be explained.

まず、ここで使用されるCPUのクロック信号とALE
信号との関係の一例を第3図を基に説明する。
First, the CPU clock signal and ALE used here
An example of the relationship with signals will be explained based on FIG.

1マシンサイクルは、クロック信号の6周期分で構成さ
れており、RAMの読み書き等の長い命令は2マンンサ
イクルクロック信号の12周期分で構成されている。そ
して、長い命令の2マシンサイクルのうち後半の1マシ
ンサイクルにおいてはALE信号は発生しない。また、
CPU動作時にあっては、命令(図示例ではRD/WR
)が連続して発せられることはない。従って、CPUの
通常の動作時にあっては、先のALE信号がCPUより
出力された後、長くともクロック信号が13周周期化は
次のA、 L E信号が出力されることになる。
One machine cycle is made up of 6 periods of a clock signal, and long instructions such as reading and writing from RAM are made up of 12 periods of a 2-man cycle clock signal. The ALE signal is not generated in the second half of the two machine cycles of the long instruction. Also,
During CPU operation, instructions (RD/WR in the illustrated example)
) are never uttered consecutively. Therefore, during normal operation of the CPU, after the previous ALE signal is output from the CPU, the next A, LE signals will be output if the clock signal has a period of 13 cycles at most.

しかしながら、設計評価やデパック時のときには命令実
行後、デパック機を停止させることが出来るため、クロ
ック信号が13周周期化なってもALE信号は発生しな
い。
However, during design evaluation or depacking, it is possible to stop the depacking machine after executing the command, so no ALE signal is generated even if the clock signal has a period of 13 cycles.

このような状況下において、第2図の回路の動作を説明
する。
Under such circumstances, the operation of the circuit shown in FIG. 2 will be explained.

前述の如く、まずCPUの通常動作時においては、AL
E信号は、連続的にすなわち1マシンサイクルあるいは
2マシンサイクルに1度出力されている。このALE信
号は比較回路12を介してフリップフロップ回路11の
リセット端子へ入力され、これを定期的にリセットする
。連続する2つのリセット信号の間には、後述する如く
カウンタ回路10から“High”の入力はなく、従っ
て、上記フリツプフロツプ回路11は、CPUの通常動
作時においては、定期的に入力されるリセット信号(A
LE信号)により常に“Low”にセットされている。
As mentioned above, during normal operation of the CPU, the AL
The E signal is output continuously, ie, once every one machine cycle or every two machine cycles. This ALE signal is inputted to the reset terminal of the flip-flop circuit 11 via the comparison circuit 12, and is periodically reset. As will be described later, there is no "High" input from the counter circuit 10 between two consecutive reset signals, and therefore, the flip-flop circuit 11 receives the reset signal that is periodically input during normal operation of the CPU. (A
LE signal) is always set to "Low".

このフリップフロップ回路11からの出力は、2つに分
岐されて、一方は第1アンド回路13へ入力されて、こ
こでクロック信号によるリフレッシュ信号とアンドが取
られる。ここで前述の如くフリップフロップ回路11か
らの出力はLow”が維持されていることから、この第
1アンド回路13からの出力も“Low”となり、その
結果、クロック信号によるリフレッシュ信号はオア回路
16から出力されることはない。
The output from this flip-flop circuit 11 is branched into two, one of which is input to a first AND circuit 13, where it is ANDed with a refresh signal based on a clock signal. Here, since the output from the flip-flop circuit 11 is maintained at "Low" as described above, the output from the first AND circuit 13 also becomes "Low", and as a result, the refresh signal based on the clock signal is transmitted to the OR circuit 16. It is never output from.

これに対して、分岐された他方の出力は、インバータ1
4により反転されてHigh″となり、この信号は第2
アンド回路15へ入力されて、ここでALE信号による
リフレッシュ信号とアンドが取られる。そして、このリ
フレッシュ信号は、この第2アンド回路15をへてオア
回路16から出力される。
On the other hand, the other branched output is output from the inverter 1.
4 and becomes High'', and this signal is inverted by the second
The signal is input to the AND circuit 15, where it is ANDed with the refresh signal based on the ALE signal. This refresh signal is then outputted from the OR circuit 16 via the second AND circuit 15.

従って、CPUの通常の動作時においては、ALE信号
に基づいたリフレッシュ信号がRAMに向けて出力され
ることになる。
Therefore, during normal operation of the CPU, a refresh signal based on the ALE signal is output to the RAM.

次に、設計評価やデパックを行なう場合には、CPUを
途中で停止する結果、ALE信号の出力が途中で停止さ
れることになり、このときの動作を説明する。
Next, when performing design evaluation or depacking, as a result of stopping the CPU midway, the output of the ALE signal will be stopped midway, and the operation at this time will be described.

まず、CPUが動作してALE信号が定期的に出力され
ているときは、前述の如くその出力毎にカウンタ回路1
0及びフリップフロップ回路11がリセットされていた
が、CPUの動作が停止すると前回のALE信号の発生
からクロック周期が13周周期型なってもALE信号が
発生しない。
First, when the CPU is operating and the ALE signal is output periodically, the counter circuit 1
0 and the flip-flop circuit 11 were reset, but when the operation of the CPU is stopped, no ALE signal is generated even if the clock cycle changes to 13 cycles from the previous generation of the ALE signal.

すると、この13周周期型カウントしたカウンタ回路l
Oは、デパック時であるとみなし、これからの出力を“
High”にする。すると次段のフリップフロップ回路
11は反転して“High”にセットされる。この“H
igh″の状態は、デパック等が終了して次のA L 
E信号が入力されるまで保持することになる。そして、
このフリップフロップ回路11の出力が’High”で
ある間は、前述とは逆に、クロック信号によるリフレッ
シュ信号が第1アンド回路13を介してオア回路16か
ら出力されることとなり、ALE信号によるリフレッシ
ュ信号は第2アンド回路15にてカットされることにな
る。
Then, this 13 cycle type counting circuit l
O assumes that it is depacking time and outputs the output from now as “
High.Then, the next stage flip-flop circuit 11 is inverted and set to High.
In the state of ``high'', the next AL after depacking etc. is completed.
It will be held until the E signal is input. and,
While the output of the flip-flop circuit 11 is 'High', a refresh signal based on the clock signal is output from the OR circuit 16 via the first AND circuit 13, contrary to the above, and the refresh signal based on the ALE signal is output from the OR circuit 16 via the first AND circuit 13. The signal will be cut by the second AND circuit 15.

このように、通常のCPU動作時にあっては、ALE信
号が連続的に発生するのでALE信号によりリフレッシ
ュ信号を発生させ、他方、設計評価やデパック時のよう
にALE信号が連続して発生しないときにあっては、オ
シレータのクロック信号によるリフレッシュ信号に切換
えることができる。
In this way, during normal CPU operation, the ALE signal is generated continuously, so the ALE signal is used to generate the refresh signal.On the other hand, when the ALE signal is not generated continuously, such as during design evaluation or depacking, In this case, it is possible to switch to a refresh signal based on an oscillator clock signal.

ところで、クロック信号によるリフレッシュ信号により
RAMをリフレッシュしている場合に、ALE信号が入
力されたとき直ちにリフレッシュ信号を切換えると、も
しそのときリフレッシュが行われている場合には正常に
リフレッシュされなくなる。従って、このような不具合
をなくすために、比較回路!2でカウンタ回路10のカ
ウント値とALE信号の両方を比較して、クロック信号
によりリフレッシュが行われていない時点でリフレッシ
ュ信号を切換えるようになっている。
By the way, when the RAM is refreshed by a refresh signal based on a clock signal, if the refresh signal is switched immediately when the ALE signal is input, if refresh is being performed at that time, it will not be refreshed normally. Therefore, in order to eliminate such problems, we need a comparison circuit! At step 2, both the count value of the counter circuit 10 and the ALE signal are compared, and the refresh signal is switched when refresh is not performed by the clock signal.

以上述べたように本実施例によれば、常にリフレッシュ
信号が発生するようにしたので、ドツトマトリックスプ
リンタを制御するようなシステムのデバッグにおいて、
マイクロプロセッサを停止させたような場合でも、受信
データや印字をするためのドツト駆動情報を格納してい
るRAMのリフレッシュが行えることになり、したがっ
て、デバッグ時リフレッシュを必要とするRAMを、リ
フレッシュを必要としないスタティックRAMとあらか
じめ交換しなくても、RAM内の情報が消滅するという
ことがない。
As described above, according to this embodiment, the refresh signal is always generated, so that when debugging a system that controls a dot matrix printer,
Even if the microprocessor is stopped, the RAM that stores received data and dot drive information for printing can be refreshed. Therefore, the RAM that requires refreshing during debugging can be refreshed. Even if you do not replace the static RAM with an unnecessary static RAM in advance, the information in the RAM will not disappear.

また、スタティックRAMへの交換が不要になるため、
スタティックRAM配線のための基板に対するパターン
カット等の改修や、その復元が要求されることもない。
Also, since there is no need to replace static RAM,
There is no need to modify the board for static RAM wiring, such as cutting a pattern, or to restore it.

尚、上記実施例の説明において1マシンサイクルをクロ
ック信号の6周期に対応させて説明したが、これに限定
されないのは勿論である。
Incidentally, in the explanation of the above embodiment, one machine cycle was explained as corresponding to six periods of the clock signal, but it is needless to say that the present invention is not limited to this.

(発明の効果コ 本発明によれば、バス制御出力信号の有無を判断して、
通常の動作時バス制御出力信号が連続して発生している
ときは、バス制御出力信号によりリフレッシュ信号を作
ってこれによりRAMをリフレッシュし、他方、デパッ
ク特等バス制御出力信号が連続して発生しないときは、
クロック信号によりリフレッシュ信号を作ってこれによ
りRAMをリフレッシュ出来るようして、常にリフレッ
シュ信号を確保できるようにしたので、設計評価やデバ
ッグ時にリフレッシュを必要とするダイナミックRAM
を、リフレッシュを不要とするスタティックRAMに交
換するような手間を省くことができる。
(Effects of the Invention) According to the present invention, by determining the presence or absence of a bus control output signal,
During normal operation, when the bus control output signal is generated continuously, a refresh signal is generated by the bus control output signal to refresh the RAM, and on the other hand, the Depak special bus control output signal is not generated continuously. when,
By creating a refresh signal using a clock signal and using this to refresh the RAM, a refresh signal is always available, so dynamic RAM that requires refreshing during design evaluation and debugging can be
It is possible to save the effort of replacing the RAM with a static RAM that does not require refreshing.

従って、設計評価やデバ、り効率を向上させることがで
きる。
Therefore, design evaluation and device efficiency can be improved.

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

第1図は本発明に係るR A M l)フレッシュ方式
の実施例を示す概略ブロック図、第2図はリフレッシュ
信号切換え回路と連続性検出回路の実施例を示す構成図
、第3図はCPUのクロック信号とALE信号との関係
を示すタイミングチャート、第4図はマイクロプロセッ
サシステムの概略図である。 6・・・外部信号同期リフレッシュ信号回路、7・・・
自己リフレッシュ信号発生回路、8・・・リフレッシュ
信号切換え回路、9・・・連続性検出回路。
FIG. 1 is a schematic block diagram showing an embodiment of the RAM l) refresh method according to the present invention, FIG. 2 is a block diagram showing an embodiment of a refresh signal switching circuit and a continuity detection circuit, and FIG. FIG. 4 is a timing chart showing the relationship between the clock signal and the ALE signal. FIG. 4 is a schematic diagram of the microprocessor system. 6... External signal synchronized refresh signal circuit, 7...
Self-refresh signal generation circuit, 8... Refresh signal switching circuit, 9... Continuity detection circuit.

Claims (1)

【特許請求の範囲】 データを保持し続けるためにリフレッシュ動作を必要と
するRAMを有し、マイクロプロセッサのバス制御出力
信号により前記RAMのリフレッシュのコントロールを
行なうようにしたマイクロプロセッサシステムにおいて
、 前記バス制御出力信号の連続性を検出するための連続性
検出回路と、 前記バス制御出力信号に同期してリフレッシュ信号を発
生する外部信号同期リフレッシュ信号発生回路と、 クロック信号によりリフレッシュ信号を発生する自己リ
フレッシュ信号発生回路と、 前記連続性検出回路が前記バス制御出力信号の連続性を
検出しているときは前記外部信号同期リフレッシュ信号
発生回路からの出力信号を前記RAMのリフレッシュ信
号として出力し、前記連続性検出回路が前記バス制御出
力信号の非連続性を検出したときは前記自己リフレッシ
ュ信号発生回路からの出力信号を前記RAMのリフレッ
シュ信号として出力するリフレッシュ信号切換え回路と
を備えたことを特徴とするマイクロプセッサシステムの
RAMリフレッシュ方式。
[Scope of Claims] A microprocessor system having a RAM that requires a refresh operation to continue retaining data, and in which the refresh of the RAM is controlled by a bus control output signal of a microprocessor, comprising: a continuity detection circuit for detecting continuity of the control output signal; an external signal synchronized refresh signal generation circuit for generating a refresh signal in synchronization with the bus control output signal; and a self-refresh circuit for generating a refresh signal in accordance with a clock signal. When the signal generation circuit and the continuity detection circuit detect the continuity of the bus control output signal, output the output signal from the external signal synchronous refresh signal generation circuit as a refresh signal for the RAM, and and a refresh signal switching circuit that outputs an output signal from the self-refresh signal generation circuit as a refresh signal for the RAM when the nature detection circuit detects discontinuity in the bus control output signal. RAM refresh method for microprocessor systems.
JP1320501A 1989-12-12 1989-12-12 RAM refresh method for microprocessor system Expired - Fee Related JPH0799624B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1320501A JPH0799624B2 (en) 1989-12-12 1989-12-12 RAM refresh method for microprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1320501A JPH0799624B2 (en) 1989-12-12 1989-12-12 RAM refresh method for microprocessor system

Publications (2)

Publication Number Publication Date
JPH03183095A true JPH03183095A (en) 1991-08-09
JPH0799624B2 JPH0799624B2 (en) 1995-10-25

Family

ID=18122156

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1320501A Expired - Fee Related JPH0799624B2 (en) 1989-12-12 1989-12-12 RAM refresh method for microprocessor system

Country Status (1)

Country Link
JP (1) JPH0799624B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1993022769A1 (en) * 1992-04-24 1993-11-11 Citizen Watch Co., Ltd. Dynamic ram

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020393A (en) * 1983-07-15 1985-02-01 Nec Corp Memory refreshing control circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6020393A (en) * 1983-07-15 1985-02-01 Nec Corp Memory refreshing control circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1993022769A1 (en) * 1992-04-24 1993-11-11 Citizen Watch Co., Ltd. Dynamic ram

Also Published As

Publication number Publication date
JPH0799624B2 (en) 1995-10-25

Similar Documents

Publication Publication Date Title
KR0169288B1 (en) Microcomputer system
JPS58192148A (en) arithmetic processing unit
JPH03183095A (en) Ram refresh system for microprocessor system
EP0424911A2 (en) Memory system having self-testing function
SU1171853A1 (en) Device for controlling dynamic memory block
JPS6158051A (en) False trouble generating system
JP3013517B2 (en) Write buffer error address detection circuit
KR200174124Y1 (en) Device for latching refresh address
KR0183813B1 (en) DMA Refresh Controller
JPS62169245A (en) Data processing system
JPS6349811B2 (en)
JPH0235547A (en) Test system for static ram block
SU1317444A2 (en) Device for debugging programs
JP2633636B2 (en) Printer motor driver protection system
JP3096371B2 (en) Information processing apparatus control method
SU1456996A1 (en) Device for monitoring memory units
JPH02310886A (en) Memory refresh control system
JP2521087B2 (en) Image contour bit generation method
JPH10293729A (en) Computer access control circuit
JPH0254582B2 (en)
JPS60225941A (en) Microprogram control device
JPH0784814A (en) Error detecting device of computer
JPS6134791A (en) Memory refreshing control system
JPH0481953A (en) Memory device
JPH03183094A (en) Refresh circuit for dram

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees