JPH03181090A - Refresh method for dynamic ram - Google Patents
Refresh method for dynamic ramInfo
- Publication number
- JPH03181090A JPH03181090A JP1319294A JP31929489A JPH03181090A JP H03181090 A JPH03181090 A JP H03181090A JP 1319294 A JP1319294 A JP 1319294A JP 31929489 A JP31929489 A JP 31929489A JP H03181090 A JPH03181090 A JP H03181090A
- Authority
- JP
- Japan
- Prior art keywords
- dynamic ram
- interrupt
- refresh
- processing unit
- central processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Dram (AREA)
Abstract
Description
【発明の詳細な説明】
[概要]
ダイナミックRAMのリフレッシュ方法に係り、詳しく
はマイクロコンピュータに備えたダイナミックRAMの
リフレッシュ方法に関し、スタティックRAMのように
中央処理装置はアクセスでき、しかも、リフレッシュの
ための回路数を減らすことができるダイナミックRAM
のリフレッシュ方法を提供することを目的とし、ダイナ
ミックRAMのリフレッシュ方法であって、中央処理装
置が、フリーランニングタイマが定期的に発生するオー
バーフロー信号を割り込み信号として入力し、この割り
込み信号に基づく割り込みルーチンによってダイナミッ
クRAMのリフレッシュを行うようにしたものである。[Detailed Description of the Invention] [Summary] This invention relates to a refresh method for a dynamic RAM, and more specifically, a refresh method for a dynamic RAM provided in a microcomputer, which can be accessed by a central processing unit like a static RAM, and which can be used for refreshing. Dynamic RAM that can reduce the number of circuits
A dynamic RAM refresh method, in which a central processing unit inputs an overflow signal periodically generated by a free running timer as an interrupt signal, and executes an interrupt routine based on this interrupt signal. The dynamic RAM is refreshed by the following.
[産業上の利用分野]
本発明はダイナミックRAMのリフレッシュ方法に係り
、詳しくはダイナミックRAMを備えたマイクロコンピ
ュータのリフレッシュ方法に関するものである。[Industrial Field of Application] The present invention relates to a method for refreshing a dynamic RAM, and more particularly to a method for refreshing a microcomputer equipped with a dynamic RAM.
ダイナミックRAMはスタティックRAMより高集積化
が可能なことから、マイクロコンピュータに内蔵するR
AMも高集積化を図る上でダイナミックRAMがスタテ
ィックRAMに代わって採用されるようになってきてい
る。ダイナミックRAMを採用するに際してはスタティ
ックRAMにはないリフレッシュかあり、そのために定
期的なリフレッシュ処理動作か必要となる。Since dynamic RAM can be more highly integrated than static RAM, the R
In order to increase the integration density of AM, dynamic RAM is increasingly being adopted in place of static RAM. When adopting a dynamic RAM, there is a refresh function that is not available in a static RAM, and therefore, a periodic refresh processing operation is required.
[従来の技術]
近年、スタティックRAM(以下、SRAMという)よ
りダイナミックRAM(以下、DRA〜1という)CI
)はうか畠集積化の点で優れているということから、マ
イクロコンピュータにはD RA Mが採用されて来て
いる。そして、第2図に示すように中央処理装置(以下
、CPUという)lはアドレス、データの各バス2,3
及びアービター回路4を介してDRAM5とデータのや
りとりを行っている。アービター回路4はリフレッシュ
カウンタ6から定期的に出力されるリフレッシュ信号に
基づいてDRAM5をリフレッシュさせている。[Prior Art] In recent years, dynamic RAM (hereinafter referred to as DRA~1) CI has become more popular than static RAM (hereinafter referred to as SRAM).
) DRAM has been adopted in microcomputers because it is superior in terms of integration. As shown in FIG. 2, the central processing unit (hereinafter referred to as CPU) l has address and data buses 2 and 3.
Data is exchanged with the DRAM 5 via the arbiter circuit 4. The arbiter circuit 4 refreshes the DRAM 5 based on a refresh signal periodically output from the refresh counter 6.
又、アービター回路4はそのリフレッシュ期間中におい
てはCPUIのアクセスを禁止、即ちCPU1に対して
アクセス許可信号を出力しないようにしている。Further, the arbiter circuit 4 prohibits access from the CPUI during the refresh period, that is, does not output an access permission signal to the CPU 1.
[発明か解決しようとする課題]
従って、DRAM5はCPUIがDRAM5に対してリ
フレッシュ期間中はアクセスすることができないという
点でSRAMに劣ることになる。[Problems to be Solved by the Invention] Therefore, the DRAM 5 is inferior to the SRAM in that the CPU cannot access the DRAM 5 during the refresh period.
又、DRAM5はリフレッシュのためのアービター回路
4.リフレッシュカウンタ6等のDRAMコントローラ
を設ける必要かあり、回路数か多くなる問題があった。Further, the DRAM 5 has an arbiter circuit 4 for refreshing. Since it is necessary to provide a DRAM controller such as a refresh counter 6, there is a problem in that the number of circuits increases.
本発明は上記問題点を解決するためになされたものであ
って、その目的はスタティックRAMのように中央処理
装置はアクセスでき、しかも、リフレッシュのための回
路数を減らすことができるダイナミックRAMのリフレ
ッシュ方l去を提供することにある。The present invention has been made to solve the above problems, and its purpose is to refresh dynamic RAM, which can be accessed by a central processing unit like static RAM, and which can reduce the number of refresh circuits. The goal is to provide a solution.
[課題を解決するための手段]
本発明は上記目的を達成するために、マイクロコンピュ
ータに備えたフリーランニングタイマが定期的に発生す
るオーバーフロー信号を割り込み信号として中央処理装
置に出力させる。[Means for Solving the Problems] In order to achieve the above object, the present invention causes a free running timer provided in a microcomputer to output an overflow signal periodically generated as an interrupt signal to a central processing unit.
中央処理装置はこの割り込み信号に基づく割り込み処理
にてダイナミックRAMのリフレッシュを行う。The central processing unit refreshes the dynamic RAM through interrupt processing based on this interrupt signal.
[作用]
ダイナミックRAMのリフレッシュはフリーランニング
タイマQつオーバーフロー毎に中央処理装置の割り込み
ルーチンに従って行われる。[Operation] The dynamic RAM is refreshed according to the interrupt routine of the central processing unit every time the free running timer overflows by Q times.
従って、リフレッシュのためのダイナミックRAMコン
トローラは不要となる。しかも、中央処理装置はダイナ
ミックRAMをスタティックRAMのようにアクセスで
きることになる。Therefore, a dynamic RAM controller for refresh is not required. Moreover, the central processing unit can access the dynamic RAM like a static RAM.
[実施例〕
以下、本発明を具体化した一実施例を図面に従って説明
する。[Example] An example embodying the present invention will be described below with reference to the drawings.
第1図は本発明を実施するためのマイクロコンピュータ
のシステム図である。FIG. 1 is a system diagram of a microcomputer for implementing the present invention.
第1図において、中央処理装置(以下、CPUという)
11はアドレスバス12、データバス13の各バスを介
してダイナミックRAM (以下、DRAMという)1
4と接続されている。フリーランニングタイマ15は発
振回路16からのカウントクロック信号をカウントし、
予め定めた値にまで到達した時、即ちオーバーフローし
た時にリセットし再び最初からカウントを行うとともに
、その動作を繰り返すようになっている。そして、フリ
ーランニングタイマ15はその時々のカウント値を前記
CPUIIに出力するとともに、オーバーフローした時
に割り込み制御回路17に対してオーバーフロー割り込
み信号を出力する。従って、フリーランニングタイマ1
5はオーバーフローする毎(一定期間毎)に割り込み制
御回路17にオーバーフロー割り込み信号を出力するこ
とになる。In Figure 1, the central processing unit (hereinafter referred to as CPU)
11 is a dynamic RAM (hereinafter referred to as DRAM) 1 via an address bus 12 and a data bus 13.
4 is connected. The free running timer 15 counts the count clock signal from the oscillation circuit 16,
When it reaches a predetermined value, that is, when it overflows, it is reset and starts counting again from the beginning, and the operation is repeated. The free running timer 15 outputs the current count value to the CPU II, and also outputs an overflow interrupt signal to the interrupt control circuit 17 when it overflows. Therefore, free running timer 1
5 outputs an overflow interrupt signal to the interrupt control circuit 17 every time there is an overflow (every fixed period).
割り込み制御回路17はオーバーフロー割り込み信号に
基づいてCPUIIにフリーランニングタイマ15によ
る割り込みを知らせるとともに、DRAMI・lにデー
タ出力を禁止させるためのリフレッシュ信号を出力する
。又、割り込み制御回路17は他のいくつかの割り込み
信号を入力するようになっていて、一つの割り込み信号
が入っているとき、その割り込みによるCPUIIの割
り込みルーチンが終了するまでは他の割り込み信号をマ
スクするようになっている。The interrupt control circuit 17 notifies the CPU II of the interrupt caused by the free running timer 15 based on the overflow interrupt signal, and also outputs a refresh signal for prohibiting data output to the DRAM I. In addition, the interrupt control circuit 17 is configured to input several other interrupt signals, and when one interrupt signal is input, other interrupt signals are not input until the CPU II interrupt routine due to that interrupt is completed. They are supposed to wear masks.
次に、上記のように構成されたマイクロコンピュータの
DRAMl4をリフレッシュさせるための作用を説明す
る。Next, the operation for refreshing the DRAM 14 of the microcomputer configured as described above will be explained.
今、CPUIIがメインルーチンに従って動作している
状態において、フリーランニングタイマ15かオーバー
フローすると、同タイマ15から割り込み制御回路17
にオーバーフロー割り込み信号を出力する。割り込み制
御回路17はCPU11にフリーランニングタイマ15
が定期的に発生するオーバーフローに基づく割り込み信
号を出力する。CPUIIはこの割り込み信号に基づ・
いて今まで行っていたメインルーチンからDRAMl4
をリフレッシュするための割り込みルーチンに入る。C
PU11はこの割り込みルーチンで予め用意されたリフ
レッシュするためのプログラムに基づいてアドレス及び
データバス12.13を介してDRAMl4をリフレッ
シュするための処理動作を行う。このリフレッシュ中は
メインルーチンは一時的に休止(HALT)されている
ので、DRAMl4はアクセスされることはない。Now, while the CPU II is operating according to the main routine, if the free running timer 15 overflows, the timer 15 sends an interrupt to the interrupt control circuit 17.
Outputs an overflow interrupt signal. The interrupt control circuit 17 provides a free running timer 15 to the CPU 11.
outputs an interrupt signal based on overflow that occurs periodically. Based on this interrupt signal, CPU II
DRAM14 from the main routine that has been performed so far.
Enters an interrupt routine to refresh the . C
In this interrupt routine, the PU 11 performs a processing operation to refresh the DRAM 14 via the address and data bus 12.13 based on a refresh program prepared in advance. During this refresh, the main routine is temporarily halted (HALT), so DRAM 14 is not accessed.
そして、リフレッシュの処理か終了すると、CPu1l
は再ひメインルーチンに戻りユーザープロゲラl、を再
実行する。以後、フリーランニングタイマI5がオーバ
ーフローする毎に、即ち定期的にDRAMl4はCPU
IIにてリフレッシュされる。尚、フリーランニングタ
イマは、時刻表示をするときのクロックカウントや、パ
ワーオンリセットの解除、ウォッチドッグタイマ等に使
用されているので、これを兼用することが可能である。Then, when the refresh process is finished, CPU1l
returns to the main routine and re-executes the user program. Thereafter, every time the free running timer I5 overflows, that is, periodically, the DRAM14 is
It is refreshed in II. Note that the free-running timer is used for clock counting when displaying the time, for canceling power-on reset, as a watchdog timer, and so on, so it can also be used for the same purpose.
このように本実施例においては、フリーランニングタイ
マ15が定期的に発生するオーバーフロー割り込み信号
に基づいてCPUIIは割り込み処理を行い、その割り
込み処理でDRAMl 4をリフレッシュさせるように
したので、従来のようにリフレッシュのためのリフレッ
シュカウンタ及びアービター回路を不要にすることがで
き、その分だけマイクロコンピュータのシステム構成を
簡略することかでき、リフレッシュについて考慮する必
要がなくなる。In this way, in this embodiment, the CPU II performs interrupt processing based on the overflow interrupt signal periodically generated by the free running timer 15, and the DRAM 1 4 is refreshed by the interrupt processing. A refresh counter and an arbiter circuit for refresh can be eliminated, the system configuration of the microcomputer can be simplified accordingly, and there is no need to consider refresh.
[発明の効果j
以上詳述したように、本発明によればスタティックRA
Mのように中央処理装置はアクセスでき、しかも、リフ
レッシュのための回路数を減らすことかできる効果があ
る。[Effects of the Invention j As detailed above, according to the present invention, static RA
It can be accessed by the central processing unit like M, and has the effect of reducing the number of refresh circuits.
第1図は本発明を実施するためのマイクロコンピュータ
を示すシステム図、
第2図は従来のマイクロコンピュータを示すシステム図
である。
図において、
tiはCPU。
14はダイナミックRAM、
15はフリーランニングタイマである。FIG. 1 is a system diagram showing a microcomputer for implementing the present invention, and FIG. 2 is a system diagram showing a conventional microcomputer. In the figure, ti is the CPU. 14 is a dynamic RAM, and 15 is a free running timer.
Claims (1)
生するオーバーフロー信号を割り込み信号として入力し
、この割り込み信号に基づく割り込みルーチンによって
ダイナミックRAMのリフレッシュを行うようにしたこ
とを特徴とするダイナミックRAMのリフレッシュ方法
。[Claims] A dynamic RAM refresh method, wherein a central processing unit inputs an overflow signal periodically generated by a free running timer as an interrupt signal, and refreshes the dynamic RAM by an interrupt routine based on this interrupt signal. A dynamic RAM refresh method characterized by performing the following steps.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1319294A JPH03181090A (en) | 1989-12-08 | 1989-12-08 | Refresh method for dynamic ram |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1319294A JPH03181090A (en) | 1989-12-08 | 1989-12-08 | Refresh method for dynamic ram |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03181090A true JPH03181090A (en) | 1991-08-07 |
Family
ID=18108591
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1319294A Pending JPH03181090A (en) | 1989-12-08 | 1989-12-08 | Refresh method for dynamic ram |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03181090A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07326188A (en) * | 1994-05-31 | 1995-12-12 | Nec Corp | Apparatus and method for memory refresh |
-
1989
- 1989-12-08 JP JP1319294A patent/JPH03181090A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07326188A (en) * | 1994-05-31 | 1995-12-12 | Nec Corp | Apparatus and method for memory refresh |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1192525B1 (en) | Method and apparatus for dynamically changing the sizes of pools that control the power consumption levels of memory devices | |
| US8438416B2 (en) | Function based dynamic power control | |
| JP4083847B2 (en) | Memory refresh method and system | |
| JPH10133714A (en) | Integrated circuit device | |
| JPH03181090A (en) | Refresh method for dynamic ram | |
| JPH0756774A (en) | Watching timer | |
| JPH10106259A (en) | Memory controller | |
| US20250391458A1 (en) | Managing race conditions for dram self-refresh | |
| JPH04143993A (en) | Dram controller | |
| JPH04191938A (en) | Information processing system | |
| JP2628588B2 (en) | DRAM refresh circuit | |
| JPH04372030A (en) | Memory access system for processor | |
| JP2557785Y2 (en) | Single chip microcomputer | |
| JPH0636558A (en) | Method for refreshing dram | |
| JPH03282667A (en) | Computer device | |
| JPS63247996A (en) | Method for accessing memory | |
| JPH09297990A (en) | Memory refresh control method and memory refresh control device | |
| JPH05198170A (en) | Refresh control circuit | |
| JPH0434628A (en) | Memory control device | |
| JPH01307997A (en) | Memory device | |
| JPH07287684A (en) | Digital processor | |
| JPH0581169A (en) | Bus control system | |
| JPH0434795A (en) | Refresh control circuit | |
| JPH0531775B2 (en) | ||
| JPH0423145A (en) | Memory access control circuit for risc processor |