JPH01214945A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH01214945A
JPH01214945A JP63041174A JP4117488A JPH01214945A JP H01214945 A JPH01214945 A JP H01214945A JP 63041174 A JP63041174 A JP 63041174A JP 4117488 A JP4117488 A JP 4117488A JP H01214945 A JPH01214945 A JP H01214945A
Authority
JP
Japan
Prior art keywords
output
data
output data
circuit
terminal
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.)
Granted
Application number
JP63041174A
Other languages
Japanese (ja)
Other versions
JP2569693B2 (en
Inventor
Kazunori Nagasaki
長崎 和徳
Yukihiro Nishiguchi
西口 幸弘
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 JP63041174A priority Critical patent/JP2569693B2/en
Publication of JPH01214945A publication Critical patent/JPH01214945A/en
Application granted granted Critical
Publication of JP2569693B2 publication Critical patent/JP2569693B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To efficiently utilize a terminal by comparing output data with the data read out by a data reading-out means in accordance with an output data monitoring instruction and, when they do not coincide with each other, outputting an interruption requesting signal. CONSTITUTION:When a monitoring instruction executing means 22 reads instruction words which instructs monitoring of output data, the means 22 allows an arithmetic means to read the data to be outputted to a readout means 24 and the data actually outputted to the terminal 36 of the output data written in monitoring means 23 and 23 and, when they are coincident, discriminates it as normal. When they are discordant, the means 22 discriminates it as abnormal and allows an interruption control circuit 40 to output an interruption requesting signal. Therefore, the output data can be monitored without using any terminal other than the terminal 36 through which the data are outputted and terminals limited in number can be utilized efficiently.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中央処理装置と、プログラムメモリと、割込
み制御回路と、中央処理装置の制御により出力データが
書込まれる記憶手段と、記憶手段に書込まれた出力デー
タを入力し、端子に出力する出力手段とを有するマイク
ロコンピュータに関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a central processing unit, a program memory, an interrupt control circuit, a storage means into which output data is written under the control of the central processing unit, and a storage means. The present invention relates to a microcomputer having output means for inputting output data written in a terminal and outputting it to a terminal.

〔従来の技術〕[Conventional technology]

第4図はこの種のマイクロコンピュータの従来例を示す
構成図、第5図は第4図のマイクロコンピュータ50が
出力データチエツクのためどのように入出力端子53.
〜536を用いているかを示す説明図である。
FIG. 4 is a block diagram showing a conventional example of this type of microcomputer, and FIG. 5 shows how the microcomputer 50 shown in FIG. 4 connects the input/output terminals 53, .
It is an explanatory view showing whether ~536 is used.

マイクロコンピュータ50は、プログラムメモリ51、
 CPU52.入出力装置539割込み制御回路54を
有する。CPU52はプログラムメモリ51の内容に基
づいて各種データを演算する。そして、CPU52は制
御バス、アドレスバスを介して入出力装置53を制御し
、データバスを介しデータの授受を行う。割込み制御回
路54はCPU52に対する割込み制御を行う。入出力
装置53はCPU52に制御され、外部装置60に出力
端子53. 、532.533を介してデータD、、D
2.D3を出力し、出力したデータD、、D2.D3を
セルフチエツクのために入力端子534 、535.5
36を介して入力する。
The microcomputer 50 includes a program memory 51,
CPU52. It has an input/output device 539 and an interrupt control circuit 54. The CPU 52 calculates various data based on the contents of the program memory 51. The CPU 52 controls the input/output device 53 via the control bus and address bus, and sends and receives data via the data bus. The interrupt control circuit 54 performs interrupt control for the CPU 52. The input/output device 53 is controlled by the CPU 52 and is connected to an external device 60 through an output terminal 53 . , 532.533 via data D, ,D
2. D3 and the output data D, , D2 . Input terminals 534, 535.5 for self-checking D3
36.

入力端子534 、53s 、 536から入力された
データD+ 、D2 、D3は出力端子53+ 、 5
32 、533から出力されたデータl)、、D2.D
3と比較され、それぞれ同一であれば正常であり、異な
っておれば異常が発生したことが検出されるので、マイ
クロコンピュータ50の出力データD、、D2 。
Data D+, D2, D3 input from input terminals 534, 53s, 536 are output terminals 53+, 5.
32, 533 output data l), , D2. D
3, and if they are the same, it is normal, and if they are different, it is detected that an abnormality has occurred. Therefore, the output data D, , D2 of the microcomputer 50.

