JP2009230434A - Reset circuit - Google Patents

Reset circuit Download PDF

Info

Publication number
JP2009230434A
JP2009230434A JP2008074531A JP2008074531A JP2009230434A JP 2009230434 A JP2009230434 A JP 2009230434A JP 2008074531 A JP2008074531 A JP 2008074531A JP 2008074531 A JP2008074531 A JP 2008074531A JP 2009230434 A JP2009230434 A JP 2009230434A
Authority
JP
Japan
Prior art keywords
signal
reset
circuit
delay
level
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
JP2008074531A
Other languages
Japanese (ja)
Inventor
Shuji Nagao
周司 長尾
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2008074531A priority Critical patent/JP2009230434A/en
Publication of JP2009230434A publication Critical patent/JP2009230434A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To delay a reset operation by input of a reset signal during data writing to a storage device by a time necessary for the data writing. <P>SOLUTION: When a reset signal 109 is input to a flip-flop 100 by a user's reset operation while a CPU 105 is writing data to a flash ROM 106, output signal of an AND circuit 102 is regularly on "L" level since a reset delay signal 107 is on "H" level while the CPU 105 is writing data to the flash ROM 106. At the same time, the delay time up to delayed output of output signal of the flip-flop 100 from the delay circuit 101 is set longer than a maximum access time necessary for one data writing, so that the output signal of the delay circuit 101 remains on "L" level. Accordingly, the reset of the CPU 105 during data writing can be prevented. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明はリセット回路に係り、特にリセット動作を任意の時間遅延させることができるリセット回路に関する。   The present invention relates to a reset circuit, and more particularly to a reset circuit capable of delaying a reset operation for an arbitrary time.

従来、記憶装置への書き込み時に外部から非同期にリセット動作が行われたとき、データの破壊を防ぐために書き込みに必要な時間または、書き込みをキャンセルするために必要な時間だけ、リセット動作を遅延させるリセット回路が提案されている(例えば、特許文献1、特許文献2参照)。   Conventionally, when a reset operation is performed asynchronously from the outside when writing to a storage device, the reset operation is delayed by the time required for writing to prevent data destruction or the time required for canceling the writing. Circuits have been proposed (see, for example, Patent Document 1 and Patent Document 2).

特開昭63−45626号公報JP 63-45626 A 特開平9−288530号公報Japanese Patent Laid-Open No. 9-288530

しかし、上記の特許文献1及び2記載の従来のリセット回路では、その遅延時間は遅延回路によって固定的に決まり、その遅延時間を越えるとまだ書き込み途中であっても強制的にリセット動作が行われるため、遅延回路が持つ遅延時間を越える長時間の処理への対応に問題がある。   However, in the conventional reset circuits described in Patent Documents 1 and 2, the delay time is fixedly determined by the delay circuit, and if the delay time is exceeded, the reset operation is forcibly performed even during writing. Therefore, there is a problem in dealing with long-time processing exceeding the delay time of the delay circuit.

本発明は上記の点に鑑みなされたもので、記憶装置へのデータ書き込み中のリセット信号入力によるリセット動作を、データ書き込みに必要な時間だけ遅延させるリセット回路を提供することを目的とする。   The present invention has been made in view of the above points, and an object of the present invention is to provide a reset circuit that delays a reset operation by a reset signal input during data writing to a storage device by a time required for data writing.

