JPH0155497B2 - - Google Patents

Info

Publication number
JPH0155497B2
JPH0155497B2 JP55146510A JP14651080A JPH0155497B2 JP H0155497 B2 JPH0155497 B2 JP H0155497B2 JP 55146510 A JP55146510 A JP 55146510A JP 14651080 A JP14651080 A JP 14651080A JP H0155497 B2 JPH0155497 B2 JP H0155497B2
Authority
JP
Japan
Prior art keywords
address value
program
start address
interrupt
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.)
Expired
Application number
JP55146510A
Other languages
Japanese (ja)
Other versions
JPS5771049A (en
Inventor
Kimihisa Sasazaki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP55146510A priority Critical patent/JPS5771049A/en
Publication of JPS5771049A publication Critical patent/JPS5771049A/en
Publication of JPH0155497B2 publication Critical patent/JPH0155497B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)

Description

【発明の詳細な説明】 本発明は1チツプマイクロコンピユータに関す
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a one-chip microcomputer.

従来、プログラムメモリーとしてリードオンリ
ーメモリ(以下ROMという)をチツプに内蔵し
た1チツプマイクロコンピユータにおいては、プ
ログラム起動アドレス値およびインタラプトプロ
グラム起動アドレス値は固定されており、内蔵
ROMからしか起動できないものや、起動操作前
に切換入力端子をセツトすることにより、内蔵
ROMを無効にし、外部プログラムメモリーを内
蔵ROMのアドレス範囲におきかえて起動する例
がある。第1図は従来例の概要図であり、プログ
ラム起動アドレス値1およびインタラプトプログ
ラム起動アドレス値2はそれぞれ16進数で
「0000」および「0040」をとり、イでは内蔵
ROM3から起動し、ロでは内蔵ROM3が無効
となりそれぞれの起動アドレス値は外部プログラ
ムメモリー4を示すようになり、起動は外部プロ
グラムメモリー4からおこることになる。
Conventionally, in single-chip microcomputers that have read-only memory (hereinafter referred to as ROM) built into the chip as program memory, the program start address value and interrupt program start address value are fixed, and the built-in
Some products can only be started from ROM, and some can be started by setting the switching input terminal before the startup operation.
There is an example of starting by disabling the ROM and replacing the external program memory with the address range of the internal ROM. Figure 1 is a schematic diagram of the conventional example, where program start address value 1 and interrupt program start address value 2 are hexadecimal ``0000'' and ``0040'', respectively.
Booting starts from ROM3, and in (b) the built-in ROM3 becomes invalid, each booting address value comes to indicate external program memory 4, and booting occurs from external program memory 4.

一般にROMを内蔵した1チツプマイクロコン
ピユータは、ROMを内蔵しないマイクロコンピ
ユータと比較して、ユーザーの立場から見た時の
コストが下がるというメリツトがあると言われ
る。しかし、このことは1チツプマイクロコンピ
ユータの内蔵ROMに個別ユーザーのプログラム
を書き込む為に必要なROMマスク費用が、1個
あたりの費用として充分安くなる程度に1種類の
プログラムを書き込んだ1チツプマイクロコンピ
ユータを大量使用する場合に言えることであり、
少量しか使用する見込みのないユーザーにとつて
はROMマスク費用が1個あたりに換算すると高
くなりすぎて1チツプマイクロコンピユータを使
用できなくなる。少量使用ユーザーにとつて、従
来例のうち内蔵ROM内からしか起動できないも
のはROMマスク費用が必要なことからコスト高
になり、外部プログラムメモリーから起動できる
ものであつても内蔵ROMを全く使用しないとい
うROMマスクを特注する必要が生じる。外部プ
ログラムメモリーから起動できるものについて
は、メーカーが内蔵ROMを無効にしたものを供
給し、ユーザーがROMマスク費用を負担しなく
てもよいという場合も考えられるが、この場合に
は一般のマイクロコンピユータと同様に複数のチ
ツプで製品が構成される事になり、1チツプマイ
クロコンピユータである為に生じていたメリツト
が失われてしまつている。
Generally speaking, one-chip microcomputers with built-in ROM are said to have the advantage of lower costs from the user's perspective than microcomputers without built-in ROM. However, this means that the ROM mask cost required to write an individual user's program to the built-in ROM of a 1-chip microcomputer is sufficiently low as the cost per unit. This is true when using a large amount of
For users who are only expected to use a small amount of ROM, the cost per ROM mask becomes too high, making it impossible to use a 1-chip microcomputer. For small-volume users, conventional models that can only be booted from internal ROM require a ROM mask fee, resulting in high costs, and even those that can be booted from external program memory do not use internal ROM at all. It becomes necessary to custom-order a ROM mask. For devices that can be booted from external program memory, it is possible that the manufacturer will supply one with the built-in ROM disabled and the user will not have to pay for the ROM mask, but in this case, a general microcomputer Similarly, products are now made up of multiple chips, and the advantages of single-chip microcomputers are lost.

