JPH01112434A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH01112434A
JPH01112434A JP62272229A JP27222987A JPH01112434A JP H01112434 A JPH01112434 A JP H01112434A JP 62272229 A JP62272229 A JP 62272229A JP 27222987 A JP27222987 A JP 27222987A JP H01112434 A JPH01112434 A JP H01112434A
Authority
JP
Japan
Prior art keywords
register
general
circuit
data
address 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.)
Pending
Application number
JP62272229A
Other languages
Japanese (ja)
Inventor
Yoshiaki Makii
牧井 義明
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
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62272229A priority Critical patent/JPH01112434A/en
Publication of JPH01112434A publication Critical patent/JPH01112434A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To improve test efficiency by providing a selecting circuit to switch the register address signal of an accumulator and a general purpose register and a general purpose output port address signal with a test signal and to output either of them. CONSTITUTION:When a test signal input port PT 1 is at a low level and a selecting circuit S2 selects a port address signal PAA, data operation-processed at a logical operation circuit ALU 3 are stored only in an accumulator ACC 5. When the PT 1 becomes a high level and the circuit S2 selects a register and address signal AA, while the data operation-processed at the ALU 3 are stored in the ACC 5, the data are simultaneously outputted to a general purpose output port PA 6 and latched. Thus, by inputting a test signal to be the latter mode, an arithmetic result in a microcomputer can be confirmed from an external part through the PA 6 simultaneously with the operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロコンピュータに関し、特にグログラム
ROMを内蔵し演算機能のテスト回路を有するシングル
チップのマイクロコンピュータに関する。− 〔従来の技術〕 従来、グログラムROMを内蔵するクングルチ、グマイ
クロコンピュータは、通常プログラム銘ROMのインス
トラクク、ン・データに基づく動作を実行する。このよ
うなシングルチ、グマイクロコンビ、−夕の内部ファン
クション動作ヲテストする手段としては、通常特定の汎
用入力ポートを介し外部よシ任意のインストラクション
拳データを挿入し実行するテスト・モードを有している
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer, and more particularly to a single-chip microcomputer having a built-in programmable ROM and a test circuit for arithmetic functions. - [Prior Art] Conventionally, a microcomputer with a built-in program ROM normally executes operations based on instructions and data in the program ROM. As a means to test the internal function operation of such a single-chip, microcombi, etc., it usually has a test mode in which arbitrary instruction data is inserted and executed from the outside through a specific general-purpose input port. There is.

かかるマイクロコンピュータの論理演算回路のテストに
ついて考えると、通常演算結果は特殊なレジスタである
ア午島ムレータに格納されるため、前記テスト・モード
にて演算機能の確認をする場合、従来のシングルチップ
・マイクロコンビュータでは、前記アキュムV−夕の内
容を汎用用カポ−)K出力させるインストラクションを
演算インストラクションに続いて実行させる必要がある
Considering the testing of logic operation circuits of such microcomputers, the operation results are usually stored in a special register, Aojima Muleta, so when checking the operation function in the test mode, it is necessary to - In the microcomputer, it is necessary to execute an instruction for outputting the contents of the above-mentioned accumulator (V) for general use, following the calculation instruction.

第4図は従来のクングルチ、グマイクロコンピュータの
演算回路を含む部分的なプロ、り回路図である。
FIG. 4 is a partial professional circuit diagram including the arithmetic circuit of a conventional Kungurchi microcomputer.

第4図に示すように、データ・バス4上に出力されたデ
ータは論理演算回路(ALU)3によシ演算処理を施し
た後、再びデータ・バス4を介し制御信号AAによシア
午ユムレータ(Acc)5にう、チされる。従って、前
記演算の結果を確認するためには、アキームV−タ(A
cc)5の格納データを読み出し、再びデータ・バス4
を介して汎用用カポ−) (PA〜PC)6a〜6cの
いずれかに出力する必要がある。尚、7.8は汎用レジ
スタであり、HA、LAは共にレジスタ・アドレス信号
、PAA−PCAは共罠ポート・アドレス信号を表わす
As shown in FIG. 4, the data output on the data bus 4 is subjected to arithmetic processing by the logic operation circuit (ALU) 3, and then is sent back via the data bus 4 to the control signal AA. Accumulator (Acc) 5 is hit. Therefore, in order to check the result of the above operation, Akeem V-ta (A
cc) 5 is read, and data bus 4 is read again.
It is necessary to output it to any one of the general-purpose capo (PA to PC) 6a to 6c via the . Note that 7.8 is a general-purpose register, HA and LA both represent register address signals, and PAA-PCA represents a common trap port address signal.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のマイクロコンピュータは、各種演算の実
行結果を確認する際、演算によシアキュムレータに格納
されたデータを毎回汎用出力ポートに出力するインスト
ラクションを実行する必要があり、このためマイクロコ
ンピュータの演算機能のテストに時間がかかるという欠
点がある。
In the conventional microcomputers mentioned above, when checking the execution results of various calculations, it is necessary to execute an instruction to output the data stored in the serial accumulator by the calculation to the general-purpose output port each time. The disadvantage is that it takes time to test the functionality.

