JPH05159079A - Semiconductor integrated circuit device - Google Patents

Semiconductor integrated circuit device

Info

Publication number
JPH05159079A
JPH05159079A JP3320263A JP32026391A JPH05159079A JP H05159079 A JPH05159079 A JP H05159079A JP 3320263 A JP3320263 A JP 3320263A JP 32026391 A JP32026391 A JP 32026391A JP H05159079 A JPH05159079 A JP H05159079A
Authority
JP
Japan
Prior art keywords
program
operation mode
mode
read
memory
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
JP3320263A
Other languages
Japanese (ja)
Inventor
Yutaka Okumoto
豊 奥本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3320263A priority Critical patent/JPH05159079A/en
Publication of JPH05159079A publication Critical patent/JPH05159079A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To facilitate removing the bug of a program in a one chip microcomputer. CONSTITUTION:This device is provided with a Microprocessor 11 which can be operated in first/second operation modes, EPROM 12 storing a program for the first operation mode, mask ROM 13 storing a program for the second operation mode, a operation mode selection means 14 which can select either of the first/second operation modes as that of the microprocessor in response to a mode selection signal, and a program writing-in means 15 which is inputted a program signal for the first operation mode by being controlled by the microprocessor 11 in the second operation mode and writes the program for the first operation mode,into EPROM 12.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、半導体集積回路装置に
関し、更に詳しくは、電気的再書込み可能な読出し専用
メモリを内蔵し、バグ除去等に際して、装置基板から取
り外すこと無くプログラムの書換えを可能とした機器制
御用のワンチップの半導体集積回路装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor integrated circuit device, and more particularly, it has a built-in electrically rewritable read-only memory, which enables rewriting of a program without removing it from the device substrate when removing a bug. And a one-chip semiconductor integrated circuit device for device control.

【0002】電化製品、車両等の種々の機器の制御用コ
ンピュータとして採用され、所定のプログラムが格納さ
れた読出し専用メモリを内蔵するワンチップのマイクロ
コンピュータ(以下ワンチップマイコンと呼ぶ)が大量
に使用されている。特に量産品の機器の場合には、掛か
るワンチップマイコンに搭載される前記読出し専用メモ
リとしては、一般にコストの低いマスクROMが採用さ
れる。
A large amount of one-chip microcomputers (hereinafter referred to as one-chip microcomputers) that are used as control computers for various devices such as electric appliances and vehicles and that have a read-only memory in which a predetermined program is stored are used. Has been done. Particularly in the case of mass-produced devices, a mask ROM, which is generally low in cost, is used as the read-only memory mounted on the one-chip microcomputer.

【0003】マスクROMは、ワンチップマイコンの製
造過程においてイオン注入等を介してプログラムコード
が作り込まれるので、ワンチップマイコンの製造後には
プログラムの書換えを行なうことができない。ところ
が、新しく開発された機器の制御用のプログラムでは一
般的にプログラムのバグが不可避であり、例えば製品開
発直後の初期の製品段階では、このバグを実製品上にお
いて除去するためにプログラムの書換えを行なう必要が
ある。
Since a program code is created in the mask ROM through ion implantation or the like in the manufacturing process of the one-chip microcomputer, the program cannot be rewritten after the one-chip microcomputer is manufactured. However, a program for controlling a newly developed device generally inevitably has a bug in the program.For example, in the initial product stage immediately after product development, the program must be rewritten to eliminate this bug on the actual product. I need to do it.

【0004】[0004]

【従来の技術】図3は、製品の初期段階の制御部を成す
ワンチップマイコンのブロック図である。同図のワンチ
ップマイコン3では、マイクロプロセッサ(CPU)3
1の作動のためのプログラムは電気的再書込み可能な読
出し専用メモリ(EPROM)32に格納されている。
このように、量産品では読出し専用メモリとして通常マ
スクROMが採用されるところ、製品の初期段階では、
プログラムのバグの発生を予想して、マスクROMの代
りにプログラムの書換えが可能で、一般的に占有面積が
大きく且つコストも高いEPROMが使用される。
2. Description of the Related Art FIG. 3 is a block diagram of a one-chip microcomputer which constitutes a control unit at an initial stage of a product. The one-chip microcomputer 3 shown in FIG.
The program for operation 1 is stored in an electrically rewritable read only memory (EPROM) 32.
As described above, in a mass-produced product, a mask ROM is usually adopted as a read-only memory.
In anticipation of the occurrence of a program bug, the program can be rewritten in place of the mask ROM, and an EPROM having a large occupied area and a high cost is generally used.

【0005】プログラムにバグが存在する旨が判明した
ら、ワンチップマイコンのパッケージを製品の装置基板
から外し、紫外線等を介して既存のプログラムを消去し
た後、ROMライタによってバグが除去されたプログラ
ムが書き込まれ、再びワンチップマイコンのパッケージ
が装置基板上に実装される。
When it is determined that the program has a bug, the package of the one-chip microcomputer is removed from the device substrate of the product, the existing program is erased through ultraviolet rays, etc., and then the program from which the bug has been removed by the ROM writer It is written and the package of the one-chip microcomputer is mounted again on the device substrate.

