Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3604101B2 - Flash memory controller - Google Patents
[go: Go Back, main page]

JP3604101B2 - Flash memory controller - Google Patents

Flash memory controller Download PDF

Info

Publication number
JP3604101B2
JP3604101B2 JP32397295A JP32397295A JP3604101B2 JP 3604101 B2 JP3604101 B2 JP 3604101B2 JP 32397295 A JP32397295 A JP 32397295A JP 32397295 A JP32397295 A JP 32397295A JP 3604101 B2 JP3604101 B2 JP 3604101B2
Authority
JP
Japan
Prior art keywords
flash memory
reset
program
cpu
signal
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.)
Expired - Fee Related
Application number
JP32397295A
Other languages
Japanese (ja)
Other versions
JPH09147588A (en
Inventor
正俊 井上
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP32397295A priority Critical patent/JP3604101B2/en
Publication of JPH09147588A publication Critical patent/JPH09147588A/en
Application granted granted Critical
Publication of JP3604101B2 publication Critical patent/JP3604101B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Description

【0001】
【発明の属する技術分野】
本発明はファクシミリ装置、複写機、パーソナルコンピュータ、ワードプロセッサなどプログラムを内蔵するフラッシュメモリを備えた電子機器のフラッシュメモリ制御装置に関し、特に誤動作などによってフラッシュメモリが内蔵するプログラムを読み出せない動作モードに遷移してしまった場合、上記モードから自動的に脱出できるフラッシュメモリ制御装置に関する。
【0002】
【従来の技術】
各種電子機器において、電源を遮断しても記憶内容が保持される不揮発性メモリとして、フラッシュメモリが普及しつつある。このフラッシュメモリには、データやプログラムが記憶され、後者の場合、CPUはフラッシュメモリから順次プログラムを読み出し、それに従って動作する様になる。
【0003】
一般に、フラッシュメモリは様々な動作モードを備えている。例えば、それらの動作モードにはフラッシュメモリにデータ(プログラムを含む)を書き込む書き込みモード、データを読み出す読み出し(リード)モード、内蔵する諸機能を実行するコマンドモードなどがある。フラッシュメモリの動作モードは、電源投入時またはフラッシュメモリをリセットさせたとき、一般には読み出しモードになり、以後、CPUなどから出される命令(指示)で他の動作モードに遷移する。
【0004】
ところが、プログラムがフラッシュメモリに内蔵されていると、もしもCPUが読み出しモードから他の動作モードに遷移させる命令を出すと、以後、CPUはフラッシュメモリからプログラムを読み出せず、したがって動作不能になってしまう。そのため、ROMなどにフラッシュメモリの動作モードをある条件で読み出しモードに戻すプログラムを備えたり、RAMなどにフラッシュメモリのプログラムをコピーしたりして、フラッシュメモリの動作モードを読み出しモードから他のモードに遷移させるときはフラッシュメモリのプログラムから上記ROMまたはRAM内のプログラムにジャンプさせ、その後、ROMまたはRAM内のプログラムに従ってフラッシュメモリの動作モードを読み出しモードにしてフラッシュメモリのプログラムに戻る様にしている。
【0005】
しかしながら、上記対処方法は、CPUなどから出される命令に基づいてフラッシュメモリが他の動作モ−ドに遷移する場合には有効であるが、フラッシュメモリ内のプログラムに従ってCPUが動作しているとき、誤動作などにより、発的にフラッシュメモリへの書き込みが行われると、それによりフラッシュメモリの動作モードが読み出しモードから他のモードに遷移してしまい、そのような場合は以後のプログラムの呼び出しが不可能になり、したがってCPUは動作不能になってしまう。従来は、上記のような動作不能状態が発生すると、いったん電源を切った後、再び電源を投入して立上げたり、リセットキーなどを押したりして、フラッシュメモリを読み出しモードに戻すことにより復帰させていた。
【0006】
【発明が解決しようとする課題】
上記のように、従来技術では、誤動作などによってフラッシュメモリが内蔵するプログラムを読み出せない動作モードに遷移してしまった場合には、利用者が一々リセットしなくてはならず、操作性が悪いという問題がある。本発明の目的は、上記のような従来技術の問題を解決し、誤動作などによってフラッシュメモリが内蔵するプログラムを読み出せない動作モードに遷移してしまった場合、自動的に動作可能な状態に復帰できるフラッシュメモリ制御装置を提供することにある。
【0007】
【課題を解決するための手段】
プログラムを内蔵するフラッシュメモリを備えた電子機器のフラッシュメモリ制御装置であって、フラッシュメモリがアクセスされていることを検出するフラッシュメモリアクセス検出回路と、上記フラッシュメモリが書き込み状態にあることを検出する書き込み状態検出回路と、上記フラッシュメモリアクセス検出回路によりフラッシュメモリへのアクセスが検出されており、上記書き込み状態検出回路によりフラッシュメモリが書き込み状態にあることが検出されており、且つフラッシュメモリへの正常な書き込みであればマスク状態が解除されるマスク信号がマスク状態を示しているときリセット信号を生成するリセット信号生成回路とを備え、上記リセット信号によりフラッシュメモリをリセットするようにしことを特徴とするフラッシュメモリ制御装置
【0008】
【作用】
上記のように構成したので、誤動作などによりフラッシュメモリに書き込みが行われると、直ちにそのフラッシュメモリがリセットされる。
【0009】
【発明の実施の形態】
以下、図面により本発明の実施の形態を詳細に説明する。図1は本発明の第1の実施形態を示すフラッシュメモリ制御装置の回路図である。図示したように、この実施形態のフラッシュメモリ制御装置は、プログラムを内蔵するフラッシュメモリ1、フラッシュメモリ1がアクセス(アドレッシング)されていることを検出するフラッシュメモリアクセス検出回路2、フラッシュメモリ1が書き込み状態にあることを検出する書き込み状態検出回路3、フラッシュメモリ1およびCPU5をリセットするリセット信号cを生成するリセット信号生成回路(アンドゲート)4などを備えている。
【0010】
図2は上記実施形態の主たる信号のタイミングチャートである。以下、図1および図2により、第1の実施形態の動作を説明する。電源が投入されたとき、またはリセットキー(図示していない)が押されたとき、初期リセット信号b(Lowレベル信号)が生成され、その信号により、フリップフロップ6,7およびD型フリップフロップ8,9,10,11はセット状態(Q出力がHighレベル)になる。その後、CPU5はフラッシュメモリ1にアクセスし(アドレスバスdによりアドレッシングし)、データバスeを介してフラッシュメモリ1内のプログラムを読み出し、そのプログラムに従って動作する。
【0011】
このような状態にあるとき、誤動作により、フラッシュメモリ1への書き込み動作が発生し、それによって、従来技術の項に記述したように、フラッシュメモリ1の動作モードが読み出しモード以外のモード(書き込みモ−ド)に遷移してしまったとする。このような状態が発生したとき、フラッシュメモリアクセス検出回路2はフラッシュメモリ1がアクセスされていることを検出する。すなわち、フラッシュメモリ1への書き込みが行われるということは、アドレスバスdにフラッシュメモリ1のアドレス空間に属するアドレスがCPU5により出力されたわけであるから、フラッシュメモリ検出回路2はフラッシュメモリ1のアドレス空間をデコードすることにより、フラッシュメモリ1へのアクセス(アドレッシング)が行われたことを検出できるのである。こうして、フラッシュメモリ検出回路2からHighレベルの信号fが出力される。
【0012】
一方、CPU5はアドレスバスdにアドレスを出力するとき、そのアドレス出力が何を行うための出力なのかを示すステート信号nを出力する。そこで、書き込み状態検出回路3はこのステート信号nをデコードし、ステート信号が書き込み状態であることを示しているときHighレベルの信号gを出力する。
【0013】
リセット信号生成回路4は入力信号f,g,hが共にHighレベルであるときLowレベルのリセット信号cを出力する(図2参照)。なお、上記信号hは通常Highレベルのマスク信号で、フラッシュメモリ1への正常な書き込みを行うときのみプログラムによりマスクが解除されLowレベルになる。つまり、誤動作によるフラッシュメモリ1への書き込み発生時には、マスク信号はマスク状態のままなので信号hはHighレベルになる。
【0014】
リセツト信号cによりフリップフロップ6,7がリセットされると、信号k,mはLowレベルになり、それによってフラッシュメモリ1およびCPU5がリセットされる。なお、D型フリップフロップ8,9,10,11は遅延回路を構成しており、フリップフロップ7のQ出力がD型フリップフロップ8のD入力に入り、その入力信号がクロック信号a(図2参照)により順次後段のD型フリップフロップ9,10,11の出力に現われる(図2参照)。こうして、信号iおよび信号jが生成され、信号iによりフリップフロップ6がセットされ、信号jによりフリップフロップ7がセットされる(図2参照)。つまり、フラッシュメモリ1およびCPU5のリセット期間が終了する。
【0015】
フラッシュメモリ1はリセットされると、読み出しモードに復帰し、CPU5はリセットにより、初期化され、動作可能状態になる。なお、CPU5をリセットしないでフラッシュメモリ1だけリセットして読み出しモードにし、CPU5の動作を再開させる構成も可能である。しかしこのような構成でCPU5が正常に動作を再開できる状況は特定の場合に限定される。また、上記動作において、CPU5のリセット期間(リセット解除タイミング)をフラッシュメモリ1のリセット期間(リセット解除タイミング)よりも所定時間だけ延ばしているが、これはCPU5がリセットを終了し、動作を再開するとき、確実にフラッシュメモリ1がリセット処理を終了しているようにするためである。
【0016】
【発明の効果】
以上説明したように、本発明によれば、誤動作などによりフラッシュメモリに書き込みが行われ、それによりCPUがプログラムを読めなくなると、直ちにそのフラッシュメモリがリセットされるので、自動的に動作可能な状態に復帰できる。
【図面の簡単な説明】
【図1】本発明の第1実施形態のフラッシュメモリ制御装置の回路図。
【図2】本発明の第1実施形態のフラッシュメモリ制御装置のタイミングチャート。
【符号の説明】
1:フラッシュメモリ
2:フラッシュメモリアクセス検出回路
3:書き込み状態検出回路
4:リセット信号生成回路
5:CPU
6,7:フリップフロップ
8〜11:D型フリップフロップ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a flash memory control device of an electronic device including a flash memory having a built-in program such as a facsimile machine, a copying machine, a personal computer, and a word processor, and particularly to an operation mode in which a program built in the flash memory cannot be read due to a malfunction or the like. The present invention relates to a flash memory control device that can automatically escape from the above mode when a transition has occurred.
[0002]
[Prior art]
2. Description of the Related Art In various types of electronic devices, flash memories are becoming widespread as non-volatile memories that retain their stored contents even when power is turned off. Data and programs are stored in the flash memory. In the latter case, the CPU sequentially reads out the programs from the flash memory and operates according to the programs.
[0003]
Generally, a flash memory has various operation modes. For example, the operation modes include a write mode for writing data (including a program) to the flash memory, a read (read) mode for reading data, and a command mode for executing various built-in functions. The operation mode of the flash memory generally changes to a read mode when the power is turned on or when the flash memory is reset, and thereafter shifts to another operation mode by a command (instruction) issued from a CPU or the like.
[0004]
However, if the program is embedded in the flash memory, and if the CPU issues a command to make a transition from the read mode to another operation mode, the CPU will not be able to read the program from the flash memory thereafter, and will not be able to operate. I will. Therefore, a program for returning the operation mode of the flash memory to the read mode under a certain condition is provided in a ROM or the like, or the program of the flash memory is copied to the RAM or the like, so that the operation mode of the flash memory is changed from the read mode to another mode. When making a transition, the program in the flash memory is jumped to the program in the ROM or RAM, and then the operation mode of the flash memory is set to the read mode in accordance with the program in the ROM or RAM, and the program returns to the program in the flash memory.
[0005]
However, the above countermeasures are effective when the flash memory shifts to another operation mode based on an instruction issued from the CPU or the like, but when the CPU operates according to the program in the flash memory, the malfunction, when writing to the flash memory is performed in collision voluntarily, whereby the operation mode of the flash memory ends up transition from the read mode to another mode, such a case a call to the subsequent program not Enabled, thus rendering the CPU inoperable. Conventionally, when the inoperable state as described above occurs, the power is turned off and then turned on again, and the flash memory is restored by returning to the read mode by pressing the reset key, etc. I was letting it.
[0006]
[Problems to be solved by the invention]
As described above, in the related art, when the operation mode shifts to an operation mode in which the program built in the flash memory cannot be read due to a malfunction or the like, the user must reset each one, and the operability is poor. There is a problem. An object of the present invention is to solve the above-described problems of the related art, and to automatically return to an operable state when a transition is made to an operation mode in which a program built in the flash memory cannot be read due to a malfunction or the like. It is an object of the present invention to provide a flash memory control device that can be used.
[0007]
[Means for Solving the Problems]
A flash memory control apparatus for an electronic apparatus having a flash memory having a built-in program, and a flash memory access detection circuit for detecting that the flash memory is accessed, detects that the flash memory is in the write state The access to the flash memory is detected by the write state detection circuit and the flash memory access detection circuit, and the fact that the flash memory is in the write state is detected by the write state detection circuit. wherein the mask signal masks state is released if normal writing is a reset signal generating circuit for generating a reset signal when showing the masked and such that the flash memory is reset by the reset signal And Sshumemori control device.
[0008]
[Action]
Than the structure described above, when writing to the flash memory is performed by such malfunction, Ru is immediately reset the flash memory.
[0009]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a circuit diagram of a flash memory control device according to a first embodiment of the present invention. As shown in the drawing, the flash memory control device of this embodiment includes a flash memory 1 having a built-in program, a flash memory access detection circuit 2 for detecting that the flash memory 1 is being accessed (addressed), and a flash memory 1 for writing. The flash memory 1 includes a write state detection circuit 3 for detecting a state, a flash memory 1 and a reset signal generation circuit (AND gate) 4 for generating a reset signal c for resetting the CPU 5.
[0010]
FIG. 2 is a timing chart of main signals in the above embodiment. Hereinafter, the operation of the first embodiment will be described with reference to FIGS. When the power is turned on or a reset key (not shown) is pressed, an initial reset signal b (Low level signal) is generated, and the flip-flops 6 and 7 and the D-type flip-flop 8 are generated by the signal. , 9, 10, and 11 are set (Q output is at a high level). Thereafter, the CPU 5 accesses the flash memory 1 (addressing by the address bus d), reads a program in the flash memory 1 via the data bus e, and operates according to the program.
[0011]
In such a state, a write operation to the flash memory 1 occurs due to a malfunction, and as a result, as described in the section of the related art, the operation mode of the flash memory 1 is set to a mode other than the read mode (write mode). −). When such a state occurs, the flash memory access detection circuit 2 detects that the flash memory 1 is being accessed. That is, the fact that writing to the flash memory 1 is performed means that an address belonging to the address space of the flash memory 1 is output to the address bus d by the CPU 5. Is decoded, it can be detected that the access (addressing) to the flash memory 1 has been performed. Thus, the high-level signal f is output from the flash memory detection circuit 2.
[0012]
On the other hand, when outputting an address to the address bus d, the CPU 5 outputs a state signal n indicating what the address output is for. Therefore, the write state detection circuit 3 decodes the state signal n, and outputs a high-level signal g when the state signal indicates the write state.
[0013]
The reset signal generation circuit 4 outputs a low-level reset signal c when the input signals f, g, and h are all high (see FIG. 2). The signal h is normally a mask signal of a high level, and the mask is released by a program and becomes a low level only when normal writing to the flash memory 1 is performed. That is, at the time of writing to the flash memory 1 due to a malfunction, the mask signal remains at the high level because the mask signal remains in the mask state.
[0014]
When the flip-flops 6 and 7 are reset by the reset signal c, the signals k and m go low, thereby resetting the flash memory 1 and the CPU 5. The D-type flip-flops 8, 9, 10, and 11 constitute a delay circuit. The Q output of the flip-flop 7 enters the D-input of the D-type flip-flop 8, and the input signal is a clock signal a (FIG. 2). ) Sequentially appear at the outputs of the subsequent D-type flip-flops 9, 10, 11 (see FIG. 2). Thus, the signal i and the signal j are generated, the flip-flop 6 is set by the signal i, and the flip-flop 7 is set by the signal j (see FIG. 2). That is, the reset period of the flash memory 1 and the CPU 5 ends.
[0015]
When the flash memory 1 is reset, the flash memory 1 returns to the read mode, and the CPU 5 is initialized by the reset to be in an operable state. It is also possible to adopt a configuration in which only the flash memory 1 is reset to the read mode without resetting the CPU 5, and the operation of the CPU 5 is restarted. However, the situation in which the CPU 5 can normally resume the operation in such a configuration is limited to a specific case. In the above operation, the reset period (reset release timing) of the CPU 5 is extended by a predetermined time from the reset period (reset release timing) of the flash memory 1. However, the CPU 5 ends the reset and restarts the operation. This is to ensure that the flash memory 1 has completed the reset process.
[0016]
【The invention's effect】
As described above, according to the present invention, writing to the flash memory is performed by such malfunction, whereby the CPU can not read the program, since immediately the flash memory is reset, which automatically operable Ru can return to the state.
[Brief description of the drawings]
FIG. 1 is a circuit diagram of a flash memory control device according to a first embodiment of the present invention.
FIG. 2 is a timing chart of the flash memory control device according to the first embodiment of the present invention.
[Explanation of symbols]
1: Flash memory 2: Flash memory access detection circuit 3: Write state detection circuit 4: Reset signal generation circuit 5: CPU
6, 7: flip-flops 8 to 11: D-type flip-flops

