JPH03242718A - Reset circuit - Google Patents

Reset circuit

Info

Publication number
JPH03242718A
JPH03242718A JP2040147A JP4014790A JPH03242718A JP H03242718 A JPH03242718 A JP H03242718A JP 2040147 A JP2040147 A JP 2040147A JP 4014790 A JP4014790 A JP 4014790A JP H03242718 A JPH03242718 A JP H03242718A
Authority
JP
Japan
Prior art keywords
output
reset
logical value
reset signal
ram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2040147A
Other languages
Japanese (ja)
Inventor
Takanori Nakamura
中村 孝紀
Osamu Matsushima
修 松嶋
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 JP2040147A priority Critical patent/JPH03242718A/en
Publication of JPH03242718A publication Critical patent/JPH03242718A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To use the reset signal as an interrupt input by not performing the reset processing at the time of access to a RAM and preserving data in the RAM even at the time of inputting the reset signal. CONSTITUTION:When a CPU 120 indicates write to a RAM 130, a write signal the inverse of WR goes to logical value '0' and data write to the RAM 130 is started. If a reset signal IRES goes to logical value '1' during this data write, the output of a set/reset flip flop RS-FF 101 goes to logical value '1', but holding is kept in a D latch 102 because the write signal the inverse of WR of the CPU 120 is logical value '0', and the output of the D latch 102 is logical value '0' and an internal reset signal IRES is not outputted. When a write signal WR goes to logical value '1' after data write, the D latch 102 latches the output of the RS-FF 101, and the output of the D latch 102 goes to logical value '1', and the internal reset signal IRES is outputted. Thus, the reset signal can be used as an interrupt input.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はリセット回路に関し、特にランダムアクセスメ
モリ(RAM)を内蔵する装置におけるリセット回路に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a reset circuit, and particularly to a reset circuit in a device incorporating a random access memory (RAM).

〔従来の技術〕[Conventional technology]

従来のリセット回路を用いた装置の構成を第5図に示す
。本装置はノイズ除去回路510.リセット回路500
.CPU520.RAM530を含む、ここで、リセッ
ト回路500はセットリセットフリップフロップ(RS
−FF)501とインバータ503とを含み、CPU5
20は内部リセット信号IRESにより初期化される。
FIG. 5 shows the configuration of a device using a conventional reset circuit. This device includes a noise removal circuit 510. Reset circuit 500
.. CPU520. The reset circuit 500 includes a RAM 530, where the reset circuit 500 is a set-reset flip-flop (RS
-FF) 501 and an inverter 503, and the CPU 5
20 is initialized by an internal reset signal IRES.

外部からのリセット信号RESはノイズ除去回路510
を通してリセット回路500のR3−FF501のセッ
ト端子Sに入力される。また、ノイズ除去回路510の
出力はインバータ503を通してR3−FF501のリ
セット端子Rに入力される。
The reset signal RES from the outside is sent to the noise removal circuit 510.
It is input to the set terminal S of R3-FF 501 of the reset circuit 500 through. Further, the output of the noise removal circuit 510 is inputted to the reset terminal R of the R3-FF 501 through the inverter 503.

R3−FF501の出力が内部リセット信号IRESで
ある。ノイズ除去回路510はパルス状のノイズによっ
て内部リセット信号IRESが発生してリセット動作を
することを防止するためのものである。CPU520は
アドレスバス540をデータバス550によりRAM 
530と接続され、書込信号WRと読出信号RDをRA
M 530へ出力する。
The output of R3-FF501 is the internal reset signal IRES. The noise removal circuit 510 is for preventing the internal reset signal IRES from being generated due to pulsed noise and performing a reset operation. The CPU 520 connects the address bus 540 to the RAM via the data bus 550.
530 and sends the write signal WR and read signal RD to RA.
Output to M530.

次に、従来のリセット回路500の動作を説明する。リ
セット信号RESが論理値” 1 ”となると、R3−
FF501がセットされ、内部リセット信号IRESが
1′°となる。通常、内部動作とリセット信号RESは
同期関係がないため、RAM530に書込み動作中にリ
セット信号RESか論理値” 1 ”となることがある
。この時の動作タイミングを第6図に示す。リセット信
号RESはCPU520の動作とは同期することなく入
力されるため、RAM530ヘデータ書込み中にリセッ
ト信号RESが論理値“°1°°となると、書込信号W
Rの信号幅が図示するように短くなる。なお、通常の信
号幅は図中に破線で示したものである。したがって、デ
ータバス550上のデータが書込まれる前に書込み信号
WRが断になるため、RAM530に誤ったデータが書
込まれてしまう。
Next, the operation of the conventional reset circuit 500 will be explained. When the reset signal RES becomes the logical value "1", R3-
The FF 501 is set and the internal reset signal IRES becomes 1'°. Normally, the internal operation and the reset signal RES have no synchronous relationship, so the reset signal RES may have a logic value of "1" during a write operation to the RAM 530. The operation timing at this time is shown in FIG. Since the reset signal RES is input without synchronization with the operation of the CPU 520, when the reset signal RES reaches a logical value of "°1°°" while writing data to the RAM 530, the write signal W
The signal width of R becomes shorter as shown. Note that the normal signal width is indicated by a broken line in the figure. Therefore, since the write signal WR is disconnected before the data on the data bus 550 is written, erroneous data is written to the RAM 530.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