以上のように従来の1チツプマイクロコンピユ
ータは少量使用ユーザに対する不適合性を有して
おり、その為に大量生産する製品には1チツプマ
イクロコンピユータを、少量生産しかしない製品
には複数チツプ構成のマイクロコンピユータをと
いうような使いわけが行われ、それぞれ別々のソ
フトウエア開発を行う必要が生じていた。
As mentioned above, conventional 1-chip microcomputers are unsuitable for users who use small quantities, and for this reason, 1-chip microcomputers are used for products that are mass-produced, and multi-chip microcomputers are used for products that are only produced in small quantities. As computers were used differently, it became necessary to develop separate software for each.

本発明は従来の1チツプマイクロコンピユータ
の持つ、少量使用ユーザに対する不適合性という
欠点なくし、大量生産製品から少量生産製品まで
同一のマイクロコンピユータを用いることによつ
てソフトウエア開発費用を軽減できる1チツプマ
イクロコンピユータを提供することを目とする。
The present invention eliminates the drawback of the conventional one-chip microcomputer, which is its incompatibility with users who use small quantities, and uses the same microcomputer for both mass-produced and small-volume products, thereby reducing software development costs. The aim is to provide computers.

以下実施例に基づいて本発明を詳しく説明す
る。
The present invention will be described in detail below based on Examples.

第2図は本発明の一実施例の概要図であり、1
は16進数で表わされたプログラム起動アドレス
値、2は16進数で表わされたインタラプトプログ
ラム起動アドレス値、3は内蔵ROM、4は外部
プログラムメモリーである。
FIG. 2 is a schematic diagram of an embodiment of the present invention, and 1
is a program start address value expressed in hexadecimal, 2 is an interrupt program start address value expressed in hexadecimal, 3 is an internal ROM, and 4 is an external program memory.

以後アドレス値は16進数で表わし、内蔵ROM
3のアドレス範囲を「0000」番地から「OFFF」
番地までとし、外部プログラムメモリー4のアド
レス範囲を「1000」番地から「FFFF」番地まで
とする。
From now on, the address value will be expressed in hexadecimal, and the address value will be expressed as a hexadecimal number.
3 address range from address “0000” to “OFFF”
The address range of external program memory 4 is from address "1000" to address "FFFF".

第2図のイでは内蔵ROM3から起動するよう
にプログラム起動アドレス値1は「0000」、イン
タラプトプログラム起動アドレス値2は「0040」
としている。第2図のロでは外部プログラムメモ
リー4から起動するようにプログラム起動アドレ
ス値1は「1000」、インタラプトプログラム起動
アドレス値2は「1040」とし、内蔵ROM3を無
効にすることなく使用できるようにしている。
In Figure 2 A, the program start address value 1 is "0000" and the interrupt program start address value 2 is "0040" to start from the built-in ROM 3.
It is said that In Figure 2 B, the program start address value 1 is set to ``1000'' so that the program starts from the external program memory 4, and the interrupt program start address value 2 is set to ``1040'' so that it can be used without disabling the built-in ROM 3. There is.