上記の目的を達成するため、本発明は、記憶装置にアクセス信号とデータとを供給し、アクセス信号の出力期間においてデータを記憶装置に書き込ませるための中央処理装置をリセットするリセット回路であって、
当該リセット回路へのリセット入力であるリセット信号の論理値を保持する保持回路と、保持回路から出力されたリセット信号の論理値を示す第1の信号を、中央処理装置の記憶装置に対するデータ書き込み時の一回の最大アクセス時間よりも大なる時間分遅延させる遅延回路と、第1の信号と、中央処理装置が記憶装置に対するデータ書き込みモードの期間、中央処理装置から出力されるリセット禁止用の第1の論理値(H)である第2の信号と、遅延回路により第1の信号を遅延して得た第3の信号とのうち、第2の信号が第1の論理値でなく、かつ、第3の信号が入力されない期間のときに第1の信号が入力された時、又は第3の信号が入力された時に第2の論理値のリセット用信号を生成して中央処理装置と保持回路とをそれぞれリセットするリセット用信号生成回路と、アクセス信号とリセット用信号とが入力され、アクセス信号が非アクセス期間を示す論理値のとき、又はリセット用信号が第2の論理値のときに、遅延回路をリセットする遅延回路リセット信号を生成する遅延回路リセット信号生成回路と、を有することを特徴とする。
In order to achieve the above object, the present invention provides a reset circuit for supplying an access signal and data to a storage device and resetting a central processing unit for causing the storage device to write data in an output period of the access signal. ,
When data is written to the storage device of the central processing unit, a holding circuit that holds the logical value of the reset signal that is a reset input to the reset circuit, and a first signal that indicates the logical value of the reset signal output from the holding circuit A delay circuit for delaying by a time longer than one maximum access time, a first signal, and a reset prohibition output from the central processing unit during a data write mode for the central processing unit to the storage device. Of the second signal having the logical value (H) of 1 and the third signal obtained by delaying the first signal by the delay circuit, the second signal is not the first logical value, and When the first signal is input during the period when the third signal is not input, or when the third signal is input, a reset signal having the second logical value is generated and held with the central processing unit Each circuit A reset signal generating circuit to be set, and a delay circuit when an access signal and a reset signal are input and the access signal has a logical value indicating a non-access period, or when the reset signal has a second logical value And a delay circuit reset signal generation circuit for generating a delay circuit reset signal for resetting the delay circuit.

この発明では、遅延回路からの第3の信号が入力されない期間のときに、リセット動作により第1の信号が入力された時であっても、第2の信号が第1の論理値であるときには、リセット用信号は生成されないため、中央処理装置のリセットを禁止することができる。また、遅延回路は、アクセス信号が非アクセス期間を示す論理値のとき、又はリセット用信号が第2の論理値で中央処理装置をリセットした時にリセットされるため、遅延回路の遅延時間を延長することができる。   In the present invention, even when the first signal is input by the reset operation during the period in which the third signal from the delay circuit is not input, the second signal is at the first logic value. Since the reset signal is not generated, resetting of the central processing unit can be prohibited. The delay circuit is reset when the access signal has a logical value indicating a non-access period or when the reset signal resets the central processing unit with the second logical value, thereby extending the delay time of the delay circuit. be able to.

本発明によれば、記憶装置への書き込み中にリセット動作が行われても、そのリセット動作を書き込み終了に要する時間まで遅延させることで、書き込み中のデータの破壊を防ぐことができる。   According to the present invention, even if the reset operation is performed during writing to the storage device, the reset operation is delayed until the time required for completion of writing, so that the data being written can be prevented from being destroyed.

次に、本発明に係るリセット回路の実施の形態について、図面に基づいて詳細に説明する。   Next, an embodiment of a reset circuit according to the present invention will be described in detail with reference to the drawings.

図1は、本発明になるリセット回路の一実施の形態の回路系統図を示す。同図において、本実施の形態のリセット回路10は、リセット信号109がセット端子Sに供給されるフリップフロップ100と、フリップフロップ100の出力信号を遅延する遅延回路101と、2入力の論理積回路102と、2入力の論理和回路103及び104と、演算処理を行う中央処理装置(CPU)105と、CPU105から出力されたチップセレクト信号108が供給されるフラッシュ・リード・オンリ・メモリ(フラッシュROM)106とより構成される。   FIG. 1 shows a circuit diagram of an embodiment of a reset circuit according to the present invention. In the figure, a reset circuit 10 according to the present embodiment includes a flip-flop 100 to which a reset signal 109 is supplied to a set terminal S, a delay circuit 101 that delays an output signal of the flip-flop 100, and a 2-input AND circuit. 102, two-input OR circuits 103 and 104, a central processing unit (CPU) 105 for performing arithmetic processing, and a flash read only memory (flash ROM) to which a chip select signal 108 output from the CPU 105 is supplied. ) 106.

フリップフロップ100は、そのセット端子Sにリセット信号109が入力され、ユーザにより入力されたリセット信号109を保持する。リセット信号109は、ユーザにより、任意のタイミングでリセットの実行が行われたときに‘H’レベルとなる信号で、通常は‘L’レベルの信号である。フリップフロップ100のリセット端子Rは、フリップフロップ100の状態をリセットするために使用する。   In the flip-flop 100, the reset signal 109 is input to the set terminal S, and the reset signal 109 input by the user is held. The reset signal 109 is a signal that becomes ‘H’ level when a reset is executed by the user at an arbitrary timing, and is usually a ‘L’ level signal. The reset terminal R of the flip-flop 100 is used to reset the state of the flip-flop 100.