リセット信号は最優先で処理されることから、最優先の
割込みと考えることかできるが、上述した従来のリセッ
ト回路はRAMのデータを破壊する可能性があり、リセ
ット信号が入った時の状態を保存できない。そのため、
割込みとして使用することが困難であるという欠点があ
る。また、リセット信号により装置の同期をとるような
システムでは、RAMのデータ破壊により正常に同期し
てもプログラム実行が異常になる問題がある。
Since the reset signal is processed with the highest priority, it can be considered as the highest priority interrupt, but the conventional reset circuit described above may destroy the data in RAM, and the state when the reset signal is input is Unable to save. Therefore,
The disadvantage is that it is difficult to use as an interrupt. Furthermore, in a system in which devices are synchronized using a reset signal, there is a problem in that program execution becomes abnormal even if the synchronization is normal due to data corruption in the RAM.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のリセット回路はランダムアクセスメモリを内蔵
する装置において、リセット要求があったことを記憶す
る第1の手段と、前記第1の手段の出力を前記ランダム
アクセスメモリに対するアクセス信号と同期させる第2
の手段とを備える。
The reset circuit of the present invention is used in a device incorporating a random access memory, and includes a first means for storing that a reset request has been made, and a second means for synchronizing the output of the first means with an access signal for the random access memory.
and the means for

また、前記第2の手段の出力を遅延手段を介して前記第
1の手段に入力し前記第1の手段の記憶状態を解除する
構成であってもよい。
Alternatively, the output of the second means may be input to the first means via a delay means to cancel the stored state of the first means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の第1の実施例のリセット回路を含む装
置の構成を示す。この装置はノイズ除去回路110.リ
セット回路100.CPU120及びRAM 130を
含む。リセット信号RESはノイズ除去回路110を通
してR5−FF 101のセット端子Sに入力される。
FIG. 1 shows the configuration of a device including a reset circuit according to a first embodiment of the present invention. This device includes a noise removal circuit 110. Reset circuit 100. It includes a CPU 120 and a RAM 130. The reset signal RES is input to the set terminal S of the R5-FF 101 through the noise removal circuit 110.

また、ノイズ除去回路110の出力はインバータ103
を通してR5−FF 101のリセット端子Rに入力さ
れている。R5−FF101の出力はDラッチ102に
入力される。Dラッチ102のゲート端子にはCPU1
20の書込信号WRが入力される。Dラッチ102の出
力が内部リセット信号IRESであり、装置内の回路に
供給される。CPU120はアドレスバス140及びデ
ータバス150によりRAM 130と接続され、RA
M 130に対して書込信号WRと読出信号RDを出力
する。
Further, the output of the noise removal circuit 110 is transferred to the inverter 103.
It is input to the reset terminal R of R5-FF 101 through the R5-FF 101. The output of R5-FF101 is input to D latch 102. CPU1 is connected to the gate terminal of D latch 102.
20 write signals WR are input. The output of D latch 102 is an internal reset signal IRES, which is supplied to circuits within the device. The CPU 120 is connected to the RAM 130 by an address bus 140 and a data bus 150.
A write signal WR and a read signal RD are output to M130.

この構成において、RAM120に対して書込中以外に
リセット信号RESが論理値゛1”となると、R3−F
F 101の出力は論理値“1′′となる。CPU12
0の書込信号WRが論理値“°1″であることから、D
ラッチ102はR8FFl0Iの出力をラッチし、出力
は論理値゛1“となり、内部リセット信号IRESが出
力され、各回路はリセット動作を始める。また、RAM
 130に対して書込中にリセット信号RESが論理値
“1”になった場合の動作を第2図を参照して説明する
。CPU120がRAM130に対して書込みを指示す
ると、書込信号WRが論理値“0″となり、RAM13
0にデータの書込みを始める(第2図中、タイミングT
2)。
In this configuration, when the reset signal RES becomes a logical value "1" other than during writing to the RAM 120, R3-F
The output of F101 becomes the logical value "1''. CPU12
Since the write signal WR of 0 has the logical value “°1”, D
The latch 102 latches the output of R8FFl0I, the output becomes a logical value "1", the internal reset signal IRES is output, and each circuit starts a reset operation.
The operation when the reset signal RES becomes a logical value "1" during writing to 130 will be described with reference to FIG. When the CPU 120 instructs the RAM 130 to write, the write signal WR becomes a logical value "0" and the RAM 130
Start writing data to 0 (timing T in Figure 2)
2).