第3図は第2図の概要図に対する具体的な実施
例であり、30は内蔵ROM3及びその周辺回路
からなる1チツプマイクロコンピユータの一部分
を示し、1はプログラム起動アドレス値、1aは
内蔵ROM3のメモリーを示すように設定された
プログラム起動アドレス値「0000」、1bは外部
プログラムメモリー4内のメモリーを示すように
設定されたプログラム起動アドレス値「1000」、
2はインタラプトプログラム起動アドレス値、2
aは内蔵ROM3内のメモリーを示すように設定
されたインタラプトプログラム起動アドレス値
「0040」、2bは外部プログラムメモリー4内のメ
モリーを示すように設定されたインタラプトプロ
グラム起動アドレス値「1040」、3は内蔵ROM、
4は外部プログラムメモリー、5はプログラム起
動アドレス値およびインタラプトプログラム起動
アドレス値変更手段、6は変更制御信号発生手
段、7は変更制御信号、8はプログラムカウンタ
(以下PCという)、9はPC入力バス、10はPC
出力バス、11はPCデコーダ、12はインスト
ラクシヨンバス、13,14,15,16は論理
積ゲート(以下ANDゲートという)、17,18
はインバータ、19は論理和ゲート(以下ORゲ
ートという)、20,21,22,23は出力バ
ツフア、24はリセツト信号、25はインタラプ
ト信号、26はPCラツチ信号、27はプログラ
ムメモリー選択信号、28はスイツチ、29はプ
ルアツプ抵抗である。
FIG. 3 shows a specific embodiment of the schematic diagram in FIG. 2, where 30 indicates a part of a one-chip microcomputer consisting of the built-in ROM 3 and its peripheral circuits, 1 is the program start address value, and 1a is the internal ROM 3. 1b is the program start address value "0000" set to indicate the memory, and 1b is the program start address value "1000" set to indicate the memory in the external program memory 4.
2 is the interrupt program start address value, 2
a is the interrupt program start address value "0040" set to indicate the memory in the internal ROM 3, 2b is the interrupt program start address value "1040" set to indicate the memory in the external program memory 4, and 3 is the interrupt program start address value "1040" set to indicate the memory in the external program memory 4. Built-in ROM,
4 is an external program memory, 5 is a program start address value and interrupt program start address value changing means, 6 is a change control signal generation means, 7 is a change control signal, 8 is a program counter (hereinafter referred to as PC), 9 is a PC input bus , 10 is PC
Output bus, 11 is a PC decoder, 12 is an instruction bus, 13, 14, 15, 16 are AND gates (hereinafter referred to as AND gates), 17, 18
is an inverter, 19 is an OR gate (hereinafter referred to as OR gate), 20, 21, 22, 23 are output buffers, 24 is a reset signal, 25 is an interrupt signal, 26 is a PC latch signal, 27 is a program memory selection signal, 28 is a switch, and 29 is a pull-up resistor.

はじめにプログラム起動アドレス値1およびイ
ンタラプトプログラム起動アドレス値2が内蔵
ROM3内に設定される状態を説明する。変更制
御信号発生手段6のスイツチ28を閉じるとプル
アツプ抵抗によつて論理“1”(以下“1”とい
う)となつていた変更制御信号7は論理“0”
(以下“0”という)になる。これによりANDゲ
ート13および15の出力は“0”に固定され
る。インバータ17の出力は“1”となりAND
ゲート14および16の出力はそれぞれリセツト
信号24およびインタラプト信号25の論理値と
なる。いまリセツト信号24が“1”になると
ANDゲート14の出力は“1”となり出力バツ
フア20を出力状態にし、プログラム起動アドレ
ス値1aをPC入力バス9に出力する。リセツト
信号24はまたORゲート19に接続されており
PCラツチ信号26を“1”にする。PCラツチ信
号26が“1”になるとPC8はPC入力バス9を
ラツチするのでPC入力バス9に出力されている
プログラム起動アドレス値1aがPC8に取り込
まれPC出力バス10に出力される。PC出力バス
10は内蔵ROM3、外部プログラムメモリー4
およびPCデコーダー11に接続されている。PC
デコーダー11はPC出力バス10の値をデコー
ドしてプログラムメモリー選択信号27を出力す
る。
First, program start address value 1 and interrupt program start address value 2 are built-in.
The state set in ROM3 will be explained. When the switch 28 of the change control signal generating means 6 is closed, the change control signal 7, which had been at logic "1" (hereinafter referred to as "1") due to the pull-up resistor, becomes logic "0".
(hereinafter referred to as "0"). As a result, the outputs of AND gates 13 and 15 are fixed at "0". The output of inverter 17 becomes “1” and
The outputs of gates 14 and 16 become the logic values of reset signal 24 and interrupt signal 25, respectively. If the reset signal 24 becomes "1" now,
The output of the AND gate 14 becomes "1", putting the output buffer 20 into the output state and outputting the program start address value 1a to the PC input bus 9. Reset signal 24 is also connected to OR gate 19.
Set the PC latch signal 26 to "1". When the PC latch signal 26 becomes "1", the PC 8 latches the PC input bus 9, so that the program start address value 1a outputted to the PC input bus 9 is taken into the PC 8 and outputted to the PC output bus 10. PC output bus 10 is built-in ROM 3, external program memory 4
and is connected to the PC decoder 11. PC
The decoder 11 decodes the value on the PC output bus 10 and outputs a program memory selection signal 27.

