JPS6343559Y2 - - Google Patents

Info

Publication number
JPS6343559Y2
JPS6343559Y2 JP4812884U JP4812884U JPS6343559Y2 JP S6343559 Y2 JPS6343559 Y2 JP S6343559Y2 JP 4812884 U JP4812884 U JP 4812884U JP 4812884 U JP4812884 U JP 4812884U JP S6343559 Y2 JPS6343559 Y2 JP S6343559Y2
Authority
JP
Japan
Prior art keywords
output
break
circuit
register
instruction
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
JP4812884U
Other languages
Japanese (ja)
Other versions
JPS60164249U (en
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 filed Critical
Priority to JP4812884U priority Critical patent/JPS60164249U/en
Publication of JPS60164249U publication Critical patent/JPS60164249U/en
Application granted granted Critical
Publication of JPS6343559Y2 publication Critical patent/JPS6343559Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】 (イ) 産業上の利用分野 本考案は、ワンチツプマイクロコンピユータの
製造に際し、内蔵されたROMに記憶させるプロ
グラムの開発あるいは動作の検討を行うために作
成された評価用チツプに関する。
[Detailed description of the invention] (a) Industrial application field This invention is an evaluation tool created to develop a program to be stored in the built-in ROM or to examine its operation when manufacturing a one-chip microcomputer. Regarding chips.

(ロ) 従来技術 一般に、ROM及びRAMを内蔵するワンチツ
プマイクロコンピユータは、ROMに記憶された
プログラムによつてそれ自体で動作するが、
ROMへのプログラムの記憶は、ワンチツプマイ
クロコンピユータの製造時のマスクによつて行わ
れる。即ち、ワンチツプマイクロコンピユータを
量産するときに、その量産品にすべて同一のプロ
グラムが書き込まれるのである。従つて、プログ
ラムは簡単には書き変えたり変更したりできない
のであり、プログラムを作成する場合には十分な
検討を要する。そこで、量産用のワンチツプマイ
クロコンピユータと同じ機能を有するが、動作は
外部から与えられる命令によつて為される評価用
チツプが作成され、プログラムの開発及び検討等
はこの評価用チツプを用いて行われる。
(b) Prior art In general, a one-chip microcomputer with a built-in ROM and RAM operates by itself according to a program stored in the ROM.
Programs are stored in the ROM using a mask when the one-chip microcomputer is manufactured. That is, when one-chip microcomputers are mass-produced, the same program is written into all of the mass-produced products. Therefore, programs cannot be easily rewritten or changed, and sufficient consideration is required when creating a program. Therefore, an evaluation chip was created that has the same functions as a mass-produced one-chip microcomputer, but operates according to commands given from the outside, and this evaluation chip is used to develop and study programs. It will be done.

この評価用チツプは、プログラムカウンタの内
容を外部に出力する端子と、外部からインストラ
クシヨンレジスタに命令コードをプリセツトする
ための端子とを有し、評価すべきプログラムを記
憶する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 the instruction code from the outside into the instruction register, and an EP-ROM that stores the program to be evaluated. Operation according to the program is performed by externally connecting to the terminal of A step function for executing the command is provided. The break function holds the program counter at the address of the next instruction and stops program execution when a signal of a predetermined level is applied to the break input terminal. This function executes only one step (one instruction) of the program each time a pulse of a predetermined level is applied to the step input terminal, and uses the break function and step function to extract the internal state of the evaluation chip to the outside. It is possible to evaluate whether the program is running correctly.

一方、量産用のワンチツプマイクロコンピユー
タでは、データを書き込むだけで読み出す必要の
ない場合に、書き込み専用レジスタが設けられ
る。例えば、本願出願人が1981年8月20日に発行
した「マイコン資料シリーズNo.8LC6500シリーズ
ユーザーズマニユアル」の第19頁第2、12に示さ
れるコントロールレジスタCTLは書き込み専用
レジスタである。このコントロールレジスタ
CTLは、割込みの制御と入出力共通ポートの入
出力切換え制御とを行うレジスタであり、セツト
命令及びリセツト命令の実行によつてデータが書
き込まれ、各々のビツト出力が制御信号として用
いられる。同様に、複数のタイマーカウンタが設
けられ、これらのタイマーカウンタの動作モード
を制御するようなレジスタも書き込み専用のレジ
スタとして構成される。
On the other hand, in mass-produced one-chip microcomputers, write-only registers are provided when data only needs to be written but does not need to be read. For example, the control register CTL shown on pages 2 and 12 of page 19 of "Microcomputer Material Series No. 8 LC6500 Series User's Manual" published by the applicant on August 20, 1981 is a write-only register. This control register
The CTL is a register that controls interrupts and input/output switching of the input/output common port, and data is written by executing a set instruction and a reset instruction, and each bit output is used as a control signal. Similarly, a plurality of timer counters are provided, and registers that control the operation modes of these timer counters are also configured as write-only registers.

この様な書き込み専用レジスタを有するワンチ
ツプマイクロコンピユータの評価用チツプにも同
様に書き込み専用レジスタが設けられるのである
が、プログラム作成時あるいはプログラム評価時
に、書き込み専用レジスタの内容は外部に取り出
すことができないため、書き込み専用レジスタに
関する処理プログラムの評価が不便であり、使い
難い欠点があつた。
A write-only register is also provided in the evaluation chip of a one-chip microcomputer that has such a write-only register, but the contents of the write-only register cannot be retrieved externally when creating or evaluating a program. Therefore, it is inconvenient to evaluate processing programs related to write-only registers, and the disadvantage is that they are difficult to use.

(ハ) 考案の目的 本考案は、上述した点に鑑みて為され、書き込
み専用レジスタの出力とバスとの間に出力回路を
設け、プログラム評価時に書き込み専用レジスタ
の内容が外部に取り出されるように構成すること
を目的とする。
(c) Purpose of the invention The present invention was made in view of the above points, and provides an output circuit between the output of the write-only register and the bus so that the contents of the write-only register can be retrieved to the outside during program evaluation. The purpose is to configure.

(ニ) 考案の構成 本考案は、ワンチツプマイクロコンピユータに
内蔵されたROMに書き込まれるプログラムの開
発あるいは評価をするために、ブレーク端子に印
加された信号に基いて命令の実行を停止させるブ
レーク機能と、該ブレーク機能中にステツプ端子
に印加された信号によつて一命令を実行するステ
ツプ機能とを有する評価用チツプに於いて、プロ
グラムカウンタあるいは複数のレジスタの内容を
複数の出力端子に切り換えて出力する切換回路
と、所定の入力端子に印加された信号に基いて前
記切換回路を制御する出力モード制御回路と、量
産用のワンチツプマイクロコンピユータではデー
タを読み出すことができない書き込み専用レジス
タに設けられた出力回路とを備え、該出力回路
を、前記ブレーク機能中に出力される信号及び前
記ステツプ機能によつてデータ転送命令が実行さ
れたとき出力される信号で制御し、前記書き込み
専用レジスタの内容を前記出力回路を介して、前
記切換回路にその出力が接続された複数のレジス
タの一つに転送することにより、読み出し可能と
した構成である。
(d) Structure of the invention The invention provides a break function that stops the execution of instructions based on a signal applied to a break terminal in order to develop or evaluate a program written to a ROM built into a one-chip microcomputer. In an evaluation chip having a step function that executes one instruction according to a signal applied to a step terminal during the break function, the contents of a program counter or a plurality of registers are switched to a plurality of output terminals. A switching circuit that outputs an output, an output mode control circuit that controls the switching circuit based on a signal applied to a predetermined input terminal, and a write-only register whose data cannot be read in a mass-produced one-chip microcomputer. the output circuit is controlled by a signal output during the break function and a signal output when a data transfer instruction is executed by the step function; The configuration is such that the data can be read by transferring the output of the data via the output circuit to one of a plurality of registers whose output is connected to the switching circuit.

(ホ) 実施例 第1図は、本発明の実施例を示す評価用チツプ
のブロツク図である。評価用チツプは、量産用の
ワンチツプマイクロコンピユータと同様に、各々
8ビツトの外部端子から成るAポート、Bポー
ト、Cポート及びDポートを介してデータの入出
力を行う入出力回路1,2,3,4と、実行すべ
き命令コードを記憶するインストラクシヨンレジ
スタ5と、インストラクシヨンレジスタ5に記憶
された命令コードを解読し命令を実行するために
各部を制御するインストラクシヨンデコーダ6
と、プログラムを順次実行するためにプログラム
のアドレスを指定するプログラムカウンタ7と、
データを記憶するRAM8と、RAM8のアドレ
スを指定するRAMアドレスレジスタ9と、デー
タを一時記憶するアキユームレータ10と、演算
を行うALU11と、プログラムで制御できるタ
イマー回路12と、タイマー回路12の動作モー
ドを制御するタイマーモード選択レジスタ13
と、各部回路間のデータ転送を行う8ビツトのバ
ス14とを備えているが、量産用のワンチツプマ
イクロコンピユータに設けられているようなプロ
グラムを記憶するROMは設けられていない。そ
の代り、プログラムカウンタ7の各ビツト出力が
出力される外部端子PM0〜PM11と、インス
トラクシヨンレジスタ5に命令コードを外部から
印加することのできる外部端子IM0〜IM7とが
設けられてあり、外部端子PM0〜PM11及び
外部端子IM0〜IM7に、予め評価すべきプログ
ラムが書き込まれたEP−ROM(図示せず)を接
続することによつて、評価用チツプを動作させる
ことができるようになつている。更に、外部端子
PM0〜PM11には、プログラムカウンタ7の
各ビツト出力の他に、アキユームレータ10ある
いはRAMアドレスレジスタ9の各ビツト出力が
切換回路15によつて切り換え出力できるように
なつている。即ち、必要に応じて、アキユームレ
ータ10及びRAMアドレスレジスタ9の内容を
取り出すことができるのである。切換回路15に
よつてどの出力を選択するかは、外部端子AC/
PC及びRAPCが印加された出力モード制御回路
16によつて制御され、外部端子AC/PC及び
RAPCに印加される信号の組み合わせによつて、
制御信号CHGが出力を選択する。例えば、外部
端子AC/PC及びRAPCに共に“0”を印加した
ときには、プログラムカウンタ7の出力が選択さ
れ、外部端子AC/PCに“1”、RAPCに“0”
を印加したときには、アキユームレータ10の出
力が選択され、また、外部端子AC/PC及び
RAPCに共に“1”を印加したときにはRAMア
ドレスレジスタ9の出力が選択されて外部端子
PM0〜PM11に出力される。
(E) Embodiment FIG. 1 is a block diagram of an evaluation chip showing an embodiment of the present invention. The evaluation chip has input/output circuits 1 and 2 that input and output data through A port, B port, C port, and D port, each consisting of 8-bit external terminals, similar to a one-chip microcomputer for mass production. , 3, 4, an instruction register 5 that stores the instruction code to be executed, and an instruction decoder 6 that decodes the instruction code stored in the instruction register 5 and controls each part to execute the instruction.
and a program counter 7 for specifying the address of the program in order to execute the program sequentially.
RAM 8 that stores data, RAM address register 9 that specifies the address of RAM 8, accumulator 10 that temporarily stores data, ALU 11 that performs calculations, timer circuit 12 that can be controlled by a program, and operation of timer circuit 12. Timer mode selection register 13 that controls the mode
and an 8-bit bus 14 for data transfer between various circuits, but it is not equipped with a ROM for storing programs as is provided in mass-produced one-chip microcomputers. 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. By connecting an EP-ROM (not shown) in which a program to be evaluated is written in advance to terminals PM0 to PM11 and external terminals IM0 to IM7, it is now possible to operate the evaluation chip. There is. Furthermore, external terminal
In addition to each bit output of the program counter 7, each bit output of the accumulator 10 or the RAM address register 9 can be switched and outputted to PM0 to PM11 by a switching circuit 15. That is, the contents of the accumulator 10 and the RAM address register 9 can be taken out as necessary. Which output is selected by the switching circuit 15 is determined by the external terminal AC/
It is controlled by the output mode control circuit 16 to which PC and RAPC are applied, and external terminals AC/PC and
Depending on the combination of signals applied to RAPC,
Control signal CHG selects the output. For example, when "0" is applied to both external terminals AC/PC and RAPC, the output of the program counter 7 is selected, "1" is applied to external terminals AC/PC, and "0" is applied to RAPC.
is applied, the output of the accumulator 10 is selected, and the external terminals AC/PC and
When “1” is applied to both RAPC, the output of RAM address register 9 is selected and output to the external terminal.
It is output to PM0 to PM11.

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

タイマー回路12は、一命令が実行される毎に
計数を行うプリスケーラと、プリスケーラの出力
を計数する2個のタイマーカウンタとから成り、
タイマー回路12の動作モードは、タイマーモー
ド選択レジスタ13の各ビツト出力によつて制御
される。量産用のマイクロコンピユータでは、こ
のタイマーモード選択レジスタ13は、バス14
に送出されたデータが書き込まれる書き込み専用
レジスタであるが、評価用チツプでは、タイマー
モード選択レジスタ13の各ビツト出力は、出力
回路18に印加され、ブレーク状態のときブレー
ク・ステツプ制御回路17から制御信号BRKが
出力されている状態で、転送命令がステツプ機能
によつて実行されインストラクシヨンデコーダ6
から制御信号REGTBが出力されると、タイマー
モード選択レジスタ13の内容は出力回路18か
らバス14に送出される。
The timer circuit 12 consists of a prescaler that counts each time one instruction is executed, and two timer counters that count the output of the prescaler.
The operating mode of the timer circuit 12 is controlled by each bit output of the timer mode selection register 13. In a mass-produced microcomputer, this timer mode selection register 13 is connected to the bus 14.
This is a write-only register in which data sent to the timer mode selection register 13 is written, but in the evaluation chip, each bit output of the timer mode selection register 13 is applied to the output circuit 18, and is controlled by the break step control circuit 17 when in the break state. While the signal BRK is being output, the transfer command is executed by the step function and the instruction decoder 6
When the control signal REGTB is output from the timer mode selection register 13, the contents of the timer mode selection register 13 are sent from the output circuit 18 to the bus 14.

第2図は第1図に示されたタイマーモード選択
レジスタ13と出力回路18の回路図である。第
2図に於いて、タイマーモード選択レジスタ13
は、6個のラツチ回路19とNORゲート20と
から成り、ラツチ回路19の入力Lはバス14の
ビツトB0〜B5に各々接続され、入力φには
NORゲート20の出力が印加され、ラツチ回路
19の出力は各々制御信号PR0,PR1,PR2,
TMOM、TMIM0、TMIM1としてタイマー回
路12に出力される。NORゲート20の入力に
は、コンピユータの動作を制御するシステムクロ
ツクCP4Bと、タイマーモード選択レジスタ1
3にデータをプリセツトするためのプリセツト命
令が実行されたとき、インストラクシヨンデコー
ダ6から出力される制御信号BTREG及び命令コ
ードに付けられたタイマーモード選択レジスタ1
3を指示するコードから作られる制御信号PBが
印加される。即ち、命令の実行によつて制御信号
BTREG及びPBが“0”となり、システムクロ
ツクCP4Bが“0”となるタイミングでバス1
4の下位5ビツトB0〜B5に送出されたデータ
がラツチ回路19に取り込まれる。ラツチ回路1
9の出力、制御信号PR0はタイマー回路12の
一方のタイマーカウンタが計数する周波数を切り
換え、制御信号TMOMは一方のタイマーカウン
タがプリセツトされた値を繰り返えし計数するか
否かを選択する信号となる。また、制御信号PR
1及びPR2はその組み合わせによつて他方のタ
イマーカウンタが計数する周波数を選択し、制御
信号TMIM0及びTMIM1はその組み合わせに
よつて他方のタイマーカウンタの動作モードを切
り換える信号となる。
FIG. 2 is a circuit diagram of the timer mode selection register 13 and output circuit 18 shown in FIG. In FIG. 2, the timer mode selection register 13
consists of six latch circuits 19 and a NOR gate 20, the input L of the latch circuit 19 is connected to each bit B0 to B5 of the bus 14, and the input φ is
The output of the NOR gate 20 is applied, and the output of the latch circuit 19 is the control signal PR0, PR1, PR2,
The signals are output to the timer circuit 12 as TMOM, TMIM0, and TMIM1. The inputs of the NOR gate 20 include the system clock CP4B that controls the operation of the computer and the timer mode selection register 1.
When a preset instruction for presetting data in 3 is executed, the control signal BTREG output from the instruction decoder 6 and the timer mode selection register 1 attached to the instruction code are output from the instruction decoder 6.
A control signal PB made from a code indicating 3 is applied. That is, the control signal is
At the timing when BTREG and PB become “0” and system clock CP4B becomes “0”, bus 1
The data sent to the lower 5 bits B0 to B5 of 4 is taken into the latch circuit 19. Latch circuit 1
The output of 9, the control signal PR0, switches the frequency counted by one timer counter of the timer circuit 12, and the control signal TMOM is a signal that selects whether or not one timer counter repeatedly counts the preset value. becomes. Also, the control signal PR
1 and PR2 select the frequency counted by the other timer counter depending on their combination, and control signals TMIM0 and TMIM1 become signals for switching the operation mode of the other timer counter depending on their combination.

一方、出力回路18は6個のNANDゲート2
1とNORゲート22及びNANDゲート23とか
ら成り、NANDゲート21の一方の入力には
各々ラツチ回路19の出力Qが印加され、他方の
入力にはNORゲート22の出力が印加され、ま
た、出力は各々バス14のビツトB0〜B5に接
続されている。更に、NORゲート22の入力に
はシステムクロツクCP3Bと、命令コードに付
けられるタイマーモード選択レジスタ13を指定
するコードで作られる信号PB、及び、NANDゲ
ート23の出力が印加され、NANDゲート23
にはブレーク状態に第1図に示されたブレーク・
ステツプ制御回路17から出力される制御信号
BRKと、データの転送命令が実行されたときに
インストラクシヨンデコーダ6から出力される制
御信号REGTBとが印加される。即ち、ブレーク
端子BERAKに“1”を印加してブレーク状態に
すると制御信号BRKが“1”となり、この状態
で例えばアキユームレータ10にデータを転送す
る命令コードにタイマーモード選択レジスタ13
を指定するコードを付した命令コードを外部端子
IM0〜IM7からインストラクシヨンレジスタ5
に印加し、ステツプ端子STEPに“1”のパルス
を印加すると、この転送命令が実行され、インス
トラクシヨンデコーダ6の出力REGTBが“1”
となり、制御信号PBが“0”となる。よつて、
システムクロツクCP3Bが“0”となるタイミ
ングでNORゲート22の出力が“1”となるた
め、ラツチ回路19の各出力はNANDゲート2
1を介してバス14に送出される。そして、バス
14に送出されたデータはアキユームレータ10
に取り込まれ記憶されるので、第1図に示された
外部端子AC/PCに“1”、RAPCに“0”を印
加することによつて、切換回路15がアキユーム
レータ10の出力を選択するため、外部端子PM
0〜PM11からタイマーモード選択レジスタ1
3の内容が取り出されるのである。
On the other hand, the output circuit 18 has six NAND gates 2
1, a NOR gate 22, and a NAND gate 23, the output Q of the latch circuit 19 is applied to one input of the NAND gate 21, the output of the NOR gate 22 is applied to the other input, and the output are connected to bits B0-B5 of bus 14, respectively. Furthermore, the system clock CP3B, a signal PB created by a code that specifies the timer mode selection register 13 attached to the instruction code, and the output of the NAND gate 23 are applied to the input of the NOR gate 22.
The break mode shown in Figure 1 is in the break state.
Control signal output from step control circuit 17
BRK and a control signal REGTB output from the instruction decoder 6 when a data transfer command is executed are applied. That is, when "1" is applied to the break terminal BERAK to enter the break state, the control signal BRK becomes "1", and in this state, for example, the instruction code for transferring data to the accumulator 10 is set to the timer mode selection register 13.
An instruction code with a code that specifies the external terminal
Instruction register 5 from IM0 to IM7
When a pulse of “1” is applied to the step terminal STEP, this transfer command is executed and the output REGTB of the instruction decoder 6 becomes “1”.
Therefore, the control signal PB becomes "0". Then,
Since the output of the NOR gate 22 becomes "1" at the timing when the system clock CP3B becomes "0", each output of the latch circuit 19 is
1 to the bus 14. The data sent to the bus 14 is then sent to the accumulator 10.
Therefore, by applying "1" to the external terminal AC/PC and "0" to RAPC shown in FIG. 1, the switching circuit 15 selects the output of the accumulator 10. Therefore, the external terminal PM
Timer mode selection register 1 from 0 to PM11
The contents of 3 are extracted.

(ヘ) 考案の効果 上述の如く本考案によれば、プログラム評価の
途中に於いて、書き込み専用レジスタの内容を確
認したい場合、評価すべきプログラムの命令に代
えて、データ転送命令をブレーク機能及びステツ
プ機能によつて実行し、更に、転送されたデータ
を記憶するレジスタを切換回路によつて切り換え
ることにより、書き込み専用レジスタの内容が外
部に取り出せるため、書き込み専用レジスタに関
するプログラム評価が容易となり、使い易いプロ
グラム評価用チツプとなる利点を有する。
(f) Effects of the invention As described above, according to the invention, when it is desired to check the contents of a write-only register during program evaluation, a data transfer instruction can be used with the break function and a data transfer instruction instead of the instruction of the program to be evaluated. By executing the program using the step function and switching the register that stores the transferred data using the switching circuit, the contents of the write-only register can be retrieved externally, making it easy to evaluate programs related to the write-only register and making it easier to use. It has the advantage of being an easy program evaluation chip.

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

第1図は本考案の実施例を示すブロツク図、第
2図は第1図に示された一部ブロツクの論理回路
図である。 1,2,3,4……入出力回路、5……インス
トラクシヨンレジスタ、6……インストラクシヨ
ンデコーダ、7……プログラムカウンタ、8……
RAM、9……RAMアドレスレジスタ、10…
…アキユームレータ、11……ALU、12……
タイマー回路、13……タイマーモード選択レジ
スタ、14……バス、15……切換回路、16…
…出力モード制御回路、17……ブレーク・ステ
ツプ制御回路、18……出力回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a logic circuit diagram of some blocks shown in FIG. 1, 2, 3, 4...Input/output circuit, 5...Instruction register, 6...Instruction decoder, 7...Program counter, 8...
RAM, 9...RAM address register, 10...
...Acumulator, 11...ALU, 12...
Timer circuit, 13... Timer mode selection register, 14... Bus, 15... Switching circuit, 16...
...Output mode control circuit, 17...Break step control circuit, 18...Output circuit.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] ワンチツプマイクロコンピユータに内蔵された
ROMに書き込まれるプログラムの開発あるいは
評価をするために、ブレーク端子に印加された信
号に基いて命令の実行を停止させるブレーク機能
と、該ブレーク機能中にステツプ端子に印加され
た信号によつて一命令を実行するステツプ機能と
を有する評価用チツプに於いて、プログラムカウ
ンタあるいは複数のレジスタの内容を複数の出力
端子に切り換えて出力する切換回路と、所定の入
力端子に印加された信号に基いて前記切換回路を
制御する出力モード制御回路と、量産用のワンチ
ツプマイクロコンピユータではデータを読み出す
ことができない書き込み専用レジスタに設けられ
た出力回路とを備え、該出力回路を、前記ブレー
ク機能中に出力される信号及び前記ステツプ機能
によつてデータ転送命令が実行されたとき出力さ
れる信号で制御し、前記書き込み専用レジスタの
内容を前記出力回路を介して、前記切換回路にそ
の出力が接続された複数のレジスタの一つに転送
することにより、読み出し可能としたことを特徴
とするマイクロコンピユータの評価用チツプ。
Built-in one-chip microcomputer
In order to develop or evaluate a program written to ROM, there is a break function that stops execution of instructions based on a signal applied to a break terminal, and a break function that stops execution of instructions based on a signal applied to a step terminal during the break function. An evaluation chip that has a step function for executing instructions includes a switching circuit that switches and outputs the contents of a program counter or multiple registers to multiple output terminals, and a switching circuit that outputs the contents of a program counter or multiple registers based on a signal applied to a predetermined input terminal. An output mode control circuit for controlling the switching circuit, and an output circuit provided in a write-only register whose data cannot be read by a mass-produced one-chip microcomputer, and outputting the output circuit during the break function. and a signal output when a data transfer command is executed by the step function, and outputs the contents of the write-only register via the output circuit, the output of which is connected to the switching circuit. A microcomputer evaluation chip characterized by being readable by transferring data to one of a plurality of registers.
JP4812884U 1984-04-02 1984-04-02 Microcomputer evaluation chip Granted JPS60164249U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4812884U JPS60164249U (en) 1984-04-02 1984-04-02 Microcomputer evaluation chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4812884U JPS60164249U (en) 1984-04-02 1984-04-02 Microcomputer evaluation chip