【0006】プログラムのバグの発生がもはや考えられ
ないという製品の成熟段階にいたると、それ迄の間でバ
グが除去された最終的なプログラムが格納されたEPR
OMから、その最終プログラムと同じプログラムが書き
込まれたマスクROMを含むワンチップマイコンが大量
に製作され、マスクROMの採用によってコスト低減が
図られる。
[0006] At the product maturity stage where the occurrence of program bugs can no longer be considered, the EPR in which the final program from which the bugs have been removed is stored until then is reached.
A large number of one-chip microcomputers including a mask ROM in which the same program as the final program is written are manufactured from the OM, and cost reduction is achieved by using the mask ROM.

【0007】近年、ワンチップマイコンのパッケージと
装置基板との接続では、従来行なわれていたソケット接
続から、より小形化可能な半田接続へと接続方式が変更
されて、ワンチップマイコンの占有面積の縮小とコスト
の低減とが図られている。このため、製品の初期段階で
前記の如くバグ除去のためにプログラムの書換えが必要
になると、その都度、装置基板上で半田接続部を外して
ワンチップマイコンチップを製品から取り外し、このパ
ッケージを例えばソケットを介してROMライタに搭載
して新たにプログラムが書き込まれる。
In recent years, in the connection between the package of the one-chip microcomputer and the device substrate, the connection method has been changed from the conventional socket connection to the solder connection which can be further downsized, and the area occupied by the one-chip microcomputer is reduced. The reduction and cost reduction are being attempted. For this reason, when it is necessary to rewrite the program in the initial stage of the product in order to remove the bug as described above, the solder connection part is removed on the device substrate, the one-chip microcomputer chip is removed from the product, and this package is The program is newly written by mounting it on the ROM writer via the socket.

【0008】[0008]

【発明が解決しようとする課題】従来のワンチップマイ
コンでは、プログラムの書換えが必要になると、半田接
続の取外し及び再接続が必要になり、掛かる半田接続等
の作業は熟練者によらねばならないこと、また、特に近
年縮小化されたパッケージピンのために半田接続等の困
難性が増し、パッケージピンに損傷が生じ易いこと及び
作業時間も長くなりがちであること等の問題があり、更
には、パッケージピンに損傷が生ずる場合には、ROM
ライタによるプログラムの書込み自体が困難という問題
もあった。
In the conventional one-chip microcomputer, when the program needs to be rewritten, the solder connection must be removed and reconnected, and the work such as the solder connection must be done by a skilled person. In addition, there are problems that soldering and the like are particularly difficult due to the package pin which has been reduced in size in recent years, the package pin is likely to be damaged, and the work time tends to be long. ROM if package pins are damaged
There is also a problem that it is difficult for the writer to write the program itself.

【0009】本発明は、上記従来の半導体集積回路装置
の問題に鑑み、機器の制御用ワンチップマイコン等にお
けるプログラムのバグ取りに際し、ワンチップマイコン
を装置基板から外す必要がないため、装置基板上での半
田作業等を要せずに容易にバグ除去が可能となり、従っ
て、熟練作業の必要性を除くと共にバグ除去に要する時
間も短縮可能な半導体集積回路装置を提供することを目
的とする。
In view of the above-mentioned problems of the conventional semiconductor integrated circuit device, the present invention eliminates the need to remove the one-chip microcomputer from the device board when removing a bug of a program in a device control one-chip microcomputer or the like. It is an object of the present invention to provide a semiconductor integrated circuit device that enables easy bug removal without the need for soldering work, etc., and therefore eliminates the need for skilled work and also reduces the time required for bug removal.

【0010】更に、本発明は、上記目的達成にあたっ
て、パッケージピンの接続方式及び本数等の構成を大幅
に変更することなくワンチップマイコンの構造の簡素さ
をできるだけ維持しつつこれを行なうことをも目的とす
る。
Further, in order to achieve the above-mentioned object, the present invention is also possible to do so while maintaining the simplicity of the structure of the one-chip microcomputer as much as possible without significantly changing the configuration such as the connection method and the number of package pins. To aim.

【0011】[0011]

【課題を解決するための手段】図1は、本発明の第一の
実施例のワンチップマイコンを成す半導体集積回路装置
のブロック図である。同図において、11はマイクロプ
ロセッサ(CPU)、12は電気的再書込み可能な第一
の読出し専用メモリ、13は第二の読出し専用メモリ、
14は作業モード選択手段、15はプログラム書込み手
段、MODEはモード選択信号、SINは第一の作動モ
ードのためのプログラムに関する信号である。
FIG. 1 is a block diagram of a semiconductor integrated circuit device which constitutes a one-chip microcomputer according to a first embodiment of the present invention. In the figure, 11 is a microprocessor (CPU), 12 is an electrically rewritable first read-only memory, 13 is a second read-only memory,
Reference numeral 14 is a work mode selection means, 15 is a program writing means, MODE is a mode selection signal, and SIN is a signal relating to a program for the first operation mode.