この実施例ではPC出力バスに「0000」から
「0FFF」の値があればプログラムメモリー選択
信号27は内蔵ROM3を選択するように“1”
となり、「1000」から「FFFF」の値があれば外
部プログラムメモリー4を選択するように“0”
となる。現在PC出力バス10の値は「0000」で
あるからプログラムメモリー選択信号27は内蔵
ROM3を選択しており、内蔵ROM3はPC出力
バス10の値に従つて「0000」番地のメモリー内
容をインストラクシヨンバス12に出力する。こ
の時外部プログラムメモリー4はインバータ18
を通つたプログラムメモリー選択信号27を与え
られている為非選択状態にある。
In this embodiment, if the PC output bus has a value from "0000" to "0FFF", the program memory selection signal 27 is set to "1" to select the built-in ROM 3.
So, if there is a value between “1000” and “FFFF”, it will be “0” to select external program memory 4.
becomes. Since the current value of PC output bus 10 is "0000", program memory selection signal 27 is built-in.
The built-in ROM 3 outputs the memory contents at address "0000" to the instruction bus 12 according to the value on the PC output bus 10. At this time, the external program memory 4 is connected to the inverter 18.
It is in a non-selected state because it is given the program memory selection signal 27 that passes through the memory.

次にスイツチ28を閉じたままでインタラプト
信号25が“1”になつた場合を考える。インタ
ラプト信号25が“1”になるとANDゲート1
6の出力は“1”となり出力バツフア22を出力
状態にし、インタラプトプログラム起動アドレス
値2aをPC入力バス9に出力する。インタラプ
ト信号25はまたORゲート19に接続されてお
りPCラツチ信号26を“1”にする。以下リセ
ツト信号の時と同様にして内蔵ROM3の
「0040」番地のメモリー内容をインストラクシヨ
ンバス12に出力する。
Next, consider the case where the interrupt signal 25 becomes "1" while the switch 28 remains closed. When the interrupt signal 25 becomes “1”, AND gate 1
The output of 6 becomes "1", puts the output buffer 22 into the output state, and outputs the interrupt program start address value 2a to the PC input bus 9. Interrupt signal 25 is also connected to OR gate 19 and causes PC latch signal 26 to be "1". Thereafter, the memory contents at address "0040" in the built-in ROM 3 are output to the instruction bus 12 in the same manner as in the case of the reset signal.

