[go: up one dir, main page]

JP2010039812A - Microcomputer - Google Patents

Microcomputer Download PDF

Info

Publication number
JP2010039812A
JP2010039812A JP2008202804A JP2008202804A JP2010039812A JP 2010039812 A JP2010039812 A JP 2010039812A JP 2008202804 A JP2008202804 A JP 2008202804A JP 2008202804 A JP2008202804 A JP 2008202804A JP 2010039812 A JP2010039812 A JP 2010039812A
Authority
JP
Japan
Prior art keywords
circuit
control register
reset
memory
cold
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
JP2008202804A
Other languages
Japanese (ja)
Inventor
Hitoya Kurosawa
飛斗矢 黒澤
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2008202804A priority Critical patent/JP2010039812A/en
Publication of JP2010039812A publication Critical patent/JP2010039812A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a microcomputer capable of shortening the starting time. <P>SOLUTION: When a cold/warm start signal indicating a cold start state like a power-on reset is given from a cold/warm start signal circuit 13, a reset signal is validated by a reset validating/invalidating selection circuit 14, and a flash ROM control register 21 is initialized, and chain data stored in a chain data area 20b is copied to the flash ROM control register 21. When the cold/warm start signal indicating a warm start state like a restart reset is given from the cold/warm start signal circuit 13, the reset signal is invalidated by the reset validating/invalidating selection circuit 14, and the flash ROM control register 21 is not initialized, and copying the chain data from the chain data area 20b is eliminated. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、不揮発性メモリ、たとえばフラッシュメモリを搭載したマイクロコンピュータに関する。   The present invention relates to a microcomputer equipped with a nonvolatile memory such as a flash memory.

マイクロコンピュータ(以下「マイコン」という場合がある)に内蔵されるフラッシュROMは、製造における特性ばらつきによる生産面での影響を最小限に抑えるために、製品テスト時において個々の性能を一定に揃えるための調整データ(以下「チューンデータ」という場合がある)を、不揮発性メモリによって構成される記憶部に記憶している(たとえば、特許文献1参照)。   The flash ROM built in the microcomputer (hereinafter sometimes referred to as “microcomputer”) is designed to keep individual performance constant at the time of product testing in order to minimize the production impact caused by variations in manufacturing characteristics. Adjustment data (hereinafter sometimes referred to as “tune data”) is stored in a storage unit configured by a nonvolatile memory (see, for example, Patent Document 1).

フラッシュROMがリセットされると、フラッシュROM内のフラッシュROM制御回路およびフラッシュROM制御レジスタが初期化され、リセットが解除されると、前記記憶部に記憶されているチューンデータがフラッシュROM制御レジスタにコピーされる。従来技術のマイコンでは、リセットが解除される度に前記記憶部からフラッシュROM制御レジスタへのチューンデータのコピーが行われる。   When the flash ROM is reset, the flash ROM control circuit and the flash ROM control register in the flash ROM are initialized. When the reset is released, the tune data stored in the storage unit is copied to the flash ROM control register. Is done. In the microcomputer of the prior art, the tune data is copied from the storage unit to the flash ROM control register every time the reset is released.

またマイコンには、発振回路として、たとえばPLL(Phase Locked Loop)回路が内蔵される。PLL回路がリセットされると、PLL回路内のPLL制御回路およびPLL制御レジスタが初期化され、PLL回路は自励発振状態になる。所望の逓倍率の発振周波数を得るためには、リセット解除後に、PLL制御レジスタの逓倍率設定を変更する必要がある。   Further, for example, a PLL (Phase Locked Loop) circuit is built in the microcomputer as an oscillation circuit. When the PLL circuit is reset, the PLL control circuit and the PLL control register in the PLL circuit are initialized, and the PLL circuit enters a self-excited oscillation state. In order to obtain an oscillation frequency with a desired multiplication rate, it is necessary to change the multiplication rate setting of the PLL control register after reset is released.

特開2006−48304号公報JP 2006-48304 A

前述の従来技術のマイコンでは、リセットされる度にフラッシュROMのフラッシュROM制御レジスタが初期化されて、記憶部からフラッシュROM制御レジスタへのチューンデータのコピーが行われる。したがって再リセット時のように、既にフラッシュROM制御レジスタにチューンデータがコピーされている場合でも、フラッシュROM制御レジスタへのチューンデータのコピーが行われる。このようなチューンデータのコピーに要する時間は、情報量と転送速度に依存し、1回のコピー時間だけを考えるのであれば問題にはならないが、たとえば製品の良品テストなどのように、頻繁にリセットを繰返すような場合には、コピーに要する全体的な時間が長くなり、プログラムが実行されるまでの時間(以下「マイコン起動時間」という)が長くなるという問題がある。   In the above-described prior art microcomputer, the flash ROM control register of the flash ROM is initialized each time it is reset, and tune data is copied from the storage unit to the flash ROM control register. Therefore, even when tune data has already been copied to the flash ROM control register as in the case of resetting, the tune data is copied to the flash ROM control register. The time required for copying such tuned data depends on the amount of information and the transfer speed, and it is not a problem if only one copy time is considered. When reset is repeated, there is a problem that the overall time required for copying becomes long, and the time until the program is executed (hereinafter referred to as “microcomputer activation time”) becomes long.

またマイコンがPLL回路を内蔵する場合、リセット解除後にPLL制御レジスタの逓倍率を変更すると、現在の発振周波数から所望の逓倍率の発振周波数まで遷移して安定した周波数になるまでのPLL発振安定待ち時間が必要となる。従来のマイコンでは、リセットされる度にPLL制御レジスタが初期化されて、PLL制御レジスタの逓倍率の変更が行われるので、リセットが解除される度にPLL発振安定待ち時間が必要になる。   If the microcomputer has a built-in PLL circuit, changing the multiplication rate of the PLL control register after releasing the reset causes a transition from the current oscillation frequency to the oscillation frequency of the desired multiplication rate and waits for the PLL oscillation to stabilize. Time is needed. In the conventional microcomputer, the PLL control register is initialized every time it is reset, and the multiplication rate of the PLL control register is changed. Therefore, every time the reset is released, a PLL oscillation stabilization wait time is required.

PLL発振安定待ち時間は、1回だけの時間を考えるのであれば問題とはならないが、たとえば製品の良品テストなどのように、頻繁にリセットを繰返すような場合には、全体的な時間が長くなり、たとえばPLL発振安定待ち時間を経てプログラムが実行されるように構成される場合、マイコンの起動時間が長くなるという問題がある。   The PLL oscillation stabilization wait time is not a problem if only one time is considered. However, when the reset is frequently repeated, for example, in a non-defective product test, the overall time is long. Thus, for example, when the program is configured to be executed after the PLL oscillation stabilization wait time, there is a problem that the startup time of the microcomputer becomes long.

本発明は、起動時間を短縮可能なマイクロコンピュータを提供することを目的とする。   An object of this invention is to provide the microcomputer which can shorten starting time.

本発明のマイクロコンピュータは、予め定めるプログラムおよび調整データを記憶する記憶部と、前記記憶部から与えられる前記調整データを格納するメモリ制御レジスタと、前記メモリ制御レジスタに格納される前記調整データに基づいて調整され、前記記憶部を制御するメモリ制御回路とを含む記憶手段と、前記記憶手段の前記記憶部に記憶される前記プログラムを実行可能な処理手段と、前記メモリ制御レジスタに格納される前記調整データの消去が必要な要メモリ消去状態であるとき、前記メモリ制御レジスタに格納される前記調整データの消去を指示するメモリリセット信号が入力されると、前記メモリ制御レジスタに格納される前記調整データを消去して、前記記憶部から新たに与えられる前記調整データを前記メモリ制御レジスタに格納し、前記メモリ制御レジスタに格納される前記調整データの消去が不要なメモリ消去不要状態であるとき、前記メモリリセット信号が入力されると、前記メモリ制御レジスタに格納される前記調整データを保持するように、前記記憶手段を制御するメモリリセット制御手段とを備えることを特徴とする。   The microcomputer of the present invention is based on a storage unit that stores a predetermined program and adjustment data, a memory control register that stores the adjustment data provided from the storage unit, and the adjustment data that is stored in the memory control register. Memory means including a memory control circuit that controls the memory unit, and processing means that can execute the program stored in the memory unit of the memory unit, and the memory control register stores the memory control register. When a memory reset signal instructing erasure of the adjustment data stored in the memory control register is input in a memory erasure state where adjustment data needs to be erased, the adjustment stored in the memory control register Data is erased, and the adjustment data newly given from the storage unit is stored in the memory control register. The adjustment data stored in the memory control register is input when the memory reset signal is input when the adjustment data stored in the memory control register is not required to be erased. And a memory reset control means for controlling the storage means.

本発明のマイクロコンピュータによれば、記憶手段と処理手段とメモリリセット制御手段とを備えてマイクロコンピュータが構成される。記憶手段は、記憶部とメモリ制御レジスタとメモリ制御回路とを含み、記憶部には、予め定めるプログラムおよび調整データが記憶される。記憶部に記憶されるプログラムは、処理手段によって実行され、調整データは、メモリ制御レジスタに与えられて格納される。このメモリ制御レジスタに格納される調整データに基づいて、メモリ制御回路が記憶部を制御する。記憶手段は、要メモリ消去状態であるときにメモリリセット信号が入力されると、メモリ制御レジスタに格納される調整データを消去して、記憶部から新たに与えられる調整データをメモリ制御レジスタに格納し、メモリ消去不要状態であるときにメモリリセット信号が入力されると、メモリ制御レジスタに格納される調整データを保持するように、メモリリセット制御手段によって制御される。これによって、メモリ消去不要状態である場合、メモリリセット信号の入力後に、記憶部からメモリ制御レジスタに調整データを与える必要がなくなり、調整データをメモリ制御レジスタに与えるための時間を省略することができる。したがって、メモリリセット信号が入力されてから処理手段がプログラムを実行するまでの時間であるマイクロコンピュータの起動時間を短縮することが可能である。   According to the microcomputer of the present invention, the microcomputer includes the storage means, the processing means, and the memory reset control means. The storage means includes a storage unit, a memory control register, and a memory control circuit, and a predetermined program and adjustment data are stored in the storage unit. The program stored in the storage unit is executed by the processing means, and the adjustment data is given to the memory control register and stored. Based on the adjustment data stored in the memory control register, the memory control circuit controls the storage unit. When the memory reset signal is input when the memory erasing state is required, the storage unit erases the adjustment data stored in the memory control register and stores the adjustment data newly given from the storage unit in the memory control register. When a memory reset signal is input when the memory erasure is unnecessary, the memory reset control means controls the adjustment data stored in the memory control register. As a result, it is not necessary to provide adjustment data from the storage unit to the memory control register after inputting the memory reset signal when the memory erasing is unnecessary, and the time for supplying the adjustment data to the memory control register can be omitted. . Therefore, it is possible to reduce the startup time of the microcomputer, which is the time from when the memory reset signal is input until the processing means executes the program.

<前提技術>
本発明のマイクロコンピュータを説明する前に、本発明の前提となるマイクロコンピュータ(以下「マイコン」という場合がある)について説明する。図1は、本発明の前提となるマイコンに内蔵されているフラッシュROM1の構成を示すブロック図である。フラッシュROM1は、記憶部2、フラッシュROM制御レジスタ3およびフラッシュROM制御回路4を備えて構成される。記憶部2は、不揮発性メモリによって構成される。フラッシュROM制御レジスタ3は、揮発性メモリによって構成される。フラッシュROM制御回路4は、記憶部2およびフラッシュROM制御レジスタ3と接続されている。
<Prerequisite technology>
Before describing the microcomputer of the present invention, a microcomputer (hereinafter sometimes referred to as a “microcomputer”) as a premise of the present invention will be described. FIG. 1 is a block diagram showing a configuration of a flash ROM 1 built in a microcomputer as a premise of the present invention. The flash ROM 1 includes a storage unit 2, a flash ROM control register 3, and a flash ROM control circuit 4. The storage unit 2 is configured by a nonvolatile memory. The flash ROM control register 3 is constituted by a volatile memory. The flash ROM control circuit 4 is connected to the storage unit 2 and the flash ROM control register 3.

記憶部2は、ユーザデータ領域2aおよびチューンデータ領域2bを備える。チューンデータ領域2bには、フラッシュROM1の製造における特性ばらつきによる生産面での影響を最小限に抑えるために、製品テスト時において個々の性能を一定に揃えるための調整データ(以下「チューンデータ」という場合がある)が記憶される。ユーザデータ領域2aには、たとえばプログラムなどのユーザデータが記憶される。   The storage unit 2 includes a user data area 2a and a tune data area 2b. In the tune data area 2b, adjustment data (hereinafter referred to as “tune data”) for keeping individual performances constant during product testing in order to minimize the influence on production due to characteristic variations in the manufacture of the flash ROM 1 May be stored). User data such as a program is stored in the user data area 2a.

フラッシュROM1は、リセットされて、リセット信号が与えられると、フラッシュROM制御レジスタ3およびフラッシュROM制御回路4が初期化され、リセットが解除されると、記憶部2のチューンデータ領域2bに記憶されているチューンデータがフラッシュROM制御レジスタ3にコピーされる。そのため、フラッシュROM1にアクセスするまでには、リセット解除後のチューンデータのコピー時間が必要である。   When the flash ROM 1 is reset and a reset signal is given, the flash ROM control register 3 and the flash ROM control circuit 4 are initialized. When the reset is released, the flash ROM 1 is stored in the tune data area 2b of the storage unit 2. Tune data is copied to the flash ROM control register 3. Therefore, it takes a tune data copy time after reset release until the flash ROM 1 is accessed.

チューンデータのコピーが必要な理由は、フラッシュROM制御レジスタ3が揮発性メモリであるので、不揮発性メモリである記憶部2にチューンデータを記憶させておく必要があるためと、チューンデータを記憶部2のチューンデータ領域2bに記憶させたままでは同時に多数の信号をフラッシュROM制御回路4と接続できないので、フラッシュROM制御レジスタ3と接続させる必要があるためである。   The reason why the tune data needs to be copied is that the flash ROM control register 3 is a volatile memory, and therefore it is necessary to store the tune data in the storage unit 2 which is a non-volatile memory. This is because a large number of signals cannot be connected to the flash ROM control circuit 4 at the same time while being stored in the tune data area 2b of No. 2, so that it is necessary to connect to the flash ROM control register 3.

チューンデータは、テスト時に一度設定されると変更されることはなく、電源が供給された状態であれば、フラッシュROM制御レジスタ3の値も保持されたままであるので、電源供給時の初期に一度だけコピーされれば、再リセット時に再コピーする必要はない。しかし、前述のようにリセットが解除されるとチューンデータのコピーが行われるように構成される場合、リセットが解除される度に、チューンデータのフラッシュROM制御レジスタ3へのコピーが行われることになる。   The tune data is not changed once it is set at the time of the test. If the power is supplied, the value of the flash ROM control register 3 is also retained. If it is just copied, there is no need to re-copy at the time of reset. However, if the tune data is copied when the reset is released as described above, the tune data is copied to the flash ROM control register 3 every time the reset is released. Become.

このようにフラッシュROM1内におけるチューンデータのコピーがリセット毎に行われると、マイコンの起動時間、具体的にはマイコンのCPU起動時間が問題となる。チューンデータのコピーに要する時間は、情報量と転送速度に依存し、1回のコピー時間だけを考えるのであれば問題にはならないが、頻繁にリセットを繰返すような場合には、コピーに要する全体的な時間が長くなり、マイコンの起動時間が長くなるという問題がある。また製品の良品テストでは、頻繁にリセットを繰返すので、テスト時間全体で各コピー時間を総計すると、長時間となる。製品コストの低減を図るなかで、テスト時間の短縮について考えると、テスト時におけるコピー時間が問題となってくる。   If copying of the tune data in the flash ROM 1 is performed every reset as described above, the startup time of the microcomputer, specifically, the CPU startup time of the microcomputer becomes a problem. The time required for copying the tune data depends on the amount of information and the transfer speed. If only one copy time is considered, there is no problem. However, if the reset is frequently repeated, the entire time required for copying There is a problem that the time required for the microcomputer becomes longer and the startup time of the microcomputer becomes longer. In addition, in the non-defective product test, since the reset is frequently repeated, it takes a long time to add up each copy time over the entire test time. Considering shortening of test time while reducing product cost, copy time during testing becomes a problem.