【0012】前記目的を達成するため、本発明の第一発
明の半導体集積回路装置は、図1に示したように、第一
及び第二の作動モードで作動可能なマイクロプロセッサ
(11)と、前記第一の作動モードのためのプログラム
が記憶される電気的再書込み可能な第一の読出し専用メ
モリ(12)と、前記第二の作動モードのためのプログ
ラムが記憶される第二の読出し専用メモリ(13)と、
モード選択信号(MODE)に応答して前記第一又は第
二の読出し専用メモリを選択し、前記マイクロプロセッ
サ(11)の作動モードを第一又は第二の作動モードの
何れかに選択可能な作動モード選択手段(14)と、前
記第二の作動モードにおいて前記マイクロプロセッサ
(11)に制御され、前記第一の作動モードのためのプ
ログラムに関する信号(SIN)が入力されて前記第一
の作動モードのためのプログラムを前記第一の読出し専
用メモリ(12)に書き込むプログラム書込み手段(1
5)とを備えることを特徴とする。
In order to achieve the above object, the semiconductor integrated circuit device of the first invention of the present invention is, as shown in FIG. 1, a microprocessor (11) operable in first and second operation modes, An electrically rewritable first read-only memory (12) in which a program for the first operating mode is stored and a second read-only in which a program for the second operating mode is stored. A memory (13),
Operation in which the first or second read-only memory is selected in response to a mode selection signal (MODE), and the operating mode of the microprocessor (11) can be selected to either the first or second operating mode. The first mode of operation is controlled by the mode selection means (14) and the microprocessor (11) in the second mode of operation, and a signal (SIN) relating to the program for the first mode of operation is input. Program writing means (1) for writing a program for writing into the first read-only memory (12)
5) and are provided.

【0013】図2は、本発明の第二の実施例のワンチッ
プマイコンを成す半導体集積回路装置のブロック図であ
る。同図において、21はマイクロプロセッサ、22は
電気的再書込み可能な第一の読出し専用メモリ、24は
モード選択手段、25はプログラム書込み手段、26は
制御回路部である。
FIG. 2 is a block diagram of a semiconductor integrated circuit device which constitutes a one-chip microcomputer according to the second embodiment of the present invention. In the figure, 21 is a microprocessor, 22 is an electrically rewritable first read-only memory, 24 is a mode selecting means, 25 is a program writing means, and 26 is a control circuit section.

【0014】前記目的を達成するため、本発明の第二発
明の半導体集積回路装置は、図2に示したように、第一
の作動モードにおいて作動するマイクロプロセッサ(2
1)と、前記マイクロプロセッサ(21)のためのプロ
グラムが記憶される電気的再書込み可能な読出し専用メ
モリ(22)と、前記プログラムに関する信号(SI
N)が入力され前記プログラムを前記読出し専用メモリ
(22)に書き込むためのプログラム書込み手段(2
5)と、第二の作動モードにおいて前記プログラム書込
み手段(22)の作動を制御する制御回路部(26)
と、モード選択信号(MODE)に応答して前記第一及
び第二の作動モードの何れかを選択する作動モード選択
手段(24)とを備えることを特徴とする。
In order to achieve the above object, the semiconductor integrated circuit device of the second invention of the present invention is, as shown in FIG. 2, a microprocessor (2) which operates in the first operation mode.
1), an electrically rewritable read-only memory (22) in which a program for the microprocessor (21) is stored, and a signal (SI) relating to the program.
N) is input and the program writing means (2) for writing the program in the read-only memory (22).
5) and a control circuit section (26) for controlling the operation of the program writing means (22) in the second operation mode.
And an operation mode selection means (24) for selecting one of the first and second operation modes in response to a mode selection signal (MODE).

【0015】[0015]