本発明の目的は、演算機能のテストを効率化したマイク
ロコンピュータを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a microcomputer that allows efficient testing of arithmetic functions.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のマイクロコンビエータは、論理演算回路と、こ
の論理演算回路で演算処理を施した結果を格納するレジ
スタと、このレジスタの内容ヲ出力する汎用出力ポート
と、前記fa理演算回路および前記レジスタ並びに前記
汎用出力ポート間のデータの転送を行なうデーターパス
と、前記レジスタのアドレスを示しデータのう、チター
を行なうレジスタ・アドレス信号と前記汎用出力ポート
のアドレスを示すポート・アドレス信号とのうち一方を
選択し、この選択された信号によシ前記汎用出力ポート
Qデータ・う、チ制却を行なう選択回路と、この選択回
路の切り換え制御を行なうテスト信号を発生するテスト
信号発生回路とを有して構成される。
The micro combinator of the present invention includes a logic operation circuit, a register that stores the result of arithmetic processing performed by the logic operation circuit, a general-purpose output port that outputs the contents of this register, and the fa logic operation circuit and the register. and a data path that transfers data between the general-purpose output ports; a register address signal that indicates the address of the register and performs data titration; and a port address signal that indicates the address of the general-purpose output port. and a selection circuit that selects and controls the general-purpose output port Q data/Q based on the selected signal, and a test signal generation circuit that generates a test signal that controls switching of this selection circuit. It is composed of

〔実施例〕〔Example〕

次に1本発明の実施例について図面を参照して説明する
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の第一の実画例を示すマイクロコンピュ
ータのブロック回路図である。
FIG. 1 is a block circuit diagram of a microcomputer showing a first practical example of the present invention.

第1図に示すように、かかるマイクロコンピュータは、
論理演算回路(ALU)3で演算処理した結果をデータ
・バス4を介して格納するレジスタであり且りレジスタ
・アドレス信号AAによシラッチされるアキュムレータ
(Acc)5と、前記レジスタ・アドレス信号AAおよ
びポート・アドレス信号PAAのうち一方の信号をテス
ト信号入力ポート(PT)1からのテスト信号によシ選
択ターし、汎用用カポ−)(PA)6のデータ・ラッチ
信号として出力する選択回路(S)2とを有している。
As shown in FIG. 1, such a microcomputer is
an accumulator (Acc) 5 which is a register that stores the result of arithmetic processing in the logic operation circuit (ALU) 3 via a data bus 4 and is latched by the register address signal AA; and the register address signal AA. and a selection circuit that selects one signal of the port address signal PAA according to the test signal from the test signal input port (PT) 1 and outputs it as a data latch signal of the general-purpose capo (PA) 6. (S)2.

ここで、前記テスト信号は特定な入カポ−)(PT)1
よ多入力される信号であり、この信号レベルが高レベル
か低レベルかくよりレジスタ・アドレス信号AAあるい
はポート番アドレス信号PAAのいずれかが選択される
Here, the test signal is a specific input capacitor (PT)1
This signal is often input, and depending on whether the signal level is high or low, either the register address signal AA or the port number address signal PAA is selected.

まず、テスト信号入力ポート(PT)1が低レベルで且
つ選択回路(s)2がポート・アドレス信号FAAを選
択しているとすると、論理演算回路η(ALU)3で演
算処理されたデータはデータ会バス4を介して従来と同
様にレジスタとしてのアキュムレータ(Acc)5にの
み格納される。
First, assuming that the test signal input port (PT) 1 is at a low level and the selection circuit (s) 2 selects the port address signal FAA, the data processed by the logic operation circuit η (ALU) 3 is The data is stored only in an accumulator (Acc) 5 as a register via the data bus 4 as in the conventional case.

次に、テスト信号入カポ−)(PT)1が高レベルにな
り且つ選択回路(S)2がレジスタ・アドレス信号AA
を選択した場合、論理演算回路(ALU)3で演算処理
されたデータはアキュムレータ(Acc)5に格納され
ると同時に、汎用用カポ−)(PA)6にもデータ会バ
ス4を介して出力されう、チされる。
Next, the test signal input capacitor (PT)1 becomes high level and the selection circuit (S)2 selects the register address signal AA.
is selected, the data processed by the logical operation circuit (ALU) 3 is stored in the accumulator (Acc) 5, and at the same time is output to the general-purpose capo (PA) 6 via the data communication bus 4. It's going to be done, it's going to be done.