遅延回路101は、フリップフロップ100の出力信号を一定時間(遅延時間T4)遅延させた後に出力する。遅延回路101のリセット端子Rは、遅延回路101の状態をリセットするために使用する。CPU105は、フラッシュROM106にデータを書き込む前に、論理積回路102へ出力するリセット遅延信号107を‘H’レベルの状態にし、データ書き込み終了後に、リセット遅延信号107を‘L’レベルの状態にする。CPU105のリセット端子Rは、CPU105をリセットするために使用する。リセット遅延信号107は、CPU105がフラッシュROM106に対するデータ書き込みモードの期間、‘H’レベルに保持されるリセット禁止用の信号である。   The delay circuit 101 outputs the output signal of the flip-flop 100 after being delayed by a predetermined time (delay time T4). The reset terminal R of the delay circuit 101 is used for resetting the state of the delay circuit 101. The CPU 105 sets the reset delay signal 107 output to the AND circuit 102 to the “H” level before writing data to the flash ROM 106, and sets the reset delay signal 107 to the “L” level after data writing is completed. . The reset terminal R of the CPU 105 is used for resetting the CPU 105. The reset delay signal 107 is a reset prohibition signal held at the ‘H’ level during the data write mode of the CPU 105 to the flash ROM 106.

論理積回路102は、フリップフロップ100からの出力信号と、CPU105から出力されるリセット遅延信号107との論理積信号を出力する。論理和回路103は、遅延回路101の出力信号と、論理積回路102の出力信号との論理和信号を出力する。論理和回路103の出力信号は、論理和回路104の一方の入力端子と、フリップフロップ100のリセット端子Rと、CPU105のリセット端子Rとにそれぞれ供給される。   The AND circuit 102 outputs a logical product signal of the output signal from the flip-flop 100 and the reset delay signal 107 output from the CPU 105. The logical sum circuit 103 outputs a logical sum signal of the output signal of the delay circuit 101 and the output signal of the logical product circuit 102. The output signal of the OR circuit 103 is supplied to one input terminal of the OR circuit 104, the reset terminal R of the flip-flop 100, and the reset terminal R of the CPU 105.

論理和回路104は、論理和回路103の出力信号とCPU105から出力されるチップセレクト信号108の状態との論理和信号を出力する。論理和回路104の出力信号は、遅延回路101のリセット端子Rへの入力として使用する。フラッシュROM106は、データの記録保持を行う。   The logical sum circuit 104 outputs a logical sum signal between the output signal of the logical sum circuit 103 and the state of the chip select signal 108 output from the CPU 105. The output signal of the OR circuit 104 is used as an input to the reset terminal R of the delay circuit 101. The flash ROM 106 records and holds data.

この実施の形態は、CPU105が記憶装置(フラッシュROM106)へデータを書き込んでいる間に、ユーザがリセットを行ったときでも、書き込み動作が終了するまで、リセット動作を遅延する構成である。   In this embodiment, even when the user performs a reset while the CPU 105 is writing data to the storage device (flash ROM 106), the reset operation is delayed until the write operation is completed.

次に、本実施の形態のリセット回路において、CPU105がフラッシュROM106にデータを書き込む時の動作について、図2のフローチャートと図3のタイミングチャートとを併せ参照して説明する。   Next, the operation when the CPU 105 writes data to the flash ROM 106 in the reset circuit of this embodiment will be described with reference to the flowchart of FIG. 2 and the timing chart of FIG.

CPU105は、フラッシュROM106にデータを書き込んでいないときは、論理積回路102へ出力するリセット遅延信号107を‘L’レベルにセットしている。そして、CPU105は、フラッシュROM106にデータを書き込むときには、まず時刻T5で図3(B)に示すように上記のリセット遅延信号107を‘H’レベル(論理値「1」)にセットし(図2のステップF1)、続いてフラッシュROM106へのデータ書き込みを行う(図2のステップF2)。このとき、CPU105からフラッシュROM106に供給されるチップセレクト信号108は、図3(E)に示すようになる。このチップセレクト信号108の‘L’レベルの期間でCPU105からフラッシュROM106へのデータ書き込みが1回行われる。従って、チップセレクト信号108の‘H’レベルの期間は、フラッシュROM106へのデータ非アクセス期間を示す。   When data is not written in the flash ROM 106, the CPU 105 sets the reset delay signal 107 output to the logical product circuit 102 to the 'L' level. Then, when writing data into the flash ROM 106, the CPU 105 first sets the reset delay signal 107 to the 'H' level (logical value “1”) as shown in FIG. 3B at time T5 (FIG. 2). Step F1), and then data is written to the flash ROM 106 (Step F2 in FIG. 2). At this time, the chip select signal 108 supplied from the CPU 105 to the flash ROM 106 is as shown in FIG. Data writing from the CPU 105 to the flash ROM 106 is performed once during the period of the ‘L’ level of the chip select signal 108. Therefore, the period of the “H” level of the chip select signal 108 indicates a data non-access period to the flash ROM 106.