RAM130に対してデータ書込み中にリセット信号R
ESが論理値“1″′となると、R5−FF101の出
力は論理値“1”となるが、CPU120の書込信号W
1が論理値“′O”であるため、Dラッチ102は保持
を続け、Dラッチ102の出力は論理値“O”であり、
内部リセット信号IRESは出力されない(第2図中、
タイミングT3)。RAM130に対するデータ書込み
が終り、CPU120からの書込信号WRが論理値゛1
″となると、Dラッチ102はR8−FF101の出力
をラッチし、Dラッチ102の出力は論理値“1″とな
り、内部リセット信号IRESが出力される(第2図中
、タイミングT4区間)。
Reset signal R during data writing to RAM130
When ES becomes the logical value "1"', the output of R5-FF101 becomes the logical value "1", but the write signal W of the CPU 120
1 is the logical value "'O", the D latch 102 continues to hold, and the output of the D latch 102 is the logical value "O",
The internal reset signal IRES is not output (in Fig. 2,
timing T3). Data writing to the RAM 130 is completed, and the write signal WR from the CPU 120 has a logical value of "1".
'', the D latch 102 latches the output of the R8-FF 101, the output of the D latch 102 has a logical value of "1", and the internal reset signal IRES is output (timing T4 interval in FIG. 2).

第3図は本発明の第2の実施例のリセット回路を含む装
置の構成を示す図である。リセット回路RESはノイズ
除去回路310を通してR3FF301のセット端子S
に入力されている。
FIG. 3 is a diagram showing the configuration of a device including a reset circuit according to a second embodiment of the present invention. The reset circuit RES connects the set terminal S of R3FF301 through the noise removal circuit 310.
has been entered.

R3−FF301の出力はDラッチ302に入力されて
いる。Dラッチ302のゲート端子GにはCPU320
の書込信号WRが入力される。Dラッチ302出力が内
部リセット信号IRESである。また、内部リセット信
号IRESは遅延回路304を通してR3−FF301
のリセット端子Rに入力される。遅延回路301による
遅延時間をTD、とする。CPU320はアドレスバス
340とデータバス350とでRAM 330と接続さ
れ、RAM 330に対して書込信号WR及び続出信号
rIを出力する。
The output of R3-FF 301 is input to D latch 302. The CPU 320 is connected to the gate terminal G of the D latch 302.
A write signal WR is input. The output of D latch 302 is internal reset signal IRES. Also, the internal reset signal IRES is passed through the delay circuit 304 to R3-FF301.
It is input to the reset terminal R of. Let the delay time by the delay circuit 301 be TD. The CPU 320 is connected to the RAM 330 via an address bus 340 and a data bus 350, and outputs a write signal WR and a continuation signal rI to the RAM 330.

この構成において、RA M 330に対してデータ書
込中にリセット信号RESか論理値“′1゛′となった
場合の動作を第4図を参照して説明する。
In this configuration, the operation when the reset signal RES becomes the logical value "'1" while data is being written to the RAM 330 will be described with reference to FIG.

CPU320がRA M 330に対して書込みを指示
し、書込信号WRが論理値“Oパとなると、RAM33
0にデータ書込を始める(第4図中、タイミングT2)
。RAM330に対してデータ書込み中にリセット信号
RESが論理値“°1゛′となってもCPU320の書
込信号WRが論理値“1パとなるまでは内部リセット信
号IRESは出力されない(第4図中、タイミングT3
)。リセット信号RESが論理値“O゛となっても遅延
回路304により内部リセット信号IRESが出力され
た後、遅延回路304の遅延時間TD1の間はR3−F
F301のリセット入力は論理値“O゛′であるため、
R3−FF301は論理値“1”を出力し、内部リセッ
ト信号は出力される(第4図中、タイミングTa 、 
Ts )。内部リセット信号IRESが出力されてから
遅延時間TD、の期間をすぎると、R8−FF301の
リセット入力か論理値゛1″となり、内部リセット信号
IRESは出力されなくなる(第4図中、タイミングT
6)。この実施例では、内部リセット信号の出力時間と
して遅延回路304の遅延時間TD、に相当する分確保
できるため、十分なリセット期間がとれる。
When the CPU 320 instructs the RAM 330 to write and the write signal WR becomes the logical value “Opa”, the RAM 33
Start writing data to 0 (timing T2 in Figure 4)
. Even if the reset signal RES becomes a logic value of "1" during data writing to the RAM 330, the internal reset signal IRES is not output until the write signal WR of the CPU 320 becomes a logic value of "1" (Fig. 4). Middle, timing T3
). Even if the reset signal RES becomes the logical value "O", after the internal reset signal IRES is output by the delay circuit 304, R3-F remains unchanged during the delay time TD1 of the delay circuit 304.
Since the reset input of F301 is the logical value “O゛′,
R3-FF301 outputs the logical value "1", and the internal reset signal is output (timing Ta,
Ts). When the delay time TD has passed after the internal reset signal IRES is output, the reset input of R8-FF301 becomes the logical value "1", and the internal reset signal IRES is no longer output (timing T in Fig. 4).
6). In this embodiment, since the output time of the internal reset signal can be secured to correspond to the delay time TD of the delay circuit 304, a sufficient reset period can be secured.

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

