JPH06105433B2 - Chip for evaluation of micro computer - Google Patents

Chip for evaluation of micro computer

Info

Publication number
JPH06105433B2
JPH06105433B2 JP59066591A JP6659184A JPH06105433B2 JP H06105433 B2 JPH06105433 B2 JP H06105433B2 JP 59066591 A JP59066591 A JP 59066591A JP 6659184 A JP6659184 A JP 6659184A JP H06105433 B2 JPH06105433 B2 JP H06105433B2
Authority
JP
Japan
Prior art keywords
instruction
program
break
program data
signal
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
JP59066591A
Other languages
Japanese (ja)
Other versions
JPS60209852A (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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP59066591A priority Critical patent/JPH06105433B2/en
Publication of JPS60209852A publication Critical patent/JPS60209852A/en
Publication of JPH06105433B2 publication Critical patent/JPH06105433B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)
  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 (イ) 産業上の利用分野 本発明は、ワンチップマイクロコンピュータの製造に際
し、内蔵されたROMに記憶させるプログラムの開発ある
いは動作の検討を行うために作成された評価用チップに
関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention is for evaluation, which was created to develop a program to be stored in a built-in ROM or to examine its operation when manufacturing a one-chip microcomputer. Regarding chips.

(ロ) 従来技術 一般に、ROM及びRAMを内蔵するワンチップマイクロコン
ピュータは、ROMに記憶されたプログラムによってそれ
自体で動作するが、ROMへのプログラムの記憶は、ワン
チップマイクロコンピュータの製造時のマスクによって
行われる。即ち、ワンチップマイクロコンピュータを量
産するときに、その量産品にすべて同一のプログラムが
書き込まれるのである。従って、プログラムは簡単には
書き換えたり変更したりできないのであり、プログラム
を作成する場合には十分な検討を要する。そこで、量産
用のワンチップマイクロコンピュータと同じ機能を有す
るが、動作は外部から与えられる命令によって為される
評価用チップが作成され、プログラムの開発及び検討等
はこの評価用チップを用いて行われる。
(B) Conventional Technology Generally, a one-chip microcomputer having a built-in ROM and RAM operates by itself according to a program stored in the ROM. However, storing the program in the ROM is a mask at the time of manufacturing the one-chip microcomputer. Done by That is, when mass-producing one-chip microcomputers, the same program is written in all mass-produced products. Therefore, the program cannot be easily rewritten or changed, and sufficient consideration is required when creating the program. Therefore, an evaluation chip, which has the same function as a mass-produced one-chip microcomputer, but whose operation is performed by an instruction given from the outside, is created, and the development and examination of programs are performed using this evaluation chip. .

この評価用チップは、プログラムカウンタの内容を外部
に出力する端子と、外部からインストラクションレジス
タに命令コードをプリセットするための端子とを有し、
評価すべきプログラムを記憶するEP−ROM等をこれらの
端子に外部接続することによって、プログラムに従った
動作が為されるのであるが、プログラム評価のために、
プログラムの実行を停止させるブレーク機能と、ブレー
ク状態中にプログラムの命令を1つ実行させるステップ
機能とが設けられている。ブレーク機能は、ブレーク入
力端子に所定レベルの信号を印加したとき、プログラム
カウンタを次の命令のアドレスに保持し、プログラムの
実行を停止させる機能であり、また、ステップ機能は、
ブレーク状態のとき、ステップ入力端子に所定レベルの
パルスを印加する毎に、プログラムを1ステップ(1命
令)だけ実行する機能であり、ブレーク機能及びステッ
プ機能を利用して、評価用チップの内部状態を外部に取
り出し、プログラムが正しく実行されているか否かを評
価することができる。
This evaluation chip has a terminal for outputting the contents of the program counter to the outside, and a terminal for presetting an instruction code in the instruction register from the outside,
By externally connecting an EP-ROM that stores the program to be evaluated to these terminals, the operation according to the program is performed.
A break function for stopping the execution of the program and a step function for executing one instruction of the program during the break state are provided. The break function is a function to hold the program counter at the address of the next instruction and stop the execution of the program when a signal of a predetermined level is applied to the break input terminal.
In the break state, this is a function to execute the program for one step (one instruction) each time a pulse of a predetermined level is applied to the step input terminal. The internal state of the evaluation chip is evaluated by using the break function and the step function. Can be taken out to evaluate whether or not the program is executed correctly.