Claims (1)

プログラムを内蔵するフラッシュメモリを備えた電子機器のフラッシュメモリ制御装置であって、フラッシュメモリがアクセスされていることを検出するフラッシュメモリアクセス検出回路と、上記フラッシュメモリが書き込み状態にあることを検出する書き込み状態検出回路と、上記フラッシュメモリアクセス検出回路によりフラッシュメモリへのアクセスが検出されており、上記書き込み状態検出回路によりフラッシュメモリが書き込み状態にあることが検出されており、且つフラッシュメモリへの正常な書き込みであればマスク状態が解除されるマスク信号がマスク状態を示しているときリセット信号を生成するリセット信号生成回路とを備え、上記リセット信号によりフラッシュメモリをリセットするようにしたことを特徴とするフラッシュメモリ制御装置。A flash memory control device for an electronic device including a flash memory having a built-in program, wherein the flash memory access detection circuit detects that the flash memory is being accessed, and detects that the flash memory is in a write state. An access to the flash memory is detected by the write state detection circuit and the flash memory access detection circuit, and the flash memory is detected to be in the write state by the write state detection circuit. A reset signal generating circuit for generating a reset signal when the mask signal indicates that the mask state is released if the write operation is performed properly, and the flash memory is reset by the reset signal. To Sshumemori control device.
JP32397295A 1995-11-17 1995-11-17 Flash memory controller Expired - Fee Related JP3604101B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32397295A JP3604101B2 (en) 1995-11-17 1995-11-17 Flash memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32397295A JP3604101B2 (en) 1995-11-17 1995-11-17 Flash memory controller

