JP2581057B2 - Evaluation microcomputer - Google Patents

Evaluation microcomputer

Info

Publication number
JP2581057B2
JP2581057B2 JP62043462A JP4346287A JP2581057B2 JP 2581057 B2 JP2581057 B2 JP 2581057B2 JP 62043462 A JP62043462 A JP 62043462A JP 4346287 A JP4346287 A JP 4346287A JP 2581057 B2 JP2581057 B2 JP 2581057B2
Authority
JP
Japan
Prior art keywords
program
evaluation
memory
microcomputer
program counter
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
JP62043462A
Other languages
Japanese (ja)
Other versions
JPS63208950A (en
Inventor
一悦 ▲桑▼原
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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62043462A priority Critical patent/JP2581057B2/en
Publication of JPS63208950A publication Critical patent/JPS63208950A/en
Application granted granted Critical
Publication of JP2581057B2 publication Critical patent/JP2581057B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は評価用マイクロコンピュータに係り、特に1
チップマイクロコンピュータのプログラムを評価するた
めの評価用マイクロコンピュータに関する。
The present invention relates to an evaluation microcomputer, and more particularly to an evaluation microcomputer.
The present invention relates to an evaluation microcomputer for evaluating a program of a chip microcomputer.

[従来の技術] 近年、プログラム命令を内部のプログラムメモリに記
憶させた1チップマイクロコンピュータが多様な機器に
採用されるようになり、1チップマイクロコンピュータ
も適用される機器で必要とされるプログラム命令のステ
ップ数に対応して基本的な機能は同一でもプログラムメ
モリの記憶容量に変化を持たせ、1チップマイクロコン
ピュータを実現される半導体基板の寸法を適宜選択し、
1チップマイクロコンピュータの製造コスト等の低下を
図っている。
[Related Art] In recent years, one-chip microcomputers in which program instructions are stored in an internal program memory have been adopted in various devices, and program instructions required in devices to which one-chip microcomputers are also applied. In accordance with the number of steps, the basic function is the same, but the storage capacity of the program memory is changed, and the dimensions of the semiconductor substrate for realizing the one-chip microcomputer are appropriately selected.
The manufacturing cost of a one-chip microcomputer is reduced.

従って、上記ファミリー化された1チップマイクロコ
ンピュータに内蔵するプログラム命令を評価する際に
は、プログラム開発ツールに実装される評価用マイクロ
コンピュータで同一ファミリー内の全てのプログラム命
令を評価をしなくてはならず、そこで従来の評価用マイ
クロコンピュータは同一ファミリー内の最大のプログラ
ムメモリ容量のものと同一のプログラムメモリ容量に設
計しておき、実際の評価時にプログラムメモリを評価対
象の1チップマイクロコンピュータのプログラムメモリ
容量と同一の値に制限して使用していた。
Therefore, when evaluating the program instructions contained in the family one-chip microcomputer, all the program instructions in the same family must be evaluated by the evaluation microcomputer mounted on the program development tool. Therefore, the conventional microcomputer for evaluation is designed to have the same program memory capacity as that of the largest program memory capacity in the same family, and the program memory is stored in the program memory of the one-chip microcomputer to be evaluated during the actual evaluation. It was used by limiting it to the same value as the memory capacity.

かかる従来の評価用マイクロコンピュータにおけるプ
ログラムメモリの容量制限としては以下に説明する方式
が知られている。まず第1の方式ではファミリーを構成
する1チップマイクロコンピュータの種類数に対応する
外部ピンを予め設けておき、それらの外部ピンに供給さ
れる信号に基づき評価用マイクロコンピュータがメモリ
容量に関するデータを判別し、使用できるメモリ容量を
決定する方式である。
The following method is known as the capacity limitation of the program memory in such a conventional evaluation microcomputer. First, in the first method, external pins corresponding to the number of types of one-chip microcomputers constituting a family are provided in advance, and an evaluation microcomputer determines data relating to memory capacity based on signals supplied to the external pins. In this method, the available memory capacity is determined.

これに対して、第2の方式では、評価用マイクロコン
ピュータにメモリ容量を決定するための情報を格納する
モードレジスタを予め準備しておき、評価用マイクロコ
ンピュータの命令を使用して該モードレジスタにメモリ
容量を決定するための情報を格納させて使用できるメモ
リ容量を決定していた。
On the other hand, in the second method, a mode register for storing information for determining the memory capacity is prepared in the evaluation microcomputer in advance, and the mode register is stored in the mode register using an instruction from the evaluation microcomputer. A memory capacity that can be used by storing information for determining the memory capacity has been determined.

[発明が解決しようとする問題点] しかしながら、上記従来の評価用マイクロコンピュー
タでは、プログラムメモリの容量を制限するために上記
第1の方式を採用すると、外部ピン数が増加するという
難点を有する。例えば、同一ファミリーを構成する1チ
ップマイクロコンピュータが4種類なら2本の外部ピン
を必要としており、8種類なら3本の外部ピンを必要と
する。従って、上記第1の方式を採用すると外部ピン数
が増加し、大型で高価なものになるという問題点を発生
させる。
[Problems to be Solved by the Invention] However, in the above-described conventional evaluation microcomputer, when the first method is employed to limit the capacity of the program memory, there is a problem that the number of external pins increases. For example, if there are four types of one-chip microcomputers constituting the same family, two external pins are required, and if eight types, three external pins are required. Therefore, when the first method is adopted, the number of external pins increases, which causes a problem that the device becomes large and expensive.

これに対して、上記第2の方式を採用すると、モード
レジスタにメモリ容量に関する情報を書き込む間に評価
が中断し、評価対象のプログラムの正確な評価がなされ
ないという問題点が発生する。即ち、モードレジスタに
メモリ容量に関する情報を書き込むにはリセット信号の
入力された間にプログラムの評価を一時中断し、メモリ
容量に関する情報をモードレジスタに書き込む。ところ
が、マイクロコンピュータにはリセット時にスタンバイ
モード等の特殊モードを経過するような仕様を有するも
のも多いので、上記モードレジスタの書き込みによりプ
ログラムの評価を中断すると正確な評価を行えないこと
になる。
On the other hand, when the above-described second method is adopted, the evaluation is interrupted while the information on the memory capacity is written in the mode register, and a problem occurs that the evaluation target program is not accurately evaluated. That is, to write information about the memory capacity to the mode register, the evaluation of the program is temporarily suspended while the reset signal is input, and the information about the memory capacity is written to the mode register. However, many microcomputers have a specification such that a special mode such as a standby mode is passed at the time of reset. Therefore, if the evaluation of the program is interrupted by writing the mode register, accurate evaluation cannot be performed.

本発明は上記従来の問題点に着目してなされたもので
あり、外部ピンを増加させることなく、しかも正確なプ
ログラムの評価が可能な評価用マイクロコンピュータを
提供せんとするものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned conventional problems, and an object of the present invention is to provide an evaluation microcomputer capable of accurately evaluating a program without increasing the number of external pins.

[問題点を解決するための手段] 本願発明の要旨は、アドレス指定可能な命令コードを
記憶するのに必要な容量を超える記憶容量を有するプロ
グラムメモリのアドレスを指定するプログラムカウンタ
と、該プログラムカウンタで指定される命令コードを読
み出し検査する検査手段とを備えた評価用マイクロコン
ピュータにおいて、評価対象となる命令コードを保持す
る記憶容量に関するデータを評価用マイクロコンピュー
タの初期化時に上記プログラムカウンタに設定される所
定アドレスに記憶させておくとともに、該データを記憶
し上記プログラムカウンタを制御するモードレジスタ
と、上記初期化時に発生する初期リセット信号に応答し
て上記モードレジスタに書き込み信号を供給する書き込
み手段とを有することである。
[Means for Solving the Problems] The gist of the present invention is to provide a program counter for specifying an address of a program memory having a storage capacity exceeding a storage capacity required for storing an addressable instruction code, and the program counter. And an inspection means for reading and inspecting the instruction code specified in the step (a), wherein data relating to a storage capacity for holding the instruction code to be evaluated is set in the program counter when the evaluation microcomputer is initialized. A mode register that stores the data and controls the program counter, and a writing unit that supplies a write signal to the mode register in response to an initial reset signal generated at the time of initialization. It is to have.

[発明の作用] 上記構成に係る評価用マイクロコンピュータは電源投
入時など初期リセット信号が発生したときのみプログラ
ムカウンタに予め定められた値がセットされ、プログラ
ムメモリの対応アドレスからメモリ容量に関する情報が
読み出される。このメモリ容量に関する情報は初期リセ
ット信号に基づきモードレジスタに書き込まれ、プログ
ラムメモリの記憶容量の制限に供せられる。
[Operation of the Invention] In the evaluation microcomputer according to the above configuration, a predetermined value is set in the program counter only when an initial reset signal is generated, such as when the power is turned on, and information on the memory capacity is read from the corresponding address of the program memory. It is. The information on the memory capacity is written into the mode register based on the initial reset signal, and is used to limit the storage capacity of the program memory.

しかしながら、通常のリセット時にはプログラムカウ
ンタに予め定められた値がセットされることはないの
で、通常のリセット時にはメモリ容量に関する情報がモ
ードレジスタに転送されることはない。
However, at the time of a normal reset, a predetermined value is not set in the program counter, so that information on the memory capacity is not transferred to the mode register at the time of a normal reset.

[実施例] 以下、本発明の実施例を図面を参照して説明する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1実施例 第1図は本発明の第1実施例の構成を示すブロック図
である。図に於て、1は評価用マイクロコンピュータで
あり、2はクロック信号を、3は初期リセット信号を、
4はモードレジスタ読み込みクロック発生ゲートを、5
はモードレジスタをそれぞれ示している。この評価用マ
イクロコンピュータ1はプログラムカウンタ6の値をア
ドレスバス7を介してプログラムメモリ7に送出し、プ
ログラムメモリ7はプログラムカウンタ6の値により指
定されたアドレスに保持していたデータを評価用マイク
ロコンピュータ1のデコーダ等の指定されたユニットに
供給する。しかしながら、デコーダ等は本発明の理解に
関係ないので省略されている。上記プログラムメモリ7
の所定アドレスにはメモリ容量に関する情報の格納用に
予め割り当てられており、上記所定アドレスは初期リセ
ット信号の印加時にプログラムカウンタ6により指定さ
れる。
First Embodiment FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention. In the figure, 1 is an evaluation microcomputer, 2 is a clock signal, 3 is an initial reset signal,
4 is a mode register read clock generation gate, 5
Indicates a mode register. The evaluation microcomputer 1 sends the value of the program counter 6 to the program memory 7 via the address bus 7, and the program memory 7 stores the data held at the address designated by the value of the program counter 6 in the evaluation microcomputer. The data is supplied to a designated unit such as a decoder of the computer 1. However, decoders and the like are not relevant to the understanding of the present invention and are omitted. The above program memory 7
Are assigned in advance for storing information relating to the memory capacity, and the predetermined address is designated by the program counter 6 when the initial reset signal is applied.

次に第1図に示されている評価用マイクロコンピュー
タの動作を説明する。評価用マイクロコンピュータ1の
電源が投入されると、プログラムカウンタ6に予め定め
られた値がセットされ、該値に基づきプログラムメモリ
8の上記所定アドレスが指定される。その結果、所定ア
ドレスからメモリ容量に関する情報が読み出され、モー
ドレジスタ読み込みクロックゲート4は初期リセット信
号3とクロック信号2とがともにアクティブの間、モー
ドレジスタ5に書き込み信号11を供給しているので、上
記プログラムメモリ8から読みだされたメモリ容量に関
する情報はモードレジスタ5に書き込まれる。モードレ
ジスタ5は格納しているメモリ容量に関する情報に基づ
き専用信号線10を介してプログラムカウンタ6を制御
し、プログラムメモリ8のメモリ容量を制限する。初期
リセット信号は電源投入時等初期化時にのみ発生するの
で、以後、通常のリセット信号が発生してもプログラム
の評価が中断されることはない。
Next, the operation of the evaluation microcomputer shown in FIG. 1 will be described. When the power supply of the evaluation microcomputer 1 is turned on, a predetermined value is set in the program counter 6, and the predetermined address of the program memory 8 is designated based on the value. As a result, information on the memory capacity is read from the predetermined address, and the mode register read clock gate 4 supplies the write signal 11 to the mode register 5 while the initial reset signal 3 and the clock signal 2 are both active. The information on the memory capacity read from the program memory 8 is written in the mode register 5. The mode register 5 controls the program counter 6 via the dedicated signal line 10 based on the information on the stored memory capacity, and limits the memory capacity of the program memory 8. Since the initial reset signal is generated only at the time of initialization such as when the power is turned on, the evaluation of the program is not interrupted even if a normal reset signal is generated thereafter.

上記第1実施例を更に具体的に説明すれば以下の通り
になる。例えば、プログラムメモリとして消去可能読み
出し専用メモリ(以下、EPROMという)27256(32K×8
ビット)を使用するビギーバックタイプ(EPROMをマイ
クロコンピュータの上面に直接実装するタイプ)の評価
用マイクロコンピュータの場合、メモリ容量は4キロバ
イト、8キロバイト、16キロバイトの各マイクロコンピ
ュータに対処させようとすると、アドレス幅は14ビット
あれば足りるが、現在最も広く使用されているEPROM272
56、またはそれ以上のEPROMを使用すると最低15ビット
必要である。従って、実際に使用されるメモリ容量は4
キロバイト、8キロバイト、16キロバイであり、後半の
16キロバイト以上のメモリ空間は使用されない。即ち、
第2図に示されているように4キロバイト、8キロバイ
ト、16キロバイトのときは21、222、23で示されている
メモリ空間のみマイクロコンピュータのメモリとして使
用される。従って、使用されていないメモリ空間24の内
の所定アドレス、例えば7FFF番地にメモリ容量に関する
情報を記憶させておくことができる。この様な情報とし
ては、例えば4キロバイトのときは「00」、8キロバイ
トのときは「01」、16キロバイトのときは「02」とする
こともできる。かかるEPROMを実装した評価用マイクロ
コンピュータでは初期リセット信号が印加されるとプロ
グラムカウンタは「7FFF]番地を指定し、メモリ容量に
関する情報をモードレジスタに転送させる。
The first embodiment will be described more specifically as follows. For example, erasable read-only memory (hereinafter referred to as EPROM) 27256 (32K × 8
Bit), the microcomputer used for evaluation is of the buggy back type (type in which the EPROM is mounted directly on the top of the microcomputer). Although the address width is only 14 bits, the most widely used EPROM272
Using 56 or more EPROMs requires a minimum of 15 bits. Therefore, the actually used memory capacity is 4
Kilobytes, 8 kilobytes, 16 kilobytes,
No more than 16 kilobytes of memory space is used. That is,
As shown in FIG. 2, in the case of 4 kilobytes, 8 kilobytes, and 16 kilobytes, only the memory spaces indicated by 21, 222, and 23 are used as the memory of the microcomputer. Therefore, information on the memory capacity can be stored at a predetermined address in the unused memory space 24, for example, at address 7FFF. Such information may be, for example, "00" for 4 kilobytes, "01" for 8 kilobytes, and "02" for 16 kilobytes. In an evaluation microcomputer equipped with such an EPROM, when an initial reset signal is applied, the program counter designates the address “7FFF” and transfers information on the memory capacity to the mode register.