【作用】本発明のワンチップマイコンでは、モード選択
信号に応答する作動モード選択手段を介して、電気的再
書込み可能な読出し専用メモリに格納された第一の作動
モードのためのプログラムを介してマイクロプロセッサ
を作動させて、初期段階の製品である制御対象機器の制
御を行い、第一の作動モードのためのプログラムにバグ
が発見された場合には、モード選択信号によって第二の
作動モードを選択し、この第二の作動モードにおいて、
前記バグを除去した第一の作動モードのためのプログラ
ム信号を入力し、プログラム書込み手段を介して電気的
再書込み可能な読出し専用メモリに対して新たなプログ
ラムを書き込むことができるので、従来の半導体集積回
路装置とは異なり、電気的再書込み可能な読出し専用メ
モリを装置基板等から取り外すことなくプログラムの変
更が可能であり、熟練を要する半田作業の手間が省け、
作業時間が短縮可能であると共に半田作業による配線損
傷のおそれが解消する。
In the one-chip microcomputer of the present invention, the program for the first operation mode stored in the electrically rewritable read-only memory is operated through the operation mode selection means responsive to the mode selection signal. The microprocessor is operated to control the controlled device, which is an initial product, and when a bug is found in the program for the first operation mode, the second operation mode is changed by the mode selection signal. And in this second mode of operation,
Since a program signal for the first operation mode in which the bug is removed can be input and a new program can be written to the electrically rewritable read-only memory via the program writing means, the conventional semiconductor Unlike the integrated circuit device, the program can be changed without removing the electrically rewritable read-only memory from the device substrate or the like, and the labor of soldering work requiring skill can be saved.
The work time can be shortened, and the possibility of wiring damage due to soldering work is eliminated.

【0016】また、本発明の半導体集積回路装置は、制
御対象の機器が特定の機器に限定されるものではなく、
唯一種類の本発明の半導体集積回路装置を種々の製品に
利用できることから、少量生産或いは製品の初期段階の
制御対象機器の制御のための汎用ワンチップマイコンと
して特に好適である。
Further, in the semiconductor integrated circuit device of the present invention, the device to be controlled is not limited to a specific device,
Since only one kind of semiconductor integrated circuit device of the present invention can be used for various products, it is particularly suitable as a general-purpose one-chip microcomputer for controlling a controlled object device in a small-scale production or an initial stage of the product.

【0017】[0017]

【実施例】図面を参照して本発明を更に詳しく説明す
る。図1において、この実施例の半導体集積回路装置
は、全体がワンチップのマイクロコンピュータとして構
成されており、第一及び第二の作動モードにおける制御
は何れもCPU11によって行なわれる。
The present invention will be described in more detail with reference to the drawings. In FIG. 1, the semiconductor integrated circuit device of this embodiment is constructed as a one-chip microcomputer as a whole, and the control in the first and second operation modes is performed by the CPU 11.

【0018】CPU11の作動のためのプログラムは、
第一の作動プログラムが電気的再書込み可能な第一の読
出し専用メモリを成すEPROM12から、第二の作動
プログラムが第二の読出し専用メモリを成すマスクRO
M13から夫々供給される。
The program for operating the CPU 11 is
From the EPROM 12 in which the first operating program constitutes an electrically rewritable first read-only memory, the mask RO in which the second operating program constitutes a second read-only memory.
Each is supplied from M13.

【0019】双方のROM12、13の選択切換のため
に、入力ピンIN1を介してモード選択信号MODEが
外部から入力される作動モード選択手段(ROM選択回
路)14が配されている。ROM選択回路14は、例え
ばフリップフロップから構成され、その出力が前記第一
及び第二のROM12、13に供給されており、この実
施例の場合には、モード選択信号MODEが“1”のと
きには、マスクROM13を選択し、モード選択信号が
“0”のときには、EPROM12を選択する。
An operation mode selection means (ROM selection circuit) 14 to which a mode selection signal MODE is externally input via an input pin IN1 is provided for switching between the selection of the ROMs 12 and 13. The ROM selection circuit 14 is composed of, for example, a flip-flop, and its output is supplied to the first and second ROMs 12 and 13. In this embodiment, when the mode selection signal MODE is "1". , The mask ROM 13 is selected, and when the mode selection signal is "0", the EPROM 12 is selected.

【0020】EPROM12には、制御対象機器を制御
するための第一の作動モードのためのプログラムが格納
されており、CPU11は、第一の作動モードが選択さ
れたときに、モード選択手段14によってチップイネー
ブル信号XCE(CEのトップバー付き、以下同様)及
びアウトプットイネーブル信号XOEがアクティブとさ
れたEPROM12から、データバス19Aを介して第
一の作動モードのための制御プログラムを受け取る。
The EPROM 12 stores a program for the first operation mode for controlling the controlled device, and the CPU 11 causes the mode selection means 14 to operate when the first operation mode is selected. The control program for the first operation mode is received via the data bus 19A from the EPROM 12 in which the chip enable signal XCE (with a top bar of CE, and so on) and the output enable signal XOE are activated.

【0021】マスクROM13には、第二の作動モード
のためのプログラムとして、シリアルI/O制御部15
1の通信制御及びEPROM書込み回路152の書込み
制御のための所定のプログラムが格納されており、CP
U11は、作動モード選択手段14を介して第二の作動
モードが選択されたとき、チップイネーブル信号XCE
及びアウトプットイネーブル信号XOEがアクティブと
されたマスクROM13から、データバス19Aを介し
て第二の作動プログラムを受け取る。
The mask ROM 13 has a serial I / O controller 15 as a program for the second operation mode.
A predetermined program for communication control of No. 1 and writing control of the EPROM writing circuit 152 is stored.
U11 is a chip enable signal XCE when the second operation mode is selected via the operation mode selection means 14.
And a second operation program is received from the mask ROM 13 in which the output enable signal XOE is activated via the data bus 19A.