一方、タイマーカウンタが内蔵されたマイクロコンピュ
ータの場合、プログラムによってタイマーが設定される
と、命令を一つ実行する毎にタイマーに加算が為され
る。もちろん、このマイクロコンピュータに対応する評
価用チップに於いても同様に、命令が実行される毎にタ
イマーへの加算が為され、特に、前述したブレーク状態
中にステップ機能を実施したときにも、一命令の実行に
よりタイマーへの加算が為される。このことは1980年2
月15日に本願出願人が発行した「マイコン資料シリーズ
NO3LM6499マニュアル」の第16頁第3、2項目に記載さ
れている。
On the other hand, in the case of a microcomputer having a built-in timer counter, when the timer is set by the program, the instruction is incremented each time one instruction is executed. Of course, also in the evaluation chip corresponding to this microcomputer, addition to the timer is made every time an instruction is executed, and especially when the step function is executed during the break state described above, Execution of one instruction causes addition to the timer. This was 1980
Published by the applicant of this application on March 15th
NO3LM6499 Manual ", page 16, page 3, item 3.

ところが、評価用チップを用いてプログラム評価をして
いる途中で、内部RAMのデータ等を外部に出力したり、
あるいは、変更したりしてデータの確認等をする場合、
ブレーク機能及びステップ機能を用いて、評価すべきプ
ログラムとは別の命令、例えば、データ転送命令、ある
いは、ストア命令等を外部から印加し、これを実行させ
ることにより、データの取り出しあるいは変更ができる
のであるが、このときステップ機能により命令を実行さ
せるので、タイマーの加算が為されてしまうため、実際
のプログラムの実行によって計数されたタイマーの値と
ずれてしまう。従って、タイマーの厳密な評価ができな
かった。
However, while the program is being evaluated using the evaluation chip, the data in the internal RAM can be output to the outside,
Or, if you want to change or check the data,
By using the break function and the step function, an instruction different from the program to be evaluated, such as a data transfer instruction or a store instruction, is applied from the outside and the instruction is executed, so that data can be taken out or changed. However, at this time, since the instruction is executed by the step function, the timer is added, so that the value of the timer counted by the actual execution of the program deviates. Therefore, a strict evaluation of the timer was not possible.

(ハ) 発明の目的 本発明は、上述した点に鑑みて為されたものであり、プ
ログラム評価の途中で評価中のプログラムとは異なる命
令を実行させた時に、タイマーの加算を禁止し、タイマ
ーの値が実際とずれないようにすることによって、タイ
マーの厳密な評価を可能とした評価用チップを提供する
ものである。
(C) Object of the invention The present invention has been made in view of the above-mentioned points, and prohibits addition of the timer when the instruction different from the program being evaluated is executed in the middle of the program evaluation. The evaluation chip is capable of performing a strict evaluation of the timer by ensuring that the value of does not deviate from the actual value.

