JP2002328912A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JP2002328912A
JP2002328912A JP2001134807A JP2001134807A JP2002328912A JP 2002328912 A JP2002328912 A JP 2002328912A JP 2001134807 A JP2001134807 A JP 2001134807A JP 2001134807 A JP2001134807 A JP 2001134807A JP 2002328912 A JP2002328912 A JP 2002328912A
Authority
JP
Japan
Prior art keywords
writing
circuit
operation clock
cpu
clock
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.)
Abandoned
Application number
JP2001134807A
Other languages
Japanese (ja)
Inventor
Hiroyuki Saito
浩幸 斉藤
Kenji Momotake
健二 百武
Kazuyuki Akiyama
和之 秋山
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.)
Seiko Precision Inc
Original Assignee
Seiko Precision Inc
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 Seiko Precision Inc filed Critical Seiko Precision Inc
Priority to JP2001134807A priority Critical patent/JP2002328912A/en
Publication of JP2002328912A publication Critical patent/JP2002328912A/en
Abandoned legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a microcomputer capable of reducing consumed current in writing in an electrically writable nonvolatile memory. SOLUTION: A CPU waits for a predetermined time (e.g. 5. 6 ms) while writing to a flash EEPROM 2 is performed by a control logic 61 (a page load), during which time it controls a CR clock dividing circuit 72 and shifts an operation clock from a high speed operation clock to a low speed operation clock of a lower frequency. In this way, while the CPU 3 is waiting at the time of the page load, the clock is operated at a low speed, holding down a waste of current consumed by the CPU 3.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の技術分野】本発明は、マイクロコンピュータ、
詳しくは所望の情報を電気的に書込み可能な不揮発性メ
モリを有したマイクロコンピュータに関する。
TECHNICAL FIELD The present invention relates to a microcomputer,
More specifically, the present invention relates to a microcomputer having a nonvolatile memory capable of electrically writing desired information.

【0002】[0002]

【従来の技術】現在、所望の情報を電気的に書込みおよ
び消去可能なEEPROMやフラッシュメモリ等の電気
的に書込み可能な不揮発性メモリとこの不揮発性メモリ
へデータをハード的すなわちプログラムを用いずに書き
込む書込み回路を内蔵したマイクロコンピュータが実用
化されている。
2. Description of the Related Art At present, an electrically writable non-volatile memory such as an EEPROM or a flash memory in which desired information can be electrically written and erased and data stored in the non-volatile memory without using a hardware, that is, without using a program. 2. Description of the Related Art Microcomputers incorporating a writing circuit for writing have been put to practical use.

【0003】このようなマイクロコンピュータ内のCP
U(制御回路)は、ハード的に書き込む書込み回路が動
作している間、すなわち不揮発性メモリにデータが書き
込まれている間、待ち状態(ウェイト状態)となるもの
がある。
A CP in such a microcomputer
Some U (control circuits) enter a wait state (wait state) while a write circuit for writing in hardware is operating, that is, while data is being written to the nonvolatile memory.

【0004】[0004]

【発明が解決しようとする課題】書込み回路が動作して
いる間、すなわち不揮発性メモリにデータが書き込まれ
ている間、待ち状態(ウェイト状態)となるマイクロコ
ンピュータ内のCPU(制御回路)は、この間高速で動
作する必要性は極めて低くなる。
While the write circuit is operating, that is, while data is being written to the nonvolatile memory, the CPU (control circuit) in the microcomputer which is in a wait state (wait state) is: During this time, the need to operate at high speed is extremely low.

【0005】しかしながら、従来のマイクロコンピュー
タ内のCPUは、この間も通常の動作時と同じ高速の動
作クロックで動作していた。つまり、待ち状態(ウェイ
ト状態)であるにもかかわらず、必要以上の速さの動作
クロックを使用しており、この必要以上の速さの動作ク
ロックを使用することにより、無駄な消費電流が費やさ
れるという問題を有していた。
[0005] However, the CPU in the conventional microcomputer still operates at the same high-speed operation clock as during normal operation. In other words, the operation clock is used faster than necessary even in the wait state (wait state). Use of the operation clock faster than necessary wastes unnecessary current consumption. Had the problem of being