D3の論理レベルに関する監視が行えるわけである。This allows monitoring of the logic level of D3.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のマイクロコンピュータは、入出力装置5
3の出力端子53. 、532.533から出力するデ
ータD、、D2.D3を監視するため、出力したデータ
D、、D2.D3を入力端子534゜535、536に
入力しているので、入力端子534゜535、536を
他の用途に使用できず、限られた個数の端子を効率よく
利用できないという欠点がある。
The conventional microcomputer described above has an input/output device 5.
3 output terminal 53. , 532.533 output data D, , D2. In order to monitor D3, the output data D, , D2 . Since D3 is input to the input terminals 534, 535, 536, the input terminals 534, 535, 536 cannot be used for other purposes, and the limited number of terminals cannot be used efficiently.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のマイクロコンピュータは、 記憶手段に書込まれた出力データと、出力手段の出力端
から出力されているデータとを出力データ監視指示に基
づいてそれぞれ独立に読出す出力データ読出し手段と、 プログラムメモリから出力データの監視を指示する命令
語を読取ると、出力データ監視指示を出力データ読出し
手段に出力し、出力データ読出し手段によって読出され
た両データを中央処理装置の演算手段に比較させ、不一
致を検出したときは割込み制御回路に割込み要求信号を
出力するように指示する監視命令実行手段とを有する。
The microcomputer of the present invention includes an output data reading means for independently reading out the output data written in the storage means and the data output from the output end of the output means based on an output data monitoring instruction, and a program. When a command word instructing to monitor output data is read from the memory, the output data monitoring instruction is output to the output data reading means, and the calculation means of the central processing unit compares both data read by the output data reading means, and detects a discrepancy. and a monitoring instruction execution means for instructing the interrupt control circuit to output an interrupt request signal when the interrupt request signal is detected.

〔作用〕[Effect]