【0022】なお、上記第二の作動モードにおいては、
EPROM12は、作動モード選択手段14によってチ
ップイネーブル信号XCEがアクティブ、アウトプット
イネーブル信号OCEがインアクティブとされる。
In the second operation mode,
In the EPROM 12, the chip enable signal XCE is activated and the output enable signal OCE is inactivated by the operation mode selection means 14.

【0023】EPROM12の前段には、プログラム書
込み手段15が配されており、プログラム書込み手段1
5には、前記シリアルI/O制御部151及びEPRO
M書込み回路152が配されており、シリアルI/O制
御部151は、入力ピンIN2から第一の作動モードの
ためのプログラムに関する信号を成すプログラム信号S
INを、また、入力ピンIN3からプログラム信号のた
めの同期信号(クロック信号)SCLKを夫々受け取
る。
A program writing means 15 is arranged in front of the EPROM 12, and the program writing means 1 is provided.
5 includes the serial I / O controller 151 and the EPRO.
The M write circuit 152 is provided, and the serial I / O control unit 151 uses the input pin IN2 to generate a program signal S which is a signal related to a program for the first operation mode.
IN, and a sync signal (clock signal) SCLK for a program signal from the input pin IN3, respectively.

【0024】I/O部17は、第一の作動モードにおい
て制御対象の機器に対してCPU11からの制御信号の
出力を伝達し、また、その逆方向の信号伝達を行なう。
RAM18は、同様に第一の作動モードにおいて、CP
U11の作動に必要な制御信号を随時格納し、また出力
する。
The I / O unit 17 transmits the output of the control signal from the CPU 11 to the device to be controlled in the first operation mode, and also transmits the signal in the opposite direction.
The RAM 18 also stores the CP in the first operation mode.
The control signal necessary for the operation of U11 is stored and output at any time.

【0025】上記実施例のワンチップマイコン1では、
ワンチップマイコンの製造後、まず入力ピンIN1から
第二の作動モードを選択する信号“1”が入力される
と、ROM選択回路14の出力を介してマスクROMの
プログラムが選択されて、CPUが第二の作動モードで
作動すると共に、EPROMの書込み/読出し信号が
“書込み”とされる。
In the one-chip microcomputer 1 of the above embodiment,
After manufacturing the one-chip microcomputer, first, when the signal "1" for selecting the second operation mode is input from the input pin IN1, the mask ROM program is selected via the output of the ROM selection circuit 14, and the CPU is While operating in the second mode of operation, the EPROM write / read signal is "written".

【0026】シリアルI/O制御部151には、クロッ
ク信号SCLK及び第一の作動モードが記述されたプロ
グラム信号SINがクロック信号SCLKと同期して与
えられ、シリアル制御部151は、CPU11によって
制御されてこのプログラム信号をシリアルデータからパ
ラレルデータに変換し、データバス19Bを介して出力
する。
A clock signal SCLK and a program signal SIN in which the first operation mode is described are given to the serial I / O control unit 151 in synchronization with the clock signal SCLK, and the serial control unit 151 is controlled by the CPU 11. The lever program signal is converted from serial data to parallel data and output via the data bus 19B.

【0027】EPROM書込み回路152は、CPU1
1によって同様に制御され、データバス19Bからパラ
レルデータを成す第一の作動モードのためのプログラム
信号を受け、これを、バス線19Cを介してEPROM
12に書き込む。
The EPROM writing circuit 152 includes the CPU 1
1 also receives a program signal for the first mode of operation in parallel data from the data bus 19B and sends it to the EPROM via the bus line 19C.
Write to 12.

【0028】第一の作動モードのためのプログラムがE
PROM12に格納されると、その後、モード選択信号
は“0”に選択変更され、ROM選択回路14は、マス
クROM13のチップイネーブル信号XCE及びアウト
プットイネーブル信号XOEをハイレベルにすること
で、マスクROM13をインアクティブにすると共に、
EPROMのアウトプットイネーブル信号をアクティ
ブ、書込み/読出し信号を“読出し”とする。
The program for the first operating mode is E
After being stored in the PROM 12, the mode selection signal is then selectively changed to “0”, and the ROM selection circuit 14 sets the chip enable signal XCE and the output enable signal XOE of the mask ROM 13 to the high level, so that the mask ROM 13 And inactivate
The output enable signal of the EPROM is active, and the write / read signal is "read".

【0029】上記により、CPU11は、第一の作動モ
ードで作動し、I/O部17を介して制御対象機器との
間で制御信号の入出力を行ない、これら制御信号を随時
RAM18に格納し又はこれから読み出し、通常の機器
制御を行なうことができる。
As described above, the CPU 11 operates in the first operation mode, inputs / outputs control signals from / to the control target device via the I / O unit 17, and stores these control signals in the RAM 18 at any time. Alternatively, it can be read out from this and normal device control can be performed.