そして、CPU105は、データ書き込み中はリセット遅延信号107を‘H’の状態のままにしておき、データの書き込みが終わった時刻T2の時点で、図3(B)に示すようにリセット遅延信号107を再び‘L’レベルの状態にセットする(図2のステップF3)。すると、リセット遅延信号107の論理反転値とフリップフロップ100の出力信号との論理積演算を行う論理積回路102の出力信号は、リセット遅延信号107の論理反転値が‘H’となり、また、フリップフロップ100の出力信号はこの時点では‘H’レベルであるため図3(D)に示すように‘H’レベルとなる。この結果、論理積回路102の出力信号が一方の入力端子に供給される論理和回路103の出力信号も‘H’レベルとなり、CPU105がリセットされる。   Then, the CPU 105 keeps the reset delay signal 107 in the “H” state during the data writing, and at the time T2 when the data writing ends, as shown in FIG. Is again set to the 'L' level state (step F3 in FIG. 2). Then, the logical inversion value of the reset delay signal 107 becomes “H” in the output signal of the logical product circuit 102 that performs the logical product operation of the logical inversion value of the reset delay signal 107 and the output signal of the flip-flop 100. Since the output signal of the group 100 is at the “H” level at this time, it becomes the “H” level as shown in FIG. As a result, the output signal of the logical sum circuit 103 to which the output signal of the logical product circuit 102 is supplied to one input terminal is also set to the “H” level, and the CPU 105 is reset.

ここで、ステップF2でCPU105がフラッシュROM106にデータを書き込んでいる途中の時刻T1で、フリップフロップ100に図3(C)に示すように、リセット信号109が入力されたとしても、CPU105がフラッシュROM106にデータを書き込んでいる間は、図3(B)に示すようにリセット遅延信号107の論理値が‘H’であり、その論理反転値は‘L’であるため、リセット遅延信号107の論理反転値とフリップフロップ100の出力信号との論理積演算を行う論理積回路102の出力信号は、フリップフロップ100の出力信号の論理値に関係なく、常に‘L’レベルとなる。   Here, even if the reset signal 109 is input to the flip-flop 100 as shown in FIG. 3C at the time T1 during which the CPU 105 is writing data to the flash ROM 106 in step F2, the CPU 105 is not connected to the flash ROM 106. While the data is being written in, the logic value of the reset delay signal 107 is “H” and its logic inversion value is “L” as shown in FIG. The output signal of the AND circuit 102 that performs an AND operation between the inverted value and the output signal of the flip-flop 100 is always at the “L” level regardless of the logical value of the output signal of the flip-flop 100.

一方、遅延回路101からフリップフロップ100の出力信号が遅延されて出力されるまでの遅延時間が、データ書き込みに要する一回の最大アクセス時間(チップセレクト信号108の最大の‘L’レベル期間)よりも長く設定されている。また、図3(E)に示すチップセレクト信号108が‘H’レベルとなる度に論理和回路104を通して遅延回路101がリセットされて遅延時間がゼロに戻される。このため、フリップフロップ100から‘H’レベルの信号が出力されても、遅延回路101の出力信号は図3(F)に示すように‘L’レベルのままである。従って、時刻T1から時刻T2までの間は、論理和回路103の出力信号レベルは‘L’レベルのままであり、CPU105のリセットを行わないようにできる(リセット動作を遅延することができる)。   On the other hand, the delay time from the delay circuit 101 until the output signal of the flip-flop 100 is delayed and output is longer than the single maximum access time required for data writing (the maximum 'L' level period of the chip select signal 108). Is also set longer. Further, every time the chip select signal 108 shown in FIG. 3E becomes ‘H’ level, the delay circuit 101 is reset through the OR circuit 104 and the delay time is returned to zero. For this reason, even if the 'H' level signal is output from the flip-flop 100, the output signal of the delay circuit 101 remains at the 'L' level as shown in FIG. Therefore, from time T1 to time T2, the output signal level of the OR circuit 103 remains at the 'L' level, and the CPU 105 can be prevented from being reset (the reset operation can be delayed).