このように、後者のモードとなるべくテスト信号をテス
ト信号入力ポート1から入力することにより、マイクロ
コンピュータ内部での演算結果を演算と同時に汎用出力
ポート(PA)6を介し外部より確認することが可能に
なる。従って、内部レジスタ格納データを外部モニター
することKよシ、マイクロコンピュータのテスト効率を
向上させることができる。
In this way, by inputting the test signal from the test signal input port 1 in the latter mode, it is possible to check the calculation results inside the microcomputer simultaneously with the calculation from the outside via the general-purpose output port (PA) 6. become. Therefore, the efficiency of testing the microcomputer can be improved by externally monitoring the data stored in the internal registers.

第2図は本発明の第二の実施例を示すマイクロコンピュ
ータのプロ、り回路図である。
FIG. 2 is a professional circuit diagram of a microcomputer showing a second embodiment of the present invention.

第2図に示すように1本実施例は、アキ為ムレータ(A
cc)5用の選択回路(81)2aと、アキュムレータ
(Acc)5以外の汎用レジスター7および汎用レジス
タ1LJ8も選択回路(82,83)2b、2cとを有
することにより、汎用出力ポートロa〜6Cに於けるモ
ニターを可能としている。
As shown in FIG.
By having a selection circuit (81) 2a for cc) 5, and selection circuits (82, 83) 2b and 2c for general-purpose register 7 and general-purpose register 1LJ8 other than accumulator (Acc) 5, general-purpose output ports a to 6C This makes it possible to monitor the

すなわち、テスト信号入力ポート1からのテスト信号が
藁レベルの時、選択回路(S2 )2bはレジスタ・ア
ドレス信号HAを選択することで、また選択回路(83
)2cはレジスタ・アドレス信号LAを選択することで
、論理演算回路3からデータ・バス4を介して演算結果
を格納する際、汎用出力ポート(PB)6b及び汎用出
力ポートd(PC)6cは前記汎用レジスター7及び汎
用レジスタ山8へのデータ格納と同時にそれぞれのデー
タをラッチすることにな)、外部からのモニターが可能
となる。
That is, when the test signal from the test signal input port 1 is at a straw level, the selection circuit (S2) 2b selects the register address signal HA, and also selects the selection circuit (83).
) 2c selects the register address signal LA, and when storing the operation result from the logic operation circuit 3 via the data bus 4, the general-purpose output port (PB) 6b and the general-purpose output port d (PC) 6c By latching the data at the same time as storing the data in the general-purpose register 7 and the general-purpose register pile 8), external monitoring becomes possible.

第3図は不発明の第三の実施例を示すマイクロコンピュ
ータのプロ、り回路図である。
FIG. 3 is a professional circuit diagram of a microcomputer showing a third embodiment of the invention.

′M3図に示すように、本実施例は選択回路(81〜8
3)2a〜2cの制−用テスト信号の発生を行なう回路
として、テスト用レジスタ(TR)9をマイクロコンピ
ュータ内部に有しているものである。従って、あらかじ
めテスト用レジスタ(’l’R)9にデータをセ、トシ
ておくことにより、各レジスタ格納データの汎用用カポ
−)(PA−PC)68〜6Cを介してのモニターがc
IT NU Kなる。これにより、マイクロ・コンピュ
ータのテストを効率よく行うことかでざる。
' As shown in Figure M3, this embodiment has selection circuits (81 to 8
3) A test register (TR) 9 is provided inside the microcomputer as a circuit for generating control test signals 2a to 2c. Therefore, by setting and storing data in the test register ('l'R) 9 in advance, the data stored in each register can be monitored via the general-purpose capo (PA-PC) 68 to 6C.
IT NU K becomes. This makes it possible to test microcomputers more efficiently.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のマイクロコンピュータは
アキュムレータと、汎用レジスタのレジスタ・アドレス
信号と汎用出力ポート・アドレス信号とをテスト信号圧
よシ切り換えて出力する選択回路とを具備することによ
り、選択回路の出力信号で汎用出力ポートのラッチ制−
を行わせ、且つ論理演算回路にて演算処理した結果等を
含む内部レジスタ格納データを前記汎用出力ポート(6
a〜6c)を介して外部モニターすることができ、マイ
クロコンピュータのテストの効率をよシー層向上させる
ことができるという効果がある。
As explained above, the microcomputer of the present invention includes an accumulator and a selection circuit that switches and outputs the register address signal of the general-purpose register and the general-purpose output port address signal according to the test signal pressure, so that the microcomputer can select Latch control of general-purpose output ports using circuit output signals
, and the data stored in the internal registers, including the results of the arithmetic processing in the logical operation circuit, are sent to the general-purpose output port (6).
A to 6c) can be used for external monitoring, which has the effect of significantly improving the efficiency of microcomputer testing.

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