以上説明したように本発明によれば、RAMに対するア
クセス時にはリセット処理を行わないことにより、リセ
ット信号が入力された時にもRAMのデータを保存でき
るようになり、リセット信号を割込み入力として使用す
ることができる。
As explained above, according to the present invention, by not performing reset processing when accessing RAM, data in RAM can be saved even when a reset signal is input, and the reset signal can be used as an interrupt input. I can do it.

F)、102.302・・・Dラッチ、103・・・イ
ンバータ、304・・・遅延回路、110,310・・
・ノイズ除去回路、120,320・・・cpu、13
0330・・・RAM、140,340・・・アドレス
バス、150.350・・・データバス。
F), 102.302...D latch, 103...Inverter, 304...Delay circuit, 110,310...
・Noise removal circuit, 120, 320...cpu, 13
0330...RAM, 140,340...Address bus, 150.350...Data bus.

Claims (1)

【特許請求の範囲】 1、ランダムアクセスメモリを内蔵する装置において、
リセット要求があつたことを記憶する第1の手段と、前
記第1の手段の出力を前記ランダムアクセスメモリに対
するアクセス信号と同期させる第2の手段とを備えるこ
とを特徴とするリセット回路。 2、前記第2の手段の出力を遅延手段を介して前記第1
の手段に入力し前記第1の手段の記憶状態を解除するこ
とを特徴とする請求項1記載のリセット回路。
[Claims] 1. In a device incorporating a random access memory,
A reset circuit comprising: first means for storing that a reset request has been made; and second means for synchronizing the output of the first means with an access signal for the random access memory. 2. The output of the second means is transmitted to the first means through the delay means.
2. The reset circuit according to claim 1, wherein the reset circuit is input to said means to cancel the stored state of said first means.
JP2040147A 1990-02-20 1990-02-20 Reset circuit Pending JPH03242718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2040147A JPH03242718A (en) 1990-02-20 1990-02-20 Reset circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2040147A JPH03242718A (en) 1990-02-20 1990-02-20 Reset circuit

Publications (1)

Publication Number Publication Date
JPH03242718A true JPH03242718A (en) 1991-10-29

Family

ID=12572659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2040147A Pending JPH03242718A (en) 1990-02-20 1990-02-20 Reset circuit

Country Status (1)

Country Link
JP (1) JPH03242718A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6608508B1 (en) 2002-01-31 2003-08-19 Mitsubishi Denki Kabushiki Kaisha Reset control apparatus capable of resetting by external reset signal with narrow pulse width

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6608508B1 (en) 2002-01-31 2003-08-19 Mitsubishi Denki Kabushiki Kaisha Reset control apparatus capable of resetting by external reset signal with narrow pulse width

Similar Documents

Publication Publication Date Title
US4853847A (en) Data processor with wait control allowing high speed access
JPH077376B2 (en) System bus control method
JP2661222B2 (en) Pulse output device
JPS6083166A (en) Semiconductor integrated circuit device
JPS62131631A (en) Digital self-running clock synchronous circuit
JPH03242718A (en) Reset circuit
US4928290A (en) Circuit for stable synchronization of asynchronous data
US6301188B1 (en) Method and apparatus for registering free flow information
JP3283362B2 (en) Semiconductor device
JP3439015B2 (en) Data transfer method
JPH0461096A (en) Memory control device
JP2569693B2 (en) Microcomputer
JPH0140433B2 (en)
JPH04257907A (en) Reset circuit
JPH11273380A (en) Lsi operation mode setting signal fetching method and lsi with mode signal fetching function
JPH06103766A (en) Refresh and arbiter circuit for dram
JP2539064B2 (en) Microprocessor
JP3680975B2 (en) Interface circuit
JPS597973B2 (en) data processing equipment
JP3102051B2 (en) Microprocessor device
JPH01109425A (en) Fifo memory
JPH02153454A (en) Asynchronous data transmission equipment
JPH03144739A (en) Data transfer control system for duplexed storage device
JPH0573484A (en) Information processing system
JPS60211545A (en) Microcomputer system