これに対して、前提技術におけるフラッシュROM1では、フラッシュROM制御回路4が、フラッシュROM1の外部から与えられるコピー有効/無効選択信号に基づいて、チューンデータのフラッシュROM制御レジスタ3へのコピーを有効にするか、または無効にするかを選択している。コピー有効/無効選択信号が有効を表す信号であれば、リセット解除によって、チューンデータのフラッシュROM制御レジスタ3へのコピーが行われる。コピー有効/無効選択信号が無効を表す信号であれば、リセットが解除されても、フラッシュROM制御レジスタ3はデフォルト値に初期化されたまま、チューンデータのコピーは行われない。   On the other hand, in the flash ROM 1 in the base technology, the flash ROM control circuit 4 enables copying of the tune data to the flash ROM control register 3 based on a copy valid / invalid selection signal given from the outside of the flash ROM 1. Select whether to disable or disable. If the copy valid / invalid selection signal is a valid signal, the tune data is copied to the flash ROM control register 3 by reset release. If the copy valid / invalid selection signal is a signal indicating invalidity, the tune data is not copied while the flash ROM control register 3 is initialized to the default value even if the reset is released.

これによって、コピー有効/無効選択信号が無効を表す信号である場合には、リセット解除後のチューンデータのコピー時間を省略することが可能であるが、フラッシュROM制御レジスタ3は、リセットによってデフォルト値に初期化されたままとなってしまう。フラッシュROM制御レジスタ3がデフォルト値のままでは、本来必要となるフラッシュROM1の製造時における特性ばらつきなどの調整が不可能になるので、本来の性能を発揮することはできない。したがって、コピー有効/無効選択信号は、リセット解除時のチューンデータのコピーを省略する手段として使用することは可能であるが、フラッシュROM1のテスト時の調整には使用することができず、実使用上は評価用途以外に使用されることはないので、テスト時間の短縮などの効果はない。   Thus, when the copy valid / invalid selection signal is a signal indicating invalidity, it is possible to omit the tune data copy time after reset release, but the flash ROM control register 3 is reset to the default value. Will remain initialized. If the flash ROM control register 3 is left at the default value, it is impossible to adjust the characteristic variation during the manufacture of the flash ROM 1 that is originally required, so that the original performance cannot be exhibited. Therefore, the copy valid / invalid selection signal can be used as means for omitting copying of the tune data at the time of reset release, but cannot be used for adjustment at the time of testing the flash ROM 1 and is actually used. Since the above is not used for purposes other than evaluation, there is no effect of shortening the test time.

また前提技術のマイコンには、発振回路として、PLL回路が内蔵される。図2は、本発明の前提となるマイコンに内蔵されているPLL回路5の構成を示すブロック図である。PLL(Phase Locked Loop)回路5は、リセットされて、リセット信号が与えられると、PLL制御レジスタ6およびPLL制御回路7が初期化され、自励発振状態になる。リセット解除後、所望の逓倍率の発振周波数を得るために、たとえばソフトウェアによってPLL制御レジスタ6の逓倍率設定が変更される。前提技術におけるPLL回路5では、リセットされる度にPLL制御レジスタ6が初期化されて、PLL制御レジスタ6の逓倍率の変更が行われるので、リセットが解除される度に、自励発振状態から遷移して所望の逓倍率の発振周波数で安定して発振するまでの待ち時間である、PLL発振安定待ち時間が必要である。   The prerequisite technology microcomputer incorporates a PLL circuit as an oscillation circuit. FIG. 2 is a block diagram showing the configuration of the PLL circuit 5 built in the microcomputer as a premise of the present invention. When a PLL (Phase Locked Loop) circuit 5 is reset and a reset signal is given, the PLL control register 6 and the PLL control circuit 7 are initialized to enter a self-excited oscillation state. After the reset is released, in order to obtain an oscillation frequency with a desired multiplication rate, for example, the multiplication rate setting of the PLL control register 6 is changed by software. In the PLL circuit 5 in the base technology, the PLL control register 6 is initialized every time it is reset, and the multiplication factor of the PLL control register 6 is changed. A PLL oscillation stabilization wait time, which is a wait time until transition and stable oscillation at an oscillation frequency with a desired multiplication factor, is necessary.

しかし、実使用上、PLL制御レジスタ6に記憶されるPLL回路5の逓倍率(以下「PLL逓倍率」という場合がある)はCPU処理能力が最高になるような設定の1通りで使用する場合が殆どであり、PLL逓倍率を動的に何通りも変更することは殆どない。所望のPLL逓倍率に一度設定した後は、同じPLL逓倍率で動作および停止を繰返す使用方法が多い。したがって、リセット解除時にPLLが自励発振状態である必要はなく、マイコン内のCPUがプログラムを実行するときにPLL回路5が所望の発振周波数になっていれば、PLL発振安定待ち時間は必要なくなる。製品のテストにおいても同じPLL逓倍率で動作確認する場合が殆どであり、再リセット時は、CPU起動時から所望のPLL逓倍率で発振安定状態になっているので、リセット解除後のPLL発振安定待ち時間は必要ない。   However, in actual use, the multiplication factor of the PLL circuit 5 stored in the PLL control register 6 (hereinafter sometimes referred to as “PLL multiplication factor”) is used in one way so as to maximize the CPU processing capacity. However, the PLL multiplication rate is hardly changed in many ways. After setting a desired PLL multiplication ratio once, there are many usage methods in which operation and stop are repeated at the same PLL multiplication ratio. Therefore, the PLL does not need to be in the self-excited oscillation state at the time of reset release, and if the PLL circuit 5 has a desired oscillation frequency when the CPU in the microcomputer executes the program, the PLL oscillation stabilization wait time is not necessary. . In most product tests, the operation is confirmed with the same PLL multiplication rate. When resetting, the oscillation is stable at the desired PLL multiplication rate from the start of the CPU. No waiting time is required.

また前提技術のマイコンは、たとえば、CPU高速動作時は、PLL回路5から出力されるクロック信号(以下「PLLクロック」という場合がある)で動作し、リセット解除時はPLL自励発振状態で動作するように構成される。この場合、途中でソフトウェアによってPLL逓倍率を変更してPLL発振周波数が遷移しているときもPLLクロックでCPUが動作することになる。したがって、PLL逓倍率をCPUクロックが規格値上限の最速に動作するように変更すると、周波数遷移時にPLL回路5が所望の周波数を超えて発振したときに、CPUが規格値外の周波数動作になってしまうという問題がある。   The microcomputer of the base technology operates, for example, with a clock signal output from the PLL circuit 5 (hereinafter sometimes referred to as “PLL clock”) during high-speed CPU operation, and operates in a PLL self-oscillation state when reset is released. Configured to do. In this case, the CPU operates with the PLL clock even when the PLL oscillation frequency is changed by changing the PLL multiplication rate by software. Therefore, if the PLL multiplication rate is changed so that the CPU clock operates at the highest speed of the upper limit of the standard value, the CPU operates at a frequency outside the standard value when the PLL circuit 5 oscillates beyond a desired frequency at the time of frequency transition. There is a problem that it ends up.

このように前提技術のマイコンでは、ある一用途でPLL逓倍率を固定して使用している場合においてもリセット毎にPLL制御レジスタ6が初期化されるので、CPU起動後にPLL逓倍率を変更してPLL発振安定待ち時間が必要になるという問題がある。また前提技術のマイコンでは、CPU起動時からPLLクロックで動作してPLL逓倍率変更時にCPUが最速動作するクロック設定になっている場合に、PLL発振周波数が低速から高速に遷移する中でCPUクロック規格を越えた発振周波数になることがあるという問題がある。   As described above, in the microcomputer of the base technology, even when the PLL multiplication rate is fixed for a certain application, the PLL control register 6 is initialized at every reset, so the PLL multiplication rate is changed after the CPU is started. Therefore, there is a problem that a PLL oscillation stabilization wait time is required. In the base technology microcomputer, when the clock is set so that the CPU operates at the highest speed when the PLL multiplication rate is changed after the CPU is started, the CPU clock is changed while the PLL oscillation frequency transitions from the low speed to the high speed. There is a problem that the oscillation frequency may exceed the standard.

後者の問題については、ソフトウェアでの回避策、たとえば十分余裕のある周波数になるようにCPUクロックの分周設定を変更してからPLL逓倍率を変更するか、あるいはPLL逓倍率を変更するときはPLLクロックとは別のクロックでCPUを動作させ、PLL発振が十分安定した状態でPLLクロックに切換えることによって対処が可能である。しかし、実使用上の仕様における制約事項が増える点が問題である。   As for the latter problem, a software workaround, for example, when changing the PLL clock multiplication ratio after changing the CPU clock frequency division setting so that the frequency has a sufficient margin, or when changing the PLL clock multiplication ratio This can be dealt with by operating the CPU with a clock different from the PLL clock and switching to the PLL clock while the PLL oscillation is sufficiently stable. However, the problem is that there are more restrictions in the specifications for actual use.

前者の問題については、PLL発振安定待ち時間は、1回だけの時間を考えるのであれば問題とはならないが、頻繁にリセットを繰返すような場合には、全体的な時間が長くなる。たとえば、PLL発振安定待ち時間を経てプログラムが実行されるように構成される場合、マイコンの起動時間が長くなるという問題がある。また、たとえば製品良品テストでは頻繁にリセットを繰返すので、テスト時間全体でPLL発振安定待ち時間を総計すると、長時間となる。製品コストの低減を図るなかで、テスト時間の短縮について考えると、テスト時におけるPLL発振安定待ち時間が問題となってくる。   Regarding the former problem, the PLL oscillation stabilization waiting time is not a problem if only one time is considered, but if the reset is repeated frequently, the overall time becomes longer. For example, when the program is configured to be executed after a PLL oscillation stabilization waiting time, there is a problem that the startup time of the microcomputer becomes long. Further, for example, since the reset is frequently repeated in the non-defective product test, if the PLL oscillation stabilization wait time is totaled over the entire test time, it takes a long time. Considering shortening of test time while reducing product cost, PLL oscillation stabilization waiting time at the time of testing becomes a problem.

以上のような問題に鑑み、本発明では、以下の各実施の形態の構成を採用している。   In view of the above problems, the present invention employs the configurations of the following embodiments.

<第1の実施の形態>
図3は、本発明の第1の実施の形態であるマイクロコンピュータ10の構成を示すブロック図である。マイクロコンピュータ(以下「マイコン」という場合がある)10は、中央演算処理装置(Central Processing Unit;略称:CPU)11、フラッシュROM12、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14を備えて構成される。フラッシュROM12は記憶手段に相当し、CPU11は処理手段に相当する。またCPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14は、メモリリセット制御手段として機能する。コールド/ウォームスタート信号回路13は、メモリコールド/ウォームスタート信号回路に相当し、リセット有効/無効選択回路14は、メモリリセット有効/無効選択回路に相当する。
<First Embodiment>
FIG. 3 is a block diagram showing a configuration of the microcomputer 10 according to the first embodiment of the present invention. A microcomputer (hereinafter also referred to as “microcomputer”) 10 includes a central processing unit (abbreviated as CPU) 11, a flash ROM 12, a cold / warm start signal circuit 13, and a reset valid / invalid selection circuit 14. Configured. The flash ROM 12 corresponds to a storage unit, and the CPU 11 corresponds to a processing unit. The CPU 11, the cold / warm start signal circuit 13 and the reset valid / invalid selection circuit 14 function as memory reset control means. The cold / warm start signal circuit 13 corresponds to a memory cold / warm start signal circuit, and the reset valid / invalid selection circuit 14 corresponds to a memory reset valid / invalid selection circuit.

CPU11は、フラッシュROM12およびコールド/ウォームスタート信号回路13と接続される。フラッシュROM12は、CPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14と接続される。コールド/ウォームスタート信号回路13は、CPU11、フラッシュROM12およびリセット有効/無効選択回路14と接続される。リセット有効/無効選択回路14は、フラッシュROM12およびコールド/ウォームスタート信号回路13と接続される。   The CPU 11 is connected to the flash ROM 12 and the cold / warm start signal circuit 13. The flash ROM 12 is connected to the CPU 11, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14. The cold / warm start signal circuit 13 is connected to the CPU 11, the flash ROM 12, and the reset valid / invalid selection circuit 14. The reset valid / invalid selection circuit 14 is connected to the flash ROM 12 and the cold / warm start signal circuit 13.

CPU11は、内蔵する制御プログラムに従って、演算処理ならびにマイコン10を構成するフラッシュROM12およびコールド/ウォームスタート信号回路13を統括的に制御する。フラッシュROM12、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14については、後述する。   The CPU 11 comprehensively controls the arithmetic processing and the flash ROM 12 and the cold / warm start signal circuit 13 constituting the microcomputer 10 according to a built-in control program. The flash ROM 12, the cold / warm start signal circuit 13, and the reset valid / invalid selection circuit 14 will be described later.

図4は、フラッシュROM12の構成を示すブロック図である。図4では、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14を併せて記載する。フラッシュROM12は、記憶部20、フラッシュROM制御レジスタ21およびフラッシュROM制御回路22を備えて構成される。フラッシュROM制御レジスタ21は、メモリ制御レジスタに相当し、フラッシュROM制御回路22は、メモリ制御回路に相当する。   FIG. 4 is a block diagram showing the configuration of the flash ROM 12. In FIG. 4, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14 are described together. The flash ROM 12 includes a storage unit 20, a flash ROM control register 21, and a flash ROM control circuit 22. The flash ROM control register 21 corresponds to a memory control register, and the flash ROM control circuit 22 corresponds to a memory control circuit.

フラッシュROM制御回路22は、記憶部20およびフラッシュROM制御レジスタ21と接続されている。記憶部20は、不揮発性メモリによって構成される。記憶部20は、ユーザデータ領域20aおよびチューンデータ領域20bを備える。ユーザデータ領域20aは、マイコン10によって処理されるプログラムおよびユーザ固有のユーザデータを記憶する。ユーザデータ領域20aに記憶されるプログラムは、CPU11によって実行される。チューンデータ領域20bは、フラッシュROM12の製造における特性ばらつきによる生産面での影響を最小限に抑えるために、製品テスト時において個々の性能を一定に揃えるための調整データであるチューンデータを記憶する。   The flash ROM control circuit 22 is connected to the storage unit 20 and the flash ROM control register 21. The storage unit 20 is configured by a nonvolatile memory. The storage unit 20 includes a user data area 20a and a tune data area 20b. The user data area 20a stores a program processed by the microcomputer 10 and user-specific user data. The program stored in the user data area 20a is executed by the CPU 11. The tune data area 20b stores tune data, which is adjustment data for keeping individual performances constant at the time of product testing, in order to minimize the influence on production due to characteristic variations in the manufacture of the flash ROM 12.