【0006】また、不揮発性メモリにデータを書き込む
際に電流を多く消費するので、書込み回路が動作してい
る間に待ち状態(ウェイト状態)とならないマイクロコ
ンピュータ内のCPU(制御回路)でも、通常の動作時
と同じ高速の動作クロックで動作していると、マイクロ
コンピュータ全体としての消費電流が大きくなるという
問題があった。さらに、この消費電流の増大により電源
電圧が低下することにより書込みに必要な電圧が低下
し、不揮発性メモリにデータを誤書込みしてしまう可能
性が生じるという問題があった。
Further, since a large amount of current is consumed when data is written to the nonvolatile memory, a CPU (control circuit) in a microcomputer which does not enter a wait state (wait state) while the write circuit is operating is usually used. However, if the microcomputer operates at the same high-speed operation clock as that of the microcomputer, the current consumption of the microcomputer as a whole increases. Further, there is a problem in that the power supply voltage is reduced due to the increase in current consumption, the voltage required for writing is reduced, and data may be erroneously written in the nonvolatile memory.

【0007】本発明の目的は、電気的に書き込み可能な
不揮発メモリへの書込み時における消費電流を低減し、
またデータの誤書込みを防止可能なマイクロコンピュー
タを提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to reduce current consumption when writing to an electrically writable nonvolatile memory,
Another object of the present invention is to provide a microcomputer capable of preventing erroneous writing of data.

【0008】[0008]

【課題を解決するための手段】本発明は、所望の情報を
電気的に書込み可能な不揮発性メモリと、所望の情報を
上記不揮発性メモリに書き込む書込み回路と、異なる周
波数の動作クロックを出力する動作クロック出力部と、
上記動作クロックに基づき動作するとともに上記動作ク
ロックの周波数が低くなると消費電流が小さくなる制御
回路とを含み、上記制御回路は、上記書込み回路が動作
している間、所定の周波数よりも低い周波数の上記動作
クロックで動作する構成としている。かかる構成によれ
ば、書込み回路が動作している間、制御回路が所定の周
波数よりも低い周波数の動作クロックで動作するので、
不揮発性メモリへの書込み時の制御回路の消費電流を小
さくでき、省電力化が図れる。
According to the present invention, a nonvolatile memory capable of electrically writing desired information, a write circuit for writing desired information to the nonvolatile memory, and an operation clock having a different frequency are output. An operation clock output unit,
A control circuit that operates based on the operation clock and reduces current consumption when the frequency of the operation clock decreases.The control circuit operates at a frequency lower than a predetermined frequency while the write circuit operates. It is configured to operate with the above operation clock. According to such a configuration, while the write circuit is operating, the control circuit operates with an operation clock having a frequency lower than the predetermined frequency.
The current consumption of the control circuit at the time of writing to the nonvolatile memory can be reduced, and power can be saved.

【0009】上記不揮発性メモリに書き込まれる所望の
情報が上記不揮発性メモリに書き込まれる前に上記制御
回路により書き込まれる記憶回路をさらに含み、上記書
込み回路は、上記記憶回路に記憶された上記所望の情報
を上記不揮発性メモリに書き込むものであり、上記制御
回路は、上記書込み回路が動作している間、上記記憶回
路に上記所望の情報を書き込む間に用いる上記動作クロ
ックの周波数より低い周波数の上記動作クロックで動作
するものとする構成としている。かかる構成によれば、
制御回路は、書込み回路が動作している間、記憶回路に
所望の情報を書き込む間に用いる動作クロックの周波数
よりも低い周波数の上記動作クロックで動作するので、
記憶回路への書込みを高速で行えるとともに不揮発性メ
モリへの書込み時の制御回路の消費電流を小さくでき
る。
[0009] The storage device further includes a storage circuit in which desired information to be written to the nonvolatile memory is written by the control circuit before the desired information is written to the nonvolatile memory, wherein the write circuit stores the desired information stored in the storage circuit. Writing the information into the non-volatile memory, wherein the control circuit has a frequency lower than the frequency of the operation clock used while writing the desired information to the storage circuit while the write circuit is operating. It is configured to operate with the operation clock. According to such a configuration,
The control circuit operates with the operation clock having a lower frequency than the frequency of the operation clock used while writing desired information to the storage circuit while the write circuit is operating.
Writing to the storage circuit can be performed at high speed, and current consumption of the control circuit at the time of writing to the nonvolatile memory can be reduced.