第2実施例 第3図は本発明の2実施例の構成を示すブロック図で
あり、第2実施例はプログラムカウンタ8を評価用マイ
クロコンピュータ内に設けたものである。第2実施例で
はプログラムメモリ8としてEPROMを使用しているの
で、そのメモリ容量を評価対象のマイクロコンピュータ
の最大プログラムを記憶するのに必要なメモリ容量に少
なくともメモリ容量に関する情報を格納するのに必要な
メモリ容量を加えた値に設定する。
Second Embodiment FIG. 3 is a block diagram showing a configuration of a second embodiment of the present invention. In the second embodiment, a program counter 8 is provided in an evaluation microcomputer. In the second embodiment, since the EPROM is used as the program memory 8, the memory capacity is required to store at least information on the memory capacity in the memory capacity necessary for storing the maximum program of the microcomputer to be evaluated. To the value obtained by adding the required memory capacity.

上記評価用マイクロコンピュータでプログラムの評価
を行うには評価対象のプログラムの外にメモリ容量に関
する情報をプログラムメモリ8のアドレス空間30に予め
格納し、しかる後に第1実施例と同様の仕方でプログラ
ムの評価を行う。
In order to evaluate a program by the evaluation microcomputer, information on the memory capacity is stored in advance in the address space 30 of the program memory 8 in addition to the program to be evaluated, and then the program is evaluated in the same manner as in the first embodiment. Perform an evaluation.