フラッシュROM制御レジスタ21は、揮発性メモリによって構成される。フラッシュROM制御レジスタ21は、フラッシュROM制御回路22に必要な設定値、たとえばチューンデータを格納する。フラッシュROM制御回路22は、フラッシュROM制御レジスタ21に格納されるチューンデータに基づいて調整される。フラッシュROM制御レジスタ21の内容を書換えることによって、フラッシュROM12の制御方法を変更したり、製造ばらつきに応じて回路の制御度合いを変更することができ、フラッシュROM12の特性を制御することができる。フラッシュROM制御レジスタ21には、チューンデータ以外に、フラッシュROM12の制御に用いられないデータが格納されてもよい。   The flash ROM control register 21 is configured by a volatile memory. The flash ROM control register 21 stores setting values necessary for the flash ROM control circuit 22, such as tune data. The flash ROM control circuit 22 is adjusted based on the tune data stored in the flash ROM control register 21. By rewriting the contents of the flash ROM control register 21, the control method of the flash ROM 12 can be changed, the degree of control of the circuit can be changed according to manufacturing variations, and the characteristics of the flash ROM 12 can be controlled. In addition to the tune data, the flash ROM control register 21 may store data that is not used for controlling the flash ROM 12.

フラッシュROM制御回路22は、フラッシュROM12を構成する記憶部20およびフラッシュROM制御レジスタ21を統括的に制御する。フラッシュROM制御回路22には、フラッシュROM制御レジスタ21から前述のチューンデータが与えられる。またフラッシュROM制御回路22には、マイコン10の外部からリセット信号が与えられるとともに、後述するコールド/ウォームスタート信号回路13からコールド/ウォームスタート信号が与えられる。リセット信号は、フラッシュROM制御レジスタ21に格納されるチューンデータの消去を指示する、メモリリセット信号に相当する。   The flash ROM control circuit 22 comprehensively controls the storage unit 20 and the flash ROM control register 21 constituting the flash ROM 12. The flash ROM control circuit 22 is supplied with the above-mentioned tune data from the flash ROM control register 21. The flash ROM control circuit 22 receives a reset signal from the outside of the microcomputer 10 and a cold / warm start signal from a cold / warm start signal circuit 13 described later. The reset signal corresponds to a memory reset signal that instructs erasure of tune data stored in the flash ROM control register 21.

マイコン10を構成するコールド/ウォームスタート信号回路13は、フラッシュROM12を構成するフラッシュROM制御回路22およびマイコン10を構成するリセット有効/無効選択回路14と接続されている。コールド/ウォームスタート信号回路13は、コールドスタート状態であるか、またはウォームスタート状態であるかを識別可能な信号であるコールド/ウォームスタート信号を出力する。コールド/ウォームスタート信号は、メモリコールド/ウォームスタート信号に相当する。   The cold / warm start signal circuit 13 constituting the microcomputer 10 is connected to the flash ROM control circuit 22 constituting the flash ROM 12 and the reset valid / invalid selection circuit 14 constituting the microcomputer 10. The cold / warm start signal circuit 13 outputs a cold / warm start signal that is a signal that can be identified as being in a cold start state or a warm start state. The cold / warm start signal corresponds to the memory cold / warm start signal.

コールドスタート状態とは、フラッシュROM12などの設定が必要な電子回路の設定が未だ行われていない段階で起動が指示された状態および起動の指示を待っている状態のことであり、たとえば、マイコン10に電源が供給された後の初回のリセット(以下「パワーオン・リセット」という)によって初期化されて起動した状態をいう。ウォームスタート状態とは、フラッシュROM12などの設定が必要な電子回路の設定が終了した段階で起動が指示された状態および起動の指示を待っている状態のことであり、たとえば、電源が供給されたまま再リセット(以下「リスタート・リセット」という)されて再起動した状態をいう。ただし、ソフトウェアによってコールドスタート状態からウォームスタート状態に設定される場合もあるので、電源が供給されたまま再リセットされて再起動した場合が常にウォームスタート状態であるとは限らない。換言すると、電源が供給されて初回から何回かはコールドスタート状態であり、その後にリセットされてウォームスタート状態となることがある。コールドスタート状態は、メモリコールドスタート状態に相当し、ウォームスタート状態は、メモリウォームスタート状態に相当する。コールド/ウォームスタート信号回路13の構成については、後述する。   The cold start state is a state in which start-up is instructed or a state in which a start-up instruction is awaited when the setting of an electronic circuit such as the flash ROM 12 has not yet been set. It is initialized and activated by the first reset after power is supplied to (hereinafter referred to as “power-on reset”). The warm start state is a state in which start-up is instructed after completion of setting of the electronic circuit such as the flash ROM 12 and a state in which a start-up instruction is waited. For example, power is supplied. It means a state of being restarted after being reset again (hereinafter referred to as “restart / reset”). However, since the software may set the cold start state to the warm start state, it is not always the warm start state that is reset and restarted while the power is supplied. In other words, the power supply is supplied and the cold start state is performed several times from the first time, and then it is reset to the warm start state. The cold start state corresponds to a memory cold start state, and the warm start state corresponds to a memory warm start state. The configuration of the cold / warm start signal circuit 13 will be described later.

リセット有効/無効選択回路14は、フラッシュROM12を構成するフラッシュROM制御レジスタ21と接続されている。リセット有効/無効選択回路14には、マイコン10の外部からリセット信号が与えられる。リセット有効/無効選択回路14は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号の値に応じて、マイコン10の外部から与えられるリセット信号をそのままフラッシュROM12、具体的にはフラッシュROM12のフラッシュROM制御レジスタ21に与えるか、または前記リセット信号を遮断してリセットされないような信号(以下「非リセット信号」という)をフラッシュROM12、具体的にはフラッシュROM12のフラッシュROM制御レジスタ21に与えるかを選択する。非リセット信号は、入力されたメモリリセット信号であるリセット信号を遮断して、フラッシュROM制御レジスタ21に格納されるチューンデータの保持を指示する、メモリ非リセット信号に相当する。   The reset valid / invalid selection circuit 14 is connected to a flash ROM control register 21 constituting the flash ROM 12. The reset valid / invalid selection circuit 14 is supplied with a reset signal from outside the microcomputer 10. The reset valid / invalid selection circuit 14 uses the reset signal supplied from the outside of the microcomputer 10 in accordance with the value of the cold / warm start signal supplied from the cold / warm start signal circuit 13 as it is, specifically, the flash ROM 12. Is supplied to the flash ROM control register 21 of the flash ROM 12, or a signal (hereinafter referred to as "non-reset signal") that is not reset by cutting off the reset signal is supplied to the flash ROM 12, specifically, the flash ROM control register 21 of the flash ROM 12. Choose. The non-reset signal corresponds to a memory non-reset signal that blocks the reset signal that is the input memory reset signal and instructs the retention of the tune data stored in the flash ROM control register 21.

さらに述べると、リセット有効/無効選択回路14は、前記コールド/ウォームスタート信号がコールドスタート状態を表す信号である場合、マイコン10の外部からのリセット信号を有効にして、リセット信号をそのままフラッシュROM制御レジスタ21に与える。フラッシュROM制御レジスタ21は、リセット有効/無効選択回路14からリセット信号が与えられると、デフォルト状態に初期化される。たとえばフラッシュROM制御レジスタ21がチューンデータを格納していた場合は、そのチューンデータが消去される。コールドスタート状態は、フラッシュROM制御レジスタ21に格納されるチューンデータの消去が必要な要メモリ消去状態に相当する。   More specifically, when the cold / warm start signal is a signal indicating a cold start state, the reset valid / invalid selection circuit 14 validates the reset signal from the outside of the microcomputer 10 and controls the reset signal as it is in the flash ROM. It is given to the register 21. The flash ROM control register 21 is initialized to a default state when a reset signal is given from the reset valid / invalid selection circuit 14. For example, if the flash ROM control register 21 stores tune data, the tune data is deleted. The cold start state corresponds to a memory erasure required state in which tune data stored in the flash ROM control register 21 needs to be erased.

またリセット有効/無効選択回路14は、前記コールド/ウォームスタート信号がウォームスタート状態を表す信号である場合、マイコン10の外部からのリセット信号を無効にして、非リセット信号をフラッシュROM制御レジスタ21に与える。フラッシュROM制御レジスタ21は、リセット有効/無効選択回路14から非リセット信号が与えられると、デフォルト状態に初期化されず、格納していた値、たとえばチューンデータを保持する。ウォームスタート状態は、フラッシュROM制御レジスタ21に格納されるチューンデータの消去が不要なメモリ消去不要状態に相当する。   The reset valid / invalid selection circuit 14 invalidates the reset signal from the outside of the microcomputer 10 and sends a non-reset signal to the flash ROM control register 21 when the cold / warm start signal indicates a warm start state. give. When a non-reset signal is given from the reset valid / invalid selection circuit 14, the flash ROM control register 21 is not initialized to a default state but holds a stored value, for example, tune data. The warm start state corresponds to a memory erasure unnecessary state in which it is not necessary to erase the tune data stored in the flash ROM control register 21.

フラッシュROM制御回路22は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がコールドスタート状態を表す信号のとき、チューンデータ領域20bに記憶されているチューンデータを、初期化されたフラッシュROM制御レジスタ21にコピーして、フラッシュROM制御レジスタ21に格納されている値を更新する。つまり、コールドスタート状態では、リセット信号が入力されると、フラッシュROM制御レジスタ21が初期化されてフラッシュROM制御レジスタ21に格納されるチューンデータが消去され、記憶部20のチューンデータ領域20bから新たに与えられるチューンデータがフラッシュROM制御レジスタ21に格納される。   When the cold / warm start signal supplied from the cold / warm start signal circuit 13 is a signal representing a cold start state, the flash ROM control circuit 22 uses the initialized flash data stored in the tune data area 20b. The value copied to the ROM control register 21 and the value stored in the flash ROM control register 21 are updated. That is, in the cold start state, when a reset signal is input, the flash ROM control register 21 is initialized and the tune data stored in the flash ROM control register 21 is erased, and a new tune data area 20b of the storage unit 20 is deleted. Tune data supplied to the flash ROM control register 21 is stored.

フラッシュROM制御回路22は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がウォームスタート状態を表す信号のとき、チューンデータ領域20bに記憶されているチューンデータをフラッシュROM制御レジスタ21にはコピーせずに、フラッシュROM制御レジスタ21に既に格納されている値を保持した状態で動作を続行する。つまり、ウォームスタート状態では、リセット信号が入力されても、フラッシュROM制御レジスタ21は初期化されず、フラッシュROM制御レジスタ21に格納されるチューンデータは消去されないので、チューンデータ領域20bからチューンデータはコピーされず、フラッシュROM制御レジスタ21に既に格納されているチューンデータが保持される。   The flash ROM control circuit 22 stores the tune data stored in the tune data area 20b in the flash ROM control register 21 when the cold / warm start signal supplied from the cold / warm start signal circuit 13 indicates a warm start state. The operation is continued without holding the value already stored in the flash ROM control register 21 without copying. That is, in the warm start state, even if a reset signal is input, the flash ROM control register 21 is not initialized, and the tune data stored in the flash ROM control register 21 is not erased. The tune data already stored in the flash ROM control register 21 is held without being copied.

図5は、コールド/ウォームスタート信号回路13の構成を示すブロック図である。コールド/ウォームスタート信号回路13は、コールド/ウォームスタートフラグ回路25を備えて構成される。コールド/ウォームスタートフラグ回路25は、コールドスタート状態であるか、またはウォームスタート状態であるかを検出する回路、および検出結果をフラグ値として記憶するフラグレジスタを含み、フラグ値をコールド/ウォームスタート信号として出力する。コールドスタート状態からウォームスタート状態への変更は、ハードウェアによって設定される場合とソフトウェアによって設定される場合とがある。ソフトウェアによって設定される場合は、電源が供給された初回にコールドスタート状態に初期化され、その後何度も再リセットされてもソフトウェアによってウォームスタート状態に変更されない限り、コールドスタート状態のままである。つまり、ソフトウェアによってウォームスタート状態に変更しない限り、コールドスタート状態のままである。ソフトウェアによるフラグの更新の場合は、更新タイミングを自由に設定できる、つまりウォームスタート状態に任意にできる。   FIG. 5 is a block diagram showing the configuration of the cold / warm start signal circuit 13. The cold / warm start signal circuit 13 includes a cold / warm start flag circuit 25. The cold / warm start flag circuit 25 includes a circuit for detecting whether it is in a cold start state or a warm start state, and a flag register for storing a detection result as a flag value. The flag value is a cold / warm start signal. Output as. The change from the cold start state to the warm start state may be set by hardware or may be set by software. When set by software, it is initialized to a cold start state the first time power is supplied, and remains in the cold start state as long as it is not reset to the warm start state by software after being reset again and again. In other words, it remains in the cold start state unless changed to the warm start state by software. In the case of updating the flag by software, the update timing can be freely set, that is, the warm start state can be arbitrarily set.

図6は、リセット有効/無効選択回路14の構成を示すブロック図である。リセット有効/無効選択回路14は、選択回路26および非リセット値用レジスタ27を備えて構成される。前記選択回路26には、マイコン10を構成するコールド/ウォームスタート信号回路13が接続されている。非リセット値用レジスタ27は、前記非リセット信号が表す値(以下「非リセット値」という)を格納する。   FIG. 6 is a block diagram showing a configuration of the reset valid / invalid selection circuit 14. The reset valid / invalid selection circuit 14 includes a selection circuit 26 and a non-reset value register 27. A cold / warm start signal circuit 13 constituting the microcomputer 10 is connected to the selection circuit 26. The non-reset value register 27 stores a value represented by the non-reset signal (hereinafter referred to as “non-reset value”).

選択回路26は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号に応じて、マイコン10の外部からのリセット信号および非リセット値用レジスタ27に格納している非リセット値のうちのいずれか一方を選択する。さらに述べると、選択回路26は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がコールドスタート状態を表す信号の場合、マイコン10の外部から与えられるリセット信号を選択し、リセット信号としてそのままフラッシュROM制御レジスタ21に与える。選択回路26は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がウォームスタート状態を表す信号の場合、非リセット値用レジスタ27に格納している非リセット値を選択し、リセット信号としてフラッシュROM制御レジスタ21に与える。   In response to the cold / warm start signal supplied from the cold / warm start signal circuit 13, the selection circuit 26 selects one of the reset signal from the outside of the microcomputer 10 and the non-reset value stored in the non-reset value register 27. Select either one. More specifically, when the cold / warm start signal supplied from the cold / warm start signal circuit 13 is a signal indicating a cold start state, the selection circuit 26 selects a reset signal supplied from the outside of the microcomputer 10 as a reset signal. It is given to the flash ROM control register 21 as it is. When the cold / warm start signal supplied from the cold / warm start signal circuit 13 is a signal indicating a warm start state, the selection circuit 26 selects a non-reset value stored in the non-reset value register 27, and reset signal Is given to the flash ROM control register 21 as follows.

図7は、マイクロコンピュータ10の動作タイミングを示すタイミングチャートである。時刻t1において、電源が供給され、電源の状態がオフ(OFF)からオン(ON)に移行すると、リセット信号が入力され、電源供給後の初回のリセット、すなわちパワーオン・リセットが行われる。また時刻t1において、コールド/ウォームスタート信号として、コールドスタート状態を表す信号、たとえばロー(Low)信号が出力される。   FIG. 7 is a timing chart showing the operation timing of the microcomputer 10. When power is supplied at time t1 and the state of the power supply is changed from OFF to ON, a reset signal is input and an initial reset after power supply, that is, a power-on reset is performed. At time t1, a signal indicating a cold start state, for example, a low signal is output as a cold / warm start signal.

次いで、時刻t2において、リセットが解除されると、リセットシーケンスとして、フラッシュROM12のチューニングの初期化が行われる。具体的には、フラッシュROM制御レジスタ21およびフラッシュROM制御回路22が初期化され、初期化されたフラッシュROM制御レジスタ21に、記憶部20のチューンデータ領域20bに記憶されているチューンデータがコピーされる。   Next, when the reset is released at time t2, the initialization of the flash ROM 12 is initialized as a reset sequence. Specifically, the flash ROM control register 21 and the flash ROM control circuit 22 are initialized, and the tune data stored in the tune data area 20b of the storage unit 20 is copied to the initialized flash ROM control register 21. The