【0010】[0010]

【発明の実施の形態】以下、本発明の実施の一形態を図
面に示す実施例に基づき説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below based on an embodiment shown in the drawings.

【0011】図1において、1チップマイクロコンピュ
ータ1は、電気的に書込み可能な不揮発性メモリとして
のフラッシュEEPROM2、制御回路としてのCPU
3、記憶回路としてのアドレスバッファおよびラッチ回
路(以下「アドレスバッファ」という。)4、記憶回路
としてのI/Oバッファおよびデータラッチ回路(以下
「データバッファ」という。)5、書込み回路6、CP
U3の動作クロックを出力する動作クロック出力部7、
外部から入力するフラッシュEEPROM2に書き込む
べき所望の情報(以下「データ」という。)およびその
データを格納する領域を指定するアドレス等が格納され
るRAM8、アドレスバス9およびデータバス10を備
える。
In FIG. 1, a one-chip microcomputer 1 includes a flash EEPROM 2 as an electrically writable nonvolatile memory and a CPU as a control circuit.
3, an address buffer and a latch circuit as a storage circuit (hereinafter, referred to as an "address buffer") 4, an I / O buffer and a data latch circuit as a storage circuit (hereinafter, referred to as a "data buffer") 5, a write circuit 6, and a CP
An operation clock output unit 7 for outputting an operation clock of U3,
A RAM 8, an address bus 9 and a data bus 10 are provided for storing desired information (hereinafter referred to as "data") to be written into the flash EEPROM 2 input from the outside and addresses for designating an area for storing the data.

【0012】フラッシュEEPROM2は、本例では1
28バイトを1ページとし1ページ単位で書込みを行う
ものを採用し、書込みプログラムが格納された書込みプ
ログラム記憶領域2aが設けてある。なお、フラッシュ
EEPROM2は128バイトを1ページとし1ページ
単位で書込みを行うものに限らず、1ページのバイト数
等は適宜変更可能である。CPU3は動作クロックの周
波数が高くなるほど消費電流が大きくなるもので、フラ
ッシュEEPROM2に書き込まれたプログラム等にし
たがって種々の動作を制御する。アドレスバッファ4は
RAM8に格納されているフラッシュEEPROM2の
アドレスをCPU3の制御により格納していく。データ
バッファ5はRAM8に格納されているフラッシュEE
PROM2に書き込むべきデータをCPU3の制御によ
り格納していく。書込み回路6はコントロールロジック
61とデコーダ62とを備え、アドレスバッファ4に格
納されたフラッシュEEPROM2のアドレスをデコー
ダ62でデコードし、デコードされたアドレスが指定す
るフラッシュEEPROM2の記憶領域にデータバッフ
ァ5に記憶されたデータを格納していく。コントロール
ロジック61は上述のごとくフラッシュEEPROM2
へデータをハード的すなわちプログラムを用いずに書き
込むものである。動作クロック出力部7は、基本クロッ
クを出力するCR発振回路71とCRクロック分周回路
72とを備え、CPU3の制御により、異なる周波数の
動作クロックをCPU3に出力する。CR発振回路71
には、発振周波数調整用の抵抗11が接続されている。
なお、基本クロックを出力する発振回路はCR発振回路
に限るものではなく、例えば水晶発振回路やセラミック
発振回路等でも良い。RAM8には、フラッシュEEP
ROM2の書込みプログラム記憶領域2aに格納されて
いる書込みプログラムが転写される書込みプログラム記
憶領域8aとフラッシュEEPROM2に書き込むべき
データとそのデータに対応したフラッシュEEPROM
2のアドレスとを格納する書込みデータ記憶領域8bが
設けてある。12は電源としての電池、13は電池電圧
を昇圧する昇圧回路、14は入力端子である。
In this example, the flash EEPROM 2 is 1
A writing program in which writing is performed in units of one page with 28 bytes as one page is adopted, and a writing program storage area 2a in which a writing program is stored is provided. Note that the flash EEPROM 2 is not limited to the one in which writing is performed in units of one page with 128 bytes as one page, and the number of bytes in one page can be changed as appropriate. The CPU 3 increases the current consumption as the frequency of the operation clock increases, and controls various operations in accordance with a program or the like written in the flash EEPROM 2. The address buffer 4 stores the address of the flash EEPROM 2 stored in the RAM 8 under the control of the CPU 3. The data buffer 5 stores the flash EE stored in the RAM 8
Data to be written to the PROM 2 is stored under the control of the CPU 3. The write circuit 6 includes a control logic 61 and a decoder 62. The address of the flash EEPROM 2 stored in the address buffer 4 is decoded by the decoder 62, and is stored in the data buffer 5 in a storage area of the flash EEPROM 2 designated by the decoded address. The stored data is stored. The control logic 61 is, as described above, the flash EEPROM 2
In this case, data is written in a hardware manner, that is, without using a program. The operation clock output unit 7 includes a CR oscillation circuit 71 that outputs a basic clock and a CR clock frequency dividing circuit 72, and outputs operation clocks having different frequencies to the CPU 3 under the control of the CPU 3. CR oscillation circuit 71
Is connected to a resistor 11 for adjusting the oscillation frequency.
The oscillation circuit that outputs the basic clock is not limited to the CR oscillation circuit, but may be, for example, a crystal oscillation circuit or a ceramic oscillation circuit. RAM8 has flash EEP
A write program storage area 8a to which a write program stored in the write program storage area 2a of the ROM 2 is transferred, data to be written to the flash EEPROM 2, and a flash EEPROM corresponding to the data.
A write data storage area 8b for storing the address 2 is provided. 12 is a battery as a power supply, 13 is a booster circuit for boosting the battery voltage, and 14 is an input terminal.