このように、監視命令実行手段が出力データの監視を指
示する命令語を読取ったとき、出力データ読出し手段に
出力すべきデータと端子に実際に出力されているデータ
をそれぞれ読取らせ、読取らせたデータが一致していれ
ば正常と判断し一致していなければ正常でないと判断し
て割込み制御回路に割込み要求信号を出力させることに
より、データを出力させている端子以外の端子を使用す
・ることなく出力データを監視できる。、(実施例〕 次に、本発明の実施例について図面を参照して説明する
In this way, when the monitoring command execution means reads a command instructing to monitor output data, the output data reading means reads the data to be output and the data actually output to the terminal, respectively. If the data match, it is determined to be normal, and if they do not match, it is determined to be abnormal, and the interrupt control circuit outputs an interrupt request signal.・Output data can be monitored without any need. , (Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明のマイクロコンピュータの第1の実施例
を示す構成図、第2図は第1図の実施例の動作を示すタ
イミングチャートである。
FIG. 1 is a block diagram showing a first embodiment of a microcomputer according to the present invention, and FIG. 2 is a timing chart showing the operation of the embodiment of FIG.

本実施例のマイクロコンピュータは、プログラムメモリ
10と、中央処理装置20(以降CPU20と記す)と
、入出力装置30と、割込み制御回路40とから構成さ
れている。
The microcomputer of this embodiment includes a program memory 10, a central processing unit 20 (hereinafter referred to as CPU 20), an input/output device 30, and an interrupt control circuit 40.

CPU20はアドレスバス211.データバス212、
命令レジスタ22.命令デコーダ24.テンポラリレジ
スタ23. 、232.算術論理演算ユニット25(以
降ALU25と記す)、結果記憶レジスタ261、フラ
グレジスタ262.インバータ27.アンド回路28.
タイミング制御回路29を有する。
The CPU 20 uses an address bus 211. data bus 212,
Instruction register 22. Instruction decoder 24. Temporary register 23. , 232. Arithmetic and logic unit 25 (hereinafter referred to as ALU 25), result storage register 261, flag register 262. Inverter 27. AND circuit 28.
It has a timing control circuit 29.

命令レジスタ22は、プログラムメモリlOの命令語を
読込み、読込んだ命令語に基づいてアドレスバス21.
にアドレスを命令デコーダ24に命令を出力する。タイ
ミング制御回路29は2相信号であるクロックφ重、φ
2および命令実行タイミングTl 、T2.T3. T
4を出力する。命令デコーダ24は入力した命令を解読
し、命令実行タイミングT、、T7.T3.T4に同期
して、リード。
The instruction register 22 reads the instruction word from the program memory IO, and based on the read instruction word, the instruction register 22 reads the instruction word from the address bus 21.
The address is outputted to the instruction decoder 24 as an instruction. The timing control circuit 29 receives clocks φ and φ, which are two-phase signals.
2 and instruction execution timing Tl, T2. T3. T
Outputs 4. The instruction decoder 24 decodes the input instruction and determines the instruction execution timings T, , T7 . T3. Lead in synchronization with T4.

ライトを指示する制御信号RD、 WRとテンポラリレ
ジスタ23. 、232の内容を比較することを指示す
る制御信号Aを出力し、割込み信号REQがあったとき
は割込みを受付ける。テンポラリレジスタ23、 、2
32はそれぞれタイミングT1φ2.T2φ2に同期し
て、入出力装置30から送られたデータをデータバス2
1.から読込む。ALU25は制御信号Aを入力してい
ないときはテンポラリレジスタ23、 、232が保持
しているデータを入力し、演算を行い、演算結果を結果
記憶レジスタ261 に出力する。また、制御信号Aを
入力しているときはテンポラリレジスタ23. 、23
□が保持しているデータを比較し比較結果を結果記憶レ
ジスタ26.に出力し、比較した2つのデータが一致し
ている場合は論理1で、一致していない場合は論理0で
フラグレジスタ262をセットする。結果記、(!!レ
ジスタ26、はALU25よりタイミングT3φ2に同
期して入力したデータをデータバス212に出力する。
Control signals RD and WR for instructing write and temporary register 23. , 232 is output, and when an interrupt signal REQ is received, the interrupt is accepted. Temporary register 23, , 2
32 are respective timings T1φ2. In synchronization with T2φ2, the data sent from the input/output device 30 is transferred to the data bus 2.
1. Read from. When the ALU 25 does not receive the control signal A, it inputs the data held in the temporary registers 23, 232, performs calculations, and outputs the calculation results to the result storage register 261. Also, when the control signal A is being input, the temporary register 23. , 23
Compare the data held by □ and store the comparison result in the result storage register 26. If the two compared data match, the flag register 262 is set to logic 1, and if they do not match, the flag register 262 is set to logic 0. As a result, the register 26 outputs the data input from the ALU 25 to the data bus 212 in synchronization with timing T3φ2.

フラグレジスタ262はALU25よりタイミングT3
φ2に同期してセットされた論理0または論理1をイン
バータ27を介して出力する。アンド回路28は制御信
号Aと、命令実行タイミングT4と、インバータ27の
出力とのアンドをとる。割込み制御回路40はアンド回
路28より論理1を入力すると割込み要求信号REQを
命令デコーダ24に出力する。
The flag register 262 receives timing T3 from the ALU 25.
A logic 0 or logic 1 set in synchronization with φ2 is outputted via the inverter 27. The AND circuit 28 ANDs the control signal A, the instruction execution timing T4, and the output of the inverter 27. When the interrupt control circuit 40 receives a logic 1 from the AND circuit 28, it outputs an interrupt request signal REQ to the instruction decoder 24.

入出力装置30は、アドレスデコーダ31.出力ラッチ
32.アンド回路33□、 332.333.334゜
バッファ回路341 、342 、343 、端子36
を有する。入出力装置3oは実際は複数のビット用入力
装置および出力装置を有しているが、本実施例では説明
を簡単にするため1ビツト分の出力装置のみを示してい
る。
The input/output device 30 includes an address decoder 31 . Output latch 32. AND circuit 33□, 332.333.334° buffer circuit 341, 342, 343, terminal 36
has. Although the input/output device 3o actually has a plurality of input devices and output devices for bits, in this embodiment, only an output device for one bit is shown to simplify the explanation.

アドレスデコーダ31はアドレスバス211 より入力
したアドレスが出力ラッチ32を選択するものであると
出力を論理1とする。アンド回路33.は制御信号WR
と、クロックφ2と、アドレスデコーダ31の出力との
アンドをとる。出力ラッチ32はアンド回路33.の出
力が論理1となると、接続されたデータバス212の1
ビツトをラッチする。バッファ回路34.は出力ラッチ
32の出力を入力し、端子36に出力する。アンド回路
332は制御信号Aと命令実行タイミングTIとのアン
ドをとる。アンド回路333はjlIIJ御信号RDと
命令実行タイミングT、とアドレスデコーダ31の出力
とのアンドをとる。オア回路35はアンド回路332の
出力とアンド回路333の出力とのオアをとる。バッフ
ァ回路34、はオア回路35の出力が論理1のとき出力
ラッチ32の出力をデータバス212に出力する。アン
ド回路334は制御信号Aと命令実行タイミングT2と
のアンドをとる。バッファ回路343はアンド回路33
4の出力が論理1のとき端子36の論理レベルを入力し
データバス212に出力する。
Address decoder 31 outputs logic 1 if the address input from address bus 211 selects output latch 32 . AND circuit 33. is the control signal WR
, the clock φ2, and the output of the address decoder 31 are ANDed. The output latch 32 is an AND circuit 33. 1 of the connected data bus 212 when the output of
Latch the bit. Buffer circuit 34. inputs the output of the output latch 32 and outputs it to the terminal 36. The AND circuit 332 ANDs the control signal A and the instruction execution timing TI. The AND circuit 333 ANDs the jlIIJ control signal RD, the instruction execution timing T, and the output of the address decoder 31. The OR circuit 35 ORs the output of the AND circuit 332 and the output of the AND circuit 333. The buffer circuit 34 outputs the output of the output latch 32 to the data bus 212 when the output of the OR circuit 35 is logic 1. The AND circuit 334 ANDs the control signal A and the instruction execution timing T2. The buffer circuit 343 is an AND circuit 33
When the output of the terminal 4 is logic 1, the logic level of the terminal 36 is inputted and output to the data bus 212.

次に、本実施例の動作について第2図を参照して説明す
る。
Next, the operation of this embodiment will be explained with reference to FIG.

マイクロコンピュータがプログラム、メモリ10に格納
されている命令語に従って命令を実行しているとき、命
令語の1つが出力ラッチ32の出力データに対するチエ
ツク命令を指示するものであると、その命令語を入力し
た命令レジスタ22はアドレスデコーダ31宛のアドレ
スを出力し、チエツク命令を命令デコーダ24に出力す
る。命令デコーダは命令実行タイミングT、に制御信号
RD、 WR,Aをそれぞれ論理1,0.1とする。ア
ンド回路331の出力は制御信号WHにより論理0とさ
れるから出力ラッチ32は直前にラッチした出力を保持
している。命令実行タイミングT!において、アンド回
路332 、333の出力は論理1であり、アンド回路
334の出力は論理0である。オア回路35の出力も論
理1となるのでバッファ回路342はアクティブになり
、出力ラッチ32の保持している出力をデータバス21
2に出力する。データバス212に出力された出力ラッ
チ32のデータは、命令実行タイミングT1でクロック
φ2が論理1のときテンポラリレジスタ23.に読込ま
れる。命令実行タイミングT2においては、アンド回路
332 、333の出力は論理Oとなるので、オア回路
35の出力も論理0となり、バッファ回路342はイン
アクティブになる。アンド回路334の出力は論理1と
なるのでバッファ回路343はアクティブとなり、端子
36のデータがデータバス212に出力される。出力さ
れた端子36のデータはタイミングT2φ2に同期して
テンポラリレジスタ232に読込まれる。ALU25は
命令実行タイミングT3において、テンポラリレジスタ
23. 、.232のデータを比較し、比較結果が結果
記憶レジスタ26.にタイミングT3φ2に同期して保
持され、かつ、比較したデータが一致していれば論理1
が、一致していなければ論理0がタイミングT3φ2に
同期してフラグレジスタ262に保持される。フラグレ
ジスタ262に論理0が保持された場合は、命令実行タ
イミングT4にアンド回路28から論理1が出力される
ので、割込み制御回路40から割込み要求信号REQが
出力され、出力データに異常が発生したことが検出され
る。
When the microcomputer is executing instructions according to the program and instruction words stored in the memory 10, if one of the instruction words instructs a check instruction for the output data of the output latch 32, that instruction word is input. The instruction register 22 outputs an address addressed to the address decoder 31 and outputs a check instruction to the instruction decoder 24. The instruction decoder sets control signals RD, WR, and A to logic 1 and 0.1, respectively, at instruction execution timing T. Since the output of the AND circuit 331 is set to logic 0 by the control signal WH, the output latch 32 holds the output latched immediately before. Command execution timing T! In this case, the outputs of AND circuits 332 and 333 are logic 1, and the output of AND circuit 334 is logic 0. Since the output of the OR circuit 35 also becomes logic 1, the buffer circuit 342 becomes active and transfers the output held by the output latch 32 to the data bus 21.
Output to 2. The data of the output latch 32 output to the data bus 212 is stored in the temporary register 23. when the clock φ2 is logic 1 at the instruction execution timing T1. is read into. At instruction execution timing T2, the outputs of the AND circuits 332 and 333 become logic O, so the output of the OR circuit 35 also becomes logic 0, and the buffer circuit 342 becomes inactive. Since the output of the AND circuit 334 becomes logic 1, the buffer circuit 343 becomes active, and the data at the terminal 36 is output to the data bus 212. The output data of the terminal 36 is read into the temporary register 232 in synchronization with timing T2φ2. At instruction execution timing T3, the ALU 25 stores the temporary register 23. ,. 232, and the comparison result is stored in the result storage register 26. is held in synchronization with timing T3φ2, and if the compared data match, the logic becomes 1.
However, if they do not match, a logic 0 is held in the flag register 262 in synchronization with timing T3φ2. When a logic 0 is held in the flag register 262, a logic 1 is output from the AND circuit 28 at instruction execution timing T4, so an interrupt request signal REQ is output from the interrupt control circuit 40, indicating that an abnormality has occurred in the output data. is detected.

第3図は本発明の第2の実施例を示す構成図である。FIG. 3 is a block diagram showing a second embodiment of the present invention.

本実施例は第1の実施例に比較して入出力装置39のみ
が異なるので、説明も主として入出力装置、39のうち
第1の実施例の入出力装置30と異なる部分について行
う。第1の実施例と同じ符号を付された回路は第1の実
施例のものと同じ動作をするので説明は省略する。
Since this embodiment differs from the first embodiment only in the input/output device 39, the explanation will mainly be given to the input/output device 39, which is different from the input/output device 30 of the first embodiment. Circuits designated by the same reference numerals as in the first embodiment operate in the same manner as in the first embodiment, and therefore their explanation will be omitted.

アンド回路33゜はアドレスデコーダ31がPMクラッ
チ7を選択する出力と、制御信号WRと、クロックφ2
とのアンドをとる。PMクラッチ7はアンド回路33゜
の出力が論理1のときデータバス212のデータを入力
し、アンド回路33゜の出力が論理Oのときは入力した
データを保持し、保持しているデータの論理を反転して
出力する。アンド −回路335はアドレスデコーダ3
1が出力ラッチ32を選択する出力と、命令実行タイミ
ングT、と、制御信号RDと、PMクラッチ7の出力と
のアンドをとり、オア回路35.はアンド回路332の
出力とアンド回路335の出力とのオアをとる。インバ
ータ38はPMクラッチ7の出力の論理を反転する。ア
ンド回路336はアドレスデコーダ31が出力ラッチ3
2を選択する選択出力と、インバータ38の出力と、制
御信号RDとのアンドをとる。オア回路352はアンド
回路334.336のオアをとる。バッファ回路34゜
はPMクラッチ7の出力が論理0だとハイインピーダン
スとなり、論理1だとバッファ回路34゜と同じ(動き
をする。
The AND circuit 33° receives the output of the address decoder 31 for selecting the PM clutch 7, the control signal WR, and the clock φ2.
Take the AND with. The PM clutch 7 inputs the data on the data bus 212 when the output of the AND circuit 33° is logic 1, holds the input data when the output of the AND circuit 33° is logic O, and changes the logic of the held data. Invert and output. AND - circuit 335 is address decoder 3
1 selects the output latch 32, the command execution timing T, the control signal RD, and the output of the PM clutch 7, and performs an OR circuit 35.1. takes the OR of the output of the AND circuit 332 and the output of the AND circuit 335. The inverter 38 inverts the logic of the output of the PM clutch 7. The AND circuit 336 outputs the address decoder 31 from the output latch 3.
The selection output for selecting 2, the output of the inverter 38, and the control signal RD are ANDed. The OR circuit 352 takes the OR of the AND circuits 334 and 336. The buffer circuit 34° becomes high impedance when the output of the PM clutch 7 is logic 0, and when it is logic 1, it operates in the same way as the buffer circuit 34°.

次に、本実施例の入出力装置39の動作について説明す
る。
Next, the operation of the input/output device 39 of this embodiment will be explained.

アドレスデコーダ31はPMクラッチ7を選択するアド
レスを入力すると論理1をアンド回路33゜に出力する
。この出力を入力したアンド回路33゜が制御信号WR
とクロックφ2とアンドをとり、論理1を出力すると、
PMクラッチ7はデータバス212に出力されるデータ
を入力する。
When the address decoder 31 receives an address for selecting the PM clutch 7, it outputs a logic 1 to the AND circuit 33°. The AND circuit 33° that inputs this output outputs the control signal WR.
When we AND the clock φ2 and output a logic 1, we get
PM clutch 7 inputs data output to data bus 212 .

(1)PMクラッチ7に論理0が設定された場合。(1) When PM clutch 7 is set to logic 0.

バッファ回路34o、アンド回路335がアクティブに
、アンド回路336がインアクティブになり、第1の実
施例の入出力装置30と同一の出力ボートとなるので説
明は省略する。
The buffer circuit 34o and the AND circuit 335 become active, and the AND circuit 336 becomes inactive, forming the same output port as the input/output device 30 of the first embodiment, so a description thereof will be omitted.

(2)PMクラッチ7に論理1が設定された場合。(2) When PM clutch 7 is set to logic 1.

バッファ回路34oはハイインピーダンスとなり、アン
ド回路335はインアクティブ、アンド回路336はア
クティブになる。したがって、制御信号RDに制御され
て端子36からバッファ回路343を介してデータを読
込む入力ポートとなっている。
The buffer circuit 34o becomes high impedance, the AND circuit 335 becomes inactive, and the AND circuit 336 becomes active. Therefore, it serves as an input port that reads data from the terminal 36 via the buffer circuit 343 under the control of the control signal RD.

第2の実施例はPMクラッチ7へ設定する論理により、
出力ボートとした場合は第1の実施例と同様にすること
ができる上に入力ボートとしても用いることができ、個
数に制限のある端子36をより柔軟に利用できる。また
、これを実現するために第1の実施例より実質的に増加
したものはPMクラッチ7.アンド回路33o、インバ
ータ38.オア回路352のみである。
In the second embodiment, the logic set to the PM clutch 7 allows
When used as an output port, it can be similar to the first embodiment and can also be used as an input port, making it possible to use the limited number of terminals 36 more flexibly. Further, in order to realize this, the PM clutch 7. is substantially increased from the first embodiment. AND circuit 33o, inverter 38. There is only an OR circuit 352.

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

以上説明したように本発明は、監視命令実行手段が出力
データの監視を指示する命令語を読取ったとき、出力デ
ータ読出し手段に出力すべきデータと実際端子に出力さ
れているデータをそれぞれ読取らせ、読取らせたデータ
が一致していれば正常と判断し一致していなければ正常
でないと判断して割込み制御回路に割込み要求信号を出
力させることにより、データを出力させている端子以外
の端子を使用することなく出力データを監視できるので
個数に制限のある端子を効率よく利用できる効果がある
As explained above, in the present invention, when the monitoring command execution means reads the command word instructing the monitoring of output data, the data to be output to the output data reading means and the data actually output to the terminal are read respectively. If the read data match, it is determined to be normal, and if they do not match, it is determined to be abnormal, and the interrupt control circuit outputs an interrupt request signal. Since output data can be monitored without using any terminals, the limited number of terminals can be used efficiently.

【図面の簡単な説明】 第1図は本発明のマイクロコンピュータの第1の実施例
を示す構成図、第2図は第1図の実施例の動作を示すタ
イミングチャート、第3図は本発明の第2の実施例を示
す構成図、第4図は従来のマイクロコンピュータを示す
構成図、第5図は第4図のマイクロコンピュータが出力
データチエツクのためどのように入出力端子を用いてい
るかを示す説明図である。 lO・・・・・・プログラムメモリ、 20・・・−CP U 。 21、・・・アドレスバス、 2I2・・・データバス、 22・・・・・・命令レジスタ、 23+ 、 2:12・・・・・・テンポラリレジスタ
、24・・・・・・命令デコーダ、 25・・・・・・ALU、 26、・・・結果記憶レジスタ、 262−・・フラグレジスタ、 27−−−−−−インバータ、 2 a −−−−−−アンド回路、 29−−−−−−タイミング制御回路、3Q、 39−
・・・・・入出力装置、31・・・・・・アドレスデコ
ーダ、 32・・・・・・出力ラッチ、 33゜、 33.、〜.336・・・・・・アンド回路
、34゜、 34. 、34..343・・・・・・バ
ッファ回路、35、351 、352・・・・・・オア
回路、36・・・・・・端子、 37−・・・・・PMラッチ、 38・・・・・・インバータ、 10・・・・・・割込み1b制御回路。
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a block diagram showing a first embodiment of the microcomputer of the present invention, FIG. 2 is a timing chart showing the operation of the embodiment of FIG. 1, and FIG. 3 is a diagram of the present invention. Fig. 4 is a block diagram showing a conventional microcomputer, and Fig. 5 shows how the microcomputer shown in Fig. 4 uses input/output terminals to check output data. FIG. lO...Program memory, 20...-CPU. 21, Address bus, 2I2, Data bus, 22, Instruction register, 23+, 2:12, Temporary register, 24, Instruction decoder, 25 ...ALU, 26, ...Result storage register, 262--Flag register, 27-----Inverter, 2a-----AND circuit, 29-------- -Timing control circuit, 3Q, 39-
...Input/output device, 31...Address decoder, 32...Output latch, 33°, 33. , ~. 336...AND circuit, 34°, 34. , 34. .. 343...Buffer circuit, 35, 351, 352...OR circuit, 36...Terminal, 37-...PM latch, 38... Inverter, 10... Interrupt 1b control circuit.

Claims (1)

【特許請求の範囲】 1、中央処理装置と、プログラムメモリと、割込み制御
回路と、中央処理装置の制御により出力データが書込ま
れる記憶手段と、記憶手段に書込まれた出力データを入
力し、端子に出力する出力手段とを有するマイクロコン
ピュータにおいて、前記記憶手段に書込まれた出力デー
タと、前記出力手段の出力端から出力されているデータ
とを出力データ監視指示に基づいてそれぞれ独立に読出
す出力データ読出し手段と、 前記プログラムメモリから出力データの監視を指示する
命令語を読取ると、出力データ監視指示を出力データ読
出し手段に出力し、出力データ読出し手段によって読出
された両データを前記中央処理装置の演算手段に比較さ
せ、不一致が検出されたときは前記割込み制御回路に割
込み要求信号を出力するように指示する監視命令実行手
段とを有することを特徴とするマイクロコンピュータ。
[Scope of Claims] 1. A central processing unit, a program memory, an interrupt control circuit, a storage means into which output data is written under the control of the central processing unit, and an input device for inputting the output data written in the storage means. , a microcomputer having an output means for outputting to a terminal, the output data written in the storage means and the data output from the output terminal of the output means are independently input based on an output data monitoring instruction. an output data reading means to read out; and upon reading a command word instructing monitoring of output data from the program memory, outputting an output data monitoring instruction to the output data reading means, and reading out both data read by the output data reading means; 1. A microcomputer comprising: a monitoring command execution means for making a comparison with an arithmetic means of a central processing unit and instructing the interrupt control circuit to output an interrupt request signal when a discrepancy is detected.
JP63041174A 1988-02-23 1988-02-23 Microcomputer Expired - Lifetime JP2569693B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63041174A JP2569693B2 (en) 1988-02-23 1988-02-23 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63041174A JP2569693B2 (en) 1988-02-23 1988-02-23 Microcomputer

Publications (2)

Publication Number Publication Date
JPH01214945A true JPH01214945A (en) 1989-08-29
JP2569693B2 JP2569693B2 (en) 1997-01-08

Family

ID=12601064

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63041174A Expired - Lifetime JP2569693B2 (en) 1988-02-23 1988-02-23 Microcomputer

Country Status (1)

Country Link
JP (1) JP2569693B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276360A (en) * 2007-04-26 2008-11-13 Fujitsu Ten Ltd Electronic control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008276360A (en) * 2007-04-26 2008-11-13 Fujitsu Ten Ltd Electronic control device

Also Published As

Publication number Publication date
JP2569693B2 (en) 1997-01-08

Similar Documents

Publication Publication Date Title
EP0186006B1 (en) Multiprocessor system
JPH048874B2 (en)
JPS5832416B2 (en) computer interface
JPH0277846A (en) Microprocessor
JP3693013B2 (en) Data processing system, array type processor, data processing apparatus, computer program, information storage medium
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
US7254667B2 (en) Data transfer between an external data source and a memory associated with a data processor
JP3861898B2 (en) Data processing system, array type processor, data processing apparatus, computer program, information storage medium
JP2569693B2 (en) Microcomputer
JPS5852264B2 (en) Multi-unit system
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JP3310482B2 (en) Microcomputer
JPS6292064A (en) parallel processing computer
JP2693598B2 (en) Program execution controller for digital signal processor
JP2000076199A (en) Multiprocessor device provided with debugging terminal
JPH01121965A (en) Microprocessor
JPH02297684A (en) Microcomputer
JPS60243763A (en) Dual port memory control circuit
JPH07121483A (en) Shared memory access control circuit
JPH02183332A (en) Programmed control system
JPH05128279A (en) One-chip microcomputer
JPH0561812A (en) Information processing system
JPH10333729A (en) Numerical controller
JPS63201810A (en) Time system of information processing system
JPH01137355A (en) Output circuit for one-chip microprocessor