電源の供給直後は、マイコン10中のレジスタなどのノードの電位がどういう状態になっているかが判らないので、パワーオン・リセットのタイミング、すなわちパワーオン・リセット後のリセットシーケンスで、マイコン10の中のノードの電位を安定化させている。これによって、フラッシュROM制御レジスタ21などのレジスタおよびラッチなどの状態が全て消されて、初期状態になってしまうので、リセットシーケンスでは、フラッシュROM12の記憶部20からデータを読出して、レジスタおよびラッチに新たに格納する必要がある。   Immediately after power is supplied, it is not known what state the potential of a node such as a register in the microcomputer 10 is, so the timing of power-on reset, that is, the reset sequence after power-on reset, The potential of the node is stabilized. As a result, all the registers such as the flash ROM control register 21 and the latches are erased and become the initial state. Therefore, in the reset sequence, data is read from the storage unit 20 of the flash ROM 12 and is stored in the registers and latches. New storage is required.

したがって、パワーオン・リセット後のリセットシーケンスでは、前述のように記憶部20のチューンデータ領域20bに記憶されているチューンデータを、フラッシュROM制御レジスタ21にコピーする必要がある。リセットシーケンスが終了すると、CPU11の動作、具体的には記憶部20のユーザデータ領域20aに記憶されるプログラムの実行動作が開始される。   Therefore, in the reset sequence after the power-on reset, it is necessary to copy the tune data stored in the tune data area 20b of the storage unit 20 to the flash ROM control register 21 as described above. When the reset sequence ends, the operation of the CPU 11, specifically, the execution operation of the program stored in the user data area 20 a of the storage unit 20 is started.

その後、時刻t3において、たとえばCPU11によるプログラムの実行動作によって、コールド/ウォームスタート信号回路13のコールド/ウォームスタートフラグ回路25のフラグが書換えられ、コールドスタート状態からウォームスタート状態に変更されると、コールド/ウォームスタート信号として、ウォームスタート状態を表す信号、たとえばハイ(High)信号が出力される。   After that, at time t3, when the CPU 11 executes the program execution operation, the flag of the cold / warm start flag circuit 25 of the cold / warm start signal circuit 13 is rewritten, and when the cold start state is changed to the warm start state, / As a warm start signal, a signal indicating a warm start state, for example, a high signal is output.

次いで、時刻t4において、リセット信号が入力されると、リスタート・リセット(以下「再リセット」という場合がある)が行われ、時刻t5において、リセットが解除される。このとき、ウォームスタート状態であるので、リセット有効/無効選択回路14によってリセット信号が無効にされて、非リセット信号が出力される。これによって、リセット解除後のリセットシーケンスは省略され、CPU11の動作が開始される。   Next, when a reset signal is input at time t4, restart / reset (hereinafter may be referred to as “re-reset”) is performed, and reset is released at time t5. At this time, since it is in a warm start state, the reset valid / invalid selection circuit 14 invalidates the reset signal and outputs a non-reset signal. Thereby, the reset sequence after reset release is omitted, and the operation of the CPU 11 is started.

ウォームスタート状態では、マイコン10の中のノードの電位は、パワーオン・リセット後のリセットシーケンスによって既に安定しているので、再度リセットシーケンスでマイコン10内のレジスタなどのノードの電位を安定化させる必要はない。またレジスタなどの値は保持されるので、再度リセットシーケンスでフラッシュROM12の記憶部20からデータを読出して、レジスタなどに格納する必要はない。フラッシュROM制御レジスタ21についてもチューンデータが保持されるので、記憶部20のチューンデータ領域20bに記憶されているチューンデータを再度コピーする必要はない。つまり、リスタート・リセットのようなウォームスタート状態におけるリセットでは、リセット解除後のリセットシーケンスは必要ない。   In the warm start state, the potential of the node in the microcomputer 10 is already stabilized by the reset sequence after the power-on reset. Therefore, it is necessary to stabilize the potential of the node such as the register in the microcomputer 10 again by the reset sequence. There is no. Further, since the value of the register or the like is held, it is not necessary to read the data from the storage unit 20 of the flash ROM 12 again in the reset sequence and store it in the register or the like. Since the tune data is also stored in the flash ROM control register 21, it is not necessary to copy the tune data stored in the tune data area 20b of the storage unit 20 again. That is, in the reset in the warm start state such as restart / reset, the reset sequence after the reset release is not necessary.

したがって、前述のようにリセット解除後のリセットシーケンスを省略する、たとえばチューンデータのコピーを省略することができるので、リセット解除後に、速やかにCPU11の動作を開始させて、マイコン10の起動時間を短縮することができる。   Therefore, as described above, the reset sequence after reset release can be omitted, for example, copying of tune data can be omitted. Therefore, after the reset release, the operation of the CPU 11 is started immediately and the startup time of the microcomputer 10 is shortened. can do.

以上のように本実施の形態によれば、コールドスタート状態においてリセット信号が入力されると、フラッシュROM制御レジスタ21が初期化されて、フラッシュROM制御レジスタ21へのチューンデータのコピーが行われるが、ウォームスタート状態においてリセット信号が入力されても、フラッシュROM制御レジスタ21は初期化されず、格納していたチューンデータを保持する。   As described above, according to the present embodiment, when a reset signal is input in the cold start state, the flash ROM control register 21 is initialized and tune data is copied to the flash ROM control register 21. Even if a reset signal is input in the warm start state, the flash ROM control register 21 is not initialized and holds the stored tune data.

具体的には、コールド/ウォームスタート信号回路13から出力されるコールド/ウォームスタート信号がコールドスタート状態を表す信号である場合にリセット信号が入力されると、リセット有効/無効選択回路14からリセット信号がフラッシュROM制御レジスタ21に与えられて、フラッシュROM制御レジスタ21の初期化およびチューンデータのコピーが行われる。コールド/ウォームスタート信号回路13から出力されるコールド/ウォームスタート信号がウォームスタート状態を表す信号である場合には、リセット信号が入力されても、リセット有効/無効選択回路14から非リセット信号がフラッシュROM制御レジスタ21に与えられるので、フラッシュROM制御レジスタ21は初期化されず、格納していたチューンデータを保持する。   Specifically, when the cold / warm start signal output from the cold / warm start signal circuit 13 is a signal indicating a cold start state, when the reset signal is input, the reset valid / invalid selection circuit 14 resets the reset signal. Is supplied to the flash ROM control register 21 to initialize the flash ROM control register 21 and copy the tune data. When the cold / warm start signal output from the cold / warm start signal circuit 13 is a signal indicating the warm start state, the reset valid / invalid selection circuit 14 flushes the non-reset signal even if the reset signal is input. Since it is given to the ROM control register 21, the flash ROM control register 21 is not initialized, and holds the stored tune data.

このようにウォームスタート状態における再リセットのときには、フラッシュROM制御レジスタ21の初期化を行わず、チューンデータをフラッシュROM制御レジスタ21に反映させたまま、すなわちチューンデータをフラッシュROM制御レジスタ21に保持させたままにすることができるので、チューンデータ領域20bからフラッシュROM制御レジスタ21へのチューンデータのコピーを省略することができる。これによって、再リセット時のチューンデータのコピー時間が不要になるので、再リセットを頻繁にするような場合に、マイコン10の起動時間を短縮することが可能となる。また製品良品テストの場合には、テスト時間の短縮を実現することができる。このマイコン10の起動時間およびテスト時間の短縮効果は、単純にチューンデータの1回のコピー時間、コピー省略回数および実施サンプル数の積によって、定量的に算出することができる。   As described above, when resetting in the warm start state, the flash ROM control register 21 is not initialized, and the tune data is reflected in the flash ROM control register 21, that is, the tune data is held in the flash ROM control register 21. Therefore, copying of tune data from the tune data area 20b to the flash ROM control register 21 can be omitted. This eliminates the need to copy the tune data at the time of resetting, so that the startup time of the microcomputer 10 can be shortened when the resetting is frequently performed. In the case of a non-defective product test, the test time can be shortened. The effect of shortening the start-up time and test time of the microcomputer 10 can be calculated quantitatively simply by multiplying the tune data by one copy time, the number of copy skips, and the number of samples to be executed.

本実施の形態のマイコン10を実現する場合、前述の図1に示す前提技術のマイコン1の一部の回路変更が必要であるが、いずれの場合においても、簡単でかつ極めて小規模な回路変更で実現することができる。したがって、上記の効果に対して、ハードウェア的なコストの増加は小さく、実現性は極めて高い。また本実施の形態のマイコン10の構成は、本実施の形態のフラッシュROM12と同様のフラッシュROMを実装している製品であれば、全てに適用可能である。   In order to realize the microcomputer 10 of the present embodiment, it is necessary to change a part of the circuit of the microcomputer 1 of the premise technique shown in FIG. 1 described above. Can be realized. Therefore, the increase in hardware cost is small with respect to the above effect, and the feasibility is extremely high. Further, the configuration of the microcomputer 10 of the present embodiment is applicable to all products in which a flash ROM similar to the flash ROM 12 of the present embodiment is mounted.

<参考形態>
第1の実施の形態のマイクロコンピュータ10の構成は、フラッシュROM12以外の電子回路、たとえばPLL回路を搭載するマイクロコンピュータに応用することができる。図8は、参考形態のマイクロコンピュータ30の構成を示すブロック図である。図8に示すマイコン30の構成は、前述の図3に示す第1の実施の形態のマイコン10の構成と類似しているので、異なる部分についてのみ説明し、対応する部分には同一の参照符を付して共通する説明を省略する。
<Reference form>
The configuration of the microcomputer 10 according to the first embodiment can be applied to an electronic circuit other than the flash ROM 12, for example, a microcomputer equipped with a PLL circuit. FIG. 8 is a block diagram showing a configuration of the microcomputer 30 of the reference form. The configuration of the microcomputer 30 shown in FIG. 8 is similar to the configuration of the microcomputer 10 of the first embodiment shown in FIG. 3 described above, so only the different parts will be described, and the corresponding parts have the same reference numerals. A common description is omitted.

マイコン30は、CPU11、コールド/ウォームスタート信号回路13、リセット有効/無効選択回路14およびPLL回路31を備えて構成される。本形態のマイコン30は、第1の実施の形態のマイコン10に備えられるフラッシュROM12に代えて、PLL回路31を備えて構成される点が異なる。CPU11は、PLL回路31およびコールド/ウォームスタート信号回路13と接続される。PLL回路31は、CPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14と接続される。コールド/ウォームスタート信号回路13は、CPU11およびリセット有効/無効選択回路14と接続される。リセット有効/無効選択回路14は、コールド/ウォームスタート信号回路13およびPLL回路31と接続される。CPU11は、内蔵する制御プログラムに従って、演算処理ならびにマイコン30を構成するコールド/ウォームスタート信号回路13およびPLL回路31を統括的に制御する。PLL回路31については、後述する。   The microcomputer 30 includes a CPU 11, a cold / warm start signal circuit 13, a reset valid / invalid selection circuit 14, and a PLL circuit 31. The microcomputer 30 of this embodiment is different in that the microcomputer 30 includes a PLL circuit 31 instead of the flash ROM 12 included in the microcomputer 10 of the first embodiment. The CPU 11 is connected to the PLL circuit 31 and the cold / warm start signal circuit 13. The PLL circuit 31 is connected to the CPU 11, the cold / warm start signal circuit 13 and the reset valid / invalid selection circuit 14. The cold / warm start signal circuit 13 is connected to the CPU 11 and the reset valid / invalid selection circuit 14. The reset valid / invalid selection circuit 14 is connected to the cold / warm start signal circuit 13 and the PLL circuit 31. The CPU 11 comprehensively controls arithmetic processing and the cold / warm start signal circuit 13 and the PLL circuit 31 constituting the microcomputer 30 according to a built-in control program. The PLL circuit 31 will be described later.

図9は、PLL回路31の構成を示すブロック図である。図9では、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14を併せて記載する。PLL回路31は、PLL制御レジスタ32およびPLL制御回路33を備えて構成される。PLL制御レジスタ32は、電子回路用制御レジスタに相当し、PLL制御回路33は、電子回路用制御回路に相当する。PLL制御レジスタ32は、PLL制御回路33と接続されている。   FIG. 9 is a block diagram showing a configuration of the PLL circuit 31. In FIG. 9, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14 are described together. The PLL circuit 31 includes a PLL control register 32 and a PLL control circuit 33. The PLL control register 32 corresponds to an electronic circuit control register, and the PLL control circuit 33 corresponds to an electronic circuit control circuit. The PLL control register 32 is connected to the PLL control circuit 33.

PLL制御回路33は、入力クロックを、設定した逓倍率になるように発振させて出力する発振回路である。PLL制御レジスタ32は、PLL制御回路33に必要なPLL逓倍率などの設定値のデータである設定データを格納する。PLL制御回路33は、PLL制御レジスタ32に格納される設定データに基づいて動作を設定可能に構成される。具体的には、PLL制御回路33は、PLL制御レジスタ32に格納されるPLL逓倍率の設定値になるように、入力クロックを発振させて出力する。   The PLL control circuit 33 is an oscillation circuit that oscillates and outputs an input clock so as to have a set multiplication rate. The PLL control register 32 stores setting data which is data of setting values such as a PLL multiplication factor necessary for the PLL control circuit 33. The PLL control circuit 33 is configured to be able to set an operation based on setting data stored in the PLL control register 32. Specifically, the PLL control circuit 33 oscillates and outputs the input clock so that the set value of the PLL multiplication rate stored in the PLL control register 32 is obtained.

本形態において、リセット有効/無効選択回路14は、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号の値によって、マイコン30の外部から入力されるリセット信号を有効にして、そのリセット信号値をそのまま出力するか、またはリセット信号値にかかわらず、常に非リセット信号として非リセット値を出力するかを選択する。   In this embodiment, the reset valid / invalid selection circuit 14 validates the reset signal input from the outside of the microcomputer 30 according to the value of the cold / warm start signal supplied from the cold / warm start signal circuit 13, and the reset signal Select whether to output the value as it is or to always output the non-reset value as a non-reset signal regardless of the reset signal value.

具体的に述べると、リセット有効/無効選択回路14は、コールド/ウォームスタート信号がコールドスタート状態を表す信号である場合、マイコン30の外部からのリセット信号を有効にして、リセット信号をそのままPLL制御レジスタ32に与える。またリセット有効/無効選択回路14は、コールド/ウォームスタート信号がウォームスタート状態を表す信号である場合、マイコン30の外部からのリセット信号を無効にして、非リセット信号をPLL制御レジスタ32に与える。   More specifically, when the cold / warm start signal is a signal representing a cold start state, the reset valid / invalid selection circuit 14 validates the reset signal from the outside of the microcomputer 30 and performs PLL control as it is. It is given to the register 32. The reset valid / invalid selection circuit 14 invalidates the reset signal from the outside of the microcomputer 30 and gives a non-reset signal to the PLL control register 32 when the cold / warm start signal is a signal representing a warm start state.

コールド/ウォームスタート信号がコールドスタート状態を表す信号であり、リセット有効/無効選択回路14が有効状態になっている場合、リセット有効/無効選択回路14からリセット信号が出力され、PLL制御レジスタ32がデフォルト状態に初期化される。これによって、逓倍率も初期状態になる。逓倍率の初期状態は、たとえば自励発振状態である。その後、CPU11によって所望のPLL発振周波数になるようにPLL制御レジスタ32の逓倍率を書換え、PLL発振安定待ち時間を経た後、PLL発振安定状態になる。   When the cold / warm start signal is a signal indicating a cold start state and the reset valid / invalid selection circuit 14 is in a valid state, a reset signal is output from the reset valid / invalid selection circuit 14 and the PLL control register 32 Initialized to default state. As a result, the multiplication rate is also in the initial state. The initial state of the multiplication rate is, for example, a self-excited oscillation state. After that, the CPU 11 rewrites the multiplication rate of the PLL control register 32 so that the desired PLL oscillation frequency is obtained, and after the PLL oscillation stabilization wait time, the PLL oscillation stable state is entered.

