JPH0363892A - Single chip type microcomputer - Google Patents

Single chip type microcomputer

Info

Publication number
JPH0363892A
JPH0363892A JP1200910A JP20091089A JPH0363892A JP H0363892 A JPH0363892 A JP H0363892A JP 1200910 A JP1200910 A JP 1200910A JP 20091089 A JP20091089 A JP 20091089A JP H0363892 A JPH0363892 A JP H0363892A
Authority
JP
Japan
Prior art keywords
address
program
mask rom
memory
nonvolatile 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
JP1200910A
Other languages
Japanese (ja)
Inventor
Kazuya Fujimoto
和也 藤本
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP1200910A priority Critical patent/JPH0363892A/en
Publication of JPH0363892A publication Critical patent/JPH0363892A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To store a program in the process of manufacturing by incorporating a mask ROM(read-only memory) and a nonvolatile memory, and storing a jump instruction to an address in the nonvolatile memory in the mask ROM. CONSTITUTION:The single chip type microcomputer is comprised of a cpu(central processing unit) 10, the mask ROM 11, a loadable nonvolatile memory 13, a RAM (random access memory) 13 for user, an external interface 14, a peripheral circuit 15 consisting of a timer and an A/D(analog/digital) converter, etc., and a control circuit 16 which performs control among every block. And the loadable nonvolatile memory 12 is arranged in the same memory space as the mask ROM 11, and the jump instruction to the address in the nonvolatile memory 12 is stored in at least one address in the mask ROM 11. In such a way, the program can be stored in the process of manufacturing.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は単一チップ型マイクロコンピュータに関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a single-chip microcomputer.

[従来の技術] マスクROM(リードオンリメモリ)を内蔵した従来の
単一チップ型マイクロコンピュータ、いわゆる1チツプ
マイクロコンピユータにおいては、マイクロコンピュー
タの製造段階でユーザプログラムがマスクROM4に格
納されるので、製造後にユーザ側でこのマスクROMに
書込まれているユーザプログラムを変更することは不可
能であった。プログラムを変更するには、プロセスマス
ク、例えば拡散マスク、コンタクトマスク、Vth(L
きい値電圧)調整マスク等を変更する必要があるが、こ
れらのマスクを用いたプロセスを通過したものは、プロ
グラムの変更が不可能となり、最悪の場合、マイクロコ
ンピュータを廃棄する以外方法がなかった。このような
問題に対処するために、近年マスクROMにかえて、不
揮発性のメモリを内蔵した1チツプマイクロコンピユー
タが開発、製品化され、ユーザ側でプログラムを書き換
えることが可能となった。
[Prior Art] In a conventional single-chip microcomputer that has a built-in mask ROM (read-only memory), a so-called one-chip microcomputer, the user program is stored in the mask ROM 4 during the manufacturing stage of the microcomputer. It was impossible for the user to later change the user program written in this mask ROM. To change the program, process masks such as diffusion masks, contact masks, Vth(L
It is necessary to change the threshold voltage (threshold voltage) adjustment mask, etc., but it becomes impossible to change the program for those that have gone through the process using these masks, and in the worst case, there is no other option than to discard the microcomputer. . In order to deal with such problems, in recent years, one-chip microcomputers with built-in nonvolatile memory instead of mask ROM have been developed and commercialized, making it possible for users to rewrite programs.

[発明が解決しようとする課題] しかし、このような1チツプマイクロコンピユータの場
合、プログラムの変更の有無にかかわらず、製品の工場
出荷段階、あるいはユーザ側でのプログラムのメモリへ
の書込み工程が必要となるので、コスト的及び時間的な
問題か生じていた。
[Problem to be solved by the invention] However, in the case of such a one-chip microcomputer, regardless of whether or not the program has been changed, it is necessary to write the program into memory at the product factory shipping stage or at the user's side. This caused cost and time problems.

本発明の目的は、製造工程中にプログラムを格納するこ
とが可能であると同時に、製造後に、このプログラムの
内容の一部を変更することが可能す単一チップ型マイク
ロコンピュータを提供することにある。
An object of the present invention is to provide a single-chip microcomputer in which a program can be stored during the manufacturing process, and at the same time, part of the contents of this program can be changed after manufacturing. be.

[課題を解決するための手段] 本発明の前記目的は、マスクROMを内蔵する単一チッ
プ型マイクロコンピュータであって、該マスクROMと
同一メモリ空間内に書込み可能な不揮発性メモリが配置
されており、該マスクROM内の少なくとも1つの番地
には、前記不揮発性メモリ内の番地へのジャンプ命令が
格納されていることを特徴とする単一チップ型マイクロ
コンピュータによって達成される。
[Means for Solving the Problems] The object of the present invention is to provide a single-chip microcomputer with a built-in mask ROM, in which a writable nonvolatile memory is arranged in the same memory space as the mask ROM. This is achieved by a single-chip microcomputer characterized in that a jump instruction to an address in the nonvolatile memory is stored in at least one address in the mask ROM.

[実施例] 次に本発明の実施例について説明する。[Example] Next, examples of the present invention will be described.

第2図は本発明の単一チップ型のマイクロコンピュータ
の一実施例の構成を示すブロック図である0図中、10
はcpu (中央処理ユニット)、11はマスクROM
 、12は書込み可能な不揮発性のメモリ、13はユー
ザ用のRA)l (ランダムアクセスメモリ)、14は
外部インターフェイス、15はタイマーA/D (アナ
ログ/デジタル)コンバータ等の周辺回路、16は各ブ
ロック間の制御を行う制御回路である。
FIG. 2 is a block diagram showing the configuration of an embodiment of a single-chip microcomputer according to the present invention.
is CPU (central processing unit), 11 is mask ROM
, 12 is a writable nonvolatile memory, 13 is a user RA) (random access memory), 14 is an external interface, 15 is a peripheral circuit such as a timer A/D (analog/digital) converter, and 16 is each This is a control circuit that performs control between blocks.