Publications (2)

Publication Number Publication Date
JPS60164249U JPS60164249U (en) 1985-10-31
JPS6343559Y2 true JPS6343559Y2 (en) 1988-11-14

Family

ID=30564085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4812884U Granted JPS60164249U (en) 1984-04-02 1984-04-02 Microcomputer evaluation chip

Country Status (1)

Country Link
JP (1) JPS60164249U (en)

Also Published As

Publication number Publication date
JPS60164249U (en) 1985-10-31

Similar Documents

Publication Publication Date Title
US4307447A (en) Programmable controller
US4878174A (en) Flexible ASIC microcomputer permitting the modular modification of dedicated functions and macroinstructions
US4484303A (en) Programmable controller
US5155819A (en) Flexible ASIC microcomputer permitting the modular modification of dedicated functions and macroinstructions
JPS6218936B2 (en)
JPS6343559Y2 (en)
US20050216779A1 (en) Device and method for managing a standby state of microprocessor
US6560715B1 (en) Sequencer of synchronous actions in a processor system, and integrated circuit including such sequencer
US5404554A (en) Information processing system which converts specific instruction codes to non-user defined instruction codes
JPS62145458A (en) Microcomputer
JPS6167148A (en) Microcomputer
KR930001099B1 (en) Microcomputer system with a using bit-slice element
JPH03217988A (en) One-chip microcomputer
JPH06105433B2 (en) Chip for evaluation of micro computer
JP2648003B2 (en) Timer counter
JPH04280334A (en) One chip microcomputer
JPS5942334B2 (en) Microcomputer input/output circuit
JP3111911B2 (en) Device with microprocessor
JPS62117041A (en) Microcomputer
JPH021084A (en) One-chip microcomputer
JPH0731526B2 (en) Programmable controller
JPH0436841A (en) Microcomputer
JPH04199449A (en) Device controller
JPH02103613A (en) Microcomputer
JPH0731524B2 (en) Input / output expansion device for programmable controller