【0030】作動中に、プログラムにバグが発見された
場合には、モード選択信号MODEが再び“1”にさ
れ、ワンチップマイコンの作動モードを第二の作動モー
ドにした上で、バグが除去された第一の作動モードのた
めのプログラムに関する信号SINが再びプログラムラ
イタ等を介してクロック信号SCLKと共に入力されて
プログラムの書換えが行なわれる。
If a bug is found in the program during operation, the mode selection signal MODE is set to "1" again, the operation mode of the one-chip microcomputer is set to the second operation mode, and then the bug is eliminated. The signal SIN relating to the programmed program for the first operation mode is input again together with the clock signal SCLK via the program writer or the like to rewrite the program.

【0031】図2の実施例の半導体集積回路装置のブロ
ック図では、図1の第二の作動モードのためのプログラ
ムが格納されたマスクROM13に代えて、第二の作動
モードを制御する制御回路部26が配されている。その
他の構成は、図1と同様である。制御回路部26は、モ
ード選択手段24の選択が第二の作動モードになったと
きに作動し、プログラム書込み手段25における書込み
を制御するものである。
In the block diagram of the semiconductor integrated circuit device of the embodiment of FIG. 2, instead of the mask ROM 13 in which the program for the second operation mode of FIG. 1 is stored, a control circuit for controlling the second operation mode. The section 26 is arranged. Other configurations are the same as those in FIG. The control circuit section 26 operates when the selection of the mode selecting means 24 enters the second operation mode, and controls the writing in the program writing means 25.

【0032】第二の実施例の場合、プログラム書込み手
段を制御する制御回路部26をマスクROMに代えて配
したことで、第一の実施例に比してその形状が大きくな
る。しかし、第一の作動モードを実行する回路部分と、
第二の作動モードを実行する回路部分とがはっきり分離
できるというメリットがある。
In the case of the second embodiment, since the control circuit section 26 for controlling the program writing means is arranged in place of the mask ROM, its shape becomes larger than that of the first embodiment. However, with the circuit part performing the first operating mode,
There is an advantage that it can be clearly separated from the circuit part that executes the second operation mode.

【0033】なお、上記各実施例では、プログラム書込
み手段がシリアルI/O制御部を備えているため、第一
の作動モードのためのプログラム信号の入力ピンは唯一
本のみでたり、パッケージピンの増加が低く抑えられ
る。
In each of the above embodiments, since the program writing means is provided with the serial I / O control section, there is only one program signal input pin for the first operation mode, or only one package pin. The increase is kept low.

【0034】また、上記各実施例では、電気的再書込み
可能な(第一の)読出し専用メモリとして、紫外線消去
方式のEPROMを採用する例を挙げたが、当然のこと
として、電気的消去方式のEEPROMを採用すること
もできる。また第二の実施例においては、第二の読出し
専用メモリとしてコストが低く抑えられ占有面積も小さ
なマスクROMを例として挙げたが、これに代えて同様
にEPROM、EEPROM等を採用することもでき
る。
Further, in each of the above-mentioned embodiments, an example in which the EPROM of the ultraviolet erasing method is adopted as the electrically rewritable (first) read-only memory is given, but it goes without saying that the electrically erasing method is used. It is also possible to adopt the EEPROM. Further, in the second embodiment, the mask ROM which is low in cost and occupies a small area is taken as an example of the second read-only memory. However, instead of this, an EPROM, an EEPROM or the like can also be adopted. ..

【0035】上記各実施例のワンチップマイコンを採用
すると、マスクROMを備えるワンチップマイコンに比
して極めて短納期で所定のプログラムが格納されるワン
チップマイコンを供給できることから、量産に先立って
発売される新製品の機器等について、その開発及び製作
期間が短縮できること、また、その製品についてプログ
ラム上でバグが発見されても、単にモード選択信号を切
り換えるのみでバグが除去されたプログラムを新たに書
き込むことができるので、製品のプログラムのバグ除去
が極めて簡単に行なわれる。
When the one-chip microcomputer of each of the above-mentioned embodiments is adopted, it is possible to supply the one-chip microcomputer in which a predetermined program is stored in a very short delivery time as compared with the one-chip microcomputer provided with the mask ROM. Therefore, it is released before mass production. The development and production period of a new product device can be shortened, and even if a bug is found in the program for the product, a new program in which the bug is removed by simply switching the mode selection signal is newly added. Being writable makes it very easy to eliminate bugs in the product program.