次にプログラム起動アドレス値1およびインタ
ラプトプログラム起動アドレス値2が外部プログ
ラムメモリー4内に設定される状態を説明する。
変更制御信号発生手段6のスイツチ28を開くと
変更制御信号7はプルアツプ抵抗29により
“1”になる。これによりインバータ17の出力
は“0”になつてANDゲート14および16の
出力は“0”に固定される。変更制御信号7が
“1”であることからANDゲート13および15
の出力はそれぞれリセツト信号24およびインタ
ラプト信号25の論理値となる。いまリセツト信
号24が“1”になるとANDゲート13の出力
は“1”となり出力バツフア21を出力状態に
し、プログラム起動アドレス値1bをPC入力バ
ス9に出力する。リセツト信号24はまたPCラ
ツチ信号26を“1”にしてPC8にプログラム
起動アドレス値1bをラツチさせる。PC8にラ
ツチされたプログラム起動アドレス値1bはPC
出力バス10に出力され、PCデコーダ11はそ
の値をデコードしてプログラムメモリー選択信号
27を出力する。この場合プログラム起動アドレ
ス値1bは「1000」であるから前述のようにプロ
グラムメモリー選択信号27は“0”となりイン
バータ18の出力が“1”となることによつて外
部プログラムメモリー4が選択される。外部プロ
グラムメモリー4はPC出力バス10の値に従つ
て「1000」番地のメモリー内容をインストラクシ
ヨンバス12に出力する。この時内蔵プログラム
は非選択状態にある。
Next, the state in which the program start address value 1 and the interrupt program start address value 2 are set in the external program memory 4 will be explained.
When the switch 28 of the change control signal generating means 6 is opened, the change control signal 7 is set to "1" by the pull-up resistor 29. As a result, the output of inverter 17 becomes "0" and the outputs of AND gates 14 and 16 are fixed at "0". Since the change control signal 7 is “1”, AND gates 13 and 15
The outputs thereof become the logic values of the reset signal 24 and interrupt signal 25, respectively. Now, when the reset signal 24 becomes "1", the output of the AND gate 13 becomes "1", putting the output buffer 21 in the output state and outputting the program starting address value 1b to the PC input bus 9. The reset signal 24 also sets the PC latch signal 26 to "1", causing the PC 8 to latch the program starting address value 1b. The program start address value 1b latched to PC8 is PC
The value is output to the output bus 10, and the PC decoder 11 decodes the value and outputs the program memory selection signal 27. In this case, since the program start address value 1b is "1000", the program memory selection signal 27 becomes "0" and the output of the inverter 18 becomes "1", so that the external program memory 4 is selected. . The external program memory 4 outputs the memory contents at address "1000" to the instruction bus 12 according to the value on the PC output bus 10. At this time, the built-in program is in a non-selected state.

次にスイツチ28を開いたままでインタラプト
信号25が“1”になつた場合を考える。インタ
ラプト信号25が“1”になるとANDゲート1
5の出力は“1”となり出力バツフア23を出力
状態にし、インタラプトプログラム起動アドレス
値2bをPC入力バス9に出力する。インタラプ
ト信号25はまたPCラツチ信号26を“1”に
してPC8にインタラプトプログラム起動アドレ
ス値2bをラツチさせPC出力バス10に出力さ
せる。PCデコーダ11はインタラプトプログラ
ム起動アドレス値2bの値「1040」をデコードし
てプログラムメモリー選択信号27を“0”にす
る。これによつて外部プログラムメモリー4は
「1040」番地のメモリー内容をインストラクシヨ
ンバス12に出力する。
Next, consider the case where the interrupt signal 25 becomes "1" while the switch 28 remains open. When the interrupt signal 25 becomes “1”, AND gate 1
5 becomes "1", putting the output buffer 23 into the output state and outputting the interrupt program starting address value 2b to the PC input bus 9. The interrupt signal 25 also sets the PC latch signal 26 to "1", causing the PC 8 to latch the interrupt program starting address value 2b and output it to the PC output bus 10. The PC decoder 11 decodes the value "1040" of the interrupt program starting address value 2b and sets the program memory selection signal 27 to "0". As a result, the external program memory 4 outputs the memory contents at address "1040" to the instruction bus 12.

以上の実施例において内蔵ROM3はPC8のア
ドレス値によつて選択又は非選択状態を定められ
ており、内蔵ROM3の中にあるプログラムを実
行する事は変更制御信号7の論理値にかかわらず
可能となつている。
In the above embodiment, the built-in ROM 3 is selected or unselected depending on the address value of the PC 8, and it is possible to execute the program in the built-in ROM 3 regardless of the logical value of the change control signal 7. It's summery.

第3図の実施例において、スイツチ28はチツ
プ上のパターンによる等価的なスイツチでもよい
し、変更制御信号発生手段6はプログラムによる
セツト、リセツトが可能なフリツプフロツプでも
よい。またインタラプトプログラム起動アドレス
2を複数用意したい時には、インタラプトプログ
ラム起動アドレス2a,2b,ANDゲート15,
16および出力バツフア22,23を1組として
これを増してやれば良い。
In the embodiment of FIG. 3, the switch 28 may be an equivalent switch based on a pattern on the chip, and the change control signal generating means 6 may be a flip-flop that can be set and reset by a program. Also, when you want to prepare multiple interrupt program startup addresses 2, interrupt program startup addresses 2a, 2b, AND gate 15,
16 and the output buffers 22 and 23 as one set and the number may be increased.