コールド/ウォームスタート信号がウォームスタート状態を表す信号であり、リセット有効/無効選択回路14が無効状態になっている場合、リセット有効/無効選択回路14からは非リセット信号が出力されるので、PLL制御レジスタ32は初期化されず、既に設定されている値がそのまま有効になる。その場合、PLL回路31は、再リセットされても再リセット前のPLL発振周波数を持続する。したがって、既に所望のPLL発振周波数になっている場合、CPU11による逓倍率の更新が不要になり、PLL発振安定待ち時間も省略することができる。   When the cold / warm start signal is a signal representing a warm start state and the reset valid / invalid selection circuit 14 is in an invalid state, a non-reset signal is output from the reset valid / invalid selection circuit 14. The control register 32 is not initialized, and the already set value is valid as it is. In that case, even if the PLL circuit 31 is reset again, the PLL oscillation frequency before the resetting is maintained. Therefore, when the desired PLL oscillation frequency has already been reached, the CPU 11 does not need to update the multiplication rate, and the PLL oscillation stabilization wait time can be omitted.

以上のように本形態によれば、コールドスタート状態においてリセット信号が入力されると、PLL制御レジスタ32が初期化されて、PLL制御レジスタ32の逓倍率の設定が行われ、PLL回路31の発振安定待ちが行われるが、ウォームスタート状態においてリセット信号が入力されても、PLL制御レジスタ32は初期化されず、格納していた設定値を保持する。   As described above, according to the present embodiment, when a reset signal is input in the cold start state, the PLL control register 32 is initialized, the multiplication rate of the PLL control register 32 is set, and the oscillation of the PLL circuit 31 is performed. Although the waiting for stability is performed, even if a reset signal is input in the warm start state, the PLL control register 32 is not initialized and holds the stored set value.

具体的には、コールド/ウォームスタート信号回路13から出力されるコールド/ウォームスタート信号がコールドスタート状態を表す信号である場合にリセット信号が入力されると、リセット有効/無効選択回路14からリセット信号がPLL制御レジスタ32に与えられて、PLL制御レジスタ32の逓倍率の設定が行われ、PLL回路31の発振安定待ちが行われる。コールド/ウォームスタート信号回路13から出力されるコールド/ウォームスタート信号がウォームスタート状態を表す信号である場合には、リセット信号が入力されても、リセット有効/無効選択回路14から非リセット信号がPLL制御レジスタ32に与えられるので、PLL制御レジスタ32は初期化されず、格納していた設定値を保持する。したがって、PLL制御レジスタ32の初期化および逓倍率の設定を省略して、PLL回路31の発振安定待ち時間を省略することができる。   Specifically, when the cold / warm start signal output from the cold / warm start signal circuit 13 is a signal indicating a cold start state, when the reset signal is input, the reset valid / invalid selection circuit 14 resets the reset signal. Is supplied to the PLL control register 32, the multiplication rate of the PLL control register 32 is set, and the oscillation stabilization wait of the PLL circuit 31 is performed. When the cold / warm start signal output from the cold / warm start signal circuit 13 is a signal representing a warm start state, the reset valid / invalid selection circuit 14 outputs a non-reset signal to the PLL even if a reset signal is input. Since it is given to the control register 32, the PLL control register 32 is not initialized and holds the stored set value. Therefore, initialization of the PLL control register 32 and setting of the multiplication rate can be omitted, and the oscillation stabilization wait time of the PLL circuit 31 can be omitted.

このようにウォームスタート状態における再リセットのときのように、既に所望のPLL発振周波数になっている場合に、PLL制御レジスタ32の初期化および逓倍率の設定を省略して、PLL発振安定待ち時間を省略することができる。これによって、再リセットを頻繁にするような場合に、たとえばPLL発振安定待ち時間を経てプログラムが実行されるような構成において、マイコン30の起動時間を短縮することができる。また製品良品テストにおいて、テスト時間の短縮を実現することができる。本形態のマイコン30における起動時間およびテスト時間の短縮効果は、単純に1回のPLL発振安定待ち時間、PLL安定待ち時間の省略回数および実施サンプル数の積によって、定量的に算出することができる。   Thus, when the desired PLL oscillation frequency has already been reached, such as when resetting again in the warm start state, initialization of the PLL control register 32 and setting of the multiplication ratio are omitted, and the PLL oscillation stabilization wait time is omitted. Can be omitted. As a result, when the reset is frequently performed, for example, in the configuration in which the program is executed after the PLL oscillation stabilization waiting time, the startup time of the microcomputer 30 can be shortened. In addition, the test time can be shortened in the non-defective product test. The effect of shortening the startup time and the test time in the microcomputer 30 of this embodiment can be calculated quantitatively by simply multiplying the PLL oscillation stabilization wait time, the number of omitted PLL stabilization wait times, and the number of samples performed. .

本形態のマイコン30を実現する場合、前述の図2に示す前提技術のマイコンの一部の回路変更が必要であるが、いずれの場合においても、簡単でかつ極めて小規模な回路変更で実現することができる。したがって、上記の効果に対して、ハードウェア的なコスト増は小さく、実現性は極めて高い。また本形態のマイコン30の構成は、本形態のPLL回路31と同様の構成のPLL回路を実装している製品であれば、全てに適用可能である。   When the microcomputer 30 of this embodiment is realized, it is necessary to change a part of the circuit of the microcomputer of the base technology shown in FIG. 2 described above, but in any case, it is realized with a simple and extremely small circuit change. be able to. Therefore, the increase in hardware cost is small with respect to the above effect, and the feasibility is extremely high. The configuration of the microcomputer 30 of the present embodiment is applicable to all products that are mounted with a PLL circuit having the same configuration as the PLL circuit 31 of the present embodiment.

以上の参考形態では、第1の実施の形態のマイコン20の構成を応用可能なマイコンとして、PLL回路31を備えるマイコン30を挙げているが、PLL回路に限定されず、電子回路用制御レジスタと電子回路用制御回路とを含み、電子回路用制御レジスタに格納される設定データに基づいて電子回路用制御回路の動作が設定される電子回路を備えるマイコンであれば、同様の効果を達成することができる。このような電子回路のPLL回路以外の例としては、たとえば、外部から供給される電源電圧を、予め定める設定値に降下させて内部電源電圧を生成する降圧回路が挙げられる。   In the above reference embodiment, the microcomputer 30 including the PLL circuit 31 is cited as a microcomputer to which the configuration of the microcomputer 20 of the first embodiment can be applied. However, the microcomputer 30 is not limited to the PLL circuit, and the electronic circuit control register and If the microcomputer includes an electronic circuit control circuit and includes an electronic circuit in which the operation of the electronic circuit control circuit is set based on setting data stored in the electronic circuit control register, the same effect is achieved. Can do. Examples of the electronic circuit other than the PLL circuit include a step-down circuit that generates an internal power supply voltage by dropping a power supply voltage supplied from the outside to a predetermined set value.

このようなマイコンは、予め定める設定データを格納する電子回路用制御レジスタと、前記電子回路用制御レジスタに格納される前記設定データに基づいて動作を設定可能な電子回路用制御回路とを含む電子回路と、前記電子回路用制御レジスタに格納される前記設定データの消去が必要な要設定消去状態であるとき、前記電子回路用制御レジスタに格納される前記設定データの消去を指示する回路リセット信号が入力されると、前記電子回路用制御レジスタに格納される前記設定データを消去して、新たに与えられる前記設定データを前記電子回路用制御レジスタに格納し、前記電子回路用制御レジスタに格納される前記設定データの消去が不要な設定消去不要状態であるとき、前記回路リセット信号が入力されると、前記電子回路用制御レジスタに格納される前記設定データを保持するように、前記電子回路を制御する回路リセット制御手段とを備えて構成される。   Such a microcomputer includes an electronic circuit control register for storing predetermined setting data, and an electronic circuit control circuit capable of setting an operation based on the setting data stored in the electronic circuit control register. Circuit and a circuit reset signal for instructing erasure of the setting data stored in the electronic circuit control register when the setting data stored in the electronic circuit control register needs to be erased. Is input, the setting data stored in the electronic circuit control register is erased, the newly applied setting data is stored in the electronic circuit control register, and stored in the electronic circuit control register. When the circuit reset signal is input when the setting data is in a setting erasing unnecessary state that does not require erasing the setting data, the electronic circuit control To hold the setting data stored in the register, configured with a circuit reset control means for controlling the electronic circuit.

前述の参考形態において、CPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14は、回路リセット制御手段として機能する。コールド/ウォームスタート信号回路13は、回路コールド/ウォームスタート信号回路に相当し、リセット有効/無効選択回路14は、回路リセット有効/無効選択回路に相当する。またPLL制御レジスタ32は、電子回路用制御レジスタに相当し、PLL制御回路33は、電子回路用制御回路に相当する。またコールドスタート状態は、PLL制御レジスタ32に格納される設定データ、具体的には逓倍率の設定値の消去が必要な要設定消去状態である回路コールドスタート状態に相当し、ウォームスタート状態は、PLL制御レジスタ32に格納される設定データである逓倍率の設定値の消去が不要な設定消去不要状態である回路ウォームスタート状態に相当する。またリセット信号は、PLL制御レジスタ32に格納される設定データの消去を指示する回路リセット信号に相当し、非リセット信号は、PLL制御レジスタ32に格納される設定データの保持を指示する回路非リセット信号に相当する。   In the reference embodiment described above, the CPU 11, the cold / warm start signal circuit 13 and the reset valid / invalid selection circuit 14 function as circuit reset control means. The cold / warm start signal circuit 13 corresponds to a circuit cold / warm start signal circuit, and the reset valid / invalid selection circuit 14 corresponds to a circuit reset valid / invalid selection circuit. The PLL control register 32 corresponds to an electronic circuit control register, and the PLL control circuit 33 corresponds to an electronic circuit control circuit. The cold start state corresponds to the setting data stored in the PLL control register 32, specifically, the circuit cold start state which is a necessary setting erasing state in which the setting value of the multiplication rate needs to be erased. This corresponds to a circuit warm start state that is a setting erasure unnecessary state that does not require erasure of the setting value of the multiplication rate that is the setting data stored in the PLL control register 32. The reset signal corresponds to a circuit reset signal for instructing erasure of setting data stored in the PLL control register 32, and the non-reset signal is a circuit non-reset for instructing retention of setting data stored in the PLL control register 32. Corresponds to the signal.

<第2の実施の形態>
図10は、本発明の第2の実施の形態であるマイクロコンピュータ40の構成を示すブロック図である。図10に示すマイコン40の構成は、前述の第1の実施の形態および参考形態のマイコン10,30の構成と類似しているので、異なる部分についてのみ説明し、対応する部分には同一の参照符を付して共通する説明を省略する。
<Second Embodiment>
FIG. 10 is a block diagram showing a configuration of the microcomputer 40 according to the second embodiment of the present invention. Since the configuration of the microcomputer 40 shown in FIG. 10 is similar to the configuration of the microcomputers 10 and 30 of the first embodiment and the reference embodiment described above, only different parts will be described, and the same reference will be made to the corresponding parts. A common description is omitted by adding a symbol.

マイコン40は、CPU11、フラッシュROM12、コールド/ウォームスタート信号回路13、リセット有効/無効選択回路14およびPLL回路31を備えて構成される。本実施の形態のマイコン40は、第1の実施の形態のマイコン10の構成に、さらにPLL回路31を備えて構成される。   The microcomputer 40 includes a CPU 11, a flash ROM 12, a cold / warm start signal circuit 13, a reset valid / invalid selection circuit 14, and a PLL circuit 31. The microcomputer 40 of the present embodiment is configured by further including a PLL circuit 31 in addition to the configuration of the microcomputer 10 of the first embodiment.

CPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14は、メモリリセット制御手段および回路リセット制御手段として機能する。コールド/ウォームスタート信号回路13は、メモリコールド/ウォームスタート信号回路および回路コールド/ウォームスタート信号回路に相当し、リセット有効/無効選択回路14は、メモリリセット有効/無効選択回路および回路リセット有効/無効選択回路に相当する。   The CPU 11, the cold / warm start signal circuit 13 and the reset valid / invalid selection circuit 14 function as memory reset control means and circuit reset control means. The cold / warm start signal circuit 13 corresponds to a memory cold / warm start signal circuit and a circuit cold / warm start signal circuit, and the reset valid / invalid selection circuit 14 is a memory reset valid / invalid selection circuit and circuit reset valid / invalid. This corresponds to a selection circuit.

CPU11は、フラッシュROM12、コールド/ウォームスタート信号回路13およびPLL回路31と接続される。フラッシュROM12は、CPU11、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14と接続される。コールド/ウォームスタート信号回路13は、CPU11、フラッシュROM12およびリセット有効/無効選択回路14と接続される。リセット有効/無効選択回路14は、フラッシュROM12、コールド/ウォームスタート信号回路13およびPLL回路31と接続される。PLL回路31は、CPU11およびリセット有効/無効選択回路14と接続される。   The CPU 11 is connected to the flash ROM 12, the cold / warm start signal circuit 13 and the PLL circuit 31. The flash ROM 12 is connected to the CPU 11, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14. The cold / warm start signal circuit 13 is connected to the CPU 11, the flash ROM 12, and the reset valid / invalid selection circuit 14. The reset valid / invalid selection circuit 14 is connected to the flash ROM 12, the cold / warm start signal circuit 13 and the PLL circuit 31. The PLL circuit 31 is connected to the CPU 11 and the reset valid / invalid selection circuit 14.

図11は、マイコン40を構成するフラッシュROM12およびPLL回路31の各構成を示すブロック図である。図11では、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14を併せて記載する。   FIG. 11 is a block diagram showing each configuration of the flash ROM 12 and the PLL circuit 31 constituting the microcomputer 40. In FIG. 11, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14 are described together.

マイコン40は、リセット有効/無効選択回路14から出力されるリセット信号または非リセット信号が、フラッシュROM制御レジスタ21およびPLL制御レジスタ32の両方に与えられること以外は、第1の実施の形態および参考形態のマイコン10,30と同様に動作する。リセット信号は、メモリリセット信号および回路リセット信号に相当し、非リセット信号は、メモリ非リセット信号および回路非リセット信号に相当し、コールド/ウォームスタート信号は、メモリコールド/ウォームスタート信号および回路コールド/ウォームスタート信号に相当する。またコールドスタート状態は、メモリコールドスタート状態および回路コールドスタート状態に相当し、ウォームスタート状態は、メモリウォームスタート状態および回路ウォームスタート状態に相当する。   The microcomputer 40 is the same as the first embodiment and reference except that the reset signal or non-reset signal output from the reset valid / invalid selection circuit 14 is supplied to both the flash ROM control register 21 and the PLL control register 32. It operates similarly to the microcomputers 10 and 30 of the embodiment. The reset signal corresponds to a memory reset signal and a circuit reset signal, the non-reset signal corresponds to a memory non-reset signal and a circuit non-reset signal, and the cold / warm start signal includes a memory cold / warm start signal and a circuit cold / circuit Corresponds to the warm start signal. The cold start state corresponds to a memory cold start state and a circuit cold start state, and the warm start state corresponds to a memory warm start state and a circuit warm start state.

具体的に述べると、コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がコールドスタート状態を表す信号である場合、リセット有効/無効選択回路14は、マイコン10の外部からのリセット信号を有効にして、リセット信号をそのままフラッシュROM制御レジスタ21およびPLL制御レジスタ32に与える。   More specifically, when the cold / warm start signal supplied from the cold / warm start signal circuit 13 is a signal indicating a cold start state, the reset valid / invalid selection circuit 14 receives a reset signal from the outside of the microcomputer 10. The reset signal is applied to the flash ROM control register 21 and the PLL control register 32 as it is.