【0036】製品について、プログラムのバグ発生のお
それが無くなった時点で、EPROMに格納されている
最終のプログラムが、製造段階でマスクROMに書き込
まれ、このマスクROMを含むワンチップマイコンが装
置基板等に搭載される。これによってワンチップマイコ
ンを搭載する機器のコストが低く抑えられる。
With respect to the product, the final program stored in the EPROM is written in the mask ROM at the manufacturing stage when there is no possibility of a bug in the program, and the one-chip microcomputer including this mask ROM is mounted on the device substrate or the like. Will be installed in. As a result, the cost of the device equipped with the one-chip microcomputer can be kept low.

【0037】上記実施例の構成により、プログラムのバ
グ除去に際してワンチップマイコンを装置基板から外す
必要がなくなるため、半田作業を不要にすると共にバグ
除去が容易に行なわれ、プログラムの格納における時間
短縮が可能である。
With the configuration of the above-described embodiment, it is not necessary to remove the one-chip microcomputer from the device substrate when removing a program bug, so that soldering work becomes unnecessary and the bug can be removed easily, and the time required to store the program can be shortened. It is possible.

【0038】また、本実施例のワンチップマイコンで
は、シリアル制御I/O部を備えたことから、従来のE
PROMを搭載したワンチップマイコンにおいて、例え
ば単にEPROMの書込みのためのピンを外部に引出し
たものに比して、必要なピン数の増加が小さく抑えるこ
とができるため、その占有面積の増加等も僅かである。
Further, since the one-chip microcomputer of this embodiment is provided with the serial control I / O section, the conventional E
In a one-chip microcomputer equipped with a PROM, an increase in the required number of pins can be suppressed to be small compared to, for example, an EPROM in which pins for writing are simply drawn to the outside. Few.

【0039】更に、本発明のワンチップマイコンでは、
第二の作動のためのプログラムは制御される製品の種別
の如何に拘らず共通にできることから、このワンチップ
マイコンは、制御される全ての製品に共通の汎用ワンチ
ップマイコンとすることができるという利点もある。
Further, in the one-chip microcomputer of the present invention,
Since the program for the second operation can be shared regardless of the type of controlled product, this one-chip microcomputer can be a general-purpose one-chip microcomputer common to all controlled products. There are also advantages.

【0040】[0040]

【発明の効果】以上説明したように本発明の半導体集積
回路装置によると、製品化の初期の段階における機器等
制御用のワンチップマイコンについて、そのプログラム
のバグ除去が容易になると共に除去に要する時間の短縮
が可能となり、また、ワンチップマイコンのパッケージ
ピンに半田作業により生じ易い損傷が回避できるという
顕著な効果を奏する。
As described above, according to the semiconductor integrated circuit device of the present invention, the one-chip microcomputer for controlling the device or the like in the early stage of commercialization can easily remove the bug of the program and needs to be removed. As a result, the time can be shortened, and the package pins of the one-chip microcomputer can be prevented from being easily damaged by soldering work.

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

【図1】本発明の第一の実施例の半導体集積回路のブロ
ック図である。
FIG. 1 is a block diagram of a semiconductor integrated circuit according to a first embodiment of the present invention.

【図2】本発明の第二の実施例の半導体集積回路のブロ
ック図である。
FIG. 2 is a block diagram of a semiconductor integrated circuit according to a second embodiment of the present invention.

【図3】従来の半導体集積回路のブロック図である。FIG. 3 is a block diagram of a conventional semiconductor integrated circuit.

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