[発明の効果] 以上説明してきたように、本発明は初期リセット信号
に基づき上記プログラムカウンタに予め定められた値を
セットし、該値に対応するプログラムカウンタのアドレ
スに該プログラムカウンタの使用可能なメモリ容量に関
する情報を記憶させ、該メモリ容量に関する情報を上記
初期リセット信号に基づき保持しプログラムメモリの容
量を制限させるモードレジスタを更に設けたので、メモ
リ容量を決定するための命令等を評価用マイクロコンピ
ュータに追加する必要がなくなり、また外部ピンを増加
させる必要もなく、更にプログラム評価の中断も生じな
い。従って、メモリ容量に制限のある評価用コンピュー
タにも採用可能であり、小型化と低価格化が図れる上、
正確なプログラムの評価を行えるという効果が得られ
る。
[Effects of the Invention] As described above, according to the present invention, a predetermined value is set in the program counter based on the initial reset signal, and the address of the program counter corresponding to the value can be used by the program counter. A mode register for storing information about the memory capacity and holding the information about the memory capacity based on the initial reset signal to limit the capacity of the program memory is further provided. There is no need to add to the computer, no increase in external pins, and no interruption in program evaluation. Therefore, it can be adopted for an evaluation computer having a limited memory capacity, and can be reduced in size and cost, and
The effect is obtained that accurate program evaluation can be performed.

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