なお、CPU105がフラッシュROM106のデータ書き込みモードでないときは、リセット遅延信号107が‘L’レベルとなっているため、CPU105のリセット動作が行われる。また、フリップフロップ100の出力信号レベルが‘H’レベルとなると、論理積回路102の出力信号レベルが‘H’レベルとなり、結果として論理和回路103の出力信号レベルも‘H’レベルとなることで、直ちにCPU105とフリップフロップ100のリセットが実行される。なお、図3(A)はCPU105へのクロックを示す。CPU105以外のクロックはこれと異なっていてもよい。   When the CPU 105 is not in the data write mode of the flash ROM 106, the reset operation of the CPU 105 is performed because the reset delay signal 107 is at the ‘L’ level. Further, when the output signal level of the flip-flop 100 becomes “H” level, the output signal level of the AND circuit 102 becomes “H” level, and as a result, the output signal level of the OR circuit 103 also becomes “H” level. Thus, the CPU 105 and the flip-flop 100 are immediately reset. Note that FIG. 3A shows a clock to the CPU 105. The clock other than the CPU 105 may be different from this.

次に、遅延回路101に入力された信号が遅延回路101の出力に反映されるまでにかかる時間を、遅延回路101に固定的に設定された遅延時間より長くする方法を、図4のタイミングチャートと共に説明する。   Next, a method of making the time taken for the signal input to the delay circuit 101 to be reflected in the output of the delay circuit 101 longer than the delay time fixedly set in the delay circuit 101 is shown in the timing chart of FIG. It explains together.

CPU105がフラッシュROM106にデータを書き込む時(時刻T6)は、図2のステップF1での処理により、CPU105は図4(B)に示すように時刻T6から‘H’レベルのリセット遅延信号107を出力する。CPU105はデータ書き込み終了時の時刻T7で、このリセット遅延信号107を図4(B)に示すように‘L’レベルとする。   When the CPU 105 writes data to the flash ROM 106 (time T6), the CPU 105 outputs a reset delay signal 107 of “H” level from time T6 as shown in FIG. 4B by the processing in step F1 of FIG. To do. The CPU 105 sets the reset delay signal 107 to the ‘L’ level as shown in FIG. 4B at time T7 when data writing is completed.

また、CPU105は、データ書き込み時には、図4(C)に示すように同図(A)に示すCPU105へのクロックに同期したチップセレクト信号108をフラッシュROM106に供給する。このチップセレクト信号108が‘L’レベルになっている期間(アクティブな期間)にデータがフラッシュROM106に書き込まれる。   In addition, when writing data, the CPU 105 supplies a chip select signal 108 synchronized with the clock to the CPU 105 shown in FIG. 4A to the flash ROM 106 as shown in FIG. Data is written to the flash ROM 106 during the period when the chip select signal 108 is at the ‘L’ level (active period).

ここで、図4(C)に示すようにチップセレクト信号108は、複数回論理値が変化しているが、これは何回かに分けてデータを書き込んでいることを示している。このように、リセット遅延信号107が‘H’レベルである期間に、チップセレクト信号108の論理値変化は何度起きてもよい。ここで、図4(C)に示す‘L’レベル期間の「一回の最大アクセス時間T0」とは、チップセレクト信号108が‘H’→‘L’→‘H’と一回変化する間のアクティブな期間である。これは、図5の遅延回路101の遅延時間T4より短くなければならない。   Here, as shown in FIG. 4C, the chip select signal 108 has its logic value changed a plurality of times, which indicates that data is written in several times. As described above, the logic value of the chip select signal 108 may change any number of times during the period when the reset delay signal 107 is at the “H” level. Here, “one maximum access time T0” in the “L” level period shown in FIG. 4C means that the chip select signal 108 changes once from “H” → “L” → “H”. Active period. This must be shorter than the delay time T4 of the delay circuit 101 of FIG.