11、21:マイクロプロセッサ(CPU) 12、22:電気的再書込み可能な読出し専用メモリ 13:第二の読出し専用メモリ 14、24:作動モード選択手段 15、25:プログラム書込み手段 26:第二の作動モードのための制御回路部 17、27:I/O部 18、28:RAM 151、251:シリアルI/O制御部 152、252:EPROM書込み回路 11, 21: Microprocessor (CPU) 12, 22: Electrically rewritable read-only memory 13: Second read-only memory 14, 24: Operation mode selecting means 15, 25: Program writing means 26: Second Control circuit section for operation mode 17, 27: I / O section 18, 28: RAM 151, 251: Serial I / O control section 152, 252: EPROM writing circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】第一及び第二の作動モードで作動可能なマ
イクロプロセッサ(11)と、 前記第一の作動モードのためのプログラムが記憶される
電気的再書込み可能な第一の読出し専用メモリ(12)
と、 前記第二の作動モードのためのプログラムが記憶される
第二の読出し専用メモリ(13)と、 モード選択信号(MODE)に応答して前記第一又は第
二の読出し専用メモリを選択し、前記マイクロプロセッ
サ(11)の作動モードを第一又は第二の作動モードの
何れかに選択可能な作動モード選択手段(14)と、 前記第二の作動モードにおいて前記マイクロプロセッサ
(11)に制御され、前記第一の作動モードのためのプ
ログラムに関する信号(SIN)が入力されて前記第一
の作動モードのためのプログラムを前記第一の読出し専
用メモリ(12)に書き込むプログラム書込み手段(1
5)とを備えることを特徴とするワンチップの半導体集
積回路装置。
1. A microprocessor (11) operable in first and second operating modes, and an electrically rewritable first read-only memory in which a program for the first operating mode is stored. (12)
A second read-only memory (13) in which a program for the second operation mode is stored, and selecting the first or second read-only memory in response to a mode selection signal (MODE). An operation mode selecting means (14) capable of selecting an operation mode of the microprocessor (11) to either a first operation mode or a second operation mode, and controlling the microprocessor (11) in the second operation mode. A program write means (1) for receiving a signal (SIN) relating to the program for the first operation mode and writing the program for the first operation mode in the first read-only memory (12).
5) A one-chip semiconductor integrated circuit device comprising:
【請求項2】第一の作動モードにおいて作動するマイク
ロプロセッサ(21)と、 前記マイクロプロセッサ(21)のためのプログラムが
記憶される電気的再書込み可能な読出し専用メモリ(2
2)と、 前記プログラムに関する信号(SIN)が入力され前記
プログラムを前記読出し専用メモリ(22)に書き込む
ためのプログラム書込み手段(25)と、 第二の作動モードにおいて前記プログラム書込み手段
(22)の作動を制御する制御回路部(26)と、 モード選択信号(MODE)に応答して前記第一及び第
二の作動モードの何れかを選択する作動モード選択手段
(24)とを備えることを特徴とするワンチップの半導
体集積回路装置。
2. A microprocessor (21) operating in a first mode of operation, and an electrically rewritable read-only memory (2) in which a program for the microprocessor (21) is stored.
2), a program writing means (25) for receiving the signal (SIN) relating to the program and writing the program into the read-only memory (22), and a program writing means (22) in the second operation mode. A control circuit section (26) for controlling the operation, and an operation mode selecting means (24) for selecting one of the first and second operation modes in response to a mode selection signal (MODE). One-chip semiconductor integrated circuit device.
【請求項3】前記プログラム書込み手段(15、25)
は、前記プログラムに関する信号(SIN)としてシリ
アルデータが入力されるシリアルI/O制御部(15
1、251)を備えることを特徴とする請求項1又は2
記載の半導体集積回路装置。
3. The program writing means (15, 25)
Is a serial I / O control unit (15) to which serial data is input as a signal (SIN) related to the program.
1, 251) is provided.
The semiconductor integrated circuit device described.
JP3320263A 1991-12-04 1991-12-04 Semiconductor integrated circuit device Pending JPH05159079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3320263A JPH05159079A (en) 1991-12-04 1991-12-04 Semiconductor integrated circuit device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3320263A JPH05159079A (en) 1991-12-04 1991-12-04 Semiconductor integrated circuit device

Publications (1)

Publication Number Publication Date
JPH05159079A true JPH05159079A (en) 1993-06-25

Family

ID=18119556

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3320263A Pending JPH05159079A (en) 1991-12-04 1991-12-04 Semiconductor integrated circuit device

Country Status (1)

Country Link
JP (1) JPH05159079A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001097056A1 (en) * 2000-06-14 2001-12-20 Seiko Epson Corporation Integrated circuit and method of writing nonvolatile memory within integrated circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001097056A1 (en) * 2000-06-14 2001-12-20 Seiko Epson Corporation Integrated circuit and method of writing nonvolatile memory within integrated circuit

Similar Documents

Publication Publication Date Title
US6009496A (en) Microcontroller with programmable embedded flash memory
KR100280637B1 (en) Computer system capable of data update of fixed flash ROM and its control method
JPH05327582A (en) Program memory rewrite system for portable telephone set
JPH09330151A (en) Card
JPH0628528A (en) Interface circuit for ic card
US6738308B2 (en) Asynchronous flash-EEPROM behaving like a synchronous RAM/ROM
US5880992A (en) Electrically erasable and programmable read only memory
JPH05159079A (en) Semiconductor integrated circuit device
KR20030085046A (en) Independent asynchronous boot block for synchronous non-volatile memory devices
US6611462B2 (en) Semiconductor integrated circuit
JPH10283172A (en) Flash rom data rewrite system
JPH05233844A (en) Microcomputer
US5619714A (en) Microcomputer having an instruction decoder with a fixed area and a rewritable area
JPH11184724A (en) In-circuit emulator and semiconductor integrated circuit
EP1093126B1 (en) Integrated circuit
JP2001318907A (en) Microcomputer incorporating flash memory
JPH08307246A (en) Method for configuring integrated circuit device and logic circuit
JPH11272642A (en) 1-chip microcomputer and start address setting method
JP2001084172A (en) Semiconductor storage device
JPH1050086A (en) Microcomputer having eeprom and its rewriting method
JPH11353170A (en) Flash memory controller and memory access method of flash memory controller
JP2000222380A (en) Microcomputer
JP2001352036A (en) Apparatus and method for initialization of semiconductor integrated circuit
JPH11353153A (en) Register setting circuit
JP2003299848A (en) Subalternate control device of game machine

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20001003