第1図は本発明の第1実施例の構成を示すブロック図、 第2図は第1実施例のメモリ空間を説明するブロック
図、 第3図は第2実施例の構成を示すブロック図である。 1……評価用マイクロコンピュータ、 2……クロック信号、 3……初期リセット信号、 4……モードレジスタ読み込みクロック発生ゲート、 5……モードレジスタ、 6……プログラムカウンタ、 7……アドレスバス、 8……プログラムメモリ、 9……データバス、 10……メモリ容量決定情報用専用信号線、 11……モードレジスタ書き込み信号、 30……メモリ容量に関する情報用アドレス空間。
FIG. 1 is a block diagram illustrating a configuration of a first embodiment of the present invention, FIG. 2 is a block diagram illustrating a memory space of the first embodiment, and FIG. 3 is a block diagram illustrating a configuration of the second embodiment. is there. 1 ... Evaluation microcomputer, 2 ... Clock signal, 3 ... Initial reset signal, 4 ... Mode register read clock generation gate, 5 ... Mode register, 6 ... Program counter, 7 ... Address bus, 8 …… Program memory 9… Data bus 10… Dedicated signal line for memory capacity determination information 11… Mode register write signal 30… Address space for information related to memory capacity

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】アドレス指定可能な命令コードを記憶する
のに必要な容量を超える記憶容量を有するプログラムメ
モリのアドレスを指定するプログラムカウンタと、該プ
ログラムカウンタで指定される命令コードを読み出し検
査する検査手段と備えた評価用マイクロコンピュータに
おいて、 評価対象となる命令コードを保持する記憶容量に関する
データを評価用マイクロコンピュータの初期化時に上記
プログラムカウンタに設定される所定アドレスに記憶さ
せておくとともに、該データを記憶し上記プログラムカ
ウンタを制御するモードレジスタと、上記初期化時に発
生する初期リセット信号に応答して上記モードレジスタ
に書き込み信号を供給する書き込み手段とを有すること
を特徴とする評価用マイクロコンピュータ。
1. A program counter for designating an address of a program memory having a storage capacity exceeding a capacity necessary for storing an addressable instruction code, and an inspection for reading and inspecting the instruction code specified by the program counter. In the evaluation microcomputer provided with the means, data on the storage capacity for holding the instruction code to be evaluated is stored at a predetermined address set in the program counter when the evaluation microcomputer is initialized, and An evaluation microcomputer comprising: a mode register for storing the program counter and controlling the program counter; and writing means for supplying a write signal to the mode register in response to an initial reset signal generated at the time of the initialization.
JP62043462A 1987-02-25 1987-02-25 Evaluation microcomputer Expired - Lifetime JP2581057B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62043462A JP2581057B2 (en) 1987-02-25 1987-02-25 Evaluation microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62043462A JP2581057B2 (en) 1987-02-25 1987-02-25 Evaluation microcomputer