(ニ) 発明の構成 本発明は、ワンチップマイクロコンピュータに内蔵され
たROMに書き込まれるプログラムの開発あるいは評価を
するために、ブレーク入力端子に印加された信号に基い
て命令の実行を停止させるブレーク機能と、該ブレーク
機能中にステップ入力端子に印加された信号によって1
命令を実行するステップ機能とを有する評価用チップに
於いて、プログラムカウンタあるいは複数のレジスタの
内容を複数の出力端子に切り換えて出力する切換回路
と、複数の入力端子に印加された信号によって前記切換
回路を制御すると共に、前記複数の入力端子に所定の信
号が印加されたときタイマー回路のカウント動作を停止
させる信号を出力する出力モード制御回路とを設け、評
価すべきプログラムとは別のプログラムあるいは命令を
実行するときには前記タイマー回路のカウント動作を停
止可能とした構成である。
(D) Configuration of the Invention The present invention is a break for stopping the execution of an instruction based on a signal applied to a break input terminal in order to develop or evaluate a program written in a ROM incorporated in a one-chip microcomputer. 1 depending on the function and the signal applied to the step input terminal during the break function.
In an evaluation chip having a step function for executing instructions, a switching circuit for switching and outputting the contents of a program counter or a plurality of registers to a plurality of output terminals, and the switching by a signal applied to a plurality of input terminals. An output mode control circuit for controlling the circuit and outputting a signal for stopping the counting operation of the timer circuit when a predetermined signal is applied to the plurality of input terminals, and a program different from the program to be evaluated or When the instruction is executed, the counting operation of the timer circuit can be stopped.