CPU105がフラッシュROM106に書き込みを行っていないとき、チップセレクト信号108は常に‘H’レベルとなり、その結果、論理和回路104の出力信号も‘H’レベルとなるため、遅延回路101は常にリセットされた状態となる。よって、この状態のとき遅延回路101の出力信号は常に‘L’レベルとなる。   When the CPU 105 is not writing to the flash ROM 106, the chip select signal 108 is always at "H" level, and as a result, the output signal of the OR circuit 104 is also at "H" level, so that the delay circuit 101 is always reset. It becomes a state. Therefore, in this state, the output signal of the delay circuit 101 is always ‘L’ level.

実際に遅延回路101の出力信号が‘H’レベルとなるのは、リセット信号109が‘H’レベルで、かつ、チップセレクト信号108が‘L’レベルの状態のときだけである。チップセレクト信号108が‘H’レベルの度に論理和回路104を通して遅延回路101をリセットする構成としているため、チップセレクト信号108のデータ書き込み「一回の最大アクセス時間T0」を遅延回路101の遅延時間T4より短くすることでチップセレクト信号108により何度でも遅延回路101をリセットでき、遅延回路101の入力状態を出力に反映させる時点(遅延時間)を任意の期間だけ延長させることが可能となる。   Actually, the output signal of the delay circuit 101 becomes ‘H’ level only when the reset signal 109 is ‘H’ level and the chip select signal 108 is ‘L’ level. Since the delay circuit 101 is reset through the OR circuit 104 every time the chip select signal 108 is at “H” level, the data write “one time maximum access time T 0” of the chip select signal 108 is delayed by the delay circuit 101. By making the time shorter than the time T4, the delay circuit 101 can be reset any number of times by the chip select signal 108, and the time point (delay time) for reflecting the input state of the delay circuit 101 to the output can be extended for an arbitrary period. .

次に、CPU105がフラッシュROM106にデータを書き込み中にリセット動作が発生しリセット動作が遅延されているときに、時刻T8の時点でCPU105またはフラッシュROM106に問題が発生し、チップセレクト信号108が遅延回路101の遅延時間T4を越えて‘L’レベルになり続けたときの本実施の形態の動作について、図5のタイミングチャートを参照して説明する。図5(A)〜(F)に示す各信号は、図3(A)〜(F)に示した各信号とそれぞれ同じ信号である。   Next, when the reset operation occurs while the CPU 105 writes data to the flash ROM 106 and the reset operation is delayed, a problem occurs in the CPU 105 or the flash ROM 106 at time T8, and the chip select signal 108 is transferred to the delay circuit. The operation of the present embodiment when the signal continues to become the “L” level beyond the delay time T4 of 101 will be described with reference to the timing chart of FIG. The signals shown in FIGS. 5A to 5F are the same signals as the signals shown in FIGS.

CPU105がフラッシュROM106にデータを書き込み中にリセット動作が発生しリセット動作が遅延されているときに、時刻T8の時点でCPU105又はフラッシュROM106に問題が発生した場合、図5(E)に示すチップセレクト信号108が時刻T8直後に一回の最大アクセス時間T0経過してもレベル変化しない状態となる。   If a problem occurs in the CPU 105 or the flash ROM 106 at the time T8 when the reset operation occurs while the CPU 105 writes data to the flash ROM 106 and the reset operation is delayed, the chip select shown in FIG. Even if the signal 108 reaches the maximum access time T0 once immediately after time T8, the level does not change.

この時は遅延回路101の遅延時間T4内であるため、遅延回路101の出力信号が‘L’レベルであり、またこの時点では論理積回路102の出力信号も‘L’レベルであるため、論理和回路103の出力信号は‘L’レベルで、CPU105がリセット遅延信号107を‘L’にできる状態でない。   Since this time is within the delay time T4 of the delay circuit 101, the output signal of the delay circuit 101 is at the “L” level, and at this time, the output signal of the AND circuit 102 is also at the “L” level. The output signal of the sum circuit 103 is at “L” level, and the CPU 105 is not in a state where the reset delay signal 107 can be set to “L”.

しかし、遅延時間T4が終了する時刻T9で、それ以前にフリップフロップ100から出力されて遅延回路101に供給されている‘H’レベルの信号が、図5(F)に示すように遅延回路101から遅延出力されるため、論理和回路103の出力信号が図5(G)に示すように‘H’レベルとなり、CPU105をリセットする。これにより、フラッシュROM106へのデータ書き込みが強制的に終了する。   However, at time T9 when the delay time T4 ends, an “H” level signal that has been output from the flip-flop 100 and supplied to the delay circuit 101 before that time is the delay circuit 101 as shown in FIG. Therefore, the output signal of the OR circuit 103 becomes “H” level as shown in FIG. 5G, and the CPU 105 is reset. Thereby, the data writing to the flash ROM 106 is forcibly terminated.

