JP2019046531A - Serial flash memory reset control device - Google Patents
Serial flash memory reset control device Download PDFInfo
- Publication number
- JP2019046531A JP2019046531A JP2017216961A JP2017216961A JP2019046531A JP 2019046531 A JP2019046531 A JP 2019046531A JP 2017216961 A JP2017216961 A JP 2017216961A JP 2017216961 A JP2017216961 A JP 2017216961A JP 2019046531 A JP2019046531 A JP 2019046531A
- Authority
- JP
- Japan
- Prior art keywords
- reset
- flash memory
- serial flash
- 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.)
- Pending
Links
Images
Landscapes
- Memory System (AREA)
Abstract
Description
本発明は、シリアルフラッシュメモリを搭載する装置におけるリセット制御方式に関する。 The present invention relates to a reset control method in an apparatus equipped with a serial flash memory.
現在、携帯電話、モバイル端末、ルータと言った装置に於いて、装置を動作させるのに必要なプログラムのデータは、大容量である必要があるためフラッシュメモリに格納されていて、CPUのメインのバスに接続されている。従来のフラッシュメモリは、所謂パラレル型のものが多かったが、その特徴として、アドレス、データに多くの信号線数を必要とするため、ピン数が多くなっていた。また、その動作スピードも遅いものであった。 Currently, in devices such as mobile phones, mobile terminals, and routers, the program data required to operate the device must be large in capacity, so it is stored in flash memory, and the main CPU data Connected to the bus. Many conventional flash memories have a so-called parallel type, but the feature is that a large number of signal lines are required for addresses and data, so that the number of pins is large. In addition, the operation speed was slow.
最近は、その問題を改善するためにシリアルフラッシュメモリが開発されている。ただし開発当初は容量が小さいため、高性能CPUのメモリとしては使われなかった。その改善策として、アドレスを拡張して容量を増やす方法が取られた。 Recently, serial flash memory has been developed to improve the problem. However, because of its small capacity at the beginning of development, it was not used as a memory for high-performance CPUs. As an improvement measure, a method of expanding the address and increasing the capacity was adopted.
従来の3バイトアドレスを拡張し、4番目以上のバイトをシリアルフラッシュメモリ内の拡張アドレスレジスタに保管する必要がある。しかし、この拡張アドレスレジスタは、電源リセットサイクルと外部リセット信号によるリセットでしかクリアされないという問題がある。 It is necessary to expand the conventional 3-byte address and store the fourth or more bytes in the extended address register in the serial flash memory. However, this extended address register has a problem that it is cleared only by a power reset cycle and reset by an external reset signal.
尚、拡張アドレスレジスタのリセット要件は、例えば非特許文献1に記載されている。
The reset requirement of the extended address register is described in
シリアルフラッシュメモリを搭載する装置において、例えば、装置で何らかの異常があり、CPUを再起動させた場合、拡張アドレスレジスタはクリアされないので、本来再起動した場合のアドレス‘0’ではなく、拡張アドレス+‘0’となるため、正常に起動出来なくなる。 In a device equipped with a serial flash memory, for example, when there is some abnormality in the device and the CPU is restarted, the extended address register is not cleared. Therefore, instead of the address “0” originally restarted, the extended address + Since it becomes '0', it cannot start normally.
さらに、拡張アドレスをクリアする方法である、電源リセットサイクル、外部リセット信号によりリセットした場合であっても、シリアルフラッシュメモリは一旦リセットモードという状態になり、ある一定期間アクセス出来なくなるため、CPUからアクセスするまでに何らかのウエイトを持たせる必要がある。 Furthermore, even if the extended address is cleared by a power reset cycle or reset by an external reset signal, the serial flash memory is temporarily in a reset mode and cannot be accessed for a certain period of time. It is necessary to have some weight before doing.
従来のCPUとシリアルフラッシュメモリのリセット信号の構成図を図4に示す。図4において、CPU11は専用I/F(インターフェース)11aを内蔵し、シリアルフラッシュメモリ12に対してセレクト信号13(SEL)、クロック信号14(CLK)を送信する。また、専用I/F11aとシリアルフラッシュメモリ12の間でデータ入出力信号15(D)の授受が行われる。
FIG. 4 shows a configuration diagram of reset signals of the conventional CPU and serial flash memory. In FIG. 4, the
CPU11およびシリアルフラッシュメモリ12には、例えばリセットスイッチによる外部からのリセット信号16が入力される。シリアルフラッシュメモリ12には、内部に、従来の3バイトアドレスを拡張した拡張アドレスレジスタを備えており、例えばQSPI(Quad Serial Peripheral Interface)を使ったシリアルフラッシュメモリで構成されている。
The
上記構成により、CPU11から、拡張アドレスレジスタを有したシリアルフラッシュメモリ12に対して、データの読み出し、書き込みが行われる。
With the above configuration, data is read and written from the
図4の回路では、CPU11がシリアルフラッシュメモリ12をアクセスしている最中に、リセットスイッチなどでリセットをかける(リセット信号16を入力する)と、CPU11はリセットが掛かり再起動するが、シリアルフラッシュメモリ12はリセットモードになるため、CPU11がリセット解除後にシリアルフラッシュメモリ12のデータを直ちに読みに行っても、シリアルフラッシュメモリ12から正しいデータを読み出すことができない。このため装置としては停止してしまう。
In the circuit shown in FIG. 4, when the
本発明は、上記課題を解決するものであり、その目的は、シリアルフラッシュメモリをアクセス中にリセットが掛けられてもCPUが正常に再起動することができるシリアルフラッシュメモリのリセット制御装置を提供することにある。 The present invention solves the above-described problems, and an object of the present invention is to provide a serial flash memory reset control device in which a CPU can be normally restarted even if a reset is applied while the serial flash memory is being accessed. There is.
上記課題を解決するための請求項1に記載のシリアルフラッシュメモリのリセット制御装置は、拡張アドレスレジスタを有し、CPUによりデータの読み出し、書き込みが行われるシリアルフラッシュメモリのリセット制御装置であって、
前記CPUには、CPUとシリアルフラッシュメモリ間で送受信されるデータ信号が入力される第1の入出力ポートと、電源起動用の第1のリセット信号および該第1のリセット信号とは分離されたCPU用の第2のリセット信号が入力される第2の入出力ポートとが設けられ、
前記CPUは、
CPUがシリアルフラッシュメモリにアクセスしている期間中に、前記第2のリセット信号が前記第2の入出力ポートに入力されたとき、CPUからシリアルフラッシュメモリへのアクセス終了後に、シリアルフラッシュメモリ用の第3のリセット信号をシリアルフラッシュメモリに対して出力する機能と、
前記シリアルフラッシュメモリからCPUの第1の入出力ポートへ送信されるデータ信号が、シリアルフラッシュメモリのリセットモード状態を示す信号か、又はリセットモードが解除されたことを示す信号かを監視して認識する監視機能と、
前記監視機能が前記リセットモード解除を認識したとき、再起動処理を行う機能と、を備え、
前記シリアルフラッシュメモリは、前記第3のリセット信号の入力によりリセットモードにされ、シリアルフラッシュメモリからCPUの第1の入出力ポートへの送信データ信号を、リセットモード状態を示す信号とする機能を備えている
ことを特徴とする。
The serial flash memory reset control device according to
In the CPU, a first input / output port to which a data signal transmitted / received between the CPU and the serial flash memory is input, a first reset signal for power activation, and the first reset signal are separated. A second input / output port to which a second reset signal for the CPU is input;
The CPU
When the second reset signal is input to the second input / output port during the period in which the CPU is accessing the serial flash memory, the serial flash memory A function of outputting a third reset signal to the serial flash memory;
Monitor and recognize whether the data signal transmitted from the serial flash memory to the first input / output port of the CPU is a signal indicating the reset mode state of the serial flash memory or a signal indicating that the reset mode is released Monitoring function to
A function of performing a restart process when the monitoring function recognizes the release of the reset mode,
The serial flash memory is set to a reset mode by the input of the third reset signal, and has a function of using a transmission data signal from the serial flash memory to the first input / output port of the CPU as a signal indicating a reset mode state. It is characterized by being.
また、請求項2に記載のシリアルフラッシュメモリのリセット制御装置は、請求項1において、前記CPUの監視機能は、CPUからシリアルフラッシュメモリへダミーサイクルを発行して実施されることを特徴とする。 According to a second aspect of the present invention, there is provided the serial flash memory reset control device according to the first aspect, wherein the monitoring function of the CPU is executed by issuing a dummy cycle from the CPU to the serial flash memory.
また、請求項3に記載のシリアルフラッシュメモリのリセット制御装置は、請求項1又は2において、前記第3のリセット信号は、シリアルフラッシュメモリの電源を一度OFFした後再度ONにして電源リセットサイクルを起こす電源制御信号であることを特徴とする。
The serial flash memory reset control device according to
上記構成によれば、シリアルフラッシュメモリは、CPUがシリアルフラッシュメモリをアクセスしている最中の外部からのリセット信号ではなく、前記アクセス終了後にCPUから出力される、シリアルフラッシュメモリ用の第3のリセット信号によってリセットされる。 According to the above configuration, the serial flash memory is not a reset signal from the outside while the CPU is accessing the serial flash memory, but is output from the CPU after the access is completed. Reset by reset signal.
そして第1の入出力ポートに入力されるデータ信号に基づいて、シリアルフラッシュメモリのリセットモード状態を監視しているため、リセットモード解除後にCPUを再起動することができる。 Since the reset mode state of the serial flash memory is monitored based on the data signal input to the first input / output port, the CPU can be restarted after the reset mode is released.
このため、シリアルフラッシュメモリをアクセス中にリセットスイッチが押されても(第2のリセット信号が入力されても)、CPUは正常に再起動することができ、シリアルフラッシュメモリからCPUがデータを正常に読み込めずに停止してしまうことが防止される。また、書き込み処理が中断されることは防止される。 For this reason, even if the reset switch is pressed while the serial flash memory is being accessed (even if the second reset signal is input), the CPU can be restarted normally, and the CPU can properly restore data from the serial flash memory. It is prevented that the program stops without being read. Further, the writing process is prevented from being interrupted.
また、請求項4に記載のシリアルフラッシュメモリのリセット制御装置は、請求項3において、
前記電源制御信号又は前記第1のリセット信号の少なくともいずれか一方の信号によって、前記シリアルフラッシュメモリの電源リセットサイクルを起こさせるように構成したことを特徴とする。
According to a fourth aspect of the present invention, there is provided the reset control device for a serial flash memory according to the third aspect.
The power supply reset cycle of the serial flash memory is caused to occur by at least one of the power control signal and the first reset signal.
上記構成によれば、CPUに電源起動用の第1のリセット信号が入力された場合(電源起動によるリセットが発生した場合)も、シリアルフラッシュメモリの電源リセットサイクルを起こさせることができ、CPUとシリアルフラッシュメモリのリセットを同期化することができる。 According to the above configuration, even when the first reset signal for power activation is input to the CPU (when power reset is generated), the power reset cycle of the serial flash memory can be caused. The reset of the serial flash memory can be synchronized.
(1)請求項1〜4に記載の発明によれば、シリアルフラッシュメモリをアクセス中にリセットスイッチが押されても(第2のリセット信号が入力されても)、CPUは正常に再起動することができ、シリアルフラッシュメモリからCPUがデータを正常に読み込めずに停止してしまうことが防止される。また、書き込み処理が中断されることは防止される。
(2)請求項4に記載の発明によれば、CPUに電源起動用の第1のリセット信号が入力された場合に、CPUとシリアルフラッシュメモリのリセットを同期化することができる。
(1) According to the first to fourth aspects of the present invention, even if the reset switch is pressed during the access to the serial flash memory (even if the second reset signal is input), the CPU restarts normally. This prevents the CPU from reading data from the serial flash memory and stopping the data normally. Further, the writing process is prevented from being interrupted.
(2) According to the invention described in claim 4, when the first reset signal for power activation is input to the CPU, the reset of the CPU and the serial flash memory can be synchronized.
以下、図面を参照しながら本発明の実施の形態を説明するが、本発明は下記の実施形態例に限定されるものではない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings, but the present invention is not limited to the following embodiments.
本実施形態例における従来回路との変更点は、拡張アドレスレジスタを有し、CPUによりデータの読み出し、書き込みが行われるシリアルフラッシュメモリのリセット制御装置において、まずリセットはCPUへのリセットと分離したシリアルフラッシュメモリリセット用のものを設けている。CPUのリセットに関しても、電源起動のものと、その他スイッチによるものとを分離している。 The change from the conventional circuit in the present embodiment is that an extension address register is provided, and in the reset controller of the serial flash memory in which data is read and written by the CPU, the reset is a serial that is separated from the reset to the CPU. A flash memory resetting device is provided. Regarding the resetting of the CPU, the power-on and the other switches are separated.
さらに、シリアルフラッシュメモリがリセットモードから復帰したかどうかを確認するために、データ入出力信号をCPUのGPIO(General Purpose Input/Output、ゼネラル・パーパス・I/O(汎用I/Oポート))で監視するように構成した。シリアルフラッシュメモリとしては、QSPIを使ったシリアルフラッシュメモリを本発明に適用することができる。 Furthermore, in order to confirm whether or not the serial flash memory has returned from the reset mode, the data input / output signal is output by the CPU GPIO (General Purpose Input / Output, General Purpose I / O (General Purpose I / O Port)). Configured to monitor. As the serial flash memory, a serial flash memory using QSPI can be applied to the present invention.
図1は本実施例1による回路構成を示し、図5と同一部分は同一符号をもって示している。CPU11には、専用I/F11aとシリアルフラッシュメモリ12の間で送受信されるデータ入出力信号15(D)が入力されるGPIO(1)(第1の入出力ポート)が設けられている。
FIG. 1 shows a circuit configuration according to the first embodiment, and the same parts as those in FIG. The
さらにCPU11には、電源起動用のリセット信号16(第1のリセット信号)と、リセット信号16とは分離された、その他スイッチによるその他リセット信号18(第2のリセット信号)とを各々入力して読み取るGPIO(2)(第2の入出力ポート)が設けられている。
Further, the
CPU11は、CPU11がシリアルフラッシュメモリ12にアクセスしている期間中に、その他リセット信号18がGPIO(2)に入力されたとき、CPU11からシリアルフラッシュメモリ12へのアクセス終了後に、リセット信号17(R)(シリアルフラッシュメモリ用の第3のリセット信号)をシリアルフラッシュメモリ12に対して出力する機能を有している。
When other reset signal 18 is input to GPIO (2) while
シリアルフラッシュメモリ12は、CPU11からのリセット信号17(R)によりリセットモードにされ、そのときシリアルフラッシュメモリ12からCPU11への送信データ信号(データ入出力信号15(D))を、リセットモード状態を示す信号(例えばハイインピーダンス‘1’)とする機能を有している。
The serial flash memory 12 is set to the reset mode by the reset signal 17 (R) from the
またCPU11は、GPIO(1)に入力されるデータ入出力信号15(D)が、シリアルフラッシュメモリのリセットモード状態を示す信号(例えば‘1’)か、又はリセット状態が解除されたことを示す信号(例えば‘0’)かを監視して認識する監視機能を有している。
Further, the
またCPU11は、前記監視機能が、前記リセットモード解除を認識したとき、自身の再起動処理を行う機能を有している。その他の部分は図5と同様に構成されている。
Further, the
次に本実施例1の動作を図2とともに説明する。図2は図1のCPU11が行う処理フローを示している。ステップS101では、GPIO(2)に入力されるその他リセット信号18を読み取り、リセットスイッチなどでリセットが掛けられたときのリセット信号‘0’であるか否かを判定する。
Next, the operation of the first embodiment will be described with reference to FIG. FIG. 2 shows a processing flow performed by the
ステップS101において、その他リセット信号18が‘0’であると判定されたら、リセット処理に移行するが、CPU11からシリアルフラッシュメモリ12(QSPI)へアクセスが行われている場合には、そのアクセスが終了するまでステップS102で待ち、終了したらステップS103においてシリアルフラッシュメモリ12へのリセット信号17(R)を有効にして、リセットを掛ける。
If it is determined in step S101 that the other reset signal 18 is “0”, the process proceeds to reset processing. However, if the
これによってシリアルフラッシュメモリ12がリセットモードに入り、シリアルフラッシュメモリ12はデータ入出力信号15(D)をハイインピーダンス(‘1’)にする。 As a result, the serial flash memory 12 enters the reset mode, and the serial flash memory 12 sets the data input / output signal 15 (D) to high impedance ('1').
次にステップS104では、GPIO(1)で監視されるデータ入出力信号15(D)が‘0’(すなわちリセットモードが解除されたことを示す信号)か否かを判定する。 In step S104, it is determined whether or not the data input / output signal 15 (D) monitored by GPIO (1) is “0” (that is, a signal indicating that the reset mode has been released).
データは通常抵抗でプルアップされているので、リセット期間中はGPIO(1)において少なくとも全て‘1’が読める。CPU11はシリアルフラッシュメモリ12にダミーサイクルを発行してデータ(データ入出力信号15(D))を監視し、‘0’が読み出せた時にリセットモードが解除されたと認識し、ステップS105においてCPU11はリブートする。
Since data is normally pulled up by a resistor, at least all “1” can be read in GPIO (1) during the reset period. The
以上のように、シリアルフラッシュメモリ12は、CPU11がシリアルフラッシュメモリ12をアクセスしている最中の外部からのリセット信号ではなく、前記アクセス終了後にCPU11から出力されるリセット信号17(R)によってリセットされる。そしてGPIO(1)に入力されるデータ入出力信号15(D)に基づいてシリアルフラッシュメモリ12のリセットモード状態を監視しているので、シリアルフラッシュメモリ12のリセットモード解除後にCPU11が正常に再起動される。
As described above, the serial flash memory 12 is reset not by an external reset signal while the
このため、シリアルフラッシュメモリ12をアクセス中にリセットスイッチが押されても(その他リセット信号18が入力されても)、CPU11は正常に再起動することができ、シリアルフラッシュメモリ12からCPU11がデータを正常に読み込めずに停止してしまうことが防止される。また、書き込み処理が中断されることは防止される。
For this reason, even if the reset switch is pressed while the serial flash memory 12 is being accessed (even if the other reset signal 18 is input), the
本実施例2では、シリアルフラッシュメモリのリセットを掛ける場合、外部リセット信号を使用せず、シリアルフラッシュメモリの電源リセットサイクルを使用するように構成した。すなわち、実施例1の、CPU11からシリアルフラッシュメモリ12に出力するリセット信号17(R)に代えて、シリアルフラッシュメモリ12の電源を一度OFFした後再度ONにして、シリアルフラッシュメモリ12の電源リセットサイクルを起こす電源制御信号27を、図3のようにCPU11内のGPIO(3)に設けた。
In the second embodiment, when the serial flash memory is reset, the external reset signal is not used and the power reset cycle of the serial flash memory is used. That is, in place of the reset signal 17 (R) output from the
図3において、31は、GPIO(3)の電源制御信号27によりオン、オフ制御されるトランジスタであり、電源制御信号27がOFFのときは電源30の電圧をシリアルフラッシュメモリ12の電源ピンに供給せず、電源制御信号27がONのときは電源30の電圧をシリアルフラッシュメモリ12の電源ピンに供給するように構成している。その他の部分は図1と同様に構成されている。
In FIG. 3, 31 is a transistor that is ON / OFF controlled by the power supply control signal 27 of GPIO (3). When the power supply control signal 27 is OFF, the voltage of the
図3の回路の動作は図2のフローチャートと同様となるが、図2のステップS103の処理を、後述するステップS203の処理に置き換えた動作となる。 The operation of the circuit in FIG. 3 is the same as that in the flowchart in FIG. 2, but the operation in step S103 in FIG. 2 is replaced with the processing in step S203 described later.
すなわち、ステップS101では、GPIO(2)に入力されるその他リセット信号18を読み取り、リセットスイッチなどでリセットが掛けられたときのリセット信号‘0’であるか否かを判定する。 That is, in step S101, the other reset signal 18 input to GPIO (2) is read, and it is determined whether or not the reset signal is “0” when the reset is applied by a reset switch or the like.
ステップS101において、その他リセット信号18が‘0’であると判定されたら、リセット処理に移行するが、CPU11からシリアルフラッシュメモリ12(QSPI)へアクセスが行われている場合には、そのアクセスが終了するまでステップS102で待ち、終了したらステップS203において、GPIO(3)の電源制御信号27をOFFにして一度シリアルフラッシュメモリ12の電源を切り、再度ONにしてシリアルフラッシュメモリ12の電源リセットサイクルを起こす。
If it is determined in step S101 that the other reset signal 18 is “0”, the process proceeds to reset processing. However, if the
これによってシリアルフラッシュメモリ12は電源リセットサイクルに入り、データ入出力信号15(D)をハイインピーダンス(‘1’)にする。 As a result, the serial flash memory 12 enters a power supply reset cycle and sets the data input / output signal 15 (D) to high impedance ('1').
次にステップS104では、GPIO(1)で監視されるデータ入出力信号15(D)が‘0’(すなわち電源リセットサイクルが解除されたことを示す信号)か否かを判定する。 Next, in step S104, it is determined whether or not the data input / output signal 15 (D) monitored by GPIO (1) is '0' (that is, a signal indicating that the power reset cycle has been released).
データは通常抵抗でプルアップされているので、リセット期間中はGPIO(1)において少なくとも全て‘1’が読める。CPU11はシリアルフラッシュメモリ12にダミーサイクルを発行してデータ(データ入出力信号15(D))を監視し、‘0’が読み出せた時に電源リセットサイクルが解除されたと認識し、ステップS105においてCPU11はリブートする。
Since data is normally pulled up by a resistor, at least all “1” can be read in GPIO (1) during the reset period. The
本実施例2も、実施例1と同様に、シリアルフラッシュメモリ12をアクセス中にリセットスイッチが押されても(その他リセット信号18が入力されても)、CPU11は正常に再起動することができ、シリアルフラッシュメモリ12からCPU11がデータを正常に読み込めずに停止してしまうことが防止される。また、書き込み処理が中断されることは防止される。
In the second embodiment, as in the first embodiment, even if the reset switch is pressed while the serial flash memory 12 is being accessed (the other reset signal 18 is input), the
前記実施例2では、CPU11のGPIO(3)から出力される電源制御信号27によりシリアルフラッシュメモリ12の電源リセットサイクルを起こさせていたが、本実施例3では、電源起動用のリセット信号16(第1のリセット信号)が入力された場合(電源起動によるリセットが発生した場合)も、シリアルフラッシュメモリ12の電源リセットサイクルを起こさせるように構成した。
In the second embodiment, the power reset signal of the serial flash memory 12 is caused by the power control signal 27 output from the GPIO (3) of the
図4は本実施例3によるリセット制御装置の回路構成を示し、図3と同一部分は同一符号をもって示している。図4において図3と異なる点は、CPU11のGPIO(3)から出力される電源制御信号27とリセット信号16の論理和をとるOR回路28を設け、OR回路28の出力信号をトランジスタ31のベースに印加した点にあり、その他の部分は図3と同一に構成されている。
FIG. 4 shows a circuit configuration of the reset control device according to the third embodiment, and the same parts as those in FIG. 4 differs from FIG. 3 in that an OR circuit 28 that takes the logical sum of the power control signal 27 output from the GPIO (3) of the
OR回路28は、電源制御信号27の出力が‘0’(ローレベル)、リセット信号16の出力が‘0’(ローレベル)またはその両方共が‘0’(ローレベル)のとき‘0’(ローレベル)を出力し、それ以外のときは、‘1’(ハイレベル)を出力するものとする。 The OR circuit 28 is “0” when the output of the power control signal 27 is “0” (low level), the output of the reset signal 16 is “0” (low level), or both are “0” (low level). (Low level) is output, otherwise, “1” (High level) is output.
上記のように構成された装置において、その他リセット信号18が入力されておらず電源制御信号27が出力されていない状態であるときに、例えばリセットスイッチなどによって、外部からCPU11にリセット信号16(リセット信号‘0’)が入力されると(電源起動によるリセットが発生すると)、CPU11はリセット処理に移行する。
In the apparatus configured as described above, when the reset signal 18 is not input and the power supply control signal 27 is not output, the reset signal 16 (reset) is externally transmitted to the
また、それと同時にOR回路28の出力が‘0’(ローレベル)となるため、トランジスタ31がオフ制御されてシリアルフラッシュメモリ12は電源リセットサイクルが起動する。この電源リセットサイクルは電源を落とすという強制的なリセットであるため、シリアルフラッシュメモリ12のチップ内部は完全に初期化される。
At the same time, since the output of the OR circuit 28 becomes ‘0’ (low level), the
このように、電源起動によるリセットが発生した場合CPU11とシリアルフラッシュメモリ12のリセットを同期化することができる。そして、リセット信号16が解除されると、CPU11およびシリアルフラッシュメモリ12は共に再起動されるため、システムとして再起動される。
As described above, the reset of the
尚、上記のように電源起動によるリセットが発生した場合は、GPIO(1)に入力される、シリアルフラッシュメモリ12がリセットモードから復帰したか否かを確認するためのデータ入出力信号(D)は使用しない(図2のステップS104の判定処理は行わない)。 Note that when a reset occurs due to power-on as described above, a data input / output signal (D) that is input to GPIO (1) to confirm whether or not the serial flash memory 12 has returned from the reset mode. Is not used (the determination process of step S104 in FIG. 2 is not performed).
また、リセット信号16が入力されておらず、リセットスイッチなどで外部からCPU11にその他リセット信号18(リセット信号‘0’)が入力された場合は、前記実施例2で述べたステップS101、S102、S203の処理がなされて、電源制御信号27によりシリアルフラッシュメモリ12の電源リセットサイクルが起こされ、その後は実施例2で述べたステップS104、S105と同様の処理が行われる。
Further, when the reset signal 16 is not input and the other reset signal 18 (reset signal “0”) is input from the outside to the
このように、その他リセット信号18がCPU11に入力された場合と、電源起動によるリセットが発生した(リセット信号16が入力された)場合のいずれの状態であってもシリアルフラッシュメモリ12の電源リセットサイクルを起こさせることができる。
As described above, the power reset cycle of the serial flash memory 12 is in any state when the other reset signal 18 is input to the
本実施例3によれば、シリアルフラッシュメモリ12をアクセス中にリセットスイッチが押されても(リセット信号16又はその他リセット信号18が入力されても)、CPU11は正常に再起動することができ、シリアルフラッシュメモリ12からCPU11がデータを正常に読み込めずに停止してしまうことが防止される。また、書き込み処理が中断されることは防止される。
According to the third embodiment, even if the reset switch is pressed while the serial flash memory 12 is being accessed (even if the reset signal 16 or other reset signal 18 is input), the
また、電源起動によるリセットが発生した場合(リセット信号16が入力された場合)CPU11とシリアルフラッシュメモリ12はリセット処理を同期して行うことができる。
In addition, when a reset due to power activation occurs (when the reset signal 16 is input), the
11…CPU
11a…専用I/F
12…シリアルフラッシュメモリ
13…セレクト信号(SEL)
14…クロック信号(CLK)
15…データ入出力信号(D)
16…リセット信号(第1のリセット信号)
17…リセット信号(R)(第3のリセット信号)
18…その他リセット信号(第2のリセット信号)
27…電源制御信号
28…OR回路
30…電源
31…トランジスタ
11 ... CPU
11a ... Dedicated I / F
12 ... Serial flash memory 13 ... Select signal (SEL)
14 ... Clock signal (CLK)
15: Data input / output signal (D)
16 ... Reset signal (first reset signal)
17 ... Reset signal (R) (third reset signal)
18 .. Other reset signal (second reset signal)
27: Power control signal 28 ... OR
Claims (4)
前記CPUには、CPUとシリアルフラッシュメモリ間で送受信されるデータ信号が入力される第1の入出力ポートと、電源起動用の第1のリセット信号および該第1のリセット信号とは分離されたCPU用の第2のリセット信号が入力される第2の入出力ポートとが設けられ、
前記CPUは、
CPUがシリアルフラッシュメモリにアクセスしている期間中に、前記第2のリセット信号が前記第2の入出力ポートに入力されたとき、CPUからシリアルフラッシュメモリへのアクセス終了後に、シリアルフラッシュメモリ用の第3のリセット信号をシリアルフラッシュメモリに対して出力する機能と、
前記シリアルフラッシュメモリからCPUの第1の入出力ポートへ送信されるデータ信号が、シリアルフラッシュメモリのリセットモード状態を示す信号か、又はリセットモードが解除されたことを示す信号かを監視して認識する監視機能と、
前記監視機能が前記リセットモード解除を認識したとき、再起動処理を行う機能と、を備え、
前記シリアルフラッシュメモリは、前記第3のリセット信号の入力によりリセットモードにされ、シリアルフラッシュメモリからCPUの第1の入出力ポートへの送信データ信号を、リセットモード状態を示す信号とする機能を備えている
ことを特徴とするシリアルフラッシュメモリのリセット制御装置。 A serial flash memory reset control device that has an extended address register and is read and written by a CPU,
In the CPU, a first input / output port to which a data signal transmitted / received between the CPU and the serial flash memory is input, a first reset signal for power activation, and the first reset signal are separated. A second input / output port to which a second reset signal for the CPU is input;
The CPU
When the second reset signal is input to the second input / output port during the period in which the CPU is accessing the serial flash memory, the serial flash memory A function of outputting a third reset signal to the serial flash memory;
Monitor and recognize whether the data signal transmitted from the serial flash memory to the first input / output port of the CPU is a signal indicating the reset mode state of the serial flash memory or a signal indicating that the reset mode is released Monitoring function to
A function of performing a restart process when the monitoring function recognizes the release of the reset mode,
The serial flash memory is set to a reset mode by the input of the third reset signal, and has a function of using a transmission data signal from the serial flash memory to the first input / output port of the CPU as a signal indicating a reset mode state. A serial flash memory reset control device.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017163825 | 2017-08-29 | ||
JP2017163825 | 2017-08-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2019046531A true JP2019046531A (en) | 2019-03-22 |
Family
ID=65814495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017216961A Pending JP2019046531A (en) | 2017-08-29 | 2017-11-10 | Serial flash memory reset control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2019046531A (en) |
-
2017
- 2017-11-10 JP JP2017216961A patent/JP2019046531A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200034319A1 (en) | Master-slave system, command execution method and data access method with use of serial peripheral interface(spi) | |
CN113590511B (en) | Bandwidth deceleration repairing method and device and electronic equipment | |
JP2008009721A (en) | Evaluation system and evaluation method thereof | |
JP2016136292A (en) | Semiconductor device, log acquisition method, and electronic apparatus | |
US10802742B2 (en) | Memory access control | |
US20100153622A1 (en) | Data Access Controller and Data Accessing Method | |
JP2006079345A (en) | Microcomputer | |
TWI507883B (en) | Memory card access device, control method thereof, and memory card access system | |
US20150046759A1 (en) | Semiconductor integrated circuit device | |
US8665626B2 (en) | Semiconductor integrated circuit and control method | |
JP2000132430A (en) | Signal processor | |
US10782345B2 (en) | Debugging a semiconductor device | |
JP2007299227A (en) | Information processing apparatus and method for booting the same | |
US20140181496A1 (en) | Method, Apparatus and Processor for Reading Bios | |
JP2014164471A (en) | LSI and information processing system | |
JP2019046531A (en) | Serial flash memory reset control device | |
WO2023142367A1 (en) | Hot-restart method and system for pci device, and related assembly | |
US10324777B2 (en) | Register-based communications interface | |
CN105608033B (en) | Semiconductor device and method of operating the same | |
US20180357192A1 (en) | System and method for changing a slave identification of integrated circuits over a shared bus | |
JP2014016925A (en) | Information processing system, data switching method and program | |
US7278015B2 (en) | Methods and devices for DRAM initialization | |
CN112534414A (en) | Software trace message receiver peripheral | |
US20080222385A1 (en) | Parameter setting method and apparatus for network controller | |
JP2015055983A (en) | Semiconductor device initial setting circuit, semiconductor device initial setting method, and semiconductor device |