【0013】[0013]

【動作の説明】まず、フラッシュEEPROM2への書
込みとは異なる通常のアプリケーション動作(プログラ
ム動作)について説明する。マイクロコンピュータ1が
待機状態のとき動作クロック出力部7は動作クロックを
出力しておらず、CPU3は動作をしていない。このと
き、マイクロコンピュータ1の動作電圧は電池12の電
圧レベル(3V)となっている。
[Description of Operation] First, a normal application operation (program operation) different from writing to the flash EEPROM 2 will be described. When the microcomputer 1 is in the standby state, the operation clock output unit 7 does not output the operation clock, and the CPU 3 does not operate. At this time, the operating voltage of the microcomputer 1 is at the voltage level of the battery 12 (3 V).

【0014】何らかのスイッチ操作による起動入力によ
り起動がかかると、動作クロック出力部7内のCR発振
回路71が発振を開始し、CRクロック分周回路72は
所定の周波数の低速動作クロックをCPU3に出力す
る。CPU3はこの低速動作クロックにより動作し、フ
ラッシュEEPROM2に記憶された起動動作プログラ
ムにしたがって起動時の処理を行う。なお、本例では低
速動作クロックによるCPU3の動作をCR低速モード
での動作という。
When a start is input by a start input by any switch operation, the CR oscillation circuit 71 in the operation clock output section 7 starts oscillating, and the CR clock frequency dividing circuit 72 outputs a low-speed operation clock of a predetermined frequency to the CPU 3. I do. The CPU 3 operates according to the low-speed operation clock, and performs a startup process according to a startup operation program stored in the flash EEPROM 2. In this example, the operation of the CPU 3 using the low-speed operation clock is referred to as an operation in the CR low-speed mode.

【0015】CPU3は起動動作プログラムにしたがっ
て昇圧クロックを昇圧回路13に出力し、昇圧回路13
に昇圧動作を行わせる。昇圧回路13の出力が5Vまで
昇圧したら、CPU3はCRクロック分周回路72を制
御して低速動作クロックより周波数の高い高速動作クロ
ックを出力させる。CPU3はこの高速動作クロックに
より動作を開始し、起動入力のあった何らかのスイッチ
の操作に応じたアプリケーション(プログラム)をフラ
ッシュEEPROM2から読み出しながら、読み出した
アプリケーション(プログラム)に従った動作を行う。
なお、本例では高速動作クロックによるCPU3の動作
をCR高速モードでの動作という。
The CPU 3 outputs a boosting clock to the boosting circuit 13 according to a start-up operation program, and the boosting circuit 13
To perform the boost operation. When the output of the booster circuit 13 is boosted to 5 V, the CPU 3 controls the CR clock frequency divider 72 to output a high-speed operation clock having a higher frequency than the low-speed operation clock. The CPU 3 starts operating by the high-speed operation clock, and performs an operation according to the read application (program) while reading out from the flash EEPROM 2 an application (program) corresponding to an operation of any switch to which a start input has been made.
In this example, the operation of the CPU 3 using the high-speed operation clock is referred to as an operation in the CR high-speed mode.