フラッシュROM制御レジスタ21は、リセット有効/無効選択回路14からリセット信号が与えられると、デフォルト状態に初期化され、たとえばチューンデータが消去される。PLL制御レジスタ32もフラッシュROM制御レジスタ21と同様にデフォルト状態に初期化され、逓倍率が初期状態になる。その後、フラッシュROM12ではチューンデータのコピーが行われ、PLL回路31では、CPU11によって逓倍率が更新されて、PLL発振安定待ち時間を経て、PLL発振安定状態になる。   When a reset signal is given from the reset valid / invalid selection circuit 14, the flash ROM control register 21 is initialized to a default state, and, for example, tune data is erased. Similarly to the flash ROM control register 21, the PLL control register 32 is also initialized to the default state, and the multiplication rate is in the initial state. Thereafter, the tune data is copied in the flash ROM 12, and in the PLL circuit 31, the multiplication factor is updated by the CPU 11, and the PLL oscillation stabilization state is reached after the PLL oscillation stabilization wait time.

このコールドスタート状態におけるリセットは、たとえば前述の図7に示すタイミングチャートにおけるパワーオン・リセットとして行われ、パワーオン・リセット後のリセットシーケンスにおいて、フラッシュROM制御レジスタ21の初期化およびチューンデータのコピー、ならびにPLL制御レジスタ32の初期化、逓倍率の更新およびPLL発振安定待ちが行われる。   The reset in the cold start state is performed, for example, as a power-on reset in the timing chart shown in FIG. 7, and in the reset sequence after the power-on reset, the flash ROM control register 21 is initialized and the tune data is copied. In addition, initialization of the PLL control register 32, updating of the multiplication rate, and waiting for PLL oscillation stabilization are performed.

コールド/ウォームスタート信号回路13から与えられるコールド/ウォームスタート信号がウォームスタート状態を表す信号である場合、リセット有効/無効選択回路14は、マイコン10の外部からのリセット信号を無効にして、非リセット信号をフラッシュROM制御レジスタ21およびPLL制御レジスタ32に与える。   When the cold / warm start signal supplied from the cold / warm start signal circuit 13 is a signal indicating the warm start state, the reset valid / invalid selection circuit 14 invalidates the reset signal from the outside of the microcomputer 10 and does not reset. A signal is supplied to the flash ROM control register 21 and the PLL control register 32.

フラッシュROM制御レジスタ21は、リセット有効/無効選択回路14から非リセット信号が与えられると、デフォルト状態に初期化されず、格納していた値、たとえばチューンデータを保持する。PLL制御レジスタ32もフラッシュROM制御レジスタ21と同様に初期化されず、既に設定されている値がそのまま有効になる。   When a non-reset signal is given from the reset valid / invalid selection circuit 14, the flash ROM control register 21 is not initialized to a default state but holds a stored value, for example, tune data. Similarly to the flash ROM control register 21, the PLL control register 32 is not initialized, and the already set value is valid as it is.

このウォームスタート状態におけるリセットは、たとえば前述の図7に示すタイミングチャートにおけるリスタート・リセットとして行われる。ウォームスタート状態におけるリセットでは、フラッシュROM制御レジスタ21およびPLL制御レジスタ32の初期化が行われず、チューンデータおよび逓倍率の設定値が保持される。したがって、リセット後のリセットシーケンスを省略することができるので、チューンデータのコピー時間およびPLL発振安定待ち時間を省略することができる。   The reset in the warm start state is performed, for example, as a restart / reset in the timing chart shown in FIG. In the reset in the warm start state, the flash ROM control register 21 and the PLL control register 32 are not initialized, and the tune data and the set value of the multiplication rate are held. Accordingly, since the reset sequence after reset can be omitted, the tune data copy time and the PLL oscillation stabilization wait time can be omitted.

以上のように本実施の形態によれば、第1の実施の形態および参考形態と同様に、ウォームスタート状態における再リセットのときのように、既にフラッシュROM制御レジスタ21にチューンデータがコピーされ、PLL回路31の発振周波数が所望の発振周波数になっている場合に、フラッシュROM制御レジスタ21およびPLL制御レジスタ32の初期化を省略して、チューンデータのコピー時間およびPLL発振安定待ち時間を省略することができる。これによって、再リセットを頻繁にするような場合に、マイコン40の起動時間を短縮することができる。また製品良品テストにおいて、テスト時間の短縮を実現することができる。   As described above, according to the present embodiment, as in the first embodiment and the reference embodiment, the tune data has already been copied to the flash ROM control register 21 as in the case of re-reset in the warm start state. When the oscillation frequency of the PLL circuit 31 is a desired oscillation frequency, the initialization of the flash ROM control register 21 and the PLL control register 32 is omitted, and the tune data copy time and the PLL oscillation stabilization wait time are omitted. be able to. As a result, the startup time of the microcomputer 40 can be shortened when frequent resetting is performed. In addition, the test time can be shortened in the non-defective product test.

また本実施の形態のマイコン40は、リセット有効/無効選択回路14をフラッシュROM12およびPLL回路31に接続することによって実現することができ、フラッシュROM12とPLL回路31とを、回路実装において独立して実現することができるので、簡単でかつ極めて小規模な回路変更で実現することができる。   Further, the microcomputer 40 of the present embodiment can be realized by connecting the reset valid / invalid selection circuit 14 to the flash ROM 12 and the PLL circuit 31, and the flash ROM 12 and the PLL circuit 31 can be independently provided in circuit mounting. Since it can be realized, it can be realized with a simple and extremely small circuit change.

<第3の実施の形態>
図12は、本発明の第3の実施の形態であるマイクロコンピュータ50の構成を示すブロック図である。図12に示すマイコン50の構成は、前述の図10に示す第2の実施の形態のマイコン40の構成と類似しているので、異なる部分についてのみ説明し、対応する部分には同一の参照符を付して共通する説明を省略する。
<Third Embodiment>
FIG. 12 is a block diagram showing a configuration of a microcomputer 50 according to the third embodiment of the present invention. The configuration of the microcomputer 50 shown in FIG. 12 is similar to the configuration of the microcomputer 40 of the second embodiment shown in FIG. 10 described above, so only the different parts will be described and the same reference numerals are used for the corresponding parts. A common description is omitted.

マイコン50は、CPU11、フラッシュROM12、コールド/ウォームスタート信号回路13、リセット有効/無効選択回路14およびPLL回路51を備えて構成される。本実施の形態のマイコン50は、第2の実施の形態のマイコン40に備えられるPLL回路31に代えて、他のPLL回路51を備えて構成される。   The microcomputer 50 includes a CPU 11, a flash ROM 12, a cold / warm start signal circuit 13, a reset valid / invalid selection circuit 14, and a PLL circuit 51. The microcomputer 50 according to the present embodiment includes another PLL circuit 51 instead of the PLL circuit 31 provided in the microcomputer 40 according to the second embodiment.

CPU11は、フラッシュROM12、コールド/ウォームスタート信号回路13およびPLL回路51と接続される。フラッシュROM12は、CPU11、コールド/ウォームスタート信号回路13、リセット有効/無効選択回路14およびPLL回路51と接続される。コールド/ウォームスタート信号回路13は、CPU11、フラッシュROM12およびリセット有効/無効選択回路14と接続される。リセット有効/無効選択回路14は、フラッシュROM12、コールド/ウォームスタート信号回路13およびPLL回路51と接続される。PLL回路51は、CPU11、フラッシュROM12およびリセット有効/無効選択回路14と接続される。PLL回路51については、後述する。   CPU 11 is connected to flash ROM 12, cold / warm start signal circuit 13 and PLL circuit 51. The flash ROM 12 is connected to the CPU 11, the cold / warm start signal circuit 13, the reset valid / invalid selection circuit 14, and the PLL circuit 51. The cold / warm start signal circuit 13 is connected to the CPU 11, the flash ROM 12, and the reset valid / invalid selection circuit 14. The reset valid / invalid selection circuit 14 is connected to the flash ROM 12, the cold / warm start signal circuit 13, and the PLL circuit 51. The PLL circuit 51 is connected to the CPU 11, the flash ROM 12, and the reset valid / invalid selection circuit 14. The PLL circuit 51 will be described later.

図13は、マイコン50を構成するフラッシュROM12およびPLL回路51の各構成を示すブロック図である。図13では、コールド/ウォームスタート信号回路13およびリセット有効/無効選択回路14を併せて記載する。本実施の形態におけるPLL回路51は、PLL制御レジスタ32およびPLL制御回路33に加えて、逓倍率選択設定レジスタ52および逓倍率選択回路53を備えて構成される。逓倍率選択回路53は、設定データ選択回路に相当する。   FIG. 13 is a block diagram showing each configuration of the flash ROM 12 and the PLL circuit 51 that constitute the microcomputer 50. In FIG. 13, a cold / warm start signal circuit 13 and a reset valid / invalid selection circuit 14 are described together. The PLL circuit 51 according to the present embodiment includes a multiplication rate selection setting register 52 and a multiplication rate selection circuit 53 in addition to the PLL control register 32 and the PLL control circuit 33. The multiplication factor selection circuit 53 corresponds to a setting data selection circuit.

PLL制御レジスタ32は、逓倍率選択回路53と接続され、逓倍率選択回路53は、PLL制御回路33と接続されている。また逓倍率選択回路53は、フラッシュROM12のフラッシュROM制御レジスタ21および逓倍率選択設定レジスタ52とそれぞれ接続されている。   The PLL control register 32 is connected to the multiplication factor selection circuit 53, and the multiplication factor selection circuit 53 is connected to the PLL control circuit 33. The multiplication factor selection circuit 53 is connected to the flash ROM control register 21 and the multiplication factor selection setting register 52 of the flash ROM 12, respectively.

本実施の形態におけるフラッシュROM12の記憶部20のチューンデータ領域20bには、チューンデータとともに、PLL回路51の逓倍率の設定値が記憶される。このPLL回路51の逓倍率の設定値は、チューンデータとともにコピーされ、フラッシュROM制御レジスタ21に格納される。   In the tune data area 20b of the storage unit 20 of the flash ROM 12 in the present embodiment, the set value of the multiplication rate of the PLL circuit 51 is stored together with the tune data. The set value of the multiplication rate of the PLL circuit 51 is copied together with the tune data and stored in the flash ROM control register 21.

逓倍率選択回路53は、逓倍率選択設定レジスタ52に格納されるレジスタ値に応じて、PLL制御レジスタ32からの逓倍率の設定値、およびフラッシュROM制御レジスタ21からの逓倍率の設定値のうちのいずれか一方を選択する。   The multiplication rate selection circuit 53 determines the multiplication rate setting value from the PLL control register 32 and the multiplication rate setting value from the flash ROM control register 21 according to the register value stored in the multiplication rate selection setting register 52. Select one of these.

逓倍率選択設定レジスタ52は、PLL回路51の外部から与えられるリセット信号によって初期化される。逓倍率選択設定レジスタ52のリセット時の初期値は、本実施の形態では、フラッシュROM制御レジスタ21からの逓倍率の設定値に選ばれる。   The multiplication rate selection setting register 52 is initialized by a reset signal given from the outside of the PLL circuit 51. The initial value at the time of resetting the multiplication rate selection setting register 52 is selected as the setting value of the multiplication rate from the flash ROM control register 21 in this embodiment.

逓倍率選択設定レジスタ52のリセット時の初期値は、これに限定されるものではなく、PLL制御レジスタ32からの逓倍率の設定値を表す値、およびフラッシュROM制御レジスタ21からの逓倍率の設定値を表す値のどちらでもよい。また本実施の形態とは異なるが、逓倍率選択設定レジスタ52は、リセット有効/無効選択回路14から出力されたリセット信号によって初期化されるように構成されてもよい。逓倍率選択設定レジスタ52に入力されるリセット信号、および逓倍率選択設定レジスタ52のリセット時の初期値は、実使用に合わせて実装するのが望ましい。また逓倍率選択設定レジスタ52のレジスタ値を固定して使用するのであれば、逓倍率選択回路53も固定でよく、新たな実装は不要である。   The initial value at the time of resetting the multiplication rate selection setting register 52 is not limited to this, and a value indicating the setting value of the multiplication rate from the PLL control register 32 and the setting of the multiplication rate from the flash ROM control register 21 are not limited thereto. Either of the values representing the value may be used. Although different from the present embodiment, the multiplication rate selection setting register 52 may be configured to be initialized by a reset signal output from the reset valid / invalid selection circuit 14. It is desirable that the reset signal input to the multiplication rate selection setting register 52 and the initial value at the time of resetting the multiplication rate selection setting register 52 are mounted according to actual use. Further, if the register value of the multiplication rate selection setting register 52 is fixed and used, the multiplication rate selection circuit 53 may be fixed, and no new mounting is required.

本実施の形態のマイコン50は、PLL制御回路33に与えられる逓倍率の設定値が、フラッシュROM制御レジスタ21からの逓倍率の設定値、またはPLL制御レジスタ32からの逓倍率の設定値であること以外は、第2の実施の形態のマイコン40と同様に動作する。   In the microcomputer 50 of the present embodiment, the setting value of the multiplication rate given to the PLL control circuit 33 is the setting value of the multiplication rate from the flash ROM control register 21 or the setting value of the multiplication rate from the PLL control register 32. Except for this, it operates in the same manner as the microcomputer 40 of the second embodiment.

本実施の形態によれば、フラッシュROM制御レジスタ21およびPLL制御レジスタ32はいずれも、ウォームスタート状態における再リセットのときのように、既にフラッシュROM制御レジスタ21にチューンデータおよび逓倍率の設定値を含むデータがコピーされ、PLL回路51の発振周波数が所望の発振周波数になっている場合には初期化されないので、PLL発振安定待ち時間を省略することができる。これによって、再リセットを頻繁にするような場合に、マイコン50の起動時間を短縮することができる。また製品良品テストにおいて、テスト時間の短縮を実現することができる。   According to the present embodiment, both the flash ROM control register 21 and the PLL control register 32 already have the tune data and the multiplication rate set values stored in the flash ROM control register 21 as in the case of re-reset in the warm start state. When the included data is copied and the oscillation frequency of the PLL circuit 51 is the desired oscillation frequency, initialization is not performed, so that the PLL oscillation stabilization wait time can be omitted. As a result, the startup time of the microcomputer 50 can be shortened when frequent resetting is performed. In addition, the test time can be shortened in the non-defective product test.

またフラッシュROM制御レジスタ21では、コールドスタート状態におけるリセット後にチューンデータとともに逓倍率の設定値がコピーされ、逓倍率の設定が反映されるので、フラッシュROM制御レジスタ21のレジスタ値をPLL逓倍率の設定値として選択すると、コールドスタート状態においてもCPU11が起動する前、すなわちプログラムを動作させる前に、PLL制御回路33を所望のPLL逓倍率に設定できるという効果がある。この場合、PLL逓倍率をソフトウェアによって設定する必要はなく、しかもPLL発振安定待ち時間を軽減することができる可能性がある。   In the flash ROM control register 21, the setting value of the multiplication factor is copied together with the tune data after reset in the cold start state, and the setting of the multiplication factor is reflected. Therefore, the register value of the flash ROM control register 21 is set to the PLL multiplication factor. When the value is selected, there is an effect that the PLL control circuit 33 can be set to a desired PLL multiplication ratio before the CPU 11 is started even in the cold start state, that is, before the program is operated. In this case, it is not necessary to set the PLL multiplication rate by software, and there is a possibility that the PLL oscillation stabilization wait time can be reduced.

また本実施の形態のように、PLL逓倍率の設定値として、フラッシュROM制御レジスタ21のレジスタ値およびPLL制御レジスタ32のレジスタ値のいずれか一方を選択可能にすると、PLL逓倍率を途中で簡単に変更することも可能である。   In addition, as in this embodiment, if one of the register value of the flash ROM control register 21 and the register value of the PLL control register 32 can be selected as the setting value of the PLL multiplication ratio, the PLL multiplication ratio can be easily set in the middle. It is also possible to change to.