第1図は本発明の第一の実施例を示すマイクロコンピュ
ータのブロック回路図、第2図は本発明の第二の実施例
を示すマイクロコンピュータのブロック回路図、第3図
は本発明の第三の実施例を示スマイクロコンピュータの
ブロック回路図、第4図は従来のマイクロコンピュータ
のブロック回路図である。 1・・・・・・テスト信号入力ポート、2.2a〜2C
・・・・・・選択回路、3・・・・・・論理演算回路、
4・・・・・・データ・バス、5・・・・・・アキュム
レータ、6.6a〜6C・・・・・・汎用出力ポート、
7.8・・・・・・汎用レジスタ、9・・・・・・テス
ト用レジスタ。 代理人 弁理士  内 原   晋 AA AA 搾 II!1 グ 21!I
FIG. 1 is a block circuit diagram of a microcomputer showing a first embodiment of the invention, FIG. 2 is a block circuit diagram of a microcomputer showing a second embodiment of the invention, and FIG. 3 is a block circuit diagram of a microcomputer showing a second embodiment of the invention. FIG. 4 is a block circuit diagram of a conventional microcomputer showing three embodiments. 1...Test signal input port, 2.2a to 2C
...Selection circuit, 3...Logic operation circuit,
4...Data bus, 5...Accumulator, 6.6a-6C...General-purpose output port,
7.8...General-purpose register, 9...Test register. Agent Patent Attorney Susumu Uchihara AA AA Shibori II! 1 gu 21! I

Claims (1)

【特許請求の範囲】[Claims] 論理演算回路と、この論理演算回路で演算処理を施した
結果を格納するレジスタと、このレジスタの内容を出力
する汎用出力ポートと、前記論理演算回路および前記レ
ジスタ並びに前記汎用出力ポート間のデータの転送を行
なうデータ・バスと、前記レジスタのアドレスを示しデ
ータのラッチ制御を行なうレジスタ・アドレス信号と前
記汎用出力ポートのアドレスを示すポート・アドレス信
号とのうちの一方を選択し、この選択された信号により
前記汎用出力ポートのデータ・ラッチ制御を行なう選択
回路と、この選択回路の切り換え制御を行なうテスト信
号を発生するテスト信号発生回路とを有することを特徴
とするマイクロコンピュータ。
A logic operation circuit, a register that stores the result of arithmetic processing performed by the logic operation circuit, a general-purpose output port that outputs the contents of this register, and a data exchange between the logic operation circuit, the register, and the general-purpose output port. A data bus to be transferred, a register address signal indicating the address of the register and controlling the data latch, and a port address signal indicating the address of the general-purpose output port are selected, and the selected one is selected. A microcomputer comprising: a selection circuit that performs data latch control of the general-purpose output port using a signal; and a test signal generation circuit that generates a test signal that performs switching control of the selection circuit.
JP62272229A 1987-10-27 1987-10-27 Microcomputer Pending JPH01112434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62272229A JPH01112434A (en) 1987-10-27 1987-10-27 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62272229A JPH01112434A (en) 1987-10-27 1987-10-27 Microcomputer

Publications (1)

Publication Number Publication Date
JPH01112434A true JPH01112434A (en) 1989-05-01

Family

ID=17510916

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62272229A Pending JPH01112434A (en) 1987-10-27 1987-10-27 Microcomputer

Country Status (1)

Country Link
JP (1) JPH01112434A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182248A (en) * 1981-05-01 1982-11-10 Toshiba Corp Arithmetic processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57182248A (en) * 1981-05-01 1982-11-10 Toshiba Corp Arithmetic processor

Similar Documents

Publication Publication Date Title
JPS5936857A (en) Processor unit
JPH0869391A (en) Data processor and its method
JPH0227443A (en) Diagnosis control device
JPS58197553A (en) Program monitor
US5872961A (en) Microcomputer allowing external monitoring of internal resources
JPH01112434A (en) Microcomputer
US5179668A (en) Signal processor
JPH04359323A (en) Microcomputer
JPS6167148A (en) Microcomputer
KR100318315B1 (en) One Chip Microcomputer
JPS6316316A (en) Resetting device
KR0126106B1 (en) Fuzzy arithemetic apparatus
JPS6031641A (en) One chip microcomputer
JPH03217988A (en) One-chip microcomputer
JPS61282946A (en) Programmable controller
JPH0358141A (en) Integrated circuit with logic for user
JPH01230162A (en) Microcomputer
JP2919841B2 (en) Testing method for data processing equipment
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPS60178524A (en) One-chip microcomputer
JPS59121440A (en) Integration circuit
JPS6345644A (en) Microprocessor
JP2004139340A (en) Measuring instrument
JPS6091454A (en) Integrated circuit
JPH01116736A (en) Input/output port system for one-chip microcomputer