以上の様に本発明ではプログラム起動アドレス
値およびインタラプトプログラム起動アドレス値
が内蔵ROM又は外部プログラムメモリーのどち
らの範囲内にあつても内蔵ROM内のプログラム
を実行することができる。
As described above, in the present invention, the program in the built-in ROM can be executed regardless of whether the program start address value and the interrupt program start address value are within the range of the built-in ROM or the external program memory.

すなわち、外部プログラムメモリーから起動し
ても内蔵ROM内のプログラムを実行できるとい
うことであり、例えば内蔵ROM内に各種のアプ
リケーシヨンで共通に使われるようなプログラム
をサブルーチン化して書き込んだチツプがあれば
そのチツプを多くのユーザーが共通に使うことが
できるということである。
In other words, programs in the built-in ROM can be executed even when booted from external program memory.For example, if the built-in ROM has a chip containing subroutines of programs that are commonly used in various applications. This means that the chip can be shared by many users.

この場合、ユーザーは独自に開発したプログラ
ムを外部プログラムメモリーに書き込むが、この
際内蔵ROM内のプログラムを利用できることか
ら既存の複数チツプで構成するマイクロコンピユ
ータと比較してプログラム開発工数の節約と外部
プログラムメモリーの節約の効果が期待できる。
また、このようなチツプはメーカーから見た時、
ROMマスク費用の1個当りの換算費用を小さく
見積ることができ、このことは既存の1チツプマ
イクロコンピユータで存在した少量使用ユーザー
へのコストデメリツトを解消することにつなが
る。すなわち、既存の1チツプマイクロコンピユ
ータに存在している少量使用ユーザーへの不適当
性は本発明によつて解消することができる。この
ことにより、大量使用ユーザーから少量使用ユー
ザーにわたるまで本発明による1チツプマイクロ
コンピユータが使用されるようになればソフトウ
エアの蓄積効果(プログラムの蓄積、人的能力の
蓄積等)および開発システムの標準化等により、
ソフトウエア開発費用を軽減できるという効果も
生じる。
In this case, the user writes an independently developed program to external program memory, but since the program in the built-in ROM can be used at this time, compared to existing microcomputers configured with multiple chips, the user can save program development time and write the external program memory. You can expect the effect of saving memory.
Also, from the manufacturer's point of view, such chips
The ROM mask cost per unit can be estimated to be small, which leads to eliminating the cost disadvantage for users who use small amounts of existing 1-chip microcomputers. That is, the present invention can eliminate the unsuitability of existing one-chip microcomputers for users who use them in small quantities. As a result, if the one-chip microcomputer according to the present invention is used from large-volume users to small-volume users, the effects of software accumulation (accumulation of programs, accumulation of human ability, etc.) and the standardization of development systems will be achieved. etc.,
This also has the effect of reducing software development costs.

また、本発明はリセツト後、インタラプト時に
プログラム起動アドレス値を選択的に変更するこ
とにより、内部プログラムメモリーのような固定
的なプログラム格納エリアでの起動シーケンスを
外部プログラムメモリーのような可変的なプログ
ラム格納エリアへ持つていくことができるので、
つまりイニシヤル後の初期化や割り込みに対応す
るルーチン等、システムの性格、働きを決定する
重要な部分を可変的エリアに格納することもでき
るので、システムの変更が容易にできる効果があ
る。
Furthermore, by selectively changing the program start address value at the time of an interrupt after a reset, the present invention changes the start sequence in a fixed program storage area such as an internal program memory to a variable program storage area such as an external program memory. You can take it to the storage area, so
In other words, important parts that determine the character and function of the system, such as initialization after initialization and routines corresponding to interrupts, can be stored in the variable area, which has the effect of making it easier to change the system.