またフラッシュROM制御レジスタ21には、フラッシュROM12のチューンデータが格納されているので、フラッシュROM制御レジスタ21を安易に書換えるのは危険であるが、本実施の形態のようにPLL制御レジスタ32のレジスタ値を選択できるようにすることによって、このような危険を回避することができる。   Since the flash ROM control register 21 stores the tune data of the flash ROM 12, it is dangerous to rewrite the flash ROM control register 21 easily. However, as in the present embodiment, By making it possible to select the register value, such danger can be avoided.

また逓倍率選択回路53および逓倍率選択設定レジスタ52を実装して、フラッシュROM制御レジスタ21のレジスタ値およびPLL制御レジスタ32のレジスタ値のいずれか一方を選択可能に構成することによって、評価などでの応用範囲を広げることができる。   Further, by installing a multiplication rate selection circuit 53 and a multiplication rate selection setting register 52 so that either one of the register value of the flash ROM control register 21 and the register value of the PLL control register 32 can be selected, evaluation or the like can be performed. The application range of can be expanded.

またフラッシュROM制御レジスタ21のレジスタ値をPLL逓倍率の設定値として用いる構成は、フラッシュROM12とPLL回路51との間を配線で接続することによって実現することができる。またPLL制御レジスタ32のレジスタ値との選択を可能とする構成は、前述の第2の実施の形態におけるPLL回路31への逓倍率選択回路53および逓倍率選択設定レジスタ52の新規追加と配線追加とで実現することができ、しかも新規追加部分の実装も小規模である。したがって本実施の形態のマイコン50は、簡単な回路変更で実現することができる。   Further, the configuration in which the register value of the flash ROM control register 21 is used as the set value of the PLL multiplication ratio can be realized by connecting the flash ROM 12 and the PLL circuit 51 with wiring. Further, the configuration enabling selection of the register value of the PLL control register 32 is a new addition of the multiplication factor selection circuit 53 and the multiplication factor selection setting register 52 to the PLL circuit 31 and the addition of wiring in the above-described second embodiment. In addition, the implementation of newly added parts is also small. Therefore, the microcomputer 50 of the present embodiment can be realized by a simple circuit change.

以上に述べた各実施の形態および参考形態のマイコン10,30,40,50は、コールド/ウォームスタート信号回路として、前述の図5に示すコールド/ウォームスタートフラグ回路25を有するコールド/ウォームスタート信号回路13を備えて構成されているが、コールド/ウォームスタート信号回路は、これに限定されるものではなく、たとえば以下に示す他の構成であってもよい。   The microcomputers 10, 30, 40, 50 of the embodiments and reference embodiments described above each have a cold / warm start signal having the cold / warm start flag circuit 25 shown in FIG. 5 as a cold / warm start signal circuit. Although the circuit 13 is provided, the cold / warm start signal circuit is not limited to this, and may have other configurations shown below, for example.

図14は、コールド/ウォームスタート信号回路60の構成を示すブロック図である。コールド/ウォームスタート信号回路60は、外部端子設定部61を備えて構成される。外部端子設定部61は、マイコンの外部端子から入力された値が、期待した設定値になっているか否かを検出し、検出結果に基づいて、コールドスタート状態であるか、またはウォームスタート状態であるかを判断し、コールド/ウォームスタート信号を出力する。   FIG. 14 is a block diagram showing a configuration of the cold / warm start signal circuit 60. The cold / warm start signal circuit 60 includes an external terminal setting unit 61. The external terminal setting unit 61 detects whether or not the value input from the external terminal of the microcomputer is an expected set value, and based on the detection result, the external terminal setting unit 61 is in a cold start state or in a warm start state. Judgment is made and a cold / warm start signal is output.

実際には、外部端子設定部51は、マイコンの外部端子から入力された値が、期待した設定値になっている場合に、その外部端子からの入力の設定値(以下「外部端子設定値」という場合がある)を、予め定める値になるようにデコードし、そのデコードした値によってコールドスタート状態であるか、またはウォームスタート状態であるかを判断する。したがって、マイコン起動時にコールドスタート状態であるか、またはウォームスタート状態であるかを区別するために、外部端子設定値を変更する必要があり、マイコン以外の周辺のシステムがこの仕様を満たしていないと実現できない。ここで、電源が供給された後、2回目の再リセット以降を、必ずしもウォームスタート状態とする必要はない。都合の良い再リセット時以降からウォームスタート状態とできる点は、前述の図5に示すコールド/ウォームスタートフラグ回路13と同等である。   Actually, when the value input from the external terminal of the microcomputer is the expected setting value, the external terminal setting unit 51 sets the input value from the external terminal (hereinafter referred to as “external terminal setting value”). Is determined to be a predetermined value, and whether the cold start state or the warm start state is determined based on the decoded value. Therefore, it is necessary to change the external pin setting value to distinguish whether it is in a cold start state or a warm start state when the microcomputer starts up, and peripheral systems other than the microcomputer must meet this specification. Cannot be realized. Here, after the power is supplied, it is not always necessary to set the warm start state after the second reset. The warm start state can be made after the convenient re-reset, which is equivalent to the cold / warm start flag circuit 13 shown in FIG.

図14に示すコールド/ウォームスタート信号回路60によれば、マイコンの外部端子設定値をデコードし、デコード値を利用して、コールドスタート状態かウォームスタート状態かを設定することができる。つまり、マイコンの外部端子でコールドスタート状態かウォームスタート状態かを設定することができるので、前述の図5に示すコールド/ウォームフラグ回路25およびパワーオンリセット回路などの専用回路がなくても実現することができる。またコールドスタート状態とウォームスタート状態とを、マイコン外部のシステムによって動的に設定することができ、さらにマイコン内部のソフトウェアに依存せずに設定することができる。また前述した通り、外部端子設定を変更するタイミングは任意であるので、コールドスタート状態とウォームスタート状態とを任意に設定できる。   According to the cold / warm start signal circuit 60 shown in FIG. 14, it is possible to decode the external terminal setting value of the microcomputer and set the cold start state or the warm start state using the decoded value. That is, since it is possible to set the cold start state or the warm start state by using an external terminal of the microcomputer, the present invention can be realized without the dedicated circuits such as the cold / warm flag circuit 25 and the power-on reset circuit shown in FIG. be able to. Further, the cold start state and the warm start state can be set dynamically by a system outside the microcomputer, and can be set without depending on the software inside the microcomputer. As described above, since the timing for changing the external terminal setting is arbitrary, the cold start state and the warm start state can be arbitrarily set.

また図14に示すコールド/ウォームスタート信号回路60は、外部端子仕様が条件に適合していれば端子信号をデコードするだけでよく、実現性が非常に高く、比較的簡単な回路で実現することができる。またマイコンの外部端子仕様によっては比較的簡単に実現できるので、その他の実現方法と併用してもよい。   Further, the cold / warm start signal circuit 60 shown in FIG. 14 only needs to decode the terminal signal as long as the external terminal specification meets the conditions, and is realized with a very simple circuit with a very high feasibility. Can do. Further, depending on the external terminal specification of the microcomputer, it can be realized relatively easily, so it may be used in combination with other realization methods.

図15は、コールド/ウォームスタート信号回路62の構成を示すブロック図である。コールド/ウォームスタート信号回路62は、外部端子設定部61およびラッチ回路63を備えて構成される。ラッチ回路63は、外部端子設定部61によってデコードされた信号値をある時点でラッチし、ラッチした後に外部端子の設定状況が変更されてもコールド/ウォームスタート信号には影響を与えないようにした回路である。ラッチするタイミングは、外部リセット解除時でよい。外部端子設定部61が固定されていればラッチは不要であり、外部端子設定部61が変更される時点より以前にラッチすれば、いずれのタイミングでもよい。   FIG. 15 is a block diagram showing a configuration of the cold / warm start signal circuit 62. The cold / warm start signal circuit 62 includes an external terminal setting unit 61 and a latch circuit 63. The latch circuit 63 latches the signal value decoded by the external terminal setting unit 61 at a certain point in time, and does not affect the cold / warm start signal even if the setting state of the external terminal is changed after latching. Circuit. The timing for latching may be when the external reset is released. If the external terminal setting unit 61 is fixed, the latch is unnecessary, and any timing may be used as long as the external terminal setting unit 61 is latched before the time when the external terminal setting unit 61 is changed.

マイコンの外部端子は、端子数が少ない場合など、他の端子機能と併用して使用せざるを得ない場合がある。その場合、端子設定によって、ある時点でコールドスタート状態なのかウォームスタート状態なのかを判別した後、別仕様の端子機能として使用したときに端子設定が変更されると、そのままではコールドスタート状態なのかウォームスタート状態なのかが判別できなくなるという問題がある。その問題の対処として、図15に示すコールド/ウォームスタート信号回路62のようにラッチ回路63を設けて、別仕様の端子機能として使用する前に、端子設定をデコードした信号値をラッチしておけば、前述の問題は解消する。   There are cases where the external terminals of a microcomputer must be used in combination with other terminal functions, such as when the number of terminals is small. In that case, if it is determined whether it is a cold start state or a warm start state at a certain point according to the terminal setting, if the terminal setting is changed when it is used as a terminal function of another specification, whether it is a cold start state as it is There is a problem that it is impossible to determine whether it is in a warm start state. As a countermeasure against this problem, a latch circuit 63 is provided as in the cold / warm start signal circuit 62 shown in FIG. 15, and the signal value obtained by decoding the terminal setting can be latched before using it as a terminal function of another specification. In this case, the above problem is solved.

図15に示すコールド/ウォームスタート信号回路62は、外部端子仕様が条件に適合していれば実現性は高く、前述の図5に示すコールド/ウォームスタート信号回路13および図14に示すコールド/ウォームスタート信号回路60が実現できない場合などに有効である。ラッチするタイミングに関しては、慎重になる必要があるが、ラッチするタイミングは、別仕様の端子機能として使用する前であればよい。   The cold / warm start signal circuit 62 shown in FIG. 15 is highly feasible if the external terminal specifications meet the conditions. The cold / warm start signal circuit 13 shown in FIG. 5 and the cold / warm start signal circuit 62 shown in FIG. This is effective when the start signal circuit 60 cannot be realized. Although it is necessary to be careful about the latching timing, the latching timing may be before it is used as a terminal function of another specification.

図16は、コールド/ウォームスタート信号回路65の構成を示すブロック図である。コールド/ウォームスタート信号回路65は、パワーオンリセット回路66およびコールド/ウォームスタートフラグレジスタ67を備えて構成される。パワーオンリセット回路66は、電源が供給されたときに、電源が供給されたことを示す信号を出力する。   FIG. 16 is a block diagram showing a configuration of the cold / warm start signal circuit 65. The cold / warm start signal circuit 65 includes a power-on reset circuit 66 and a cold / warm start flag register 67. The power-on reset circuit 66 outputs a signal indicating that power is supplied when power is supplied.

ウォーム更新信号は、コールドスタート状態からウォームスタート状態に変更するための書込み信号である。ウォーム更新信号の生成は、CPU11からのウォームスタート状態を示す値の書込み、すなわちソフトウェア書込み、およびハードウェアによるウォームスタート状態を示す信号値の書込み、すなわちハードウェア書込みのいずれの方法によって行われてもよい。ソフトウェア書込みによるウォーム更新信号の生成の場合、電源が供給された後、2回目の再リセット以降を、必ずしもウォームスタート状態とする必要はない。都合の良い再リセット時以降からウォームスタート状態とできる点は、前述の図5に示すコールド/ウォームスタートフラグ回路13と同等である。   The warm update signal is a write signal for changing from the cold start state to the warm start state. The generation of the warm update signal may be performed by any method of writing a value indicating the warm start state from the CPU 11, that is, software writing, and writing a signal value indicating the warm start state by hardware, that is, hardware writing. Good. In the case of generating a warm update signal by writing software, it is not always necessary to enter the warm start state after the second reset after the power is supplied. The warm start state can be made after the convenient re-reset, which is equivalent to the cold / warm start flag circuit 13 shown in FIG.

コールド/ウォームスタートフラグレジスタ67は、コールド/ウォームスタートフラグであり、コールドスタート状態であるか、またはウォームスタート状態であるかを識別するための情報レジスタである。コールド/ウォームスタートフラグレジスタ67は、パワーオンリセット回路66から、電源が供給されたことを示す信号が与えられると、リセットされてコールドスタート状態を表すフラグ値となって、そのフラグ値をコールド/ウォームスタート信号として出力する。またコールド/ウォームスタートフラグレジスタ67は、ウォーム更新信号が書込まれると、ウォームスタート状態を表すフラグ値となって、そのフラグ値をコールド/ウォームスタート信号として出力する。   The cold / warm start flag register 67 is a cold / warm start flag, and is an information register for identifying whether it is a cold start state or a warm start state. When a signal indicating that power is supplied from the power-on reset circuit 66 is supplied to the cold / warm start flag register 67, the cold / warm start flag register 67 is reset to a flag value indicating a cold start state. Output as a warm start signal. When a warm update signal is written, the cold / warm start flag register 67 becomes a flag value indicating a warm start state and outputs the flag value as a cold / warm start signal.

このように図16に示すコールド/ウォームスタート信号回路65は、パワーオンリセット時はコールドスタート状態に初期化され、ウォームスタート状態に変更するための書込み信号であるウォーム更新信号が入力されるとウォームスタート状態になるような、コールドスタート状態またはウォームスタート状態を記憶するフラグレジスタとして、コールド/ウォームスタートフラグレジスタ67を備える。ウォーム更新信号の生成は、CPU11によるソフトウェア書換えか、ハードウェアによって更新できるような回路によって実現される。   As described above, the cold / warm start signal circuit 65 shown in FIG. 16 is initialized to the cold start state at the time of power-on reset, and receives a warm update signal as a write signal for changing to the warm start state. A cold / warm start flag register 67 is provided as a flag register for storing a cold start state or a warm start state so as to enter a start state. The generation of the warm update signal is realized by a circuit that can be updated by software rewriting by the CPU 11 or hardware.

コールド/ウォームスタートフラグレジスタ67と、前述の図5に示すコールド/ウォームフラグ回路25との違いは、コールド/ウォームスタートフラグレジスタ67またはコールド/ウォームスタートフラグ回路25の初期化をパワーオンリセットで実施しているかどうかであり、基本的な構造は同一である。すなわち、図16に示すコールド/ウォームスタート信号回路65は、コールド/ウォームフラグ回路を、パワーオンリセット回路66を利用して実装しているだけである。図16に示すコールド/ウォームスタートフラグ回路65は、パワーオンリセット回路66が実装されていて、コールド/ウォームフラグ回路25が実装されていない場合、および外部端子設定仕様の条件が適合せずに使用できない場合などに有効である。   The difference between the cold / warm start flag register 67 and the cold / warm flag circuit 25 shown in FIG. 5 is that the cold / warm start flag register 67 or the cold / warm start flag circuit 25 is initialized by a power-on reset. The basic structure is the same. That is, the cold / warm start signal circuit 65 shown in FIG. 16 only has a cold / warm flag circuit mounted using the power-on reset circuit 66. The cold / warm start flag circuit 65 shown in FIG. 16 is used when the power-on reset circuit 66 is mounted and the cold / warm flag circuit 25 is not mounted, and when the conditions of the external terminal setting specifications are not met. This is useful when you cannot.