【0016】ここで、CPU3のCR低速モード下での
動作とCR高速モード下での動作とを対比しておくと、
CR低速モードではCPU3の消費電流が小さいため電
池電圧でも動作可能であるが動作スピードが遅くなり、
CR高速モードではCPU3の消費電流が大きいため電
池電圧よりも高い電圧が必要となり、動作スピードが速
くなる。
Here, the operation of the CPU 3 in the low-speed CR mode and the operation in the high-speed CR mode are compared.
In the CR low-speed mode, the current consumption of the CPU 3 is small, so that the operation can be performed even with the battery voltage, but the operation speed becomes slow.
In the CR high-speed mode, since the current consumption of the CPU 3 is large, a voltage higher than the battery voltage is required, and the operation speed is increased.

【0017】例えば、カメラに搭載されたマイクロコン
ピュータでは、起動がかかってCR高速モードになって
から再度待機モードになるまでの間(実動作期間)は、
CR高速モードを維持する。これは、カメラのアプリケ
ーション上、実際に負荷を動かすような動作を行ってい
る時間は1〜数秒程度であり、CR高速モードを維持し
ても電流消費がさほど問題にならないからである。な
お、このような状況は、カメラに搭載されたマイクロコ
ンピュータに限らず、種々の装置に搭載されたマイクロ
コンピュータでも起こりうるものである。
For example, in a microcomputer mounted on a camera, a period from an activation to a CR high-speed mode to a standby mode again (actual operation period) is as follows.
Maintain the CR high-speed mode. This is because the time during which the operation for actually moving the load is actually performed is about one to several seconds on the application of the camera, and the current consumption does not matter much even if the CR high-speed mode is maintained. Such a situation can occur not only in microcomputers mounted on cameras but also in microcomputers mounted on various devices.

【0018】しかしながら、電気的に書込み可能な不揮
発性メモリに書込みを行う際には、通常のアプリケーシ
ョン動作(プログラム動作)に比べて多くの電流を消費
してしまう。
However, when writing to an electrically writable nonvolatile memory, a larger amount of current is consumed than in a normal application operation (program operation).

【0019】次に、図2を参照して書込み時の動作を説
明する。
Next, the operation at the time of writing will be described with reference to FIG.

【0020】図示しない装置等から書込み要求信号(起
動入力)がCPU3に入力すると、上述したようにCP
U3はCR高速モードとなり、フラッシュEEPROM
2内のプログラムにしたがい入力端子14から入力する
書込みデータをRAM8の書込みデータ記憶領域8bに
格納する(ステップ2a)。なお、入力端子14から入
力する書込みデータは、フラッシュEEPROM2に書
き込むべきデータとそのデータに対応したフラッシュE
EPROM2のアドレスとを含む。
When a write request signal (startup input) is input to the CPU 3 from a device (not shown) or the like, the CP
U3 is in CR high-speed mode and flash EEPROM
2, the write data input from the input terminal 14 is stored in the write data storage area 8b of the RAM 8 (step 2a). The write data input from the input terminal 14 includes data to be written to the flash EEPROM 2 and a flash EEPROM corresponding to the data.
EPROM 2 address.

【0021】書込みデータのRAM8への書込みが終了
すると、フラッシュEEPROM2内の書込みプログラ
ム記憶領域2aに格納してある書込みプログラムをRA
M8内の書込みプログラム記憶領域8aにコピー(転
写)する(ステップ2b)。
When the writing of the write data to the RAM 8 is completed, the write program stored in the write program storage area 2a in the flash EEPROM 2 is written to the RA.
Copy (transfer) to the write program storage area 8a in M8 (step 2b).