また、論理和回路103の出力信号は論理和回路104を介して遅延回路101のリセット端子Rに供給されると共に、フリップフロップ100のリセット端子Rにも供給されるため、時刻T9でCPU105がリセットされる時に、遅延回路101とフリップフロップ100もそれぞれクリアされる。これにより、図1のリセット回路は、元のリセット待機状態に戻る。   Since the output signal of the OR circuit 103 is supplied to the reset terminal R of the delay circuit 101 via the OR circuit 104 and also to the reset terminal R of the flip-flop 100, the CPU 105 is reset at time T9. When this is done, the delay circuit 101 and the flip-flop 100 are also cleared. Thereby, the reset circuit of FIG. 1 returns to the original reset standby state.

なお、本発明は以上の実施の形態に限定されるものではなく、例えば、複数あるフラッシュROMの中から所定のフラッシュROM106を指定するチップセレクト信号108の代わりに、フラッシュROM106に対して書き込み期間中のみ所定論理値となり、非書き込み期間(非アクセス期間)のときは上記所定の論理値とは反対論理値となるライトイネーブル信号を用いてもよい。フラッシュROM106は、チップセレクト信号やライトイネーブル信号などのアクセス信号がアクセス期間を示している論理値のときのみデータが書き込まれる。また、本発明は、フラッシュROM以外のメモリ(記憶装置)にも適用可能である。   The present invention is not limited to the above embodiment. For example, instead of the chip select signal 108 for designating a predetermined flash ROM 106 among a plurality of flash ROMs, the flash ROM 106 is being written. Only a write enable signal having a predetermined logical value and having a logical value opposite to the predetermined logical value during a non-write period (non-access period) may be used. In the flash ROM 106, data is written only when an access signal such as a chip select signal or a write enable signal has a logical value indicating an access period. The present invention can also be applied to memories (storage devices) other than the flash ROM.

本発明のリセット回路の一実施の形態の回路系統図である。It is a circuit system diagram of one embodiment of the reset circuit of the present invention. 図1のリセット回路のCPUがフラッシュROMにデータを書き込むときの処理手順を示すフローチャートである。2 is a flowchart showing a processing procedure when the CPU of the reset circuit of FIG. 1 writes data in a flash ROM. 図1のリセット回路の動作説明用タイミングチャート(その1)である。3 is a timing chart (part 1) for explaining the operation of the reset circuit of FIG. 1; 図1のリセット回路の、リセット遅延信号とチップセレクト信号との関係の一例を示す図である。FIG. 2 is a diagram illustrating an example of a relationship between a reset delay signal and a chip select signal in the reset circuit of FIG. 1. 図1のリセット回路の動作説明用タイミングチャート(その2)である。4 is a timing chart (part 2) for explaining the operation of the reset circuit of FIG. 1;

符号の説明Explanation of symbols

10 リセット回路
100 フリップフロップ
101 遅延回路
102 論理積回路
103、104 論理和回路
105 中央処理装置(CPU)
106 フラッシュROM
107 リセット遅延信号
108 チップセレクト信号
109 リセット信号
DESCRIPTION OF SYMBOLS 10 Reset circuit 100 Flip-flop 101 Delay circuit 102 AND circuit 103,104 OR circuit 105 Central processing unit (CPU)
106 Flash ROM
107 Reset delay signal 108 Chip select signal 109 Reset signal

Claims (1)

