JPS6365981B2 - - Google Patents
Info
- Publication number
- JPS6365981B2 JPS6365981B2 JP59057776A JP5777684A JPS6365981B2 JP S6365981 B2 JPS6365981 B2 JP S6365981B2 JP 59057776 A JP59057776 A JP 59057776A JP 5777684 A JP5777684 A JP 5777684A JP S6365981 B2 JPS6365981 B2 JP S6365981B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- input
- format
- chip
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
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)
- Test And Diagnosis Of Digital Computers (AREA)
- Microcomputers (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
本発明は、ワンチツプマイクロコンピユータの
製造に際し、内蔵されたROMに記憶させるプロ
グラムの開発あるいは動作の検討を行うために作
成された評価用チツプに関する。[Detailed Description of the Invention] (a) Industrial Application Field The present invention is an evaluation tool created for developing a program to be stored in a built-in ROM or examining 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 had the same functions as a mass-produced one-chip microcomputer, but whose operations were performed by commands given from the outside. Program development and examination were performed using this evaluation chip. be exposed.
一方、従来のワンチツプマイクロコンピユータ
に於いて、入/出力回路の回路形式をユーザが選
択できるものがある。具体的には、入力回路形式
をノーマルインバータあるいはシユミツトインバ
ータとするか、また、出力回路形式をオープンド
レインあるいはプルアツプ抵抗付とするか、を選
択可能とし、ワンチツプマイクロコンピユータの
製造時に、選択された回路形式となるように入/
出力回路をマスクによつて切り換えている。とこ
ろが、入/出力回路の回路形式が選択可能なワン
チツプマイクロコンピユータに対応する評価用チ
ツプでは、入/出力回路の形式は一つに固定され
ているのが普通である。このことは、1980年2月
15日に本願出願人が発行した「マイコン資料シリ
ーズNo.3LM6499マニユアル」の第10頁第2、2
項に記載されている。 On the other hand, some conventional one-chip microcomputers allow the user to select the circuit type of the input/output circuit. Specifically, it is possible to select whether the input circuit type is a normal inverter or a Schmitt inverter, and the output circuit type is open drain or with a pull-up resistor. input/input so that the circuit format is as follows.
The output circuit is switched using a mask. However, in evaluation chips compatible with one-chip microcomputers in which the circuit type of the input/output circuit can be selected, the type of the input/output circuit is usually fixed to one type. This happened in February 1980.
Page 10, No. 2, 2 of “Microcomputer Data Series No. 3LM6499 Manual” published by the applicant on the 15th
It is described in the section.
このような評価用チツプを用いてプログラムの
開発及び評価を行う場合には、評価用チツプの入
力端子あるいは出力端子に外付回路を接続し、ワ
ンチツプマイクロコンピユータの入/出力回路に
設定した回路形式と一致するようにしなければ、
プログラムの正確な評価ができない。従つて、端
子数が増せば増すほど、外付回路の接続が煩雑と
なり、ユーザにとつて使い難い評価用チツプであ
り、プログラムの開発に大きな障害となつてい
た。 When developing and evaluating programs using such an evaluation chip, connect external circuits to the input or output terminals of the evaluation chip, and connect the circuits set to the input/output circuits of the one-chip microcomputer. If you do not match the format,
Accurate evaluation of programs is not possible. Therefore, as the number of terminals increases, the connection of external circuits becomes more complicated, making the evaluation chip difficult for users to use and posing a major obstacle to program development.
(ハ) 発明の目的
本発明は、上述した点に鑑みて為されたもので
あり、ワンチツプマイクロコンピユータの入/出
力回路に設定できる回路形式と同じ回路形式を備
え、外部からプログラムを与えるのと同様に回路
形式を指定するデータを与えることにより、入/
出力回路の回路形式が設定可能な評価用チツプを
提供することを目的とする。(c) Purpose of the Invention The present invention has been made in view of the above-mentioned points, and has the same circuit format as that which can be set in the input/output circuit of a one-chip microcomputer, and is capable of providing a program from the outside. By giving data specifying the circuit format in the same way as
The purpose of the present invention is to provide an evaluation chip in which the circuit format of the output circuit can be set.
(ニ) 発明の構成
本発明は、入力あるいは出力の回路形式がマス
クによつて選択できるワンチツプマイクロコンピ
ユータのプログラム評価用のチツプに於いて、前
記ワンチツプマイクロコンピユータの入力あるい
は出力に設定することのできる回路形式を備えた
入力回路あるいは出力回路と、該入力回路あるい
は出力回路の回路形式を選択する複数の制御信号
を出力する複数の回路形式指定データ記憶回路
と、該回路形式指定データ記憶回路の記憶動作を
各々制御すると共にプログラムカウンタに各々所
定のアドレスをセツトする複数のプリセツトクロ
ツク信号を、外部から印加されるリセツト信号に
基いで、順次出力するプリセツトクロツク発生回
路とを設け、前記プログラムカウンタでアドレス
される外部記憶回路の前記所定アドレスに回路形
式を指定するデータを記憶することにより、前記
リセツト信号印加時に、前記データが順次前記回
路形式指定データ記憶回路にプリセツトされ、入
力回路あるいは出力回路の回路形式が設定される
構成である。(d) Structure of the Invention The present invention provides a chip for program evaluation of a one-chip microcomputer in which the input or output circuit type can be selected by a mask, and the chip can be set as the input or output of the one-chip microcomputer. an input circuit or an output circuit having a circuit format capable of configuring the input circuit, a plurality of circuit format designation data storage circuits that output a plurality of control signals for selecting the circuit format of the input circuit or output circuit, and the circuit format designation data storage circuit. A preset clock generation circuit is provided which sequentially outputs a plurality of preset clock signals, each controlling the memory operation of the program counter and setting a predetermined address in the program counter, based on an externally applied reset signal. By storing data specifying a circuit type at the predetermined address of the external storage circuit addressed by the program counter, when the reset signal is applied, the data is sequentially preset in the circuit type specifying data storage circuit and input. This is a configuration in which the circuit type of the circuit or output circuit is set.
(ホ) 実施例
第1図は、本発明の実施例を示すブロツク図で
ある。破線で示された評価用チツプ1は、量産用
のワンチツプマイクロコンピユータと同様に、入
出力共通端子PA0〜PA7,PB0〜PB7,PC
0〜PC7,PD0〜PD7に設けられた入出力回
路2,3,4,5と、実行すべき命令コードを記
憶するインストラクシヨンレジスタ6と、インス
トラクシヨンレジスタ6に記憶された命令コード
を解読し命令を実行するために各部を制御するイ
ンストラクシヨンデコーダ7と、プログラムを順
次実行するためにプログラムの記憶されたメモリ
のアドレスを指定するプログラムカウンタ8と、
演算を行うALU9と、データを記憶するRAM1
0と、各種のレジスタ11と、各回路間のデータ
転送を行う8ビツトのバス12とを備えている
が、量産用のワンチツプマイクロコンピユータに
設けられるようなプログラムを記憶するROMは
設けられていない。その代り、プログラムカウン
タ8の各ビツト出力は、外部端子PM0〜PM1
1を介して外部に取り出され、また、外部端子
IM0〜IM7を介して命令コードがインストラク
シヨンレジスタ6にプリセツト可能となつてい
る。従つて、予め評価すべきプログラムが書き込
まれたEP―ROM13を端子PM0〜PM11及
び端子IM0〜IM7に外部接続することによつ
て、評価用チツプ1をプログラムに基いて動作さ
せることができる。(E) Embodiment FIG. 1 is a block diagram showing an embodiment of the present invention. The evaluation chip 1 indicated by the broken line has input/output common terminals PA0 to PA7, PB0 to PB7, and PC, similar to a one-chip microcomputer for mass production.
The input/output circuits 2, 3, 4, and 5 provided in 0 to PC7 and PD0 to PD7, the instruction register 6 that stores the instruction code to be executed, and the instruction code stored in the instruction register 6 an instruction decoder 7 that controls each unit to decode and execute instructions; a program counter 8 that specifies a memory address where a program is stored to sequentially execute the program;
ALU9 that performs calculations and RAM1 that stores data
0, various registers 11, and an 8-bit bus 12 for data transfer between each circuit, but it does not have a ROM for storing programs like the one installed in mass-produced one-chip microcomputers. do not have. Instead, each bit output of the program counter 8 is sent to external terminals PM0 to PM1.
1 and is taken out to the outside via the external terminal.
Instruction codes can be preset into the instruction register 6 via IM0 to IM7. Therefore, by externally connecting the EP-ROM 13 in which the program to be evaluated is written to the terminals PM0 to PM11 and the terminals IM0 to IM7, the evaluation chip 1 can be operated based on the program.
一方、評価用チツプ1には、ワンチツプマイク
ロコンピユータに設けられてない回路形式指定デ
ータ記憶回路14,15及びプリセツトクロツク
発生回路16が設けられている。回路形式指定デ
ータ記憶回路14,15は、各々8ビツトのデー
タを記憶するため、8個のラツチ回路から成り、
入力は各々外部端子IM0〜IM7に共通に接続さ
れ、入力に印加されたデータの記憶動作は、プリ
セツトクロツク発生回路16から出力されるプリ
セツトクロツク信号OPCL1及びOPCL2によつ
て各々独立して制御される。プリセツトクロツク
発生回路16は、リセツト信号RSTが外部から
印加されると、先ず最初の期間にプリセツトクロ
ツク信号OPCL1を出力し、次の期間にプリセツ
トクロツク信号OPCL2を出力する。従つて、リ
セツト信号RSTが印加されると、最初に回路形
式指定データ記憶回路14の記憶動作が制御さ
れ、次いで、回路形式指定データ記憶回路15の
記憶動作が制御される。また、回路形式指定デー
タ記憶回路14の8ビツト出力OPT0〜OPT7
は、入出力回路2,3に印加され、その回路形式
の切り換えを制御し、一方、回路形式指定データ
記憶回路15の8ビツト出力OPT8〜OPT15
は、入出力回路4,5に印加され、その回路形式
の切り換えを制御している。従つて、回路形式指
定データ記憶回路14,15に記憶される各々8
ビツトのデータ(即ち、回路形式指定データ)の
各ビツト内容に従つて入出力回路2,3,4,5
の回路形式が指定できるのである。 On the other hand, the evaluation chip 1 is provided with circuit type designation data storage circuits 14 and 15 and a preset clock generation circuit 16, which are not provided in the one-chip microcomputer. The circuit type designation data storage circuits 14 and 15 each consist of eight latch circuits to store 8-bit data.
The inputs are commonly connected to external terminals IM0 to IM7, and the storage operation of the data applied to the inputs is performed independently by the preset clock signals OPCL1 and OPCL2 output from the preset clock generation circuit 16. controlled by When the reset signal RST is externally applied, the preset clock generating circuit 16 first outputs the preset clock signal OPCL1 in the first period, and outputs the preset clock signal OPCL2 in the next period. Therefore, when the reset signal RST is applied, the storage operation of the circuit type designation data storage circuit 14 is first controlled, and then the storage operation of the circuit type designation data storage circuit 15 is controlled. In addition, the 8-bit output OPT0 to OPT7 of the circuit type specification data storage circuit 14
is applied to the input/output circuits 2 and 3 to control switching of their circuit formats, while the 8-bit outputs OPT8 to OPT15 of the circuit format designation data storage circuit 15
is applied to the input/output circuits 4 and 5 to control switching of their circuit formats. Therefore, each of the 8
Input/output circuits 2, 3, 4, 5 according to the contents of each bit of bit data (that is, circuit type designation data)
The circuit format can be specified.
入力回路2,3,4,5は、対応する量産用の
マイクロコンピユータの入出力回路に設定できる
入力回路形式及び出力回路形式と同じ回路形式を
有している。具体的には、出力回路形式はオープ
ンドレインとプルアツプ抵抗付とが選択でき、ま
た、入力回路形式はノーマルインバータとシユミ
ツトインバータとが選択できるようになつてお
り、その切り換えは、量産用のマイクロコンピユ
ータがマスクによる切り換えなのに対し、評価用
チツプ1は信号OPT0〜OPT15によつて電気
的に切り換えられる。更に、入出力回路2,3,
4,5の各上位4ビツトと下位4ビツトの回路形
式は、信号OPT0〜OPT15の各ビツトに対応
して独立して選択可能となつている。 The input circuits 2, 3, 4, and 5 have the same circuit format as the input circuit format and output circuit format that can be set in the input/output circuit of the corresponding mass-produced microcomputer. Specifically, the output circuit format can be selected between open drain and pull-up resistor, and the input circuit format can be selected between normal inverter and Schmitt inverter.Switching can be done using a mass-produced micro While the computer switches using a mask, the evaluation chip 1 is electrically switched using signals OPT0 to OPT15. Furthermore, input/output circuits 2, 3,
The circuit formats of the upper 4 bits and lower 4 bits of signals 4 and 5 can be independently selected corresponding to each bit of signals OPT0 to OPT15.
第2図は、第1図に示された入出力回路2,
3,4,5を代表する入出力回路2の下位4ビツ
ト部分と回路形式指定データ記憶回路14,15
とプリセツトクロツク発生回路16の回路図であ
る。第2図に於いて、入出力共通端子PA0〜PA
3には全く同一の回路形式切り換え回路17が設
けられているが、この回路形式切り換え回路17
と同じものがすべての入出力回路2,3,4,5
にも同様に設けられている。回路形式切り換え回
路17は、各々の入出力共通端子PA0〜PA3に
接続された信号線18にドレインが接続されたN
―チヤンネルの出力MOSトランジスタ19と、
電源VDDと信号線18との間に直列接続されたプ
ルアツプ抵抗20及びN―チヤンネルMOSトラ
ンジスタ21と、信号線18が共に入力に印加さ
れるノーマルインバータ22及びシユミツトイン
バータ23と、各インバータ22,23の出力に
一方の電極が接続され他方の電極がワイヤードオ
ア接続されたN―チヤンネルMOSトランジスタ
24,25とから構成されている。MOSトラン
ジスタ19,21及びプルアツプ抵抗20は出力
回路であり、MOSトランジスタ19のゲートに
は、出力命令実行時にバス12に転送されたデー
タをラツチするデータラツチ回路(図示せず)の
各出力Q0〜Q3が印加され、その各出力Q0〜Q3の
内容によつてMOSトランジスタ19がオンある
いはオフすることにより、データが入出力共通端
子PA0〜PA3に出力される。一方、MOSトラ
ンジスタ21のゲートには回路形式指定データ記
憶回路14の出力OPT0が印加されており、出
力OPT0が“1”(即ちVDDレベル)であるとき
には、MOSトランジスタ21はオンするため、
プルアツプ抵抗20の接続された出力形式とな
り、出力OPT0が“0”(接地レベル)であると
きには、MOSトランジスタ21はオフするため、
オープンドレインの出力形式となる。また、ノー
マルインバータ22、シユミツトインバータ23
及びMOSトランジスタ24,25は入力回路で
あり、MOSトランジスタ25のゲートには回路
形式指定データ記憶回路14の出力OPT1が印
加され、MOSトランジスタ24のゲートには、
インバータ26によつて反転された出力1
が印加されており、出力OPT1が“1”のとき
には、MOSトランジスタ25がオンとなつてシ
ユミツトインバータ23の出力が選択され、ま
た、出力OPT1が“0”のときには、MOSトラ
ンジスタ24がオンとなつてノーマルインバータ
22の出力が選択される。選択されたノーマルイ
ンバータ22あるいはシユミツトインバータ25
の出力は、入力命令実行時に導通してデータをバ
ス12に送出するゲート回路(図示せず)の入力
G0〜G3に印加される。このように、入出力回路
2の下位4ビツトの出力回路形式は回路形式指定
データ記憶回路14の出力OPT0で制御され、
上位4ビツトの出力回路形式は出力OPT1で制
御される。 FIG. 2 shows the input/output circuit 2 shown in FIG.
The lower 4 bits of the input/output circuit 2 representing input/output circuits 3, 4, and 5 and the circuit format designation data storage circuits 14 and 15
2 is a circuit diagram of the preset clock generating circuit 16. FIG. In Figure 2, input/output common terminals PA0 to PA
3 is provided with an identical circuit type switching circuit 17, but this circuit type switching circuit 17
All input/output circuits 2, 3, 4, 5 are the same as
is also provided in the same way. The circuit type switching circuit 17 has a drain connected to a signal line 18 connected to each input/output common terminal PA0 to PA3.
- Channel output MOS transistor 19,
A pull-up resistor 20 and an N-channel MOS transistor 21 are connected in series between the power supply V DD and the signal line 18 , a normal inverter 22 and a Schmitt inverter 23 to which the signal line 18 is applied to both inputs, and each inverter 22 , 23, and N-channel MOS transistors 24 and 25, one electrode of which is connected to the output of 23, and the other electrode of which is wired-OR connected. The MOS transistors 19 and 21 and the pull-up resistor 20 are an output circuit, and the gate of the MOS transistor 19 is connected to each output Q 0 ~ of a data latch circuit (not shown) that latches data transferred to the bus 12 when an output command is executed. Q 3 is applied, and the MOS transistor 19 is turned on or off depending on the content of each of its outputs Q 0 -Q 3 , thereby outputting data to the input/output common terminals PA 0 -PA 3 . On the other hand, the output OPT0 of the circuit format specification data storage circuit 14 is applied to the gate of the MOS transistor 21, and when the output OPT0 is "1" (that is, V DD level), the MOS transistor 21 is turned on.
The output format is connected to the pull-up resistor 20, and when the output OPT0 is "0" (ground level), the MOS transistor 21 is turned off.
Open drain output format. In addition, a normal inverter 22, a Schmitt inverter 23
and MOS transistors 24 and 25 are input circuits, and the output OPT1 of the circuit format specification data storage circuit 14 is applied to the gate of the MOS transistor 25, and the gate of the MOS transistor 24 is
Output 1 inverted by inverter 26
is applied, and when the output OPT1 is "1", the MOS transistor 25 is turned on and the output of the Schmitts inverter 23 is selected, and when the output OPT1 is "0", the MOS transistor 24 is turned on. Therefore, the output of the normal inverter 22 is selected. Selected normal inverter 22 or Schmidt inverter 25
The output of is the input of a gate circuit (not shown) which conducts when an input instruction is executed and sends data onto bus 12.
Applied to G0 to G3 . In this way, the output circuit format of the lower 4 bits of the input/output circuit 2 is controlled by the output OPT0 of the circuit format designation data storage circuit 14.
The output circuit format of the upper 4 bits is controlled by output OPT1.
また、回路形式指定データ記憶回路14,15
は各々8個のラツチ回路27,28から構成さ
れ、ラツチ回路27,28の各ビツトの入力Lに
は評価用チツプ1の外部端子IM0〜IM7が共通
に接続され、ラツチ回路27のクロツク入力φに
はプリセツトクロツク信号OPCL1が、ラツチ回
路28のクロツク入力φにはプリセツトクロツク
信号OPCL2が印加される。ラツチ回路27の出
力OPT0及びOPT1は、前述した如く、入出力
回路2の下位4ビツトを制御し、出力OPT2及
びOPT3は上位4ビツトを制御している。同様
に、出力OPT4及びOPT5は入出力回路3の下
位4ビツトを、出力OPT6及びOPT7は上位4
ビツトを制御する。一方、ラツチ回路28の出力
OPT8及びOPT9は、入出力回路4の下位4ビ
ツトを、出力OPT10及びOPT11は上位4ビ
ツトを制御し、また、出力OPT12及びOPT1
3は入出力回路5の下位4ビツトを、出力OPT
14及びOPT15は上位4ビツトを制御するよ
うに割り当てられている。 In addition, circuit type designation data storage circuits 14 and 15
are each composed of eight latch circuits 27 and 28, and the external terminals IM0 to IM7 of the evaluation chip 1 are commonly connected to the input L of each bit of the latch circuits 27 and 28, and the clock input φ of the latch circuit 27 is A preset clock signal OPCL1 is applied to the latch circuit 28, and a preset clock signal OPCL2 is applied to the clock input φ of the latch circuit 28. As described above, the outputs OPT0 and OPT1 of the latch circuit 27 control the lower 4 bits of the input/output circuit 2, and the outputs OPT2 and OPT3 control the upper 4 bits. Similarly, outputs OPT4 and OPT5 output the lower 4 bits of input/output circuit 3, and outputs OPT6 and OPT7 output the upper 4 bits.
Control bits. On the other hand, the output of the latch circuit 28
OPT8 and OPT9 control the lower 4 bits of the input/output circuit 4, outputs OPT10 and OPT11 control the upper 4 bits, and outputs OPT12 and OPT1
3 outputs the lower 4 bits of the input/output circuit 5.
14 and OPT15 are assigned to control the upper 4 bits.
プリセツトクロツク信号OPCL1及びOPCL2
を出力するプリセツトクロツク発生回路16は、
リセツト信号RSTを初段の入力としクロツク端
子φにクロツクCPが印加されたD―FF29,3
0と、リセツト信号RST及びD―FF29の出力
Qが印加されたORゲート31と、ORゲート3
1の出力をインバータ32で反転した出力とD―
FF30の出力とが印加されたANDゲート33と
から成り、ORゲート31の出力がプリセツトク
ロツク信号OPCL1として出力され、ANDゲー
ト33の出力がプリセツトクロツク信号OPCL2
として出力される。このプリセツトクロツク発生
回路16の動作は第3図に示される。 Preset clock signals OPCL1 and OPCL2
The preset clock generating circuit 16 that outputs
D-FF29, 3 with reset signal RST input to the first stage and clock CP applied to clock terminal φ
0, the OR gate 31 to which the reset signal RST and the output Q of the D-FF 29 are applied, and the OR gate 3
The output obtained by inverting the output of 1 by the inverter 32 and the output of D-
The output of the OR gate 31 is output as the preset clock signal OPCL1, and the output of the AND gate 33 is the preset clock signal OPCL2.
is output as The operation of this preset clock generating circuit 16 is shown in FIG.
第3図に於いて、リセツト信号RSTがクロツ
クCPの周期より長い時間“1”となると、ORゲ
ート31の出力、即ち、プリセツトクロツク信号
OPCL1は、リセツト信号RSTの立ち上がりと同
期して“1”となり、また、D―FF29は、ク
ロツクCPによつてリセツト信号RSTの“1”の
期間に相当した期間“1”を出力し、更に、D―
FF30はクロツクCPの1周期分遅れて“1”を
出力する。従つて、プリセツトクロツク信号
OPCL1はリセツト信号RSTの立ち上がりからD
―FF29の出力の立ち下がりまで“1”となる
パルスとなり、一方、プリセツトクロツク信号
OPCL2はプリセツトクロツクOPCL1の立ち下
がりからD―FF30の出力の立ち下がりまで
“1”となるパルスとなる。尚、クロツクパルス
CPの周期は評価用チツプ1の1マシンサイクル
と等しくすると、プリセツトクロツク信号OPCL
1及びOPCL2による回路形式指定データ記憶回
路14,15の記憶動作制御が好都合となる。 In FIG. 3, when the reset signal RST becomes "1" for a time longer than the period of the clock CP, the output of the OR gate 31, that is, the preset clock signal
OPCL1 becomes "1" in synchronization with the rise of the reset signal RST, and D-FF29 outputs "1" for a period corresponding to the "1" period of the reset signal RST by the clock CP, and further ,D-
FF30 outputs "1" with a delay of one cycle of clock CP. Therefore, the preset clock signal
OPCL1 is D from the rising edge of the reset signal RST.
- The pulse becomes “1” until the fall of the output of FF29, while the preset clock signal
OPCL2 becomes a pulse that becomes "1" from the fall of the preset clock OPCL1 to the fall of the output of D-FF30. In addition, the clock pulse
Assuming that the period of CP is equal to one machine cycle of evaluation chip 1, the preset clock signal OPCL
It is convenient to control the storage operation of the circuit type designation data storage circuits 14 and 15 by using OPCL1 and OPCL2.
一方、プリセツトクロツク信号OPCL1及び
OPCL2は、第1図に示される如く、インストラ
クシヨンデコーダ7及びプログラムカウンタ8に
も印加されており、プリセツトクロツク信号
OPCL1、又は、OPCL2が“1”となることに
よつて、インストラクシヨンデコーダ7の動作を
停止させ、プログラムカウンタ8には各々異なつ
たアドレスをプリセツトする機能を有する。そこ
で、評価すべきプログラムが書き込まれたEP―
ROM13を評価用チツプ1に接続して動作させ
る場合、プリセツトクロツク信号OPCL1及び
OPCL2によつてプログラムカウンタ8にプリセ
ツトされるアドレス値で指定されるEP―ROM1
3のアドレスに、回路形式を指定する8ビツトの
データを記憶させておくことにより、入出力回路
2,3,4,5の回路形式が設定できる。例え
ば、EP―ROM13は8ビツトのデータがアドレ
ス0番地から4095番地まで設けられたものである
場合、プログラムカウンタ8にプリセツトされる
アドレスを、プリセツトクロツク信号OPCL1の
とき4094番地、プリセツトクロツク信号OPCL2
のとき4095番地に設定し、更に、プリセツトクロ
ツク信号OPCL2が消えたとき0000番地にリセツ
トされるようにする。一方、EP―ROM13の
4094番地に入出力回路2,3の回路形式を指定す
る8ビツトのデータAを記憶させ、4095番地に入
出力回路4,5の回路形式を指定する8ビツトの
データBを記憶させておく。そして、第3図に示
されるように、プログラムの評価を行う際にリセ
ツト信号RSTを印加すると、先ずプリセツトク
ロツク信号OPCL1が“1”となるため、プログ
ラムカウンタ8はEP―ROM13のアドレス40
94を指定し、EP―ROM13はアドレス409
4に記憶されたデータAを端子IM0〜IM7に印
加する。このとき、プリセツトクロツク信号
OPCL1によつて回路形式指定データ記憶回路1
4は端子IM0〜IM7に印加されたデータAを記
憶する。次いで、プリセツトクロツク信号OPCL
2が“1”となると、プログラムカウンタ8は
EP―ROM13のアドレス4095を指定するた
め、EP―ROM13はアドレス4095に記憶さ
れたデータBを端子IM0〜IM7に印加する。こ
のときは、プリセツトクロツク信号OPCL2によ
つて回路形式指定データ記憶回路15がデータB
を記憶する。よつて、回路形式指定データ記憶回
路14,15に記憶されたデータA及びデータB
によつて入出力回路2,3,4,5の回路形式が
切り換えられる。そして、プリセツトクロツク信
号OPCL2が“0”となると、プログラムカウン
タ8はリセツトされ、EP―ROM13の0000番地
が指定されて、0000番地に記憶されたプログラム
から順次実行される。尚、プリセツトクロツク信
号OPCL1あるいはOPCL2が出力されたとき、
EP―ROM13から送出されたデータはインスト
ラクシヨンレジスタ6にもプリセツトされるが、
インストラクシヨンデコーダ7の動作がプリセツ
トクロツク信号OPCL1あるいはOPCL2によつ
て禁止されているため、評価用チツプ1が誤動作
することは無い。また、本実施例では入力と出力
とを兼用する入出力回路を例に説明したが、入力
専用回路あるいは出力専用回路の回路形式を設定
する場合も同じである。 On the other hand, preset clock signals OPCL1 and
OPCL2 is also applied to the instruction decoder 7 and program counter 8, as shown in FIG.
When OPCL1 or OPCL2 becomes "1", the operation of the instruction decoder 7 is stopped, and the program counter 8 has a function of presetting different addresses. Therefore, the EP in which the program to be evaluated was written -
When operating the ROM13 by connecting it to the evaluation chip 1, the preset clock signals OPCL1 and
EP-ROM1 specified by the address value preset in program counter 8 by OPCL2
By storing 8-bit data specifying the circuit format at address 3, the circuit formats of input/output circuits 2, 3, 4, and 5 can be set. For example, if the EP-ROM 13 is provided with 8-bit data from address 0 to address 4095, the address to be preset in the program counter 8 is set to address 4094 when the preset clock signal OPCL1 is set, Tsuku signal OPCL2
It is set to address 4095 when the preset clock signal OPCL2 disappears, and is reset to address 0000 when the preset clock signal OPCL2 disappears. On the other hand, EP-ROM13
8-bit data A specifying the circuit type of input/output circuits 2 and 3 is stored at address 4094, and 8-bit data B specifying the circuit type of input/output circuits 4 and 5 is stored at address 4095. As shown in FIG. 3, when the reset signal RST is applied when evaluating the program, the preset clock signal OPCL1 becomes "1", so the program counter 8 is set to address 40 of the EP-ROM 13.
94, and EP-ROM13 is at address 409.
4 is applied to terminals IM0 to IM7. At this time, the preset clock signal
Circuit format specified data storage circuit 1 by OPCL1
4 stores data A applied to terminals IM0 to IM7. Then the preset clock signal OPCL
2 becomes “1”, the program counter 8
In order to specify address 4095 of EP-ROM 13, EP-ROM 13 applies data B stored at address 4095 to terminals IM0 to IM7. At this time, the circuit type designation data storage circuit 15 is set to the data B by the preset clock signal OPCL2.
remember. Therefore, data A and data B stored in the circuit type designation data storage circuits 14 and 15
The circuit formats of the input/output circuits 2, 3, 4, and 5 are switched by. When the preset clock signal OPCL2 becomes "0", the program counter 8 is reset, address 0000 of the EP-ROM 13 is designated, and the programs stored at address 0000 are sequentially executed. Furthermore, when the preset clock signal OPCL1 or OPCL2 is output,
The data sent from the EP-ROM 13 is also preset to the instruction register 6, but
Since the operation of the instruction decoder 7 is prohibited by the preset clock signal OPCL1 or OPCL2, the evaluation chip 1 will not malfunction. Further, in this embodiment, an input/output circuit that serves both input and output has been described as an example, but the same applies to setting the circuit format of an input-only circuit or an output-only circuit.
(ヘ) 発明の効果
上述の如く本発明によれば、量産用のマイクロ
コンピユータの入力回路あるいは出力回路に設定
できる回路形式と同じ回路形式が、複数ビツトの
データによつて指定可能であり、また、そのデー
タのプリセツトがリセツト信号の印加によつて行
われるため、評価用チツプの外部端子に接続する
外付回路が不要となり、プログラムの開発及び評
価が正確且つ容易となる利点を有している。(F) Effects of the Invention As described above, according to the present invention, the same circuit format as that which can be set for the input circuit or output circuit of a mass-produced microcomputer can be specified by multiple bits of data, and Since the data is preset by applying a reset signal, there is no need for an external circuit to connect to the external terminal of the evaluation chip, which has the advantage of making program development and evaluation accurate and easy. .
第1図は本発明の実施例を示すブロツク図、第
2図は第1図に示されたブロツクの一部回路図、
第3図は動作を示すタイミング図である。
主な図番の説明、1…評価用チツプ、2,3,
4,5…入出力回路、6…インストラクシヨンレ
ジスタ、7…インストラクシヨンデコーダ、8…
プログラムカウンタ、9…ALU、10…RAM、
11…レジスタ、12…バス、13…EP―
ROM、14,15…回路形式指定データ記憶回
路、16…プリセツトクロツク発生回路、17…
回路形式切り換え回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a partial circuit diagram of the block shown in FIG.
FIG. 3 is a timing diagram showing the operation. Explanation of main drawing numbers, 1...Evaluation chip, 2, 3,
4, 5...input/output circuit, 6...instruction register, 7...instruction decoder, 8...
Program counter, 9...ALU, 10...RAM,
11...Register, 12...Bus, 13...EP-
ROM, 14, 15...Circuit type specification data storage circuit, 16...Preset clock generation circuit, 17...
Circuit type switching circuit.
Claims (1)
て選択できるワンチツプマイクロコンピユータの
プログラム評価用のチツプに於いて、前記ワンチ
ツプマイクロコンピユータの入力あるいは出力に
設定することのできる回路形式を備えた入力回路
あるいは出力回路と、該入力回路あるいは出力回
路の回路形式を選択する複数の制御信号を出力す
る複数の回路形式指定データ記憶回路と、該回路
形式指定データ記憶回路の記憶動作を各々制御す
ると共にプログラムカウンタに各々所定のアドレ
スをセツトする複数のプリセツトクロツク信号
を、外部から印加されるリセツト信号に基いて順
次出力するプリセツトクロツク発生回路とを設
け、前記プログラムカウンタでアドレスされる外
部記憶回路の前記所定アドレスに回路形式を指定
するデータを記憶することにより、前記リセツト
信号印加時に、前記データが順次前記回路形式指
定データ記憶回路にプリセツトされ、入力回路あ
るいは出力回路の回路形式が設定されることを特
徴とするマイクロコンピユータの評価用チツプ。1. In a chip for program evaluation of a one-chip microcomputer whose input or output circuit format can be selected by a mask, an input circuit having a circuit format that can be set as the input or output of the one-chip microcomputer. Alternatively, an output circuit, a plurality of circuit format designation data storage circuits that output a plurality of control signals for selecting the circuit format of the input circuit or the output circuit, and a program that controls the storage operation of the circuit format designation data storage circuit, respectively. A preset clock generating circuit is provided which sequentially outputs a plurality of preset clock signals for setting predetermined addresses in each counter based on a reset signal applied from the outside, and an external memory addressed by the program counter is provided. By storing data specifying the circuit type at the predetermined address of the circuit, when the reset signal is applied, the data is sequentially preset in the circuit type specifying data storage circuit, and the circuit type of the input circuit or output circuit is set. A microcomputer evaluation chip characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59057776A JPS60201449A (en) | 1984-03-26 | 1984-03-26 | Evaluating chip of microcomputer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59057776A JPS60201449A (en) | 1984-03-26 | 1984-03-26 | Evaluating chip of microcomputer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60201449A JPS60201449A (en) | 1985-10-11 |
| JPS6365981B2 true JPS6365981B2 (en) | 1988-12-19 |
Family
ID=13065264
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59057776A Granted JPS60201449A (en) | 1984-03-26 | 1984-03-26 | Evaluating chip of microcomputer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60201449A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0214790U (en) * | 1988-07-13 | 1990-01-30 |
-
1984
- 1984-03-26 JP JP59057776A patent/JPS60201449A/en active Granted
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0214790U (en) * | 1988-07-13 | 1990-01-30 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60201449A (en) | 1985-10-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5881334A (en) | Complementary transistor circuit and information processor using it | |
| US5551045A (en) | Microprocessor with reset execution from an arbitrary address | |
| JPS6160443B2 (en) | ||
| JPS6365981B2 (en) | ||
| JPH10105503A (en) | Address resetting circuit for microcontroller | |
| JPS60193067A (en) | Valuating chip of microcomputer | |
| JPH0142015B2 (en) | ||
| JPH0155497B2 (en) | ||
| JPS6311706B2 (en) | ||
| JPS642177Y2 (en) | ||
| JPS6217847Y2 (en) | ||
| JPS6343559Y2 (en) | ||
| JPH06103106A (en) | Program debug device | |
| JP2604319Y2 (en) | Microcomputer | |
| JP2777133B2 (en) | Central processing unit | |
| JPH05143322A (en) | Microcomputer | |
| JP2669958B2 (en) | Microcomputer | |
| JPS5537650A (en) | Microcomputer | |
| JPS631623B2 (en) | ||
| JPS63298632A (en) | Microprocessor | |
| JPS62155439A (en) | Control device for gas instrument or the like | |
| JPS6361331A (en) | Control device for computer | |
| JPH07271750A (en) | One-chip microcomputer | |
| JPH06259264A (en) | Clock control circuit | |
| JPH0697435B2 (en) | Variation chip |