【0022】書込みプログラム記憶領域8aへの書込み
プログラムのコピー(転写)が終了すると、CPU3は
プログラム動作をフラッシュEEPROM2から書込み
プログラム記憶領域8aへ切り換える(ステップ2
c)。これは、フラッシュEEPROM2が動作してい
るとき、すなわちCPU3がフラッシュEEPROM2
からプログラムを読み込んで動作しているとき、フラッ
シュEEPROM2ヘの書込みが行えないので、CPU
3がプログラムを読む対象をフラッシュEEPROM2
からRAM8内の書込みプログラム記憶領域8aへ切り
換え、書込みプログラムによるフラッシュEEPROM
2の書換えを可能にするための動作である。
When the copy (transfer) of the write program to the write program storage area 8a is completed, the CPU 3 switches the program operation from the flash EEPROM 2 to the write program storage area 8a (step 2).
c). This is because when the flash EEPROM 2 is operating, that is, when the CPU 3
Since the program cannot be written to the flash EEPROM 2 when the program is read from the
3 is to read the program from flash EEPROM 2
From the flash program to the write program storage area 8a in the RAM 8,
2 is an operation for enabling rewriting.

【0023】CPU3は、RAM8内に書き込まれた書
込みプログラムにしたがい、コントロールロジック61
を起動し(ステップ2d)、RAM8内の書込みデータ
記憶領域8bに格納されているフラッシュEEPROM
2に書き込むべきデータをデータバッファ5に書き込む
とともにそのデータに対応したフラッシュEEPROM
2のアドレスをアドレスバッファ4に書き込む(ステッ
プ2e)。本例では、このアドレスバッファ4およびデ
ータバッファ5への書込みをバイトロードという。な
お、本例では128バイトを1ページとし1ページ単位
で書込みを行うフラッシュEEPROM2を用いている
ので、データバッファ5に最大128バイト分のデータ
(情報)を格納し、アドレスバッファ4にページアドレ
スを格納するようにしている。このとき、CPU3はC
R高速モードで動作しているので、データバッファ5お
よびアドレスバッファ4ヘのデータ(情報)の格納は高
速で行われ、書込み時間の短縮が図れる。なお、フラッ
シュEEPROM2の1ページが128バイトと異なる
情報量の場合、データバッファ5に格納するデータの最
大値はその128バイトと異なる情報量とすることが望
ましい。
The CPU 3 controls the control logic 61 according to the write program written in the RAM 8.
(Step 2d), and the flash EEPROM stored in the write data storage area 8b in the RAM 8
Data to be written to the data buffer 5 and a flash EEPROM corresponding to the data.
2 is written into the address buffer 4 (step 2e). In this example, writing to the address buffer 4 and the data buffer 5 is called byte loading. In this example, since the flash EEPROM 2 which writes data in units of one page with 128 bytes as one page is used, data (information) of up to 128 bytes is stored in the data buffer 5 and the page address is stored in the address buffer 4. It is stored. At this time, the CPU 3
Since the operation is performed in the R high-speed mode, data (information) is stored in the data buffer 5 and the address buffer 4 at a high speed, and the writing time can be reduced. When one page of the flash EEPROM 2 has an information amount different from 128 bytes, it is desirable that the maximum value of data stored in the data buffer 5 be an information amount different from the 128 bytes.

【0024】バイトロードが終了してから所定時間(例
えば200μs)経過すると、コントロールロジック6
1が動作し、アドレスバッファ4が指定するフラッシュ
EEPROM2のアドレスにデータバッファ5に格納さ
れたデータ(情報)を書き込んでいく(ステップ2
f)。この動作はコントロールロジック61がハード的
に行うもので、プログラムによりソフト的に制御される
ものではなく、CPU3の動作と独立して実行される。
本例では、コントロールロジック61によるフラッシュ
EEPROM2への書込みをページロードという。
When a predetermined time (for example, 200 μs) elapses after the byte loading is completed, the control logic 6
1 operates to write the data (information) stored in the data buffer 5 to the address of the flash EEPROM 2 designated by the address buffer 4 (step 2).
f). This operation is performed by the control logic 61 by hardware, is not controlled by software by a program, and is executed independently of the operation of the CPU 3.
In this example, writing to the flash EEPROM 2 by the control logic 61 is called page load.