Publications (2)

Publication Number Publication Date
JPS63208950A JPS63208950A (en) 1988-08-30
JP2581057B2 true JP2581057B2 (en) 1997-02-12

Family

ID=12664376

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62043462A Expired - Lifetime JP2581057B2 (en) 1987-02-25 1987-02-25 Evaluation microcomputer

Country Status (1)

Country Link
JP (1) JP2581057B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5913060B2 (en) * 1976-10-08 1984-03-27 三洋電機株式会社 Main storage storage capacity detection method
JPS60132218A (en) * 1983-12-20 1985-07-15 Nec Corp Microcomputer

Also Published As

Publication number Publication date
JPS63208950A (en) 1988-08-30

Similar Documents

Publication Publication Date Title
KR940002755B1 (en) One-chip microcomputer
US5056009A (en) IC memory card incorporating software copy protection
US7093064B2 (en) Programming suspend status indicator for flash memory
KR100444537B1 (en) Data processor
US6282644B1 (en) Apparatus and method for storing BIOS data of computer system
US5893135A (en) Flash memory array with two interfaces for responding to RAS and CAS signals
KR100265266B1 (en) Microcomputer comprsing flash eeprom and method of erasing flash eeprom
US8914602B2 (en) Display controller having an embedded non-volatile memory divided into a program code block and a data block and method for updating parameters of the same
US6510501B1 (en) Non-volatile memory read/write security protection feature selection through non-volatile memory bits
US5752066A (en) Data processing system utilizing progammable microprogram memory controller
JP2002015584A (en) Read/protect circuit for non-volatile memory
JPH06275084A (en) Nonvolatile semiconductor storage and data processor using the same
JP2581057B2 (en) Evaluation microcomputer
JPS608557B2 (en) Computer with programmable read-only memory
JP2001147863A (en) Flash memory rewrite device
KR960001096B1 (en) Booting drive system
JP2928216B1 (en) Semiconductor integrated circuit
JPH0789439B2 (en) Semiconductor integrated circuit device
JPH0652061A (en) Write control circuit for storage element
JPS61273795A (en) Modification system for eeprom data
JPS60258654A (en) Semiconductor memory
JPH08272603A (en) Data processor
JPS6227423B2 (en)
JPH069032B2 (en) Single chip microcomputer
JPH06290061A (en) Register control device