第1図はマスクROM11及び不揮発性のメモリ12の
メモリ空間の概念図である。メモリ空間の大きさは本発
明に直接関係するものではないが、説明のためにooo
n〜F F F 11の大きさを持っているものと仮定
する。このメモリ空間において、OOOH番地〜XaO
XbOXcOH番地は7X りROHニlPI当テラt
L、XaIXbIXcl 〜Xa2Xb2Xc2H番地
!;L不揮[1,ノメーTI= IJ 12G:l:割
当てられている。
FIG. 1 is a conceptual diagram of the memory space of the mask ROM 11 and the nonvolatile memory 12. Although the size of the memory space is not directly related to the present invention, ooo
Assume that it has a size of n~FFF11. In this memory space, from address OOOH to XaO
XbOXcOH address is 7X
L, XaIXbIXcl ~ Xa2Xb2Xc2H address! ;L non-volatile [1, nome TI=IJ 12G:l: Assigned.

本実施例ではメモリ12として、EEPROHを用いて
いるが、ヒユーズROM 、フラッシュEEPROH,
EPROH、バブルメモリ等の書込み可能な不揮発性の
メモリであればどのようなものでも同様に用いることが
できる。
In this embodiment, EEPROH is used as the memory 12, but fuse ROM, flash EEPROH,
Any writable non-volatile memory such as EPROH or bubble memory can be similarly used.

このマスクROM11には第3図に示すようにユーザプ
ログラム(A) 、 (B)及び(C)が格納されてい
る。マスクROMI 1のYIY2Y3H番地及び21
2213H番地には、夫々メ% ’) 12ノXalX
blXc1H番地及びXaIXb1Xcl+IH番地へ
のジャンプ命令が格納されている。
This mask ROM 11 stores user programs (A), (B) and (C) as shown in FIG. Address YIY2Y3H of mask ROMI 1 and 21
At address 2213H, there are 12 XalX
Jump instructions to addresses blXc1H and XaIXb1Xcl+IH are stored.

また、;: ノXaIXb1XclH番地及びXalX
blXcl+IH番地にはリターン命令が格納されてい
る。メモリ12はこの2つの番地を除き、消去状態にあ
る。
Also ;: address XaIXb1XclH and XalX
A return instruction is stored at address blXcl+IH. The memory 12 is in an erased state except for these two addresses.

次にプログラムの実行手順について説明する。Next, the program execution procedure will be explained.

(a)プログラムに変更の必要のない場合この場合、マ
イクロコンピュータはマスクROM11の0OOH番地
からプログラム(A)を実行する。プログラム(A)を
実行し終えるとYIY2Y311番地に進むがこの番地
にはジャンプ命令が格納されており、第3図の順路■に
沿ってメモリ12のXaIXb1XcIH番地にジャン
プする0通常ジャンプ命令は2バイト命令であるが、こ
こでは説明を簡単にするために1バイト命令と仮定する
。 XaIXbIXcIH番地にはリターン命令が格納
されいるので順路■に沿ってマスクROMのYIY2マ
3+IH番地にリターンし、プログラム(B)を実行す
る。プログラム(B)を実行し終えると上記と同様に順
路■に沿って111213N番地カラメモリ12ノxa
1xb1xC1+1H番地ニシャンフシ、次いで順路■
に沿ってマスクROMの21Z2Z3+IH番地にリタ
ーンし、プログラム(C)を実行する。
(a) When there is no need to change the program In this case, the microcomputer executes the program (A) from address 0OOH of the mask ROM 11. When program (A) is finished running, it advances to address YIY2Y311, where a jump instruction is stored, and it jumps to address XaIXb1XcIH in memory 12 along the route ■ in Figure 3.0 Normally, a jump instruction is 2 bytes. Although this is an instruction, here it is assumed that it is a 1-byte instruction to simplify the explanation. Since the return instruction is stored at address XaIXbIXcIH, the program returns to address YIY2ma3+IH of the mask ROM along the route (2) and executes the program (B). After executing the program (B), follow the same route as above and go to the address 111213N of the empty memory 12 xa.
1xb1xC1+1H address Nishanfushi, then regular route■
The program returns to address 21Z2Z3+IH in the mask ROM and executes program (C).

以上説明したようにプログラムに変更の必要のない場合
、マイクロコンピュータはマスクROMに格納されたプ
ログラム(A) 、(B) 、(C)を順次実行する。
As explained above, if there is no need to change the program, the microcomputer sequentially executes programs (A), (B), and (C) stored in the mask ROM.

(b)プログラムに変更の必要のある場合−例としてプ
ログラム(B)をプログラム(B゛)に変更する必要の
生じた場合について説明する。この場合、EEPROH
ライター等の外部装置を用いてメモリ12のXaIXb
IXc111番地の内容を該メモリ12の旧014b0
14cOH番地へのジャンプ命令に書換え、プログラム
(B’)をこのWaOWbOWcOH番地から書込む、
更にこのプログラムの最終番地である一aIWbIWc
lH番地にはプログラム(C)の先頭番地である217
223+IH番地へのジャンプ命令を書込んでおく、こ
のようにすると、マイクロコンピュータは上記(a)の
場合と同様に、プログラム(^)を実行し終えると第4
図の順路■に沿ってマスクROM11のYIY2Y3H
番地からメモリ12のXaIXbIXclH番地にジャ
ンプするが、この番地の内容はリターン命令からジャン
プ命令に書換えられているので、第4図の順路■に沿っ
てlllaO%4bOI4cOH番地にジャンプし、プ
ログラム(Bo)を実行する。プログラム(Bo)を実
行し終え、ジャンプ命令が書込まれている一alWNW
c111番地に進むと、第4図の順路■に沿ってプログ
ラム(C)の先頭番地21Z2Z3+IH番地にジャン
プし、プログラム(C)を実行する。 以上説明したよ
うに、マイクロコンピュータはプログラム(B)を実行
することなく、プログラム(A) 、 (B’)、(C
)を順次実行する。
(b) Case where it is necessary to change the program - As an example, a case where it is necessary to change the program (B) to the program (B') will be explained. In this case, EEPROH
XaIXb in memory 12 using an external device such as a writer
The contents of address IXc111 are transferred to the old 014b0 of the memory 12.
Rewrite the jump instruction to address 14cOH and write program (B') from this WaOWbOWcOH address.
Furthermore, the final address of this program is 1aIWbIWc.
The lH address is 217, which is the start address of the program (C).
Write a jump instruction to address 223+IH. In this way, the microcomputer will move to the fourth
YIY2Y3H of mask ROM11 along the route ■ in the figure.
The program jumps from the address to address XaIXbIXclH in the memory 12, but since the contents of this address have been rewritten from a return instruction to a jump instruction, it jumps to address lllaO%4bOI4cOH along the route ■ in Figure 4, and the program (Bo) Execute. The program (Bo) has been executed and a jump instruction has been written.
When the program advances to address c111, it jumps to address 21Z2Z3+IH, which is the start address of program (C), along route 2 in FIG. 4, and program (C) is executed. As explained above, the microcomputer can execute programs (A), (B'), (C) without executing program (B).
) are executed sequentially.

リターン命令からジャンプ命令への変更はオペコードを
変更するだけでよく、不揮発性のメモリ12がEPRO
Hのときには、例えばジャンプ命令を(1100000
0)と定義し、リターン命令を(11110000)と
定義しておけば、紫外線を用いてデータの消去を行う必
要はなく、外部書込み装置を用いて電気的に命令を変更
することが可能である。
Changing from a return instruction to a jump instruction only requires changing the operation code, and the non-volatile memory 12 is
When H, for example, jump command (1100000
0) and the return command as (11110000), there is no need to erase data using ultraviolet light, and the command can be changed electrically using an external writing device. .

[発明の効果] 本発明の単一チップ型マイクロコンピュータは、以上説
明したようにマスクROMと不揮発性のメモリとを内蔵
しており、マスクROM内の少なくとも1つの番地には
不揮発性のメモリ内の番地へのジャンプ命令が格納され
ているので、マイクロコンピュータの製造工程中にプロ
グラムを格納することが可能であり、製造後の外部装置
によるプログラムの書込み工程が不要であるので、製造
コストが低く、製造期間も短くてすむと同時に、製造後
にプログラムの一部を変更する必要が生じた場合にも不
揮発性のメモリにプログラムを書込むことにより、これ
に対処することが可能であるという効果を有する。
[Effects of the Invention] As explained above, the single-chip microcomputer of the present invention has a built-in mask ROM and a nonvolatile memory, and at least one address in the mask ROM has an address in the nonvolatile memory. Since the jump instruction to the address is stored, the program can be stored during the manufacturing process of the microcomputer, and there is no need to write the program using an external device after manufacturing, resulting in low manufacturing costs. This has the advantage that the manufacturing period can be shortened, and at the same time, even if it becomes necessary to change part of the program after manufacturing, it is possible to deal with this by writing the program to non-volatile memory. have

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

第1図は本発明の単一チップ型のマイクロコンピュータ
のメモリ空間の概念図、第2図は本発明の単一チップ型
のマイクロコンピュータの構成を示すブロック図、ff
13図はプログラムの変更の必要のない場合のマスクR
OM及び不揮発性のメモリの内容の説明図、第4図はプ
ログラムに変更の必要が生じた場合のマスクROMおよ
び不揮発性のメモリの内容の説明図である。 10・・・CPU 、11・・・マスクROM 、12
・・・不揮発性のメモリ、13・・・RAM 、14・
・・外部インターフェイス、15・・・周辺回路、16
・・・制御回路。
FIG. 1 is a conceptual diagram of the memory space of a single-chip microcomputer according to the present invention, and FIG. 2 is a block diagram showing the configuration of the single-chip microcomputer according to the present invention, ff
Figure 13 shows mask R when there is no need to change the program.
FIG. 4 is an explanatory diagram of the contents of the mask ROM and nonvolatile memory when it is necessary to change the program. 10...CPU, 11...Mask ROM, 12
...Nonvolatile memory, 13...RAM, 14.
...External interface, 15...Peripheral circuit, 16
...Control circuit.

Claims (1)

【特許請求の範囲】[Claims] マスクROMを内蔵する単一チップ型マイクロコンピュ
ータであって、該マスクROMと同一メモリ空間内に書
込み可能な不揮発性メモリが配置されており、該マスク
ROM内の少なくとも1つの番地には、前記不揮発性メ
モリ内の番地へのジャンプ命令が格納されていることを
特徴とする単一チップ型マイクロコンピュータ。
A single-chip microcomputer with a built-in mask ROM, a writable non-volatile memory is arranged in the same memory space as the mask ROM, and at least one address in the mask ROM contains the non-volatile memory. A single-chip microcomputer characterized by storing a jump instruction to an address in a physical memory.
JP1200910A 1989-08-02 1989-08-02 Single chip type microcomputer Pending JPH0363892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1200910A JPH0363892A (en) 1989-08-02 1989-08-02 Single chip type microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1200910A JPH0363892A (en) 1989-08-02 1989-08-02 Single chip type microcomputer

Publications (1)

Publication Number Publication Date
JPH0363892A true JPH0363892A (en) 1991-03-19

Family

ID=16432302

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1200910A Pending JPH0363892A (en) 1989-08-02 1989-08-02 Single chip type microcomputer

Country Status (1)

Country Link
JP (1) JPH0363892A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11201165A (en) * 1998-01-09 1999-07-27 Koyo Seiko Co Ltd Control type magnetic bearing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11201165A (en) * 1998-01-09 1999-07-27 Koyo Seiko Co Ltd Control type magnetic bearing device

Similar Documents

Publication Publication Date Title
JP2004046453A (en) Single chip microcomputer and boot sector switching method
KR950012516B1 (en) Microcomputer
JPH0363892A (en) Single chip type microcomputer
KR950010304B1 (en) Semiconductor integrated circuit device with non-volatile memory device
JP3918434B2 (en) Information processing device
US6148362A (en) Microcomputer using nonvolatile semiconductor memory to store user code/data
US6684290B2 (en) Memory rewriting apparatus and method for memory mapping rewriting program to same address space
JP2865807B2 (en) Semiconductor storage system
JPH07254292A (en) Non-volatile memory and microcomputer using the same memory
JP3032207B2 (en) Micro computer
JPH0836558A (en) One-chip microcomputer
JPS6027556B2 (en) washing machine time display device
US20230315482A1 (en) Microcontroller and update method for microcontroller
JP2733692B2 (en) ROM device
JP3022608B2 (en) Microcomputer program change device
JPS62198000A (en) Semiconductor integrated circuit
JP2005242621A (en) Semiconductor device and its interrupt processing method
JPH06202937A (en) Nonvolatile semiconductor storage
JPH05143315A (en) Version up method for firmware
JPH0876990A (en) Control circuit for camera
JPS646600B2 (en)
JP2001256061A (en) Information storage device
JPH01216429A (en) Microcomputer
JPH0997176A (en) Interrupt handling device for microcomputer
JPH0261896A (en) Electrically erasable programmable read only memory