【0025】CPU3はコントロールロジック61によ
ってページロードが行われている間の所定時間(例えば
5.6ms)の間ウェイトし、このウェイトの間CRク
ロック分周回路72を制御してCR高速モードからCR
低速モードへ移行する(ステップ2g、2h)。このよ
うに、ページロード時のCPU3のウェイト期間は、C
R低速モードとしているので、CPU3による無駄な消
費電流を抑えることが可能となる。また、CPU3の消
費電流を抑えることにより実際にフラッシュEEPRO
M2に書込みを行っているときの電源の負荷を減らすこ
とができ、電源電圧の低下に起因するフラッシュEEP
ROM2の誤書込みの発生確率を抑えることが可能とな
る。
The CPU 3 waits for a predetermined time (for example, 5.6 ms) while the page is being loaded by the control logic 61. During this wait, the CPU 3 controls the CR clock frequency dividing circuit 72 to switch from the CR high-speed mode to the CR high-speed mode.
The mode shifts to the low-speed mode (steps 2g and 2h). Thus, the wait period of the CPU 3 at the time of page loading is C
Since the low-speed mode is set, it is possible to suppress unnecessary current consumption by the CPU 3. Also, by suppressing the current consumption of the CPU 3, the flash EEPROM
The load on the power supply during writing to M2 can be reduced, and the flash EEP caused by the decrease in the power supply voltage can be reduced.
It is possible to reduce the probability of erroneous writing in the ROM 2.

【0026】所定時間(5.6ms)が経過すると、C
PU3はコントロールロジック61によるページロード
が終了したと判断して、CRクロック分周回路72を制
御してCR低速モードからCR高速モードへ切り換え、
かつRAM8からのプログラム読込み動作からフラッシ
ュEEPROM2からのプログラム読込み動作に切り換
えて動作を終了する。
After a lapse of a predetermined time (5.6 ms), C
PU3 determines that the page loading by the control logic 61 is completed, and controls the CR clock frequency dividing circuit 72 to switch from the CR low-speed mode to the CR high-speed mode.
Further, the operation is switched from the operation of reading the program from the RAM 8 to the operation of reading the program from the flash EEPROM 2, and the operation is terminated.

【0027】[0027]

【発明の効果】本発明によれば、所望の情報を不揮発性
メモリに書き込む書込み回路が動作している間、制御回
路が所定の周波数よりも低い周波数の動作クロックで動
作するので、不揮発性メモリへの書込み時の制御回路の
消費電流を小さくでき、省電力化が図れる。
According to the present invention, while the write circuit for writing desired information to the nonvolatile memory is operating, the control circuit operates with an operation clock having a frequency lower than the predetermined frequency. The current consumption of the control circuit at the time of writing to the memory can be reduced, and power saving can be achieved.

【0028】また、制御回路は、書込み回路が動作して
いる間、記憶回路に所望の情報を書き込む間に用いる動
作クロックの周波数よりも低い周波数の動作クロックで
動作するので、記憶回路への書込みを高速で行えるとと
もに不揮発性メモリへの書込み時の制御回路の消費電流
を小さくできる。
The control circuit operates with an operation clock having a frequency lower than the frequency of the operation clock used during writing of desired information to the storage circuit while the write circuit is operating. Can be performed at high speed, and current consumption of the control circuit at the time of writing to the nonvolatile memory can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例を示したブロック図。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】図1の動作説明のためのフローチャート。FIG. 2 is a flowchart for explaining the operation of FIG. 1;

【符号の説明】[Explanation of symbols]