さらに、例えばチツプ内蔵の内部のプログラム
メモリーにサブルーチンセツトとかOSの主要な
ソフトを入れておけば、BIOSやその他の製品毎
に特徴付ける必要のあるソフトを外部プログラム
メモリーに入れることにより種々の製品を作るこ
ともできる。この際、共通ソフトを内蔵した1チ
ツプマイクロコンピユータを用意することにより
大幅なコストダウンが達成できるものである。
Furthermore, for example, if you store a subroutine set or the main software of the OS in the internal program memory built into the chip, you can create a variety of products by storing the BIOS and other software that needs to be characterized for each product in the external program memory. You can also do that. In this case, by preparing a one-chip microcomputer with built-in common software, a significant cost reduction can be achieved.

上記の説明では、内蔵ROMをメーカーが用意
する場合を述べたが、数種類の製品を取扱うユー
ザーの場合、それぞれで使用するプログラムを共
通化してユーザーの側から標準プログラム内蔵の
1チツプマイクロコンピユータを作つてもよいわ
けであり、ユーザーのフアームウエアがチツプ上
に固定されるということが言える。
In the above explanation, we have described the case where the manufacturer prepares the built-in ROM, but in the case of a user who handles several types of products, the user can create a one-chip microcomputer with a built-in standard program by standardizing the programs used by each product. It can be said that the user's firmware is fixed on the chip.

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

第1図イ,ロは従来のプログラム起動アドレス
値およびインタラプトプログラム起動アドレス値
の内蔵ROMと外部プログラムメモリーとの変更
に関する概要図、第2図イ,ロは本発明のプログ
ラム起動アドレス値およびインタラプトプログラ
ム起動アドレス値の内蔵ROMと外部プログラム
メモリーとの変更に関する概要図、第3図は本発
明の実例を示す図である。 1はプログラム起動アドレス値、2はインタラ
プトプログラム起動アドレス値、3は内蔵
ROM、4は外部プログラムメモリー、5はプロ
グラム起動アドレス値およびインタラプトプログ
ラム起動アドレス値変更手段、6は変更制御信号
発生手段、7は変更制御信号である。
Figures 1A and 2B are a schematic diagram of the conventional program start address value and interrupt program start address value changing between built-in ROM and external program memory, and Figure 2A and 2B are the program start address value and interrupt program of the present invention. FIG. 3 is a schematic diagram of changing the starting address value between the built-in ROM and the external program memory, and is a diagram showing an example of the present invention. 1 is program start address value, 2 is interrupt program start address value, 3 is built-in
ROM, 4 is an external program memory, 5 is program start address value and interrupt program start address value changing means, 6 is change control signal generating means, and 7 is a change control signal.

Claims (1)

【特許請求の範囲】[Claims] 1 リードオンリーメモリーを内部プログラムメ
モリーとしてチツプに内蔵した1チツプマイクロ
コンピユータにおいて、前記内部プログラムメモ
リー内の第1アドレスを示す内部プログラム起動
アドレス値及び前記チツプとは別に設けられる外
部プログラムメモリー内の第2アドレスを示す外
部プログラム起動アドレス値が設定されているプ
ログラム起動アドレス値設定手段、前記内部プロ
グラムメモリー内の第3アドレスを示す内部イン
タラプトプログラム起動アドレス値及び前記外部
プログラムメモリー内の第4アドレスを示す外部
インタラプトプログラム起動アドレス値が設定さ
れているインタラプトプログラム起動アドレス値
設定手段、リセツト信号の入力を条件とし、かつ
アドレス値の変更制御信号発生手段から出力され
る変更制御信号に応じて前記内部プログラム起動
アドレス値と前記外部プログラム起動アドレス値
とのうちどちらか一方のプログラム起動アドレス
値を出力する第1出力バツフア、インタラプト信
号の入力を条件とし、かつ前記変更制御信号に応
じて前記内部インタラプトプログラム起動アドレ
ス値と前記外部インタラプトプログラム起動アド
レス値とのうちどちらか一方のインタラプトプロ
グラム起動アドレス値を出力する第2出力バツフ
ア、前記第1出力バツフアから出力される前記プ
ログラム起動アドレス値及び前記第2出力バツフ
アから出力される前記インタラプトプログラム起
動アドレス値に基づいて前記内部プログラムメモ
リーと前記外部プログラムメモリーとのうちどち
らか一方を選択するプログラムメモリー選択手段
を有することを特徴とする1チツプマイクロコン
ピユータ。
1. In a one-chip microcomputer with a read-only memory built into the chip as an internal program memory, an internal program starting address value indicating a first address in the internal program memory and a second address in an external program memory provided separately from the chip. a program start address value setting means having an external program start address value indicating an address; an internal interrupt program start address value indicating a third address in the internal program memory; and an external program start address value indicating a fourth address in the external program memory. The interrupt program start address value setting means, in which the interrupt program start address value is set, sets the internal program start address according to the change control signal output from the address value change control signal generation means, with the input of the reset signal as a condition. a first output buffer that outputs one of the program start address value and the external program start address value, the internal interrupt program start address value on condition that an interrupt signal is input, and in response to the change control signal; and a second output buffer that outputs one of the interrupt program startup address values from the external interrupt program startup address value, the program startup address value output from the first output buffer, and output from the second output buffer. 1. A one-chip microcomputer comprising program memory selection means for selecting either the internal program memory or the external program memory based on the interrupt program start address value.
JP55146510A 1980-10-20 1980-10-20 One-chip microcomputer Granted JPS5771049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55146510A JPS5771049A (en) 1980-10-20 1980-10-20 One-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55146510A JPS5771049A (en) 1980-10-20 1980-10-20 One-chip microcomputer

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP63324565A Division JPH0256025A (en) 1988-12-22 1988-12-22 One chip microcomputer

Publications (2)

Publication Number Publication Date
JPS5771049A JPS5771049A (en) 1982-05-01
JPH0155497B2 true JPH0155497B2 (en) 1989-11-24

Family

ID=15409257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55146510A Granted JPS5771049A (en) 1980-10-20 1980-10-20 One-chip microcomputer

Country Status (1)

Country Link
JP (1) JPS5771049A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5965356A (en) * 1982-10-05 1984-04-13 Nec Corp Single-chip microcomputer
US4649471A (en) * 1983-03-01 1987-03-10 Thomson Components-Mostek Corporation Address-controlled automatic bus arbitration and address modification
DE117837T1 (en) * 1983-03-01 1985-01-17 Mostek Corp., Carrollton, Tex. USER PROGRAMMABLE BUS CONFIGURATION FOR MICROCOMPUTER.
JPS59216263A (en) * 1983-05-24 1984-12-06 Matsushita Electric Ind Co Ltd External rom extension controlling circuit of microcomputer
JPH0769791B2 (en) * 1988-12-21 1995-07-31 三菱電機株式会社 Microprocessor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5194731A (en) * 1975-02-18 1976-08-19

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5194731A (en) * 1975-02-18 1976-08-19

Also Published As

Publication number Publication date
JPS5771049A (en) 1982-05-01

Similar Documents

Publication Publication Date Title
US4878174A (en) Flexible ASIC microcomputer permitting the modular modification of dedicated functions and macroinstructions
JPH0221018B2 (en)
JPH0519738B2 (en)
JP4226085B2 (en) Microprocessor and multiprocessor system
JPS6322336B2 (en)
JPS6313223B2 (en)
EP0599012A2 (en) Extensible central processing unit
US5274791A (en) Microprocessor with OEM mode for power management with input/output intiated selection of special address space
US4947478A (en) Switching control system for multipersonality computer system
JPH0155497B2 (en)
JP2621894B2 (en) Microcomputer
JPH0567969B2 (en)
JP3182906B2 (en) Microcomputer
JP2731618B2 (en) emulator
JPH0934748A (en) Microcomputer for emulation
JP2597409B2 (en) Microcomputer
JP3283505B2 (en) Microcomputer
JPH06103106A (en) Program debug device
JP3547012B2 (en) Microcomputer
WO2000062162A2 (en) Method and system for updating user memory in emulator systems
JP3006487B2 (en) Emulation device
JP2003296130A (en) Microcomputer
JP2768677B2 (en) Test control circuit for single-chip microcomputer
JPH0776896B2 (en) Integrated circuit
JPH0683986A (en) Single chip microcomputer