(ホ) 実施例 第1図は、本発明の実施例を示す評価用チップのブロッ
ク図である。評価用チップは、量産用のワンチップマイ
クロコンピュータと同様に、各々8ビットの外部端子か
ら成るAポート、Bポート、Cポート及びDポートを介
してデータの入出力を行う入出力回路(1)(2)
(3)(4)と、実行すべき命令コードを記憶するイン
ストラクションレジスタ(5)と、インストラクション
レジスタ(5)に記憶された命令コードを解読し命令を
実行するために各部を制御するインストラクションデコ
ーダ(6)と、プログラムを順次実行するためにプログ
ラムのアドレスを指定するプログラムカウンタ(7)
と、データを記憶するRAM(8)と、RAM(8)のアドレ
スを指定するRAMアドレスレジスタ(RAMAD)(9)と、
データを一時記憶するアキュームレータ(AC)(10)
と、演算を行うALU(11)と、プログラムで制御できる
タイマーカウンタ(12)と、各回路間のデータ転送を行
う8ビットのバス(13)とを備えているが、量産用のワ
ンチップマイクロコンピュータに設けられているような
プログラムを記憶するROMは設けられていない。その代
り、プログラムカウンタ(7)の各ビット出力が出力さ
れる外部端子PM0〜PM11と、インストラクションレジス
タ(5)に命令コードを外部から印加することのできる
外部端子IM0〜IM7とが設けられてあり、外部端子PM0〜P
M11及び外部端子IM0〜IM7に、予め評価すべきプログラ
ムが書き込まれたEP−ROM(図示せず)を接続すること
によって、評価用チップを動作させることができるよう
になっている。更に、外部端子PM0〜PM11には、プログ
ラムカウンタ(7)の各ビット出力の他に、アキューム
レータ(10)あるいはRAMアドレスレジスタ(9)の各
ビット出力が切換回路(14)によって切り換え出力でき
るようになっている。即ち、必要に応じて、アキューム
レータ(10)及びRAMアドレスレジスタ(9)の内容を
取り出すことができるのである。切換回路(14)によっ
てどの出力を選択するかは、外部端子AC/PC及びRAPCが
印加された出力モード制御回路(15)によって制御さ
れ、外部端子AC/PC及びRAPCに印加される信号の組み合
わせによって、制御信号CHGが出力を選択する。例え
ば、外部端子AC/PC及びRAPCに共に“0"を印加したとき
には、プログラムカウンタ(7)の出力が選択され、外
部端子AC/PCに“1"、RAPCに“0"を印加したときには、
アキュームレータ(10)の出力が選択され、また、外部
端子AC/PC及びRAPCに共に“1"を印加したときにはRAMア
ドレスレジスタ(9)の出力が選択されて外部端子PM0
〜PM11に出力される。一方、外部端子AC/PCに“0"、RAP
Cに“1"が印加された場合には、出力モード制御回路(1
5)は切換回路(14)を制御してプログラムカウンタ
(7)の出力を選択すると共に、制御信号TSTPを出力す
る。制御信号TSTPはタイマーカウンタ(12)のカウント
動作を禁止するための信号であり、タイマー制御回路
(16)に印加される。
(E) Example FIG. 1 is a block diagram of an evaluation chip showing an example of the present invention. The evaluation chip, like the mass-produced one-chip microcomputer, is an input / output circuit (1) for inputting / outputting data via the A port, the B port, the C port, and the D port, each of which has an 8-bit external terminal. (2)
(3) and (4), an instruction register (5) that stores an instruction code to be executed, and an instruction decoder (that decodes the instruction code stored in the instruction register (5) and controls each unit to execute the instruction ( 6) and a program counter (7) for designating the address of the program for sequentially executing the program
A RAM (8) for storing data, a RAM address register (RAMAD) (9) for specifying an address of the RAM (8),
Accumulator (AC) for temporarily storing data (10)
It is equipped with an ALU (11) that performs calculations, a timer counter (12) that can be controlled by a program, and an 8-bit bus (13) that transfers data between circuits. There is no ROM for storing programs such as those provided in a computer. Instead, external terminals PM0 to PM11 to which each bit output of the program counter (7) is output, and external terminals IM0 to IM7 to which an instruction code can be externally applied to the instruction register (5) are provided. , External terminals PM0 to P
The evaluation chip can be operated by connecting an EP-ROM (not shown) in which a program to be evaluated is written in advance to M11 and the external terminals IM0 to IM7. Further, in addition to the bit output of the program counter (7), each bit output of the accumulator (10) or the RAM address register (9) can be switched and output to the external terminals PM0 to PM11 by the switching circuit (14). Has become. That is, the contents of the accumulator (10) and the RAM address register (9) can be taken out as needed. Which output is selected by the switching circuit (14) is controlled by the output mode control circuit (15) to which the external terminals AC / PC and RAPC are applied, and the combination of signals applied to the external terminals AC / PC and RAPC. The control signal CHG selects the output according to. For example, when “0” is applied to both external terminals AC / PC and RAPC, the output of the program counter (7) is selected, and when “1” is applied to external terminal AC / PC and “0” is applied to RAPC,
When the output of the accumulator (10) is selected and when "1" is applied to both the external terminals AC / PC and RAPC, the output of the RAM address register (9) is selected and the external terminal PM0
~ Output to PM11. On the other hand, the external terminal AC / PC is "0", RAP
When “1” is applied to C, the output mode control circuit (1
5) controls the switching circuit (14) to select the output of the program counter (7) and outputs the control signal TSTP. The control signal TSTP is a signal for prohibiting the counting operation of the timer counter (12) and is applied to the timer control circuit (16).

一方、ブレーク機能及びステップ機能は、ブレーク端子
BREAK、及び、ステップ端子STEPが接続されたブレーク
・ステップ制御回路(17)によって制御される。ブレー
ク・ステップ制御回路(17)は、ブレーク端子BREAKに
“1"が印加されると、禁止信号INHをプログラムカウン
タ(7)及びインストラクションデコーダ(6)に印加
し、そのとき実行されている命令が終了した後に、プロ
グラムカウンタ(7)の内容を次のアドレスに保持さ
せ、また、インストラクションデコーダ(6)にインス
トラクションレジスタ(5)から命令コードが印加され
るのを禁止して命令の実行を停止させる。また、ブレー
ク端子BREAKに“1"を印加してブレーク状態としたまま
で、ステップ端子STEPに“1"のパルスを印加すると、禁
止信号INHが一時解除されるため、プログラムカウンタ
(7)及びインストラクションデコーダ(6)の動作が
再開され、インストラクションレジスタ(5)に記憶さ
れた命令がインストラクションデコーダ(6)に印加さ
れて命令が実行されるが、一命令を実行した後は再び禁
止信号INHが出力され、ブレーク状態となる。
On the other hand, the break and step functions are
It is controlled by a break step control circuit (17) to which BREAK and a step terminal STEP are connected. When "1" is applied to the break terminal BREAK, the break step control circuit (17) applies the inhibit signal INH to the program counter (7) and the instruction decoder (6) so that the instruction being executed at that time is executed. After the end, the contents of the program counter (7) are held at the next address, and the instruction code is prohibited from being applied to the instruction decoder (6) from the instruction register (5) to stop the execution of the instruction. . If "1" is applied to the break terminal BREAK in a break state and a pulse of "1" is applied to the step terminal STEP, the inhibit signal INH is temporarily released. Therefore, the program counter (7) and the instruction The operation of the decoder (6) is restarted, the instruction stored in the instruction register (5) is applied to the instruction decoder (6) and the instruction is executed, but after executing one instruction, the inhibit signal INH is output again. And breaks.

また、ブレーク・ステップ制御回路(17)からは、ブレ
ーク端子BREAKに“1"が印加されてブレーク状態となっ
たとき、制御信号BRKがタイマー制御回路(16)に出力
される。そこで、タイマー制御回路(16)は、制御信号
BRKが印加されている状態、即ち、ブレーク状態に於い
て外部端子AC/PCを“0"、RAPCを“1"とすることによっ
て出力モード制御回路(15)から制御信号TSTPが出力さ
れると、タイマーカウンタ(12)の加算動作を禁止する
信号TINHを出力してタイマーカウンタ(12)を制御す
る。
The break step control circuit (17) outputs a control signal BRK to the timer control circuit (16) when "1" is applied to the break terminal BREAK to enter the break state. Therefore, the timer control circuit (16)
When the control signal TSTP is output from the output mode control circuit (15) by setting the external terminal AC / PC to “0” and RAPC to “1” in the state where BRK is applied, that is, in the break state. , The signal TINH which prohibits the addition operation of the timer counter (12) is output to control the timer counter (12).

第1図の如く構成された評価用チップを用いてEP−ROM
等に記憶されたプログラム評価をする場合のブレーク状
態の動作を第2図のタイミング図を用いて説明する。評
価すべきプログラムを実行中は、プログラムカウンタ
(7)の内容が外部端子PM0〜PM11から出力され、その
内容で指定されるアドレスの命令が外部端子IM0〜IM7を
介してインストラクションレジスタ(5)に印加され実
行される。そこで、ブレーク端子BREAKに“1"を印加す
ると、禁止信号INHにより、次のアドレスを指定するプ
ログラムカウンタ(7)の内容が外部端子PM0〜PM11か
ら出力されたままプログラムの実行が停止する。この状
態で、ステップ端子STEPに“1"のパルスを印加すると、
外部端子PM0〜PM11から出力されているアドレス信号で
読み出され、外部端子IM0〜IM7を介してインストラクシ
ョンレジスタ(5)にプリセットされている命令が実行
される。一命令が実行されると再びブレーク状態となる
が、このとき、タイマーが設定されている状態には、一
命令が実行される前のタイマーカウンタ(12)の計数値
tに「1」が加算される。同様に、更にステップ端子ST
EPに“1"のパルスを印加すると次のアドレスの命令が実
行され、タイマーカウンタ(12)の計数値はt+2とな
る。そして、この状態でのアキュームレータ(10)の内
容を確認する場合には、外部端子AC/PCに“1"を印加す
ると出力モード制御回路(15)によって切換回路(14)
が制御され、外部端子PM0〜PM11にはアキュームレータ
(10)の内容が出力される。また、外部端子AC/PCを
“1"にしたまま、外部端子RAPCに“1"を印加すると、外
部端子PM0〜PM11にはRAMアドレスレジスタ(9)の内容
が切り換え出力され、その内容の確認が為される。
EP-ROM using the evaluation chip configured as shown in FIG.
The operation in the break state in the case of evaluating the program stored in etc. will be described with reference to the timing chart of FIG. While the program to be evaluated is being executed, the contents of the program counter (7) are output from the external terminals PM0 to PM11, and the instruction at the address specified by the contents is transferred to the instruction register (5) via the external terminals IM0 to IM7. Applied and executed. Therefore, when "1" is applied to the break terminal BREAK, the prohibition signal INH stops the execution of the program while the contents of the program counter (7) designating the next address are output from the external terminals PM0 to PM11. In this state, applying a "1" pulse to the step terminal STEP,
The instruction read out by the address signal output from the external terminals PM0 to PM11 and preset in the instruction register (5) via the external terminals IM0 to IM7 is executed. When one instruction is executed, the break state occurs again. At this time, if the timer is set, "1" is added to the count value t of the timer counter (12) before the execution of one instruction. To be done. Similarly, further step terminal ST
When a pulse of "1" is applied to EP, the instruction at the next address is executed, and the count value of the timer counter (12) becomes t + 2. To check the contents of the accumulator (10) in this state, apply "1" to the external terminal AC / PC, and the output mode control circuit (15) will switch the switching circuit (14).
Is controlled, and the contents of the accumulator (10) are output to the external terminals PM0 to PM11. If "1" is applied to the external terminal RAPC with the external terminal AC / PC set to "1", the contents of the RAM address register (9) are switched and output to the external terminals PM0 to PM11, and the contents are confirmed. Is done.

一方、上述の状態に於いて、RAM(8)内に記憶された
データを取り出し確認することも可能である。即ち、評
価すべきプログラムの命令とは別に、RAM(8)内のデ
ータをアキュームレータ(10)に転送する命令を実行さ
せる。この場合、外部端子AC/PCを“0"、RAPCを“1"と
し(このとき、外部端子PM0〜PM11はプログラムカウン
タ(7)の内容を出力する)、外部端子IM0〜IM7に評価
すべきプログラムの命令と切換えて、データの転送命令
を印加し、この状態で、ステップ端子STEPに“1"のパル
スを印加する。これにより、転送命令が実行されRAM
(8)のデータがアキュームレータ(10)に転送される
のであるが、このとき、出力モード制御回路(15)から
は制御信号TSTPが出力されているため、命令の実行によ
ってタイマーカウンタ(12)への加算は為されず、計数
値はt+2のままとなる。次に、外部端子AC/PCを“1"
としてRAPCを“0"とすることにより、外部端子PM0〜PM1
1には、アキュームレータ(10)に転送されたデータが
出力される。そして、外部端子AC/PC及びRAPCを共に
“0"とし、外部端子に評価すべきプログラムの次の命令
を印加して、ステップ端子STEPに“1"のパルスを印加す
ると、前述の如く、一命令が実行され、このときには、
タイマーカウンタ(12)に「1」が加算され、その計数
値はt+3となる。
On the other hand, in the above-mentioned state, it is also possible to take out and confirm the data stored in the RAM (8). That is, an instruction to transfer the data in the RAM (8) to the accumulator (10) is executed separately from the instruction of the program to be evaluated. In this case, the external terminals AC / PC should be set to "0" and RAPC set to "1" (at this time, the external terminals PM0 to PM11 output the contents of the program counter (7)) and the external terminals IM0 to IM7 should be evaluated. By switching to the program command, the data transfer command is applied, and in this state, the "1" pulse is applied to the step terminal STEP. This causes the transfer instruction to be executed and RAM
The data of (8) is transferred to the accumulator (10). At this time, since the control signal TSTP is output from the output mode control circuit (15), execution of the instruction causes the timer counter (12). Is not added and the count value remains t + 2. Next, set the external terminal AC / PC to "1".
By setting RAPC to “0”, the external pins PM0 to PM1
The data transferred to the accumulator (10) is output to 1. Then, when both the external terminals AC / PC and RAPC are set to "0", the next command of the program to be evaluated is applied to the external terminals, and the pulse of "1" is applied to the step terminal STEP, as described above, The instruction is executed, this time
"1" is added to the timer counter (12), and the count value becomes t + 3.

この様に、評価すべきプログラムとは異なる命令を実行
される場合に、外部端子AC/PCを“0"、RAPCを“1"とす
ることによって、タイマー制御回路(16)がタイマーカ
ウンタ(12)の計数動作を禁止するため、実際のプログ
ラムでのタイマー計数値とのずれがなくなるのである。
In this way, when an instruction different from the program to be evaluated is executed, the timer control circuit (16) sets the timer counter (12) by setting the external terminal AC / PC to “0” and RAPC to “1”. Since the counting operation of 1) is prohibited, there is no deviation from the timer count value in the actual program.