Publications (2)

Publication Number Publication Date
JPH09147588A JPH09147588A (en) 1997-06-06
JP3604101B2 true JP3604101B2 (en) 2004-12-22

Family

ID=18160696

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32397295A Expired - Fee Related JP3604101B2 (en) 1995-11-17 1995-11-17 Flash memory controller

Country Status (1)

Country Link
JP (1) JP3604101B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4662019B2 (en) * 2004-06-18 2011-03-30 セイコーエプソン株式会社 Integrated circuit device and electronic apparatus

Also Published As

Publication number Publication date
JPH09147588A (en) 1997-06-06

Similar Documents

Publication Publication Date Title
KR101343714B1 (en) Shared nonvolatile memory architecture
US8397042B2 (en) Secure memory interface
US5576650A (en) Reset circuit of electronic device
CN112463230A (en) Program operation method and device, electronic equipment and storage medium
KR960008543A (en) Integrated circuit microprocessor with programmable memory access interface type and associated method
US7395397B2 (en) Electronic apparatus with page table management of program, data processing method and computer program
JP3604101B2 (en) Flash memory controller
JP2000194551A (en) Flash memory rewriting circuit
JPH07182170A (en) Microprocessor
JPH03204053A (en) Read-only memory
JP2000235483A (en) Information processor
US6397310B1 (en) Method and apparatus for controlling write access to storage means for a digital data processing circuit
JP7649910B1 (en) Microprocessor and method for debugging the same - Patents.com
CN115129526B (en) A BIOS dynamic debugging method, system, storage medium and device
JP3951371B2 (en) Watchdog timer and microcomputer
JP2859048B2 (en) Microcomputer
JP3166667B2 (en) Emulation microcomputer
JP2008102761A (en) How to update embedded firmware
EP0953910B1 (en) Method and apparatus for controlling write access to storage means for a digital data processing circuit
JP3695931B2 (en) Microcomputer
JP3214413B2 (en) emulator
JP3166167B2 (en) Microcomputer
JP2919357B2 (en) CPU interface circuit
JP2643790B2 (en) emulator
KR100860682B1 (en) Apparatus and method for interfacing between modem and memory in mobile station

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040510

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040927

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071008

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081008

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081008

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091008

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101008

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111008

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121008

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131008

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees