Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0567969B2 - - Google Patents
[go: Go Back, main page]

JPH0567969B2 - - Google Patents

Info

Publication number
JPH0567969B2
JPH0567969B2 JP63324565A JP32456588A JPH0567969B2 JP H0567969 B2 JPH0567969 B2 JP H0567969B2 JP 63324565 A JP63324565 A JP 63324565A JP 32456588 A JP32456588 A JP 32456588A JP H0567969 B2 JPH0567969 B2 JP H0567969B2
Authority
JP
Japan
Prior art keywords
address
program
interrupt
memory
address value
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 - Lifetime
Application number
JP63324565A
Other languages
Japanese (ja)
Other versions
JPH0256025A (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 JP63324565A priority Critical patent/JPH0256025A/en
Publication of JPH0256025A publication Critical patent/JPH0256025A/en
Publication of JPH0567969B2 publication Critical patent/JPH0567969B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Stored Programmes (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 items can only be started from within the ROM, and some can be activated by setting the switching input terminal before starting.
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, and the booting address value comes to indicate external program memory 4, so that 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 the 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 the 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 unsuitability for users who use small quantities, and provides a one-chip microcomputer that can reduce software development costs by using the same microcomputer for both mass-produced products and small-volume products. The purpose is to provide a microcomputer.

以下実施例に基づいて本発明を詳しく説明す
る。
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が割当られたアドレス範囲(第第1のアドレス
エリア)を「0000」番地から「0FFF」番地まで
とし、外部プログラムメモリー4が割当られたア
ドレス範囲(第2のアドレスエリア)を「1000」
番地から「FFFF」番地までとする。
From now on, the address value will be expressed in hexadecimal, and the address value will be expressed as a hexadecimal number.
The address range (first address area) to which external program memory 4 is allocated is from address "0000" to address "0FFF", and the address range (second address area) to which external program memory 4 is allocated is "1000".
From address to "FFFF" address.

第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はインタラプトプログラム起動アド
レス値、2aは内蔵ROM3内のメモリーを示す
ように設定されたインタラプトプログラム起動ア
ドレス値(「0040」)、2bは外部プログラムメモ
リー4内のメモリー示すように設定されたインタ
ラプトプログラム起動アドレス値(「1040」)、3
は内蔵ROM、4は外部プログラムメモリー、5
はプログラム起動アドレス値およびインタラプト
プログラム起動アドレス値変更手段、6は変更制
御信号発生手段、7は変更制御信号、8はプログ
ラムカウンタ(以下PCという)、9はPC入力バ
ス、10はPC出力バス、11はPCデコーダー、
12はインストラクシヨンバス、13,14,1
5,16は論理積ゲート(以下ANDゲートとい
う)、17,18はインバーター、19は論理和
ゲート(以下ORゲートという)、20,21,
22,23は出力バツフア、24はリセツト信
号、25はインタラプト信号、26はPCラツチ
信号、27はプログラムメモリー選択信号、28
はスイツチ、29はプルアツプ抵抗である。
FIG. 3 shows a specific example 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 set to indicate the memory in external program memory 4 ("1000"), 2 is the interrupt program start The address value 2a is the interrupt program start address value ("0040") set to indicate the memory in the internal ROM 3, and 2b is the interrupt program start address value ("0040") set to indicate the memory in the external program memory 4. 1040''), 3
is built-in ROM, 4 is external program memory, 5 is
6 is a change control signal generating 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 a PC output bus, 11 is a PC decoder,
12 is the instruction bus, 13, 14, 1
5 and 16 are AND gates (hereinafter referred to as AND gates), 17 and 18 are inverters, 19 is an OR gate (hereinafter referred to as OR gate), 20, 21,
22 and 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に出力される。リセツ
ト解除後(起動後)は通常のマイクロコンピユー
タ同様、内部あるいは外部プログラムメモリーの
命令実行に応じて発生されるアドレス値がPC8
に逐次取り込まれてPC出力バス10に出力され
る。PC出力バス10は内蔵ROM3、外部プログ
ラムメモリー4およびPCデコーダー11に接続
されている。PCデコーダー11はPC出力バス1
0の値をデコードしてプログラムメモリー選択信
号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”
The outputs of AND gates 14 and 16 become the logic values of reset signal 24 and interrupt signal 25, respectively. Now, when the reset signal 24 becomes "1", the output of the AND gate 14 becomes "1", putting the output buffer 20 in the output state and outputting the program starting address value 1a to the PC input bus 9. It is connected to the reset signal 24 or OR gate 19 and sets 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. After the reset is released (after startup), the address value generated in response to the execution of an instruction in the internal or external program memory is PC8, just like a normal microcomputer.
The data are sequentially taken in and output to the PC output bus 10. PC output bus 10 is connected to built-in ROM 3, external program memory 4 and PC decoder 11. PC decoder 11 is PC output bus 1
A value of 0 is decoded and a program memory selection signal 27 is output.

この実施例では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 in a non-selected state because it is supplied with the memory selection signal 27 through the inverter 18.

次にスイツチ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 AND gates 14 and 16
The output of is fixed to "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 in accordance with 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 start address value 2b and output it to the PC output bus 10. The PC decoder 11 decodes the value "1040" of the interrupt program start address value 2b. Then, the program memory selection signal 27 is set 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, according to the present invention, the program in the built-in ROM can be executed even if the program start address value and the interrupt program start address value are within the range of either 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 cost per unit of ROM mask can be estimated to be small, which leads to eliminating the cost disadvantage for users who use small quantities, which existed with 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, the present invention changes the startup 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 by changing the program startup address value at the time of an interrupt after a reset. You can take it to the 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 store the BIOS and other software that needs to be characterized for each product in the external program memory, allowing you to use various products. You can also make one. 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 form wear 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 embodiment 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)

【特許請求の範囲】 1 リードオンリーメモリーを内部プログラムメ
モリーとしてチツプに内蔵した1チツプマイクロ
コンピユータにおいて、 前記内部プログラムメモリーが割当られた第1
のアドレスエリア内の第1アドレスを示す内部プ
ログラム起動アドレス値及び前記チツプとは別に
設けられる外部プログラムメモリーが割当られた
第2のアドレスエリア内の第2アドレスを示す外
部プログラム起動アドレス値が設定されているプ
ログラム起動アドレス値設定手段と、 前記第1のアドレスエリア内の第3アドレスを
示す複数の内部インタラプトプログラム起動アド
レス値及び前記第2のアドレスエリア内の第4ア
ドレスを示す複数の外部インタラプト起動アドレ
スエリア値が設定されているインタラプトプログ
ラム起動アドレス値設定手段と、 リセツト信号の入力とアドレス値の変更制御信
号発生手段から出力される変更制御信号に応じて
前記内部プログラム起動アドレス値と前記外部プ
ログラム起動アドレス値のどちらか一方のプログ
ラム起動アドレス値を出力する第1の出力バツフ
アと、 インタラプト信号の入力時にプログラム起動ア
ドレス値変更制御信号発生手段からの変更制御信
号に応じて前記インタラプトプログラム起動アド
レス値設定手段から前記第3アドレスあるいは前
記第4アドレスのいずれか一方の前記インタラプ
ト信号に対応した一つのアドレスを示す値をプロ
グラムカウンタ入力バスに出力する第2の出力バ
ツフアと、 前記リセツト信号入力時または前記インタラプ
ト信号入力時に前記プログラムカウンタ入力バス
上の前記第1、第2、第3、あるいは第4アドレ
スをラツチし、前記リセツト信号入力時あるいは
前記インタラプト信号入力時以外では前記第1の
アドレスエリアあるいは前記第2のアドレスエリ
ア内のアドレスをラツチするプログラムカウンタ
と、 前記プログラムカウンタにラツチされたアドレ
スをデコードして前記内部プログラムメモリーと
前記外部プログラムメモリーのどちらが応答する
かを決定するプログラムメモリー選択信号を発生
するデコーダと、 前記プログラムカウンタにラツチされたアドレ
スを前記内部プログラムメモリーと前記外部プロ
グラムメモリーと前記デコーダに出力する出力バ
スを有することを特徴とする1チツプマイクロコ
ンピユータ。
[Scope of Claims] 1. In a one-chip microcomputer in which a read-only memory is built into a chip as an internal program memory, a first memory to which the internal program memory is allocated is provided.
An internal program start address value indicating a first address in an address area of the chip and an external program start address value indicating a second address in a second address area to which an external program memory provided separately from the chip is allocated are set. a plurality of internal interrupt program start address values indicating a third address in the first address area and a plurality of external interrupt program start address values indicating a fourth address in the second address area; The internal program starting address value and the external program are set in response to a change control signal output from an interrupt program starting address value setting means in which an address area value is set, and a reset signal input and an address value change control signal generating means. a first output buffer that outputs one of the program startup address values; and a first output buffer that outputs one of the program startup address values, and the interrupt program startup address value in response to a change control signal from a program startup address value change control signal generation means when an interrupt signal is input. a second output buffer for outputting a value indicating one address corresponding to the interrupt signal, either the third address or the fourth address, from the setting means to the program counter input bus; and when the reset signal is input or When the interrupt signal is input, the first, second, third, or fourth address on the program counter input bus is latched, and when the reset signal is input or the interrupt signal is input, the first address area or the fourth address is latched. a program counter that latches an address in the second address area; and a program memory selection signal that decodes the address latched in the program counter to determine whether the internal program memory or the external program memory responds. 1. A one-chip microcomputer comprising: a decoder for generating the program counter; and an output bus for outputting the address latched in the program counter to the internal program memory, the external program memory, and the decoder.
JP63324565A 1988-12-22 1988-12-22 1 chip microcomputer Granted JPH0256025A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
JPH0256025A JPH0256025A (en) 1990-02-26
JPH0567969B2 true JPH0567969B2 (en) 1993-09-28

Family

ID=18167231

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH0256025A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2731618B2 (en) * 1990-02-28 1998-03-25 日本電気アイシーマイコンシステム株式会社 emulator

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5452430A (en) * 1977-10-03 1979-04-25 Nec Corp Address switching unit
JPS5597641A (en) * 1979-01-19 1980-07-25 Nec Corp Address generator

Also Published As

Publication number Publication date
JPH0256025A (en) 1990-02-26

Similar Documents

Publication Publication Date Title
US4878174A (en) Flexible ASIC microcomputer permitting the modular modification of dedicated functions and macroinstructions
JPH0221018B2 (en)
JP4226085B2 (en) Microprocessor and multiprocessor system
US5155819A (en) Flexible ASIC microcomputer permitting the modular modification of dedicated functions and macroinstructions
JPS6313223B2 (en)
EP0599012B1 (en) Extensible central processing unit
US5274791A (en) Microprocessor with OEM mode for power management with input/output intiated selection of special address space
JPH0395650A (en) Cache inoperative address random access memory
US4947478A (en) Switching control system for multipersonality computer system
JPH0155497B2 (en)
JP2621894B2 (en) Microcomputer
JPH0567969B2 (en)
US5826059A (en) Microcomputer for emulation
JP2731618B2 (en) emulator
JP3182906B2 (en) Microcomputer
JP3547012B2 (en) Microcomputer
JPH04280334A (en) One chip microcomputer
JPH06103106A (en) Program debug device
EP0335502A2 (en) Microcontroller and associated method
JP3006487B2 (en) Emulation device
JP3283505B2 (en) Microcomputer
JPH0776896B2 (en) Integrated circuit
JPH09198272A (en) Emulation processor and emulator
JPH02159613A (en) Microcomputer
WO1996008775A1 (en) Software programmable bus disable system