2 電気的に書込み可能な不揮発性メモリ 6 書込み回路 7 動作クロック出力部 3 制御回路 4 記憶回路 5 記憶回路 2 Electrically writable non-volatile memory 6 Write circuit 7 Operation clock output unit 3 Control circuit 4 Storage circuit 5 Storage circuit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 秋山 和之 千葉県習志野市茜浜一丁目1番1号 セイ コープレシジョン株式会社内 Fターム(参考) 5B062 AA05 AA08 CC03 HH02 5B079 AA07 BA01 BC01  ────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Kazuyuki Akiyama 1-1-1 Akanehama, Narashino-shi, Chiba F-term in Seiko Precision Co., Ltd. (Reference) 5B062 AA05 AA08 CC03 HH02 5B079 AA07 BA01 BC01

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 所望の情報を電気的に書込み可能な不揮
発性メモリと、所望の情報を上記不揮発性メモリに書き
込む書込み回路と、異なる周波数の動作クロックを出力
する動作クロック出力部と、上記動作クロックに基づき
動作するとともに上記動作クロックの周波数が低くなる
と消費電流が小さくなる制御回路とを含み、 上記制御回路は、上記書込み回路が動作している間、所
定の周波数よりも低い周波数の上記動作クロックで動作
するものであることを特徴とするマイクロコンピュー
タ。
A nonvolatile memory capable of electrically writing desired information; a write circuit for writing desired information to the nonvolatile memory; an operation clock output unit for outputting an operation clock of a different frequency; A control circuit that operates based on a clock and reduces current consumption when the frequency of the operation clock decreases. The control circuit operates at a frequency lower than a predetermined frequency while the write circuit operates. A microcomputer which operates with a clock.
【請求項2】 請求項1において、上記不揮発性メモリ
に書き込まれる所望の情報が上記不揮発性メモリに書き
込まれる前に上記制御回路により書き込まれる記憶回路
をさらに含み、 上記書込み回路は、上記記憶回路に記憶された上記所望
の情報を上記不揮発性メモリに書き込むものであり、 上記制御回路は、上記書込み回路が動作している間、上
記記憶回路に上記所望の情報を書き込む間に用いる上記
動作クロックの周波数よりも低い周波数の上記動作クロ
ックで動作するものであることを特徴とするマイクロコ
ンピュータ。
2. The storage circuit according to claim 1, further comprising a storage circuit to be written by the control circuit before desired information to be written to the non-volatile memory is written to the non-volatile memory, Writing the desired information stored in the non-volatile memory into the nonvolatile memory, and the control circuit controls the operation clock used while the desired information is written in the storage circuit while the write circuit is operating. A microcomputer which operates with the operation clock having a frequency lower than the frequency of the microcomputer.
JP2001134807A 2001-05-02 2001-05-02 Microcomputer Abandoned JP2002328912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001134807A JP2002328912A (en) 2001-05-02 2001-05-02 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001134807A JP2002328912A (en) 2001-05-02 2001-05-02 Microcomputer

Publications (1)

Publication Number Publication Date
JP2002328912A true JP2002328912A (en) 2002-11-15

Family

ID=18982414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001134807A Abandoned JP2002328912A (en) 2001-05-02 2001-05-02 Microcomputer

Country Status (1)

Country Link
JP (1) JP2002328912A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017045479A (en) * 2012-05-25 2017-03-02 株式会社半導体エネルギー研究所 Semiconductor device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017045479A (en) * 2012-05-25 2017-03-02 株式会社半導体エネルギー研究所 Semiconductor device

Similar Documents

Publication Publication Date Title
US6407940B1 (en) Memory card device including a clock generator
US20070214376A1 (en) Apparatus and method for restoring working context
US20080010478A1 (en) Card device
JPH1097353A (en) Computer system and resume processing method applied to the same system
JP2004046324A (en) Information processor with standby mode, and standby mode starting method and standby mode canceling method for the same
JPH1063804A (en) Pc card and peripheral equipment
JPH11184703A (en) Information processor and boot method
JP4991160B2 (en) Dynamic memory for mobile devices
TW403880B (en) Relocatable code storage in an integrated circuit with an embedded microcontroller
JP3056131B2 (en) System reset method
CN114661368A (en) Chip and starting method thereof
JP2002328912A (en) Microcomputer
US6949409B2 (en) Register setting method and semiconductor device
JP2003271263A (en) Information processing device, time-of-day information control method
CN110121688B (en) Method for judging loader and electronic system
JPH11288409A (en) Microcomputer
JP2002342147A (en) Nonvolatile memory device and memory control method thereof
JP2007140878A (en) System clock generation circuit
JPH11272642A (en) 1-chip microcomputer and start address setting method
JPH11353170A (en) Flash memory controller and memory access method of flash memory controller
JPH0836532A (en) Terminal device of low power consumption
JPH11231963A (en) Microcomputer
JP3405239B2 (en) Initial value setting change device
JPH11231964A (en) Microcomputer
JPH11231962A (en) Microcomputer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090108

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20090203