本発明の前提となるマイコンに内蔵されているフラッシュROM1の構成を示すブロック図である。It is a block diagram which shows the structure of the flash ROM1 incorporated in the microcomputer used as the premise of this invention. 本発明の前提となるマイコンに内蔵されているPLL回路5の構成を示すブロック図である。It is a block diagram which shows the structure of the PLL circuit 5 incorporated in the microcomputer used as the premise of this invention. 本発明の第1の実施の形態であるマイクロコンピュータ10の構成を示すブロック図である。1 is a block diagram showing a configuration of a microcomputer 10 according to a first embodiment of the present invention. フラッシュROM12の構成を示すブロック図である。2 is a block diagram showing a configuration of a flash ROM 12. FIG. コールド/ウォームスタート信号回路13の構成を示すブロック図である。3 is a block diagram showing a configuration of a cold / warm start signal circuit 13. FIG. リセット有効/無効選択回路14の構成を示すブロック図である。3 is a block diagram showing a configuration of a reset valid / invalid selection circuit 14. FIG. マイクロコンピュータ10の動作タイミングを示すタイミングチャートである。3 is a timing chart showing the operation timing of the microcomputer 10. 参考形態のマイクロコンピュータ30の構成を示すブロック図である。It is a block diagram which shows the structure of the microcomputer 30 of a reference form. PLL回路31の構成を示すブロック図である。2 is a block diagram showing a configuration of a PLL circuit 31. FIG. 本発明の第2の実施の形態であるマイクロコンピュータ40の構成を示すブロック図である。It is a block diagram which shows the structure of the microcomputer 40 which is the 2nd Embodiment of this invention. マイコン40を構成するフラッシュROM12およびPLL回路31の各構成を示すブロック図である。3 is a block diagram showing each configuration of a flash ROM 12 and a PLL circuit 31 constituting a microcomputer 40. FIG. 本発明の第3の実施の形態であるマイクロコンピュータ50の構成を示すブロック図である。It is a block diagram which shows the structure of the microcomputer 50 which is the 3rd Embodiment of this invention. マイコン50を構成するフラッシュROM12およびPLL回路51の各構成を示すブロック図である。2 is a block diagram showing each configuration of a flash ROM 12 and a PLL circuit 51 that constitute a microcomputer 50. FIG. コールド/ウォームスタート信号回路60の構成を示すブロック図である。4 is a block diagram showing a configuration of a cold / warm start signal circuit 60. FIG. コールド/ウォームスタート信号回路62の構成を示すブロック図である。3 is a block diagram showing a configuration of a cold / warm start signal circuit 62. FIG. コールド/ウォームスタート信号回路65の構成を示すブロック図である。3 is a block diagram showing a configuration of a cold / warm start signal circuit 65. FIG.

符号の説明Explanation of symbols

1,12 フラッシュROM、2,20 記憶部、3,21 フラッシュROM制御レジスタ、4,22 フラッシュROM制御回路、5,31,51 PLL回路、6,32 PLL制御レジスタ、7,33 PLL制御回路、10,30,40,50 マイクロコンピュータ、11 CPU、13,60,62,65 コールド/ウォームスタート信号回路、14 リセット有効/無効選択回路、25 コールド/ウォームスタートフラグ回路、26 選択回路、27 非リセット値用レジスタ、52 逓倍率選択設定レジスタ、53 逓倍率選択回路、61 外部端子設定部、63 ラッチ回路、66 パワーオンリセット回路、67 コールド/ウォームスタートフラグレジスタ。   1,12 flash ROM, 2,20 storage unit, 3,21 flash ROM control register, 4,22 flash ROM control circuit, 5,31,51 PLL circuit, 6,32 PLL control register, 7,33 PLL control circuit, 10, 30, 40, 50 Microcomputer, 11 CPU, 13, 60, 62, 65 Cold / warm start signal circuit, 14 Reset valid / invalid selection circuit, 25 Cold / warm start flag circuit, 26 selection circuit, 27 Non-reset Value register, 52 multiplication rate selection setting register, 53 multiplication rate selection circuit, 61 external terminal setting unit, 63 latch circuit, 66 power-on reset circuit, 67 cold / warm start flag register.

Claims (5)

予め定めるプログラムおよび調整データを記憶する記憶部と、前記記憶部から与えられる前記調整データを格納するメモリ制御レジスタと、前記メモリ制御レジスタに格納される前記調整データに基づいて調整され、前記記憶部を制御するメモリ制御回路とを含む記憶手段と、
前記記憶手段の前記記憶部に記憶される前記プログラムを実行可能な処理手段と、
前記メモリ制御レジスタに格納される前記調整データの消去が必要な要メモリ消去状態であるとき、前記メモリ制御レジスタに格納される前記調整データの消去を指示するメモリリセット信号が入力されると、前記メモリ制御レジスタに格納される前記調整データを消去して、前記記憶部から新たに与えられる前記調整データを前記メモリ制御レジスタに格納し、前記メモリ制御レジスタに格納される前記調整データの消去が不要なメモリ消去不要状態であるとき、前記メモリリセット信号が入力されると、前記メモリ制御レジスタに格納される前記調整データを保持するように、前記記憶手段を制御するメモリリセット制御手段とを備えることを特徴とするマイクロコンピュータ。
A storage unit for storing a predetermined program and adjustment data; a memory control register for storing the adjustment data provided from the storage unit; and an adjustment based on the adjustment data stored in the memory control register; Memory means including a memory control circuit for controlling
Processing means capable of executing the program stored in the storage unit of the storage means;
When a memory reset signal instructing erasure of the adjustment data stored in the memory control register is input when the adjustment data stored in the memory control register is in a memory-necessary state that requires erasure, The adjustment data stored in the memory control register is deleted, the adjustment data newly given from the storage unit is stored in the memory control register, and the adjustment data stored in the memory control register is not required to be deleted A memory reset control means for controlling the storage means so as to hold the adjustment data stored in the memory control register when the memory reset signal is input when the memory erasure is unnecessary. A microcomputer characterized by.
前記メモリリセット制御手段は、
前記要メモリ消去状態であるメモリコールドスタート状態であるか、または前記メモリ消去不要状態であるメモリウォームスタート状態であるかを識別可能なメモリコールド/ウォームスタート信号を出力するメモリコールド/ウォームスタート信号回路と、
前記メモリコールド/ウォームスタート信号が前記メモリコールドスタート状態を表す信号であるとき、入力された前記メモリリセット信号を前記記憶手段に与え、前記メモリコールド/ウォームスタート信号が前記メモリウォームスタート状態を表す信号であるとき、入力された前記メモリリセット信号を遮断して、前記メモリ制御レジスタに格納される前記調整データの保持を指示するメモリ非リセット信号を前記記憶手段に与えるメモリリセット有効/無効選択回路とを備え、
前記記憶手段は、
前記メモリリセット有効/無効選択回路から前記メモリリセット信号が与えられると、前記メモリ制御レジスタに格納される前記調整データを消去して、前記記憶部から新たに与えられる前記調整データを前記メモリ制御レジスタに格納し、前記メモリリセット有効/無効選択回路から前記メモリ非リセット信号が与えられると、前記メモリ制御レジスタに格納される前記調整データを保持することを特徴とする請求項1に記載のマイクロコンピュータ。
The memory reset control means includes
Memory cold / warm start signal circuit for outputting a memory cold / warm start signal capable of discriminating whether the memory cold start state is the memory erasure required state or the memory warm start state is the memory erasure unnecessary state When,
When the memory cold / warm start signal is a signal representing the memory cold start state, the inputted memory reset signal is applied to the storage means, and the memory cold / warm start signal is a signal representing the memory warm start state. A memory reset valid / invalid selection circuit that shuts off the inputted memory reset signal and gives the memory means a memory non-reset signal instructing to hold the adjustment data stored in the memory control register; With
The storage means
When the memory reset signal is given from the memory reset valid / invalid selection circuit, the adjustment data stored in the memory control register is erased, and the adjustment data newly given from the storage unit is transferred to the memory control register 2. The microcomputer according to claim 1, wherein said adjustment data stored in said memory control register is held when said memory non-reset signal is given from said memory reset valid / invalid selection circuit. .
予め定める設定データを格納する電子回路用制御レジスタと、前記電子回路用制御レジスタに格納される前記設定データに基づいて動作を設定可能な電子回路用制御回路とを含む電子回路と、
前記電子回路用制御レジスタに格納される前記設定データの消去が必要な要設定消去状態であるとき、前記電子回路用制御レジスタに格納される前記設定データの消去を指示する回路リセット信号が入力されると、前記電子回路用制御レジスタに格納される前記設定データを消去して、新たに与えられる前記設定データを前記電子回路用制御レジスタに格納し、前記電子回路用制御レジスタに格納される前記設定データの消去が不要な設定消去不要状態であるとき、前記回路リセット信号が入力されると、前記電子回路用制御レジスタに格納される前記設定データを保持するように、前記電子回路を制御する回路リセット制御手段とをさらに備えることを特徴とする請求項1または2に記載のマイクロコンピュータ。
An electronic circuit including an electronic circuit control register for storing predetermined setting data; and an electronic circuit control circuit capable of setting an operation based on the setting data stored in the electronic circuit control register;
When the setting data stored in the electronic circuit control register needs to be erased, a circuit reset signal is input to instruct the erasing of the setting data stored in the electronic circuit control register. Then, the setting data stored in the electronic circuit control register is deleted, the newly applied setting data is stored in the electronic circuit control register, and the electronic circuit control register is stored in the electronic circuit control register. When the circuit reset signal is input when the setting data is not required to be erased, the electronic circuit is controlled to hold the setting data stored in the electronic circuit control register. The microcomputer according to claim 1, further comprising a circuit reset control unit.
前記回路リセット制御手段は、
前記要設定消去状態である回路コールドスタート状態であるか、または前記設定消去不要状態である回路ウォームスタート状態であるかを識別可能な回路コールド/ウォームスタート信号を出力する回路コールド/ウォームスタート信号回路と、
前記回路コールド/ウォームスタート信号が前記回路コールドスタート状態を表す信号であるとき、入力された前記回路リセット信号を前記電子回路に与え、前記回路コールド/ウォームスタート信号が前記回路ウォームスタート状態を表す信号であるとき、入力された前記回路リセット信号を遮断して、前記電子回路用制御レジスタに格納される前記設定データの保持を指示する回路非リセット信号を前記電子回路に与える回路リセット有効/無効選択回路とを備え、
前記電子回路は、
前記回路リセット有効/無効選択回路から前記回路リセット信号が与えられると、前記電子回路用制御レジスタに格納される前記設定データを消去して、新たに与えられる前記設定データを前記電子回路用制御レジスタに格納し、前記回路リセット有効/無効選択回路から前記回路非リセット信号が与えられると、前記電子回路用制御レジスタに格納される前記設定データを保持することを特徴とする請求項3に記載のマイクロコンピュータ。
The circuit reset control means includes
A circuit cold / warm start signal circuit for outputting a circuit cold / warm start signal capable of identifying whether the circuit is in a cold start state that is the setting erasure required state or a circuit warm start state in which the setting erasure is not required When,
When the circuit cold / warm start signal is a signal representing the circuit cold start state, the input circuit reset signal is applied to the electronic circuit, and the circuit cold / warm start signal is a signal representing the circuit warm start state. When it is, circuit reset valid / invalid selection which cuts off the inputted circuit reset signal and gives the electronic circuit a circuit non-reset signal instructing retention of the setting data stored in the electronic circuit control register With circuit,
The electronic circuit is
When the circuit reset signal is given from the circuit reset valid / invalid selection circuit, the setting data stored in the electronic circuit control register is erased, and the newly given setting data is transferred to the electronic circuit control register. 4. The setting data stored in the electronic circuit control register is held when the circuit non-reset signal is supplied from the circuit reset valid / invalid selection circuit. Microcomputer.
前記記憶部は、前記設定データをさらに記憶し、
前記メモリ制御レジスタは、前記設定データをさらに格納し、
前記電子回路は、前記メモリ制御レジスタから与えられる前記設定データと、前記電子回路用制御レジスタから与えられる前記設定データとのうちのいずれか一方を選択する設定データ選択回路をさらに含み、
前記電子回路用制御回路は、前記設定データ選択回路によって選択される前記設定データに基づいて動作を設定可能に構成されることを特徴とする請求項3または4に記載のマイクロコンピュータ。
The storage unit further stores the setting data,
The memory control register further stores the setting data,
The electronic circuit further includes a setting data selection circuit for selecting any one of the setting data given from the memory control register and the setting data given from the electronic circuit control register,
5. The microcomputer according to claim 3, wherein the electronic circuit control circuit is configured to be able to set an operation based on the setting data selected by the setting data selection circuit.
JP2008202804A 2008-08-06 2008-08-06 Microcomputer Pending JP2010039812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008202804A JP2010039812A (en) 2008-08-06 2008-08-06 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008202804A JP2010039812A (en) 2008-08-06 2008-08-06 Microcomputer

Publications (1)

Publication Number Publication Date
JP2010039812A true JP2010039812A (en) 2010-02-18

Family

ID=42012285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008202804A Pending JP2010039812A (en) 2008-08-06 2008-08-06 Microcomputer

Country Status (1)

Country Link
JP (1) JP2010039812A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03161828A (en) * 1989-11-21 1991-07-11 Ricoh Co Ltd printer control device
JPH07105173A (en) * 1993-09-30 1995-04-21 Hitachi Ltd Data processing device
JPH08305680A (en) * 1995-04-28 1996-11-22 Matsushita Electric Ind Co Ltd Semiconductor device
JPH11161541A (en) * 1997-11-26 1999-06-18 Seiko Epson Corp ASIC control device and method
JP2005209197A (en) * 2004-01-22 2005-08-04 Internatl Business Mach Corp <Ibm> Method and apparatus to change operating frequency of system core logic to maximize system memory bandwidth
JP2007034554A (en) * 2005-07-26 2007-02-08 Renesas Technology Corp Semiconductor integrated circuit and microcomputer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03161828A (en) * 1989-11-21 1991-07-11 Ricoh Co Ltd printer control device
JPH07105173A (en) * 1993-09-30 1995-04-21 Hitachi Ltd Data processing device
JPH08305680A (en) * 1995-04-28 1996-11-22 Matsushita Electric Ind Co Ltd Semiconductor device
JPH11161541A (en) * 1997-11-26 1999-06-18 Seiko Epson Corp ASIC control device and method
JP2005209197A (en) * 2004-01-22 2005-08-04 Internatl Business Mach Corp <Ibm> Method and apparatus to change operating frequency of system core logic to maximize system memory bandwidth
JP2007034554A (en) * 2005-07-26 2007-02-08 Renesas Technology Corp Semiconductor integrated circuit and microcomputer

Similar Documents

Publication Publication Date Title
CN110032403B (en) Memory device and start program loading method of electronic device
WO2011116621A1 (en) Electronic device, configurable component and configuration information storage method thereof
JP5096131B2 (en) Semiconductor memory device
KR20060002664A (en) Apparatus and method for controlling the mapping of memory addresses in embedded systems
KR100634356B1 (en) Memory system for loading main data safely and its data loading method
CN112925728A (en) Memory control system with sequential processing units
KR970066888A (en) Microcomputers Using Nonvolatile Memory
US6807126B2 (en) Semiconductor memory device and electronic information device using the same
CN114691539A (en) Electronic equipment starting method and electronic equipment
CN104008074B (en) Large scale integrated circuit and information processing system
JP2010039812A (en) Microcomputer
JP5032137B2 (en) Semiconductor memory device
JP4958201B2 (en) Microcomputer
JP6349827B2 (en) Information processing apparatus, initialization method, and program
JP2006209451A (en) Microcomputer and method for optimizing microcomputer
JP4334312B2 (en) Start-up time reduction computing device and data loading method
JP2005107608A (en) Electronic device, nonvolatile memory, and method for rewriting data of nonvolatile memory
JP2016062172A (en) Information processor
KR101031417B1 (en) Microprocessor device and control method having nonvolatile register
JP2004152331A (en) Storage device
JP4517607B2 (en) Electronic device and method for updating the program
JP2010176182A (en) Electronic equipment
JP2005309799A (en) Microcomputer with built-in flash memory
JP5052221B2 (en) Semiconductor integrated circuit
JPH11272642A (en) 1-chip microcomputer and start address setting method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100524

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110308

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130108

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130307

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130402