JPH05342374A - One-chip microcomputer - Google Patents
One-chip microcomputerInfo
- Publication number
- JPH05342374A JPH05342374A JP4176004A JP17600492A JPH05342374A JP H05342374 A JPH05342374 A JP H05342374A JP 4176004 A JP4176004 A JP 4176004A JP 17600492 A JP17600492 A JP 17600492A JP H05342374 A JPH05342374 A JP H05342374A
- Authority
- JP
- Japan
- Prior art keywords
- data
- storage area
- chip microcomputer
- program code
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Microcomputers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】この発明は、プログラムコード、
データコードを格納するROMを有するワンチップマイ
クロコンピュータに関するものである。BACKGROUND OF THE INVENTION The present invention relates to a program code,
The present invention relates to a one-chip microcomputer having a ROM that stores a data code.
【0002】[0002]
【従来の技術】図2は従来のワンチップマイクロコンピ
ュータを示すブロック図であり、図において、1はCP
U、3は作業用のSRAM等から成るRAM、9はプロ
グラムコード、データコードを格納するワンタイムRO
M、EPROM等から成るROM、10はCPU1、R
AM3、ROM9で構成されるワンチップマイクロコン
ピュータである。2. Description of the Related Art FIG. 2 is a block diagram showing a conventional one-chip microcomputer, in which 1 is a CP.
U, 3 are RAMs, such as working SRAMs, 9 is a one-time RO for storing program codes and data codes.
ROM composed of M, EPROM, etc., 10 is CPU1, R
It is a one-chip microcomputer composed of AM3 and ROM9.
【0003】次に動作について説明する。ワンタイムR
OM或いはEPROM等から成るROM9を内蔵したワ
ンチップマイクロコンピュータ10において、そのプロ
グラムコード、データコードを内蔵のワンタイムROM
或いはEPROMに書き込むには、EPROMライタを
使用して書き込みを行う。Next, the operation will be described. One time R
In the one-chip microcomputer 10 having a built-in ROM 9 such as OM or EPROM, a one-time ROM having the program code and data code built therein
Alternatively, when writing to the EPROM, writing is performed using an EPROM writer.
【0004】[0004]
【発明が解決しようとする課題】従来のワンチップマイ
クロコンピュータは以上のように構成されているので、
ROMライタを使用して内蔵のワンタイムROM或いは
EPROMに対してプログラムコード、データコードを
書き込んでいたため、プログラムコード、データコード
の変更が頻繁に発生する場合、このワンチップマイクロ
コンピュータ10が実装される基板上でのプログラムコ
ード、データコードの書き換え作業が不可能であり、こ
のためワンチップマイクロコンピュータ10をソケット
を使用して基板上に実装し取り外し可能とするか、ある
いはワンチップマイクロコンピュータ10に外付けのR
OMを設け、このROMに対してプログラムコード、デ
ータコードを書き込みことによりプログラムコード、デ
ータコードを変更する方法しかなく、基板スペース上の
制約、耐久性の問題、またワンチップマイクロコンピュ
ータ10がフラットパッケージの場合は、その構造、寸
法上の問題からソケット実装が困難であるなどの問題点
があった。Since the conventional one-chip microcomputer is constructed as described above,
Since the program code and the data code are written in the built-in one-time ROM or EPROM using the ROM writer, the one-chip microcomputer 10 is mounted when the program code and the data code are frequently changed. It is impossible to rewrite the program code and data code on the board. Therefore, the one-chip microcomputer 10 can be mounted on the board using a socket and can be removed, or the one-chip microcomputer 10 can be removed. External R
There is only a method of changing the program code and the data code by providing the OM and writing the program code and the data code in the ROM, and there is a limitation on the board space, a problem of durability, and the one-chip microcomputer 10 is a flat package. In the case of, there was a problem that it was difficult to mount the socket due to its structural and dimensional problems.
【0005】この発明は上記のような問題点を解消する
ためになされたもので、ワンチップマイクロコンピュー
タ内部のプログラムコード、データコードを、このワン
チップマイクロコンピュータが実装される基板上で、ワ
ンチップマイクロコンピュータを取り外すことなく消去
する機能と書き込む機能とを実現できるワンチップマイ
クロコンピュータを得ることを目的とする。The present invention has been made in order to solve the above problems, and a program code and a data code inside a one-chip microcomputer are mounted on a substrate on which the one-chip microcomputer is mounted. An object of the present invention is to obtain a one-chip microcomputer capable of realizing the erasing function and the writing function without removing the microcomputer.
【0006】[0006]
【課題を解決するための手段】この発明に係るワンチッ
プマイクロコンピュータは、電気的に消去が可能なフラ
ッシュEEPROMを内蔵させ、さらにそのフラッシュ
EEPROMをセグメント化し、各々のセグメントを、
プログラムコード格納領域、データコード格納領域及び
これらの領域に対して外部からデータを読み込んで書き
込みを行うブートストラップ格納領域としたものであ
る。A one-chip microcomputer according to the present invention has an electrically erasable flash EEPROM incorporated therein, and the flash EEPROM is segmented.
It is a program code storage area, a data code storage area, and a bootstrap storage area for reading and writing data from these areas.
【0007】[0007]
【作用】この発明におけるワンチップマイクロコンピュ
ータは、内蔵のフラッシュEEPROMをセグメント化
しており、そのワンチップマイクロコンピュータが実装
される基板上でワンチップマイクロコンピュータが基板
上に実装された状態で、プログラムコード或いはデータ
コードをそれぞれ独立して書き換えることを可能とす
る。In the one-chip microcomputer according to the present invention, the built-in flash EEPROM is segmented, and the program code is mounted on the substrate on which the one-chip microcomputer is mounted in a state where the one-chip microcomputer is mounted on the substrate. Alternatively, the data code can be independently rewritten.
【0008】[0008]
実施例1.以下、この発明の一実施例を図について説明
する。図1において、1はCPU、2はセグメント化し
たフラッシュEEPROM、3はRAM、7はCPU
1,フラッシュEEPROM2,RAM3を内蔵したワ
ンチップマイクロコンピュータ、8はフラッシュEEP
ROM2に変更後のデータを書き込むときに用いられる
RAMである。Example 1. An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, 1 is a CPU, 2 is a segmented flash EEPROM, 3 is a RAM, and 7 is a CPU.
1, one-chip microcomputer with built-in flash EEPROM 2 and RAM 3, 8 flash EEP
This is a RAM used when writing the changed data to the ROM 2.
【0009】フラッシュEEPROM2において、4は
プログラムコード格納領域、5はデータコード格納領
域、6は外部からデータを読み込んでプログラムコード
格納領域4又はデータコード格納領域に書き込みを行う
プログラムが格納されるイニシャルプログラムローダ等
のブートストラップ格納領域である。In the flash EEPROM 2, 4 is a program code storage area, 5 is a data code storage area, and 6 is an initial program for storing a program for reading data from the outside and writing the data in the program code storage area 4 or the data code storage area. A bootstrap storage area for a loader or the like.
【0010】次に動作について説明する。ワンチップマ
イクロコンピュータ7内部のフラッシュEEPROM2
は、プログラムコード格納領域4、データコード格納領
域5、イニシャルプログラムローダ等のブートストラッ
プ格納領域6の3つにセグメント化されており、それぞ
れ独立してデータの消去、書き込みが可能である。ブー
トストラップ格納領域6にはプログラムコード格納領域
4、データコード格納領域5に対して、データを書き込
むためのプログラムが格納されている。Next, the operation will be described. Flash EEPROM 2 inside one-chip microcomputer 7
Is segmented into a program code storage area 4, a data code storage area 5, and a bootstrap storage area 6 such as an initial program loader, and data can be erased and written independently of each other. The bootstrap storage area 6 stores a program for writing data in the program code storage area 4 and the data code storage area 5.
【0011】データコード格納領域5に対して変更が必
要な場合は、まずデータコード格納領域5の内容を電気
的な消去信号により消去し、データコード格納領域5に
書き込む変更後のデータをワンチップマイクロコンピュ
ータ7に外付けしているRAM8に書き込む。次にブー
トストラップ格納領域6に格納されているプログラムを
実行させてRAM8の内容を読み込み、読み込んだデー
タをデータコード格納領域5に対して書き込む。When the data code storage area 5 needs to be changed, the contents of the data code storage area 5 are first erased by an electric erase signal, and the changed data to be written in the data code storage area 5 is written in one chip. The data is written in the RAM 8 externally attached to the microcomputer 7. Next, the program stored in the bootstrap storage area 6 is executed to read the contents of the RAM 8, and the read data is written in the data code storage area 5.
【0012】プログラムコード格納領域4に対して変更
を行う場合は、上記と同様にしてプログラムコード格納
領域4を消去信号で消去すると共に、RAM8に変更後
のデータを書き込む。次に、ブートストラップ格納領域
6のプログラムを実行させてRAM8の内容を読み込
み、それをプログラムコード格納領域4に書き込む。When the program code storage area 4 is changed, the program code storage area 4 is erased by the erase signal in the same manner as described above, and the changed data is written in the RAM 8. Next, the program of the bootstrap storage area 6 is executed to read the contents of the RAM 8 and write it in the program code storage area 4.
【0013】実施例2.上記実施例1ではブートストラ
ップ格納領域に対する外部からのデータの引き渡しを、
ワンチップマイクロコンピュータ7に外付けしたRAM
8を介して行う場合について示したが、ワンチップマイ
クロコンピュータ7内蔵のシリアル通信機能を使用して
データを引き渡すことも可能である。Embodiment 2. In the first embodiment described above, the transfer of data from the outside to the bootstrap storage area is
RAM externally attached to the one-chip microcomputer 7.
Although the case where the data is transferred via 8 is shown, it is also possible to transfer the data by using the serial communication function built in the one-chip microcomputer 7.
【0014】すなわち、ブートストラップ格納領域6の
プログラムを予めシステムに合わせて用意しておき、デ
ータの変更が発生すると、このブートストラップ格納領
域6に対して外部から変更したいデータを引き渡し、ブ
ートストラップ格納領域6のプログラムによって、変更
したい領域のデータを書き換える。これによって、デー
タの変更が発生してもワンチップマイクロコンピュータ
7は基板上に実装した状態でプログラムコード、データ
コードを変更することが可能である。That is, the program of the bootstrap storage area 6 is prepared in advance for the system, and when the data is changed, the data to be changed is delivered to the bootstrap storage area 6 from the outside, and the bootstrap storage area is stored. The program in the area 6 rewrites the data in the area to be changed. As a result, even if the data is changed, the one-chip microcomputer 7 can change the program code and the data code while being mounted on the board.
【0015】[0015]
【発明の効果】以上のように、この発明によれば、プロ
グラムコード格納領域とデータコード格納領域と、外部
からのデータを上記各領域に書き込むブートストラップ
格納領域とを有するフラッシュEEPROMを内蔵する
構成としたので、プログラムコード、データコードを頻
繁に変更する場合においても、このワンチップマイクロ
コンピュータを基板上に実装する場合、ソケットを使用
する必要がなく、またデータの変更を想定してワンチッ
プマイクロコンピュータ外部にROMを設ける必要もな
くなり、基板上におけるスペース上の制約やソケット等
の耐久性の問題を全く受けることなく、プログラムコー
ドあるいはデータコードを各々独立して、基板からワン
チップマイクロコンピュータを取り外すこともなく、実
装した状態で、容易に必要な時に変更することが可能に
なる。また、プログラムコード、データコード格納用の
ROMを内蔵するワンチップマイクロコンピュータを開
発する場合においても、紫外線でデータを消去するため
のガラス窓を有したパッケージを開発する必要がなくな
る等の効果がある。As described above, according to the present invention, the flash EEPROM having the program code storage area, the data code storage area, and the bootstrap storage area for writing the external data into the above areas is built in. Therefore, even if the program code and data code are changed frequently, it is not necessary to use a socket when mounting this one-chip microcomputer on the board, and it is also possible to change the data. There is no need to provide a ROM outside the computer, and the one-chip microcomputer is removed from the board independently of the program code or data code without any restrictions on the space on the board or the durability problem of sockets. Without any problem It is possible to change when needed to. Further, even when developing a one-chip microcomputer having a ROM for storing the program code and the data code, it is not necessary to develop a package having a glass window for erasing data by ultraviolet rays. ..
【図1】この発明の実施例1を示すワンチップマイクロ
コンピュータのブロック図である。FIG. 1 is a block diagram of a one-chip microcomputer showing a first embodiment of the present invention.
【図2】従来のワンチップマイクロコンピュータのブロ
ック図である。FIG. 2 is a block diagram of a conventional one-chip microcomputer.
1 CPU 2 フラッシュEEPROM 3 RAM 4 プログラムコード格納領域 5 データコード格納領域 6 ブートストラップ格納領域 7 ワンチップマイクロコンピュータ 1 CPU 2 Flash EEPROM 3 RAM 4 Program code storage area 5 Data code storage area 6 Bootstrap storage area 7 One-chip microcomputer
Claims (1)
ンチップマイクロコンピュータにおいて、上記ROMと
して用いられるフラッシュEEPROMと、上記フラッ
シュEEPROMに設けたプログラムコード格納領域
と、上記フラッシュEEPROMに設けたデータコード
格納領域と、上記フラッシュEEPROMに設けられ、
外部から供給されるデータを読み込んで上記プログラム
コード格納領域及びデータコード格納領域に書き込みを
行うためのプログラムが格納されるブートストラップ格
納領域とを設けたことを特徴とするワンチップマイクロ
コンピュータ。1. In a one-chip microcomputer including a CPU, a RAM, a ROM, etc., a flash EEPROM used as the ROM, a program code storage area provided in the flash EEPROM, and a data code storage provided in the flash EEPROM. And a region provided in the flash EEPROM,
A one-chip microcomputer provided with a bootstrap storage area for storing a program for reading data supplied from the outside and writing the data in the program code storage area and the data code storage area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4176004A JPH05342374A (en) | 1992-06-11 | 1992-06-11 | One-chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4176004A JPH05342374A (en) | 1992-06-11 | 1992-06-11 | One-chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05342374A true JPH05342374A (en) | 1993-12-24 |
Family
ID=16006035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4176004A Pending JPH05342374A (en) | 1992-06-11 | 1992-06-11 | One-chip microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05342374A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6598137B1 (en) | 1999-04-02 | 2003-07-22 | Sharp Kabushiki Kaisha | Microcomputer having built-in nonvolatile memory for simultaneous use as a program area and a data area |
-
1992
- 1992-06-11 JP JP4176004A patent/JPH05342374A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6598137B1 (en) | 1999-04-02 | 2003-07-22 | Sharp Kabushiki Kaisha | Microcomputer having built-in nonvolatile memory for simultaneous use as a program area and a data area |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080250188A1 (en) | Memory Controller, Nonvolatile Storage, Nonvolatile Storage System, and Memory Control Method | |
KR870005309A (en) | Portable electronics | |
DE69325533T2 (en) | Microcomputer with random access memory and flash memory | |
US8645624B2 (en) | Portable electronic device, smartcard and control method for portable electronic device | |
JPH01183729A (en) | Printer containing automatic initializing function of memory | |
JPS6196598A (en) | Count data memory method of electric erasable p-rom | |
US5148543A (en) | Ic card with a stored data change inhibition function | |
WO1996002034A1 (en) | Updating firmware | |
US8015348B2 (en) | Memory address management systems in a large capacity multi-level cell (MLC) based flash memory device | |
EP0438050B1 (en) | Nonvolatile semiconductor memory system | |
KR100252253B1 (en) | An electrically erasable programmble rom | |
JPH05342374A (en) | One-chip microcomputer | |
JPH05150913A (en) | Silicon disk with flash memory as storage medium | |
KR100445134B1 (en) | Host equipped with stabilizing function for flash memory and the method thereof | |
JP5510249B2 (en) | Method for issuing IC card with display function, method for displaying IC card with display function, and IC card with display function | |
JPH03158184A (en) | Sewing machine operated according to control program | |
JPH06180674A (en) | Data storage device | |
JPH11259357A (en) | Semiconductor integrated device and nonvolatile memory writing system | |
WO2005055019A1 (en) | Method to control the access in a flash memory and system for the implementation of such a method | |
JPS63200398A (en) | Information processor | |
JPS62289999A (en) | Data writing method | |
JPH0426923Y2 (en) | ||
KR20000020105A (en) | Electronic device equipped with flash memory | |
KR20000033437A (en) | Apparatus for implementing function of bootstrap loader | |
EP0714060B1 (en) | One chip microcomputer with built-in non-volatile memory |