(ヘ) 発明の効果 上述の如く、本発明によれば、タイマーの処理プログラ
ムの厳密な評価が可能となるため、タイマーの処理プロ
グラム作成時の間違いや誤動作を防止できる利点を有す
る。
(F) Effects of the Invention As described above, according to the present invention, it is possible to perform a strict evaluation of a timer processing program, and thus there is an advantage that errors and malfunctions at the time of creating a timer processing program can be prevented.

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

第1図は本発明の実施例を示すブロック図、第2図は第
1図に示された実施例の動作を示すタイミング図であ
る。 (1)(2)(3)(4)……入出力回路、(5)……
インストラクションレジスタ、(6)……インストラク
ションデコーダ、(7)……プログラムカウンタ、
(8)……RAM、(9)……RAMアドレスレジスタ、(1
0)……アキュームレータ、(11)……ALU、(12)……
タイマーカウンタ、(13)……バス、(14)……切換回
路、(15)……出力モード制御回路、(16)……タイマ
ー制御回路、(17)……ブレーク・ステップ制御回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a timing diagram showing an operation of the embodiment shown in FIG. (1) (2) (3) (4) …… I / O circuit, (5) ……
Instruction register, (6) ... Instruction decoder, (7) ... Program counter,
(8) …… RAM, (9) …… RAM address register, (1
0) …… Accumulator, (11) …… ALU, (12) ……
Timer counter, (13) …… bus, (14) …… switching circuit, (15) …… output mode control circuit, (16) …… timer control circuit, (17) …… break step control circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】量産用のワンチップマイクロコンピュータ
に内蔵されるROMに書き込むべきプログラムデータの開
発或は評価を行う為に、外部記憶装置に記憶された前記
プログラムデータに基づいて動作するマイクロコンピュ
ータの評価用チップにおいて、前記プログラムデータに
応じた命令の実行を停止させる為のブレーク信号が印加
されるブレーク入力端子と、前記プログラムデータに応
じた命令の実行を停止させている時に一命令の実行のみ
を再開させる為のステップ信号が印加されるステップ入
力端子と、前記ブレーク信号及び前記ステップ信号の状
態を識別し、前記ブレーク信号が発生している時に、少
なくとも、前記外部記憶装置をアクセスするプログラム
カウンタ、及び、前記外部記憶装置のプログラムデータ
を解読するインストラクションデコーダの動作を停止さ
せ、前記ステップ信号が発生している時に、前記プログ
ラムカウンタ及び前記インストラクションデコーダの動
作を一命令のみ再開させるブレークステップ制御回路
と、前記プログラムカウンタ及び複数のレジスタの内容
が印加される切換回路と、前記プログラムデータに応じ
た命令が実行される毎にカウント動作を行うタイマー回
路と、前記切換回路の切換動作及び前記タイマー回路の
カウント動作を制御する為の複数の制御信号が印加され
る複数の入力端子と、前記複数の制御信号の状態を識別
し、前記プログラムカウンタ或は前記複数のレジスタの
何れかの内容を前記切換回路を介して複数の出力端子か
ら出力させ、前記タイマー回路のカウント動作を停止さ
せる制御回路と、を備え、評価すべき前記プログラムデ
ータとは別のプログラムデータに応じた命令が実行され
る時には、前記タイマー回路のカウント動作を停止可能
としたことを特徴とするマイクロコンピュータの評価用
チップ。
1. A microcomputer which operates based on the program data stored in an external storage device in order to develop or evaluate the program data to be written in a ROM incorporated in a mass-produced one-chip microcomputer. In the evaluation chip, a break input terminal to which a break signal for stopping the execution of the instruction corresponding to the program data is applied, and only one instruction execution when the execution of the instruction corresponding to the program data is stopped And a step input terminal to which a step signal for restarting the step is applied, and a program counter for identifying the state of the break signal and the step signal and accessing at least the external storage device when the break signal is generated. And an instrument for decoding the program data in the external storage device. And a break step control circuit for stopping the operation of the operation decoder and restarting the operations of the program counter and the instruction decoder by only one instruction when the step signal is generated, and applying the contents of the program counter and the plurality of registers. A switching circuit, a timer circuit that performs a counting operation each time an instruction corresponding to the program data is executed, and a plurality of control signals for controlling the switching operation of the switching circuit and the counting operation of the timer circuit. The plurality of input terminals to be applied and the states of the plurality of control signals are identified, and the contents of either the program counter or the plurality of registers are output from the plurality of output terminals via the switching circuit, A control circuit that stops the counting operation of the timer circuit, and before evaluation When the instruction corresponding to another program data from the program data is executed, the evaluation chip microcomputer is characterized in that to enable stopping the counting operation of the timer circuit.
JP59066591A 1984-04-03 1984-04-03 Chip for evaluation of micro computer Expired - Lifetime JPH06105433B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59066591A JPH06105433B2 (en) 1984-04-03 1984-04-03 Chip for evaluation of micro computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59066591A JPH06105433B2 (en) 1984-04-03 1984-04-03 Chip for evaluation of micro computer