記憶装置にアクセス信号とデータとを供給し、前記アクセス信号の出力期間において前記データを前記記憶装置に書き込ませるための中央処理装置をリセットするリセット回路であって、
当該リセット回路へのリセット入力であるリセット信号の論理値を保持する保持回路と、
前記保持回路から出力された前記リセット信号の論理値を示す第1の信号を、前記中央処理装置の前記記憶装置に対するデータ書き込み時の一回の最大アクセス時間よりも大なる時間分遅延させる遅延回路と、
前記第1の信号と、前記中央処理装置が前記記憶装置に対するデータ書き込みモードの期間、前記中央処理装置から出力されるリセット禁止用の第1の論理値である第2の信号と、前記遅延回路により前記第1の信号を遅延して得た第3の信号とのうち、前記第2の信号が前記第1の論理値でなく、かつ、前記第3の信号が入力されない期間のときに前記第1の信号が入力された時、又は前記第3の信号が入力された時に第2の論理値のリセット用信号を生成して前記中央処理装置と前記保持回路とをそれぞれリセットするリセット用信号生成回路と、
前記アクセス信号と前記リセット用信号とが入力され、前記アクセス信号が非アクセス期間を示す論理値のとき、又は前記リセット用信号が前記第2の論理値のときに、前記遅延回路をリセットする遅延回路リセット信号を生成する遅延回路リセット信号生成回路と、
を有することを特徴とするリセット回路。
A reset circuit for supplying an access signal and data to a storage device and resetting a central processing unit for causing the storage device to write the data during an output period of the access signal;
A holding circuit that holds a logical value of a reset signal that is a reset input to the reset circuit;
A delay circuit for delaying the first signal indicating the logical value of the reset signal output from the holding circuit by a time longer than a single maximum access time at the time of data writing to the storage device of the central processing unit When,
The first signal, a second signal that is a first logical value for prohibiting reset that is output from the central processing unit during a data write mode of the central processing unit to the storage device, and the delay circuit Among the third signals obtained by delaying the first signal according to the above, when the second signal is not the first logical value and the third signal is not input. A reset signal for generating a reset signal having a second logic value when the first signal is input or when the third signal is input to reset the central processing unit and the holding circuit, respectively. A generation circuit;
A delay for resetting the delay circuit when the access signal and the reset signal are input and the access signal is a logical value indicating a non-access period, or when the reset signal is the second logical value A delay circuit reset signal generation circuit for generating a circuit reset signal;
A reset circuit comprising:
JP2008074531A 2008-03-21 2008-03-21 Reset circuit Pending JP2009230434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008074531A JP2009230434A (en) 2008-03-21 2008-03-21 Reset circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008074531A JP2009230434A (en) 2008-03-21 2008-03-21 Reset circuit

Publications (1)

Publication Number Publication Date
JP2009230434A true JP2009230434A (en) 2009-10-08

Family

ID=41245744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008074531A Pending JP2009230434A (en) 2008-03-21 2008-03-21 Reset circuit

Country Status (1)

Country Link
JP (1) JP2009230434A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016057817A (en) * 2014-09-09 2016-04-21 シャープ株式会社 Information processing device
JP2020143932A (en) * 2019-03-04 2020-09-10 シチズン時計株式会社 Electronic watch

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016057817A (en) * 2014-09-09 2016-04-21 シャープ株式会社 Information processing device
JP2020143932A (en) * 2019-03-04 2020-09-10 シチズン時計株式会社 Electronic watch
JP7113771B2 (en) 2019-03-04 2022-08-05 シチズン時計株式会社 electronic clock

Similar Documents

Publication Publication Date Title
JP3088180B2 (en) Serial input interface circuit
JP2007532080A (en) Delay line synchronization apparatus and method
JP2007095261A (en) Semiconductor memory device
JP5125028B2 (en) Integrated circuit
JP2007094512A (en) Method, program and apparatus for designing semiconductor integrated circuit
US20070038795A1 (en) Asynchronous bus interface and processing method thereof
JP7035361B2 (en) Storage device, register file circuit and storage device control method
JP2009230434A (en) Reset circuit
JP4757582B2 (en) Data transfer operation end detection circuit and semiconductor memory device including the same
US20090116299A1 (en) Semiconductor memory device and method for operating the same
JP4389459B2 (en) Data buffer device
JP4829598B2 (en) Multi-bit storage device and multi-bit storage method
JP2007304073A (en) Semiconductor device and method for executing test of semiconductor device
JP2008283248A (en) Hold-free register cell
JP2008058098A (en) Semiconductor integrated circuit
KR100902048B1 (en) Circuit for receiving address of semiconductor apparatus
KR101393306B1 (en) Register having a security function and computer system thereof
JP5240135B2 (en) Semiconductor memory device testing method and semiconductor memory device
JP6711590B2 (en) Information processing device for controlling memory
KR100903384B1 (en) Semiconductor memory device and operation method thereof
JP4478592B2 (en) Memory circuit
KR100703711B1 (en) Control signal generation circuit and method for controlling operation of data transmission buffer, and semiconductor device having the same
JP2010073037A (en) Image processor
JP2697772B2 (en) Information processing device
JP4851964B2 (en) Synchronization circuit using dual port memory