Publications (2)

Publication Number Publication Date
JPS60209852A JPS60209852A (en) 1985-10-22
JPH06105433B2 true JPH06105433B2 (en) 1994-12-21

Family

ID=13320326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59066591A Expired - Lifetime JPH06105433B2 (en) 1984-04-03 1984-04-03 Chip for evaluation of micro computer

Country Status (1)

Country Link
JP (1) JPH06105433B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63121934A (en) * 1986-11-10 1988-05-26 Oki Electric Ind Co Ltd One-chip microcomputer for evaluation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5227331A (en) * 1975-08-27 1977-03-01 Hitachi Ltd Execution real time integrator
JPS54139440A (en) * 1978-04-21 1979-10-29 Hitachi Ltd Measuring device for program running time
JPS57150046A (en) * 1981-03-12 1982-09-16 Nec Corp Data processing system
JPS57196358A (en) * 1981-05-27 1982-12-02 Nec Corp Appreciating device of microcomputer
JPS58105366A (en) * 1981-12-16 1983-06-23 Fujitsu Ltd Microcomputer having debug function
JPS58223848A (en) * 1982-06-23 1983-12-26 Oki Electric Ind Co Ltd Microprocessor

Also Published As

Publication number Publication date
JPS60209852A (en) 1985-10-22

Similar Documents

Publication Publication Date Title
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
JP3563768B2 (en) ROM program change device
JPH0447856B2 (en)
US20060080497A1 (en) Program-controlled unit
JPH06105433B2 (en) Chip for evaluation of micro computer
US4763248A (en) Microcomputer with a detecting function of a memory access error
KR100310486B1 (en) Microcumputer
KR100321745B1 (en) A micro controller unit for external memory access
US7191323B2 (en) Information processing unit selecting one of reset vector addresses
US7340575B2 (en) Method and a circuit for controlling access to the content of a memory integrated with a microprocessor
JPS5946002B2 (en) Processing method during power outage and power restoration in sequence control equipment
JPS6343559Y2 (en)
JPS6220960Y2 (en)
KR20020029921A (en) Method and apparatus for modifying microinstructions in a static memory device
JPS63126007A (en) Programmable controller
JPH0436841A (en) Microcomputer
JPS61221943A (en) Arithmetic processor
JPS59100962A (en) Microcomputer
JPS6129022B2 (en)
JPS62226357A (en) Initial program loading system
JPS595931B2 (en) Address stop method for arithmetic processing system
JPS6144328B2 (en)
JPS624729B2 (en)
JPS6239450B2 (en)
JPH0561659B2 (en)