JPS6165347A - Information processor - Google Patents

Information processor

Info

Publication number
JPS6165347A
JPS6165347A JP59186811A JP18681184A JPS6165347A JP S6165347 A JPS6165347 A JP S6165347A JP 59186811 A JP59186811 A JP 59186811A JP 18681184 A JP18681184 A JP 18681184A JP S6165347 A JPS6165347 A JP S6165347A
Authority
JP
Japan
Prior art keywords
processing
timer
reception
request
transmission
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
JP59186811A
Other languages
Japanese (ja)
Other versions
JPH0571980B2 (en
Inventor
Masahiro Nomura
昌弘 野村
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 JP59186811A priority Critical patent/JPS6165347A/en
Priority to DE85102394T priority patent/DE3587643T2/en
Priority to EP85102394A priority patent/EP0153764B1/en
Publication of JPS6165347A publication Critical patent/JPS6165347A/en
Priority to US07/287,622 priority patent/US5036458A/en
Priority to US07/691,284 priority patent/US5159688A/en
Priority to US07/691,297 priority patent/US5163150A/en
Publication of JPH0571980B2 publication Critical patent/JPH0571980B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/32Handling requests for interconnection or transfer for access to input/output bus using combination of interrupt and burst mode transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To reduce the load on a CPU due to the intervention of software interrupt processing and the load on a timer used for monitoring by bringing timer functions for monitoring serial transmission and reception under the control of one timer together. CONSTITUTION:The timer O16 which is started in response to automatic data transfer processing by a transmission I/O request outputs a timer-0 counting end signal 69 to a request control part 31 for I/O at specific intervals of time based upon a value set in a timer 0-modulo register 18. The I/O request control part 31 reports timer-0 automatic data transfer processing to an I/O request accepting part 32 and decreases the contents of a timer counter part (WDC)47 for monitoring an I/O request generating origin by one. When normal serial transmission is performed, reception completion is reported to a serial data transfer device 1 within a specific time to stop the subtraction of WDC47. On the other hand, if abnormality occurs in the serial transmission, the subtraction of EDC47 is not stopped and the value becomes 0, detecting 0.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は送信処理要求を発生することのできるシリアル
送受信装置あるいは内部シリアルインタフェース回路を
有する情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a serial transmitting/receiving device capable of generating a transmission processing request or an information processing device having an internal serial interface circuit.

(従来の技術) 従来、時間的な監aを敬するシリアルデータ転送処理に
おいては、シリ、アルインタフェースが1データ送受信
毎に割込みを発生し、cpuのソフトウェア処理により
シリアルデータ転送処理を行なうと共に、シリアルイン
タフェースに割付ffられたタイマが正常なシリアル送
受信処理の時間監視、つまシリアル受信においては一定
時間以内の相手先受信完了のシリアル受信においては一
定時間以内の受信テークの有無の検出を行なっている0 次に、従来のタイマによる時間監視を用いたシリアルデ
ータ転送処理の概要を、第2図のブロック図によシ説明
する。図において、1はシリアルデータ転送装置、2は
割込制御部、3は実行部、4はプルグラムメモリ、5は
データメモリ、6はタイマ、7は内部バスを示している
(Prior Art) Conventionally, in serial data transfer processing that respects time management, the serial interface generates an interrupt every time one data is transmitted/received, and the serial data transfer processing is performed by software processing of the CPU. The timer assigned to the serial interface monitors the time for normal serial transmission and reception processing, and in serial reception, it detects whether there is a reception take within a certain period of time when the other party's reception is completed within a certain period of time. 0 Next, an overview of serial data transfer processing using time monitoring using a conventional timer will be explained with reference to the block diagram of FIG. In the figure, 1 is a serial data transfer device, 2 is an interrupt control section, 3 is an execution section, 4 is a program memory, 5 is a data memory, 6 is a timer, and 7 is an internal bus.

シリアルデータ転送装[1は、送信2イン61に接続さ
れた送信バッファレジスター1と受信2イン62に接続
された受信バッファレジスター2とを有し、送受信制御
信号としては相手先が受信完了を通知するクリアツーセ
ンドライン63(以下CTSと略す)及び自分の受信完
了を相手先にし 通知するデータセットティライン64(以下DSRと略
す)を備えておシ、割込み制御部2に送信バックアレジ
スタエングティ信号65(以下TxBEと略す)、受信
バッファレジスタフル信号66(以下Rx HFと略す
)及びCT8通知信号67を出力する。
The serial data transfer device [1 has a sending buffer register 1 connected to a sending 2 in 61 and a receiving buffer register 2 connected to a receiving 2 in 62, and the sending/receiving control signal is a notification from the other party that reception is complete. A clear-to-send line 63 (hereinafter abbreviated as CTS) is provided to send data to the interrupt controller 2, and a data set-to-send line 64 (hereinafter abbreviated as DSR) to notify the other party of completion of reception. A signal 65 (hereinafter abbreviated as TxBE), a receive buffer register full signal 66 (hereinafter abbreviated as Rx HF), and a CT8 notification signal 67 are output.

正常なシリアル送受信処理の時間監視を行なうタイマ6
(以下監視用タイマと記す)は、2組のタイマユニット
タイマ(0)16.タイマ(1117から成シ、カウン
ト値を設定するタイマOモジュロレジスタ18.タイマ
1モジュロレジスタ20.実際にカウントダウンされる
タイマOタイマレジスタ19.タイマ1タイマレジスタ
21及びテクリメンタ22を有し、割込み制御部2にタ
イマロカウント完了信号68.タイマ1カウント完了信
号69を出力する。
Timer 6 monitors the time for normal serial transmission/reception processing
(hereinafter referred to as monitoring timer) consists of two timer unit timers (0), 16. Timer (consisting of 1117, timer O modulo register 18 for setting the count value, timer 1 modulo register 20, timer O timer register 19 for actually counting down, timer 1 timer register 21 and counter 22, interrupt control section 2, a timer count completion signal 68 and a timer 1 count completion signal 69 are output.

割込み要求制御部2は、実際には他の周辺ハードフェア
からの割込み要求も存在してお少、割込要求制御部2は
その中で最も優先順位の高い割込みを受付けて、グログ
2ムカウンタ13(以下PCと略す)、10グ2ムステ
ータスワード14(以下PSWと略す)及び汎用レジス
タセラ15を有する実行部3に割込み費求線68を出力
する。
The interrupt request control unit 2 accepts the interrupt with the highest priority among them, since there are actually few interrupt requests from other peripheral hardware. (hereinafter abbreviated as PC), a 10G2 system status word 14 (hereinafter abbreviated as PSW), and a general-purpose register cell 15.

従来のシリアルインタフェースヲ内蔵したマイクロコン
ピュータは、これらの他に割込み処理グログラム等を格
納するプルグラムメモリ4、送受信処理データを保持す
るデータメモリ5よ多構成され、内部パス7によシ相互
に接続されている。
A conventional microcomputer with a built-in serial interface is composed of a program memory 4 for storing interrupt processing programs, etc., and a data memory 5 for holding transmission/reception processing data, which are interconnected by an internal path 7. ing.

また、データメモリ5は、予め送受信割込みによるソフ
トウェア処理に必要とされる送信データ格納領域Cと、
この送信データ格納領域を指定するアドレス情報及び送
信回数情報を格納する送信バラメーク退避領域A1受信
データ格納領域りと、この受信データ格納領域を指定す
るアドレス情報及び受信回数情報を格納する受信パラメ
ータ退避領域Bとが設定されている。
The data memory 5 also includes a transmission data storage area C that is required for software processing based on transmission/reception interrupts in advance;
A transmission parameter save area A1 reception data storage area that stores address information that specifies this transmission data storage area and transmission count information, and a reception parameter save area that stores address information that specifies this reception data storage area and reception count information. B is set.

まず、タイマによる時間監視機能をもつシリアル送信割
込み処理手順について説明する。
First, a serial transmission interrupt processing procedure having a time monitoring function using a timer will be explained.

ζこでは監視用タイマとしてタイマ(0116を割当て
、タイマOモジ:LLjレジスタ18に予め所定の監視
時間(送信完了から相手先の受信完了通知までの時間)
を得るためのカウント値を設定しておく。送信バッファ
レジスタ11の送信データが送信2イン61を通して外
部に出力され、この送信バッフ丁レジスタ11が空にな
ると、シリアルデータ転送装置1はTxBE65tl−
アクティブにして送信バッフ了レジスタが空になった事
を割込み制御部2に通知する。
Here, a timer (0116) is assigned as a monitoring timer, and a predetermined monitoring time (time from completion of transmission to notification of reception completion by the other party) is set in advance in the timer O module LLj register 18.
Set the count value to obtain. The transmission data in the transmission buffer register 11 is output to the outside through the transmission 2 input 61, and when the transmission buffer register 11 becomes empty, the serial data transfer device 1 outputs the TxBE65tl-
It is activated to notify the interrupt control unit 2 that the transmission buffer completion register is empty.

次に、割込み制御部2は割込み要求線68をアクティブ
にして送信割込み要求発生を実行部3に通知し、それに
よシ実行部3は送信割込み処理を実行する。
Next, the interrupt control section 2 activates the interrupt request line 68 to notify the execution section 3 of the occurrence of a transmission interrupt request, and the execution section 3 accordingly executes transmission interrupt processing.

この割込みブービスは、まずそれまでのプログラム処理
内容を保持しておく為にPClB、P8W14、汎用レ
ジスタセット150内答ヲスタツクに退避した彼、送信
バラメータ退避領域Aから送信データ格納領域Cのアド
レスを読出してポインタにロードする。次に、ポインタ
で指定された送信データ格納領域Cから送信データを読
み出して送信バッフ丁レジスタ11に格納すると共に、
監視用タイマとして割当てられたタイ−q(0)16に
スタート信号を送る。このタイマ+0116はスタート
信号により、予め所定の時間間隔が設定されているタイ
マ0モジユロレジスタ18のカウント値をタイマ0タイ
マレジスタ19にリロードし、このタイマロタイマレジ
スタ16のデクリメントを開始する。送信割込みサービ
スは、次に送信回数のチェックを行ない所定回数に達し
ない時には、送信データ格納領域Cのアドレス情報と送
信回数値を更新して送信パラメータ退避領域Aに返却し
た後、汎用レジスタセット15 、 P8W14 、 
PC13t−復帰して送信割込みサービスを完了する。
This interrupt boobis first saves the contents of the program processing up to that point to the PCIB, P8W14, and general-purpose register set 150 internal address stack, and reads the address of the transmit data storage area C from the transmit parameter save area A. and load it into the pointer. Next, the transmission data is read from the transmission data storage area C specified by the pointer and stored in the transmission buffer register 11, and
A start signal is sent to timer q(0)16 assigned as a monitoring timer. In response to the start signal, this timer +0116 reloads the count value of the timer 0 modulo register 18, which is set at a predetermined time interval, into the timer 0 timer register 19, and starts decrementing the timer modulo register 16. The transmission interrupt service next checks the number of transmissions, and if the number of transmissions does not reach a predetermined number, updates the address information and number of transmissions in the transmission data storage area C, returns them to the transmission parameter save area A, and then updates the general-purpose register set 15. , P8W14 ,
PC13t-returns and completes the transmission interrupt service.

また、送信回数が所定数に達した時には送信手順完了処
理へ分岐する。
Furthermore, when the number of transmissions reaches a predetermined number, the process branches to transmission procedure completion processing.

正常なシリアル送信が行なわれた場合には、所定の時間
間隔以内、つまシ監視用タイマであるタイマ+0116
が割込み制御部2にタイマ0力ウント完了信号69を出
力する以前に相手先が正常な受信を完了しCT863を
アクティブにする。シリアルデータ転送装置1は割込み
制御部2にCT8通知信号67を出力し、実行部3によ
pcT8割込み処理が行われる。この割込みサービスは
PCl3、P8W14.汎用レジスタセット15を退避
した彼、タイマ(006をストラグし再び汎用レジスタ
セット15.PSW14.PC13f:復帰して割込み
サービスを完了する。
If normal serial transmission is performed, timer +0116, which is a timer for monitoring
Before outputting the timer zero count completion signal 69 to the interrupt control unit 2, the other party completes normal reception and activates the CT863. The serial data transfer device 1 outputs a CT8 notification signal 67 to the interrupt control section 2, and the execution section 3 performs pcT8 interrupt processing. This interrupt service is PCl3, P8W14. After saving the general-purpose register set 15, he straggles the timer (006) and returns to the general-purpose register set 15.PSW14.PC13f: to complete the interrupt service.

また、所定の時間間隔以内にCT863がアクティブに
ならなかった場合にはタイマ(006のタイマロカウン
ト完了信号69によシ割込みが起動され、CPUはシリ
アル送信処理に異常が発生した事を検知することができ
る。
Additionally, if the CT863 does not become active within a predetermined time interval, an interrupt is activated by the timer count completion signal 69 of the timer (006), and the CPU detects that an abnormality has occurred in the serial transmission process. be able to.

次に、シリアル受信においては、監視用タイマトシてタ
イマ(1117を割当て、タイマ1モジユロレジスタ2
0に予め所定の監視時間(データの受信時間間隔)を設
定し、シリアル受信動作開始とともにスタートさせる。
Next, in serial reception, the monitoring timer is assigned a timer (1117), and the timer 1 modulo register 2 is assigned.
A predetermined monitoring time (data reception time interval) is set in advance to 0 and started at the same time as the serial reception operation starts.

タイマ(1)17i、Iスタート信号によシ、予め所定
の監視時間間隔が設定されているタイマ1モジエロレジ
スタ2oのカウント値をタイマ1タイマレジスタ21に
り目−ドし、このタイマ1タイマレジスタ21のデクリ
メントを開始する。
The timer (1) 17i reads the count value of the timer 1 modifier register 2o, in which a predetermined monitoring time interval is set in advance, into the timer 1 timer register 21 in response to the I start signal. Start decrementing the register 21.

正常なシリアル受信が行なわれた場合には、所定の時間
間隔以内、つまシ監視用タイマであるタイマ(IJ17
が割込み匍J御部2にタイマ1力ウント完了信号70f
:出力する以前に受信データの受(Nバック了レジスタ
12への格納が完了する。シリアルデータ転送装置lは
RxBF35を割込み俊才制御部2に出力し、実行部3
は受信割込み処理を集村する。
If normal serial reception is performed, the timer (IJ17
interrupts the timer 1 count completion signal 70f to the control unit 2.
: Reception of received data (storage to N-back completion register 12 is completed before outputting. Serial data transfer device 1 outputs RxBF35 to interrupt intelligence control unit 2, and execution unit 3
collects reception interrupt processing.

この割込みサービスは、PCI 3 、P8’W14゜
汎用レジスタセット15の内容をスタックに退避した後
、1ずタイマ(1117を停止する。次に、受信バラメ
ータ退避領域Bから受信データ格納領域りのアドレスを
ポインタにロードし、9信バッフ丁レジスタ12から受
信データを読み川してポインタで指定された受信データ
格納領域りに格納する。そしてD8R64tアクテイブ
にして相手先に受信完了を通知すると共にタイマ+11
17にスタート信号を送る。タイマ(1117はスター
ト信号によシ、カウント値を初期化してからカウントダ
ウンを再スタートする。
This interrupt service saves the contents of the PCI 3, P8'W14° general-purpose register set 15 to the stack, and then stops the timer (1117).Next, the address from the receive parameter save area B to the receive data storage area is is loaded into the pointer, the received data is read from the 9-bit buffer register 12, and stored in the received data storage area specified by the pointer.Then, D8R64t is activated to notify the recipient of the completion of reception, and the timer +11 is activated.
Send a start signal to 17. The timer (1117) receives the start signal, initializes the count value, and then restarts the countdown.

受信割込みサービスは、次に受信回数のチェックを行な
い、所定回数の受信が終了していない時は受信データ格
納領域りのアドレス情報と受信画a飴を更新して受信パ
ラメータ退避領域Bに返却する。その彼、汎用レジスタ
セット15 、PAW14、PCl3を復帰して割込み
サービスを完了する。受信回数が所定回数に達した時に
は受信手順完了処理に分岐する。
The reception interrupt service then checks the number of receptions, and if the predetermined number of receptions has not been completed, updates the address information and reception image A candy in the reception data storage area and returns them to the reception parameter save area B. . He then restores the general-purpose register set 15, PAW14, and PCl3 to complete the interrupt service. When the number of receptions reaches a predetermined number, the process branches to reception procedure completion processing.

また、所定の時間間隔以内に正常なシリアルデータ受信
が行なわれず、受信完了割込みが発生しなかった場合に
はタイマ11+17のタイマ1力ウント完4了信号70
による割込み発生によ、bcpuはシリアル受信処理の
異常を検知することができる。
In addition, if normal serial data reception is not performed within a predetermined time interval and no reception completion interrupt occurs, the timer 1 output of timer 11+17 completes the count completion signal 70.
The bcpu can detect an abnormality in serial reception processing by the occurrence of an interrupt.

以上説明した様に、従来のマイクロコンピュータにおけ
るタイマ監視機能付きのシリアル送受信処理は、1)シ
リアルデータ転送処理及び監視用タイマの制御を割込み
によるソフトウェア処理によって実現しておシ、2)監
視機能を必要とするシリアル送受信ハードウェアの数だ
けタイマが必要となる等の欠点を有している。
As explained above, serial transmission/reception processing with a timer monitoring function in conventional microcomputers involves 1) realizing serial data transfer processing and control of the monitoring timer by software processing using interrupts, and 2) implementing the monitoring function. This method has drawbacks such as requiring as many timers as the number of serial transmitting/receiving hardware required.

割込み処理において、プログラムカウンタ、プログラム
ステータスワード、汎用レジスタセットの退避及び彷帰
処理に伴なうオーバーヘッドは、全1!11込みサービ
スルーチンのかな9の割合いを占めており、これがCP
Uのメイン処理集村時間を減少させ、処理能力の低下を
招いている。また、シリアル送受信において既に2個の
タイマを使用してお)、タイマ独自の機能使用を固結に
している。さらに、他のタイマによる監視機能を必要と
する周辺ハードウェアが存在する場合には、その数たけ
タイマが必要となシ、これがチップ巾゛イズの拡大、歩
留まシの低下につながる。
In interrupt processing, the overhead associated with saving and recalling the program counter, program status word, and general-purpose register set accounts for 9 percent of all 1!11 inclusive service routines, and this is
This reduces U's main processing time and reduces processing capacity. In addition, since two timers are already used in serial transmission and reception), the unique functions of the timers are firmly used. Furthermore, if there is peripheral hardware that requires a monitoring function using other timers, multiple timers are required, which leads to an increase in chip width and a decrease in yield.

(発明の目的) 本発明の目αソは、これらの問題点を解決し、監視機能
を備えたシリアル送受信においてシリアルデータ転送、
監視用タイマの制御をハードウェアによって実現すると
共に、シリアル送受信各々の監視用り・fマ機能會1個
のタイマで一括して制御する事によ多、ソフトウェア割
込み処理の介入によるCPUの−j′Ltjl及O−監
視用に用いられるタイマの負担を軽減した監視付きシリ
アル送受信機能をもった情報処刑;装置を提供する事に
ある。
(Objective of the Invention) An object of the present invention is to solve these problems and improve serial data transfer in serial transmission/reception equipped with a monitoring function.
In addition to realizing the control of the monitoring timer by hardware, it is often possible to control the monitoring/fma function of each serial transmission/reception all at once with one timer, and to interrupt the CPU by intervening with software interrupt processing. The object of the present invention is to provide an information processing device having a serial transmission/reception function with monitoring that reduces the burden on timers used for monitoring.

(発明の構成) 本発明の1vA成に、送イば処理に伴う送信処理要求と
受信処理に伴う受信処理要求を発生するシリアルデータ
転送装置と、時間計側完了に伴う計gilt完了処理要
求を発生するタイマと、送受信データ及びプログラムを
記憶するメモリ部と、送信処理扱求、受信処理賛求、計
測完了処理要求に基づく処理を実行するCPUとを備え
た情報処理装置において、前記プログラム実行にかかわ
る前記CPUの状態を保持したまま、送信処理簑求、受
信処理要求に対応したデータ転送処理を行うデータ転送
処理手段と、前記タイマの計測完了処理要求によるシリ
アル送受信異常発生検出手段とを有し、前記シリアルデ
ータ転送装置が送信処理要求、受信処理要求を発生した
時、前記CPUがデータ転送処理手段による所定の送受
信データ処理と前記シリアル送受信異常発生検出手段に
よる送受信データ処理の監視を行なう事を特徴とする。
(Structure of the Invention) The 1vA configuration of the present invention includes a serial data transfer device that generates a transmission processing request associated with send processing and a reception processing request associated with reception processing, and a serial data transfer device that generates a gilt completion processing request upon completion of the timer side. In an information processing apparatus that includes a timer that generates a timer, a memory unit that stores transmitted/received data and a program, and a CPU that executes processing based on a transmission processing request, a reception processing approval, and a measurement completion processing request, The apparatus includes a data transfer processing means for performing data transfer processing corresponding to a transmission processing request and a reception processing request while maintaining the state of the CPU involved, and a serial transmission/reception abnormality occurrence detection means based on a measurement completion processing request of the timer. , when the serial data transfer device generates a transmission processing request and a reception processing request, the CPU performs predetermined transmission and reception data processing by the data transfer processing means and monitors transmission and reception data processing by the serial transmission and reception abnormality detection means. Features.

(発明の作用) 本発明においては、送信完了、受信完了のI10要求に
よる送信バッファレジスタまたは受mバッフ丁レジスタ
とデータメそり間のシリアルデータ転送処理及び監視用
タイマの制御用データ転送処理をプログラム処理の介入
なしに実現している。
(Function of the Invention) In the present invention, serial data transfer processing between the transmission buffer register or reception buffer register and data memory according to the I10 request for transmission completion and reception completion, and data transfer processing for controlling the monitoring timer, are performed by a program. This is achieved without any intervention.

このデータ転送(以下自動データ転送と記す)は周辺ハ
ードウェアからのl109求が発生した時にCPUが現
在の10グ2ム夾行動作を停止し、CPUのステータス
(PC,PAW)及びデータを保持したままCPU自身
がデータ転送処理を行ない、このCPUが自動データ転
送処理を終了すると保持していたステータス及びデータ
によシ中断していたプログラムの実行を再開する。従っ
て、ソフトウェアからは10グ2ムの中断は見えずにあ
たかも自動データ転送処理が10グラム処理中に自動的
に挿入された様に見える。
In this data transfer (hereinafter referred to as automatic data transfer), when an l109 request is generated from peripheral hardware, the CPU stops the current 10G2M interception operation and retains the CPU status (PC, PAW) and data. The CPU itself performs the data transfer process while the automatic data transfer process is continued, and when the CPU finishes the automatic data transfer process, it resumes execution of the interrupted program using the status and data that it held. Therefore, from the software, the interruption of 10 grams is not visible, and it appears as if automatic data transfer processing was automatically inserted during 10 grams processing.

また、監視用タイマとしては、シリアル送信用及びシリ
アル蔓信用として2個の・・−ドウエアタイマを必要と
せず、シリアル送信、シリアル受信各々の監視用タイマ
機能をメモリ上に設定し、これを1個のハードウェアタ
イマによシて制御する方法を用いている。
In addition, as a monitoring timer, two hardware timers are not required, one for serial transmission and one for serial transmission, and the monitoring timer functions for serial transmission and serial reception can be set in memory, and these can be set in one timer. A method of control using individual hardware timers is used.

この様に本発明の監視機能を備え九自動データ転送処理
においては、ソフトウェア処理が主体となる送信完了割
込みまたは受信完了割込みの発生頻度を少なくする事に
よ、jcPTJの処理能力の低下を抑えるとともに、各
周辺ハードウェアに必要とされる監視用タイマ機能を1
個のハードウェアタイマを用いて制御する事によp1タ
イマへの負担t−軽減している。
In this way, in the automatic data transfer processing equipped with the monitoring function of the present invention, by reducing the frequency of occurrence of transmission completion interrupts or reception completion interrupts, which are mainly performed by software processing, it is possible to suppress a decline in the processing capacity of the jcPTJ and to , one monitoring timer function required for each peripheral hardware.
The burden on the p1 timer is reduced by controlling it using two hardware timers.

(実施例) 第1図は本発明の一実施例のブロック図を示す。(Example) FIG. 1 shows a block diagram of one embodiment of the invention.

本実施例において、シリアルデータ転送装[1は、送信
ライン61.送信バッファレジスタ11及び受信ライン
62.受信バッフ丁レジスタ12を有し、この他に送受
信制御信号として、CT8yイン63 、 Da几シラ
イン64備えておシl109求制御部31にTxBE6
5 、RxBF66及びCTS通知信号67を出力する
。タイマ6は1組のタイマユニットタイマ(0316及
びデクリメンタ22で構成されている。このタイマ(0
316は、タイマ0モジユロレジスタ18及びタイマ0
タイマレジスタ19よ構成J) 、r−/ o要求制御
部31にタイマ0力ウント完了信号69を出力する。
In this embodiment, the serial data transfer device [1 includes transmission lines 61 . Transmit buffer register 11 and receive line 62. It has a reception buffer register 12, and also has a CT8y input 63 and a data line 64 as transmission/reception control signals.
5, outputs RxBF 66 and CTS notification signal 67. The timer 6 consists of a set of timer unit timers (0316 and decrementer 22).
316 is the timer 0 modulo register 18 and the timer 0
The timer register 19 outputs a timer count completion signal 69 to the r-/o request control section 31.

I10要求制御部31は、各周辺ハードウェア毎の周辺
ハードウェアのアドレス情報をもつI10チャネルレジ
スタ及び監視機能イネーブルビットカラなる丈−ビス制
御レジスタ群41を有し、送信チャネルレジスタ42.
送信監視機能イネーブルビット43及び受信チャネルレ
ジスタ44゜受信監視機能イネーブルビット45がこれ
に含まれている。
The I10 request control unit 31 has an I10 channel register having peripheral hardware address information for each peripheral hardware and a length-to-bus control register group 41 including a monitoring function enable bit color, and a transmission channel register 42 .
This includes a transmission monitoring function enable bit 43, a reception channel register 44, and a reception monitoring function enable bit 45.

実行部は、工10要求制御部31からのI1010処理
実求線71及び110処理実行形態指定fIM72を受
けて実行部の動作を制御するI10要求受付は部32.
割込み処理10グラム等のプログラムを格納すゐプログ
ラムメモリ4.送受信処理テークを保持するデータメそ
り51次に実行するプログラムのアドレス全指すPCl
3.算術論理演算機能をもつ算術論理演算ユニット(以
下ALUと記す)33.実行部全体の動作状態を示すP
8W14 、処理中のテークを保持する汎用レジスタセ
ット15、次に実行すべき命令を保持する命令レジスタ
34、この命令レジスタ34の内容を解読し各種制御信
号を発生する命令デコーダ35、この命令デコーダ35
の出力によシ実行部全体の動作を制御する実行制御部3
6よp411成されている。さらに、実行部は、タイマ
による監視機能を備えた自動テーク転送(以下監視機能
付き自動データ転送と記す)に必要とされる第1.第2
の監視機能付き自動転送レジスタ群37.38を有し、
これら監視機能付き自動転送レジスタ群37.38は、
メモリ上にマッグされたソフトウェア監視用タイマの監
視用タイマモジェロ部(以下WDMと記す)46,51
、監視用タイマカウンタ部(以下WDCと記す)47.
52及び特殊レジスタのアドレスを指定する8 F R
ポインタ(以下8FRPと記す)48.53.自動デー
タ転送の転送処理回数を保持するターミナルカウンタ(
以下TCと記す) 49 、54、データメモリのアド
レスを指定するメモリポインタ(以下MPと記す)50
゜55′t−それぞれ含んで構成されておシ、これら全
機能ユニットが内部パス7に接続されている。
The execution unit receives the I1010 process actual request line 71 and the 110 process execution mode designation fIM72 from the work 10 request control unit 31, and controls the operation of the execution unit.I10 request reception is performed by the unit 32.
Program memory for storing programs such as interrupt processing 10g4. Data memory 51 that holds the transmission/reception processing take PCL points to all addresses of the program to be executed next
3. Arithmetic and logic operation unit (hereinafter referred to as ALU) having an arithmetic and logic operation function 33. P indicates the operating status of the entire execution unit
8W14, a general-purpose register set 15 that holds the take being processed, an instruction register 34 that holds the next instruction to be executed, an instruction decoder 35 that decodes the contents of this instruction register 34 and generates various control signals, this instruction decoder 35
Execution control unit 3 that controls the operation of the entire execution unit based on the output of
6 p411 has been created. Furthermore, the execution unit includes the first . Second
It has an automatic transfer register group 37.38 with a monitoring function,
These automatic transfer register groups 37 and 38 with monitoring functions are
Monitoring timer module (hereinafter referred to as WDM) 46, 51 of the software monitoring timer mapped onto the memory
, monitoring timer counter unit (hereinafter referred to as WDC) 47.
8 F R that specifies the address of 52 and special register.
Pointer (hereinafter referred to as 8FRP) 48.53. Terminal counter that maintains the number of automatic data transfers (
(hereinafter referred to as TC) 49, 54, memory pointer (hereinafter referred to as MP) 50 that specifies the address of the data memory
55't-, and all these functional units are connected to the internal path 7.

次にシリアル送受信における監視機能付き自動データ転
送処理の動作を説明する。
Next, the operation of automatic data transfer processing with a monitoring function in serial transmission and reception will be explained.

送信l109N求処理は、まず所定の監視時間間隔(送
信完了から相手先の受信完了までの時間)t−得るため
にタイマ0モジユロレジスタ18及び第1の監視機能付
き自動転送レジスタ群37のWDM46にカウント値を
設定する。この所定の監視時間はタイマ0モジユロレジ
スタ18のカウント値とWDM46のカウント値との積
で表わされる。シリアルテーク転送装置1は、送信バッ
ファレジスタ11内の送信テークが外部への送信によシ
空になると、TxBE65をI10寮求制御部31に出
力する。
The transmission l109N request process first uses the timer 0 modulo register 18 and the WDM 46 of the first automatic transfer register group 37 with a monitoring function in order to obtain a predetermined monitoring time interval (time from completion of transmission to completion of reception at the destination) t. Set the count value to . This predetermined monitoring time is expressed as the product of the count value of the timer 0 modulo register 18 and the count value of the WDM 46. The serial take transfer device 1 outputs TxBE65 to the I10 request control unit 31 when the send take in the send buffer register 11 becomes empty due to external transmission.

I10要求制御部31は、それを受けてI10要求受付
は部32にI1010処理実求I[ii!71とI10
処理処理形態指定1Is72f:出力する。110要求
受付は部32はI1010処理実求線71がアクティブ
である事を検出し、同時に110処理実行形態指定11
172がロウレベルである事を検出すると、l10IQ
求受付は部32はこのI10要求を割込み処理と認識し
PC13、P8W14゜汎用レジスタセット15の退避
及び復帰を伴なう通常の割込み処理を実行する◇ 一方、I1010処理実態指定1172が71イレベル
であれば、I10要求受付は部32はこの■10髪求が
監視機能付き自動データ転送要求である事を認識し、命
令レジスタ34にその処理コードを設定する。
In response, the I10 request control unit 31 sends an I10 request reception request to the I1010 processing execution unit 32, I[ii! 71 and I10
Processing format designation 1Is72f: Output. 110 request reception unit 32 detects that I1010 process actual request line 71 is active, and at the same time 110 process execution form specification 11
When detecting that 172 is low level, l10IQ
The request reception unit 32 recognizes this I10 request as an interrupt process, and executes normal interrupt process with the PC13 and P8W14゜saving and restoring the general-purpose register set 15 ◇ On the other hand, the I1010 process actual specification 1172 is at the 71 level. If so, the I10 request reception unit 32 recognizes that the I10 request is an automatic data transfer request with a monitoring function, and sets its processing code in the instruction register 34.

実行制御部36はPCl 3 、P8W14及び汎用レ
ジスタセット15の値を保持したまま次の処理を行なう
。まず%  x10p求制御部31は内部バス7上に第
1の監視機能付き自動転送レジスタ群37のアドレスを
送信チャネルレジスタ42よシ出力し実行制御部36が
このアドレスを読み込んで第1の監視機能付き自動転送
レジスタ群37を選択する。次に、実行制御部36は第
1の監視機能付き自動転送レジスタ群37のMP50の
指す送信データ格納領域Aから送信データを読み出し、
8FRP48で指される送信バッフ了レジスタ11に転
送し、さらにWDM46の値t−WDC47に転送した
後110喪求制御部31のサービス制御レジメタ群41
内の送信監視機能イネーブルビット4:1rlJにし、
監視用ソフトウェアタイマを制御するタイマ(0)16
にスタート信号を送る。セしてALU33を用いてMP
5 Qの値を「1」加算して再びこのMP50へ格納し
、TC49の値を「1」減算して再びTC49へ格納し
て自動データ転送処理を終了する。
The execution control unit 36 performs the next process while holding the values of PCl 3 , P8W14, and general-purpose register set 15. First, the %x10p request control unit 31 outputs the address of the first automatic transfer register group 37 with monitoring function to the transmission channel register 42 on the internal bus 7, and the execution control unit 36 reads this address and performs the first monitoring function. select automatic transfer register group 37. Next, the execution control unit 36 reads the transmission data from the transmission data storage area A pointed to by MP50 of the first automatic transfer register group 37 with monitoring function,
8 Transfer to the transmission buffer completion register 11 pointed to by FRP 48 and further transfer to the value t-WDC 47 of WDM 46 110 Service control register group 41 of request control unit 31
Set the transmission monitoring function enable bit 4:1rlJ in
Timer (0) 16 that controls the monitoring software timer
send a start signal to. MP using ALU33
5 Add "1" to the value of Q and store it in this MP50 again, subtract "1" from the value of TC49 and store it in TC49 again, and complete the automatic data transfer process.

尚、TC49の値が減算によシ「0」になった時には一
連のデータ送信を完了したとみなし、■10g!求制御
部31はI10処理笑行要求線71を再びアクティブに
する七共にI10処理処理形態指定lfj!72を今度
はロウレベルにして送信割込み要求を発生させ、送信割
込みプログラムを起動する。
Furthermore, when the value of TC49 becomes "0" after subtraction, it is assumed that the series of data transmission has been completed, and ■10g! The request control unit 31 reactivates the I10 processing request line 71 and also specifies the I10 processing type lfj! 72 is now set to low level to generate a transmission interrupt request and start the transmission interrupt program.

送(NI10要求による自動データ転送処理にょジスタ
ートしたタイマ(0116は、タイマ0モジ慕ロレジス
タ18に設足した値により所定の時間間隔毎にI10要
求制御部31にタイマロカウント完了信号69を出力す
る。l1011i求制御部31はI10処理実行裂求線
71をアクティブにし、I10処理処理形態指定l1I
i172をハイレベルにしてI10要求受付は部32に
タイマ0自動データ転送処理を通知する。
The timer (0116) outputs a timer count completion signal 69 to the I10 request control unit 31 at predetermined time intervals according to the value set in the timer 0 modifier register 18. The l1011i request control unit 31 activates the I10 process execution request line 71 and specifies the I10 process processing mode.
When i172 is set to high level, I10 request acceptance notifies unit 32 of timer 0 automatic data transfer processing.

タイマ0自動テータ転送処理は、r10要求制御部31
及び実行制御部36によって、次に示す様な一連の処理
を実行する。
The timer 0 automatic data transfer process is performed by the r10 request control unit 31.
And the execution control unit 36 executes a series of processes as shown below.

1)I10要求制御部31のサービス制御レジスタ群4
1内の第1のチャネルレジスタ(ことでは送信チャネル
レジスタ42とする)のアドレス情報を内部バス7上に
出力する。
1) Service control register group 4 of I10 request control unit 31
The address information of the first channel register (in this case, the transmission channel register 42) in the internal bus 7 is outputted onto the internal bus 7.

2)実行制御部36がこのアドレスを読み込んで第1の
監視機能付き自動転送レジスタ群37L−選択し%WD
C47の値をALU33t−用いて1減算する。
2) The execution control unit 36 reads this address and selects the first automatic transfer register group with monitoring function 37L-%WD.
Subtract 1 from the value of C47 using ALU33t-.

3)送信監視機能イネーブルピット43をチェックし、
これが「1」であれば減算結果を再びWDC47に格納
し、「0」であれば格納しない。
3) Check the transmission monitoring function enable pit 43,
If this is "1", the subtraction result is stored in the WDC 47 again, and if it is "0", it is not stored.

(?−の場合は送信監視機能イネーブルビット43は「
1」であるのでWDC47の値は1デクリメントされる
。) 4)実行制御部36はI 10111求制御部31に1
回の減算処理の終了を通知し、このI10要求制御部3
1は次のチャネルレジスタのアドレス情報を内部バス7
上に出力する。
(If ?-, the transmission monitoring function enable bit 43 is
1'', the value of the WDC 47 is decremented by 1. ) 4) The execution control unit 36 sends I10111 to the request control unit 31.
This I10 request control unit 3 notifies the end of the subtraction process.
1 transfers the address information of the next channel register to internal bus 7.
Output on top.

以上、1)〜4)の一連の処理を繰シ返す事により、監
視機能イネーブルピットが「1」であるもののl101
j求発生先のWDCのみが1デクリメントされる。また
、全I10蚤求発生先に対する一連の減算処理完了彼、
あるWDCの値が0になった場合にはI10喪求制御部
31はI10処理実行賛求#71t−再びアクティブに
すると共にI10処理処理形態指定線72を今度はロウ
レベルにし、タイマ0割込み処理を起動する。
By repeating the series of processes 1) to 4) above, even though the monitoring function enable pit is "1", l101
Only the WDC of the request destination is decremented by 1. In addition, he completed a series of subtraction processes for all I10 locations,
When the value of a certain WDC becomes 0, the I10 request control unit 31 activates the I10 processing execution request #71t again, sets the I10 processing type designation line 72 to low level, and executes the timer 0 interrupt processing. to start.

正常なシリアル送信が行なわれた場合、シリアルデータ
転送装置1には、所定時間以内に相手先の受信完了通知
がCT863をアクティブにする事によシ伝見られる。
When normal serial transmission is performed, the serial data transfer device 1 receives a reception completion notification from the other party within a predetermined time by activating the CT 863.

このシリアルデータ転送装置1はCT86Bがアクティ
ブになるとCT8通知信号(67)tIlo、lQ求制
御部31に送シ、このr10?求制御部31がI10要
求受付は部32へのI10処理実行要求I!71をアク
ティブにすると共に′I10処R夾行形集村定線72を
ハイレベルにする事によJCT8自動データ転送処理が
行なわれる。これfi110要求制御部31のサービス
制御レジスタ群41内の送信監視機能イネーブルビット
43を「0」にして、タイマ0自動データ転送処理によ
るWDC47の減算を停止するものである。
When CT86B becomes active, this serial data transfer device 1 sends a CT8 notification signal (67) tIlo and IQ request control unit 31, and this r10? The request control unit 31 receives the I10 request and sends the I10 process execution request I! to the unit 32! JCT8 automatic data transfer processing is carried out by activating 71 and setting the `I10 processing R included line 72 to high level. This sets the transmission monitoring function enable bit 43 in the service control register group 41 of the fi110 request control unit 31 to "0" to stop the subtraction of the WDC 47 by the timer 0 automatic data transfer process.

また、シリアル送信に異常をきたし所定時間以内にCT
863がアクティブに力らながった場合には、CT8自
動自動メータ転送処理るWDC470減算停止は行なわ
れず、タイマ(0)16の自動データ転送処理によるW
DC47の減算の結果、ζ0WDC4’If)値はrO
Jとなシ、タイマ01111込み処理が起動する事によ
、りCPUはシリアル送信の異常を検出する事ができる
In addition, an error occurred in the serial transmission and the CT
If 863 does not become active, the WDC470 subtraction stop that performs CT8 automatic meter transfer processing is not performed, and the
As a result of the subtraction of DC47, the value ζ0WDC4'If) is rO
By starting the processing including timer 01111, the CPU can detect an abnormality in serial transmission.

次に受信I10要求について説明する。Next, the reception I10 request will be explained.

送信l10IJQ求処理と同様、所定の監視時間間隔(
データ受信間隔)を得るために、予めタイマ0モジユロ
レジスタ18及び@2の監初機能付き自動転送レジスタ
群38のWDM52にカウント値を設定する。シリアル
データ転送装置1は、受信バッフ丁レジスタ12がフル
になると、相手先に受信完了を通知するためD8R64
をアクティブにすると共にRxBF66をl1011a
求制御部31に出力する。とのI/Qt求制御部31は
それを受けてI10要求受付は部32にI10処理実行
要求線71とI10飽理実行形態指定[72t−出力す
る。
Similar to the sending l10IJQ request process, the predetermined monitoring time interval (
In order to obtain the data reception interval), count values are set in advance in the timer 0 modulo register 18 and the WDM 52 of the automatic transfer register group 38 with monitoring function of @2. When the reception buffer register 12 becomes full, the serial data transfer device 1 sends a D8R64 signal to notify the destination of reception completion.
Activate and set RxBF66 to l1011a
output to the request control section 31. In response to this, the I/Qt request control unit 31 outputs an I10 process execution request line 71 and an I10 saturation execution mode designation [72t-] to the I10 request acceptance unit 32.

l105求受付は部32は、I10処理実行要求細71
がアクティブである事を検出すると共にI10処理処理
形態指定線72のレベルをサンプルし、ロウレベルであ
ればI10要求受付は部32はこのI10要求を割込み
処理と認識し受信割込み処理プログラムが起動される。
The I105 request reception section 32 sends the I10 processing execution request details 71
is active and samples the level of the I10 processing type designation line 72. If the level is low, the I10 request reception section 32 recognizes this I10 request as an interrupt processing, and the reception interrupt processing program is activated. .

このI10処理処理形態指定線72がハイレベルである
と、I10要求受付は部32はこのl 10IV求が監
視機能付き自動データ転送要求である事を認識し、命令
レジスタ34にその処理コードを設定する。実行制御部
36はPCI 3 、PSWI 4 、汎用レジスタセ
ット15の値を保持したまま以下に示す処理を開始する
When this I10 processing type designation line 72 is at a high level, the I10 request reception section 32 recognizes that this I10 IV request is an automatic data transfer request with a monitoring function, and sets the processing code in the instruction register 34. do. The execution control unit 36 starts the process described below while holding the values of PCI 3 , PSWI 4 , and general-purpose register set 15.

I10要求制御部31は、内部バス7上に第2の監視機
能付き自動転送レジスタ群38のアドレスを出力し、実
行制御部36がこのアドレスを読み込んで第2の監視機
能付き自動転送レジスタ群38を選択する。
The I10 request control unit 31 outputs the address of the second automatic transfer register group 38 with a monitoring function onto the internal bus 7, and the execution control unit 36 reads this address and outputs the address of the second automatic transfer register group 38 with a monitoring function. Select.

次に、実行制御部36は第2の監視機能付き自動転送レ
ジスタ群38の8FRP53で指される受信バッファレ
ジスタ12から受信データを読み出し、MP55の指す
受信データ格納領域りに転送し、さらにWDM51の値
をWDC52に転送した彼に、■10要求制御部31の
サービス制御レジメタ群41内の受信監視機能イネーブ
ルビット45を「1」にして、タイ?(0116にスタ
ート信号を送る。セしてALU331−用いてMP55
の値を「1」加算及びTC54の値を「1」減算し、各
々を返却して自動データ転送処理を終了する。
Next, the execution control unit 36 reads the received data from the receive buffer register 12 pointed to by 8FRP53 of the second automatic transfer register group 38 with a monitoring function, transfers it to the received data storage area pointed to by MP55, and further transfers it to the received data storage area pointed to by MP55. After he transferred the value to the WDC 52, he asked: ■10 Set the reception monitoring function enable bit 45 in the service control register group 41 of the request control unit 31 to "1" and issue a tie? (Send a start signal to 0116. Then use ALU331-MP55
"1" is added to the value of TC54, "1" is subtracted from the value of TC54, and each is returned to end the automatic data transfer process.

尚、この時TC54の値が減算によシ「0」になった時
には一連のデータ受信を完了したとみなし、送信時と同
様受信割込みプログラムを起動する。
At this time, when the value of TC54 becomes "0" by subtraction, it is assumed that a series of data reception has been completed, and the reception interrupt program is activated in the same way as at the time of transmission.

シリアル受信自動データ転送処理によジスタートしたタ
イマ(0316はタイマ0モジユロレジスタ出力する。
The timer (0316) which is restarted by the serial reception automatic data transfer process is output from the timer 0 modulo register.

I 10要求制御部31はそれを受けてI10処理夾行
袈求H71をアクティブにし、I10処理処理形態指定
線72をハイレベルにしてI10要求受付は部32にタ
イマ0自動データ転送処理を通知する。
In response to this, the I10 request control unit 31 activates the I10 processing request H71, sets the I10 processing type designation line 72 to high level, and notifies the I10 request reception unit 32 of timer 0 automatic data transfer processing. .

タイマ0自動データ転送処理は、送信時に述べたと同様
1109求制御部31のサービス制御レジメタ群41内
の監視機能イネーブルビットが「1」でおるI10要求
発生先に対応する監視機能付き自動データ転送レジスタ
群のWDCを全て「1」チクリメントする。
The timer 0 automatic data transfer process is similar to that described at the time of transmission.1109 Automatic data transfer register with monitoring function corresponding to the I10 request generation destination whose monitoring function enable bit in the service control register group 41 of the request control unit 31 is set to "1" All WDCs of the group are incremented by "1".

シリアル受信に関しては、受信チャネルレジスタ44の
アドレス情報を実行制御部36が読み込んで第2の監視
機能付き自動転送レジスタ群38t−選択し、WDC5
2の値′fcALU33を用いて「1」デクリメントし
、その結果を再びWDC52に返却する。
Regarding serial reception, the execution control unit 36 reads the address information of the reception channel register 44, selects the second automatic transfer register group 38t with a monitoring function, and selects the second automatic transfer register group 38t with a monitoring function.
The value 'fcALU 33 of 2 is used to decrement it by 1, and the result is returned to the WDC 52 again.

送信時と同様全1109求発生先に対する一連の減算処
理完了後、あるWDCの値が0になった場合には、I1
0要求制御部31はI10処理実行要求mV lt−再
びアクティブにすると共に、今度はI10処理処理形態
指定fj!72をロウレベルにし、タイマ0割込み処理
を起動する。
As in the case of sending, if the value of a certain WDC becomes 0 after completing a series of subtraction processing for all 1109 request destinations, I1
0 request control unit 31 activates the I10 processing execution request mV lt- again, and this time, the I10 processing processing format designation fj! 72 to low level to start timer 0 interrupt processing.

正常な時間間隔でシリアル受信が行なわれている場合に
は、受信l10−9求による自動データ転送処理によっ
てデータ受信ごとにWDC52の初期化が行なわれる。
When serial reception is performed at normal time intervals, the WDC 52 is initialized each time data is received by automatic data transfer processing based on the reception l10-9 request.

しかし、シリアル受信動作に異常をきたし、正常な時間
間隔以内に次のデータが受信されなかった場合には、W
l)C52の値は初期化されないため、タイマ(0)1
6の自動データ転送処理による減算の結果「0」となシ
、タイマ0割込みが起動される事によシCPUはシリア
ル受信の異常を検出する事ができる。
However, if an abnormality occurs in the serial reception operation and the next data is not received within the normal time interval, the W
l) Since the value of C52 is not initialized, timer (0) 1
If the result of subtraction by the automatic data transfer process in step 6 is "0", the CPU can detect an abnormality in serial reception by activating the timer 0 interrupt.

(発明の効果) 以上説明した様に、本発明による情報処理装置は、送受
信I10要求の発生において通常のソ7トウエア割込み
処理と監視機能付き自動データ転送処理との2つの対応
処理手段を備え、これをソフトウェアによシ選択できる
ようにしている。
(Effects of the Invention) As explained above, the information processing device according to the present invention includes two corresponding processing means, normal software interrupt processing and automatic data transfer processing with a monitoring function, in the generation of a transmission/reception I10 request. This can be selected by software.

ソフトウェア割込み処理では従来と同様シリアル送受信
時に必要とされる処理を割込みサービス1四グラムで対
応させ、監視機能付き自動データ転送処理では、シリア
ル送受信処理及び監視用タイマ制御に伴なう処理にハー
ドウェアで対応させ、ソフトウェア処理の発生頻度を極
力抑える事によjl)、CPUのステータス(プログラ
ムカウンタ。
In software interrupt processing, the processing required for serial transmission and reception is handled by interrupt service 14G as in the past, and in automatic data transfer processing with monitoring function, hardware is used for serial transmission and reception processing and processing associated with monitoring timer control. By reducing the frequency of software processing as much as possible, the CPU status (program counter)

プ四グラムステータスワード)、データの退避及び復帰
や割込みサービスの命令の読出し、命令のデコード等に
費していた時間を大幅に削減できる。
The time spent on saving and restoring data, reading interrupt service instructions, decoding instructions, etc. can be significantly reduced.

また、各周辺ハードウェアの監視用タイマ機能をメモリ
上に設定して1つのハードウェアタイマで制御する事に
よシ、ハードウェアタイマの必要数を最小限にとどめる
と共に、監視機能付きデータ転送処理可能な周辺ハード
ウェア数の拡張性を高めている。したがって、CPUの
処理能力の低下とタイマの負担を最小限に抑えた監視機
能付きブタ転送処理が可能となシ、情報処理装置として
の実用的効果は極めて高い。
In addition, by setting the monitoring timer function of each peripheral hardware in memory and controlling it with one hardware timer, the number of required hardware timers can be kept to a minimum, and data transfer processing with a monitoring function can be performed. Increased expandability of the number of possible peripheral hardware. Therefore, it is possible to perform pig transfer processing with a monitoring function that minimizes the reduction in CPU processing power and the burden on the timer, and has extremely high practical effects as an information processing device.

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

第1図は本発明の一実施例の監視付き自動データ転送機
能をもつマイクロコンピュータのブロック図、第2図は
従来のマイクロコンビ二一夕のブロック図である。図に
おいて、1・・・シリアルデータ転送装置、2・・・割
込制御部、3・・・実行部、4・・・10グ2ムメモリ
、5・・・データメモリ、6・・・タイマ、7・・・内
部バス、11・・・送信バック了レジスタ、12・・・
受信バッファレジスタ、13・・・プログラムカウンタ
、14・・・10グラムステータスワード、15・・・
汎用レジスタセット、16・・・タイマ(03,17・
・・タイマ11+、18・・・タイマ0モジーロレジス
タ、19・・・タイマ0タイマレジスタ、20・・タイ
マ1モジエロレジスタ、21・・・タイマ1タイiレジ
スタ、22・・・デクリメンタ、31・・・I10要求
制御部、32・・・I10要求受付は部、33・・・A
LU、34・・・命令レジスタ、35・・・命令デコー
ダ、36・・・実行制御部、37.38・・・第1.第
2監視機能つき自動転送レジスタ酊、41・・・サービ
ス制御レジスタ群、42・・・送信チャネルレジスタ、
43・・・送信監視イネーブルピット、44・・・受信
チャネルレジスタ、45・・・受信監視イネーブルピッ
)、46゜51・・・WDM% 47.52・WDCl
 48.53・・・5FRP、49,54・・・TC,
50,55・・・MPl 61・・・送信ライン、62
・・・受信ライン、63−−−CTC,64−=D8B
、65・−TxBE、66−RxBF、67・・・CT
8通知線、68・・・割込要求線、69・・・タイマ(
0)カウント完了信号線、70・・・タイマ(1)カウ
ント完了信号線、71・・・I10処理実行要求線、7
2・・・I10処理処理形態指定線、であるO
FIG. 1 is a block diagram of a microcomputer having a monitored automatic data transfer function according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional microcomputer. In the figure, 1... Serial data transfer device, 2... Interrupt control unit, 3... Execution unit, 4... 10g memory, 5... Data memory, 6... Timer, 7... Internal bus, 11... Transmission back completion register, 12...
Receive buffer register, 13...program counter, 14...10 gram status word, 15...
General-purpose register set, 16...Timer (03, 17,
...Timer 11+, 18...Timer 0 mojiro register, 19...Timer 0 timer register, 20...Timer 1 mojiro register, 21...Timer 1 tie i register, 22...Decrementer, 31 ...I10 request control section, 32...I10 request reception section, 33...A
LU, 34...instruction register, 35...instruction decoder, 36...execution control unit, 37.38...first. 2nd automatic transfer register with monitoring function, 41... Service control register group, 42... Transmission channel register,
43...Transmission monitoring enable pit, 44...Reception channel register, 45...Reception monitoring enable pit), 46°51...WDM% 47.52・WDCl
48.53...5FRP, 49,54...TC,
50,55...MPl 61...Transmission line, 62
...Reception line, 63---CTC, 64-=D8B
, 65-TxBE, 66-RxBF, 67...CT
8 notification line, 68... interrupt request line, 69... timer (
0) Count completion signal line, 70... Timer (1) Count completion signal line, 71... I10 process execution request line, 7
2... I10 processing processing type designation line, O

Claims (1)

【特許請求の範囲】[Claims] 送信処理に伴う送信処理要求と受信処理に伴う受信処理
要求を発生するシリアルデータ転送装置と、時間計測完
了に伴う計測完了処理要求を発生するタイマと、送受信
データ及びプログラムを記憶するメモリ部と、前記送信
処理要求、受信処理要求、計測完了処理要求に基づく処
理を行なう中央処理装置(以下CPUと略す)とを備え
た情報処理装置において、前記プログラム実行にかかわ
る前記CPUの状態を保持したまま前記送信処理要求、
受信処理要求に対応したデータ転送処理を行うデータ転
送処理手段と、前記タイマの前記計測完了処理要求によ
るシリアル送受信異常発生検出手段とを有し、前記シリ
アルデータ転送装置が前記送信処理要求、受信処理要求
を発生した時、前記CPUが前記データ転送処理手段に
よる送受信データ処理と前記シリアル送受信異常発生検
出手段による前記送受信データ処理の監視を行うことを
特徴とする情報処理装置。
a serial data transfer device that generates a transmission processing request associated with transmission processing and a reception processing request associated with reception processing; a timer that generates a measurement completion processing request upon completion of time measurement; and a memory unit that stores transmitted and received data and programs; In an information processing device including a central processing unit (hereinafter abbreviated as CPU) that performs processing based on the transmission processing request, reception processing request, and measurement completion processing request, the processing is performed while maintaining the state of the CPU related to the program execution. Sending processing request,
The serial data transfer device includes data transfer processing means for performing data transfer processing corresponding to the reception processing request, and serial transmission/reception abnormality occurrence detection means based on the measurement completion processing request of the timer, and the serial data transfer device performs data transfer processing corresponding to the transmission processing request and reception processing. An information processing apparatus characterized in that, when a request is generated, the CPU performs transmission/reception data processing by the data transfer processing means and monitoring of the transmission/reception data processing by the serial transmission/reception abnormality detection means.
JP59186811A 1984-03-02 1984-09-06 Information processor Granted JPS6165347A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP59186811A JPS6165347A (en) 1984-09-06 1984-09-06 Information processor
DE85102394T DE3587643T2 (en) 1984-03-02 1985-03-04 Information processing unit with interrupt function.
EP85102394A EP0153764B1 (en) 1984-03-02 1985-03-04 Information processor having an interruption operating function
US07/287,622 US5036458A (en) 1984-03-02 1988-12-20 Information processor executing interruption program without saving contents of program counter
US07/691,284 US5159688A (en) 1984-03-02 1991-04-25 Information processor performing interrupt operation in two modes
US07/691,297 US5163150A (en) 1984-03-02 1991-04-25 Information processor performing interrupt operation without saving contents of program counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59186811A JPS6165347A (en) 1984-09-06 1984-09-06 Information processor

Publications (2)

Publication Number Publication Date
JPS6165347A true JPS6165347A (en) 1986-04-03
JPH0571980B2 JPH0571980B2 (en) 1993-10-08

Family

ID=16195003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59186811A Granted JPS6165347A (en) 1984-03-02 1984-09-06 Information processor

Country Status (1)

Country Link
JP (1) JPS6165347A (en)

Also Published As

Publication number Publication date
JPH0571980B2 (en) 1993-10-08

Similar Documents

Publication Publication Date Title
US4090239A (en) Interval timer for use in an input/output system
JP2978539B2 (en) Data transfer control device
JPH02230455A (en) Interruption control system for external memory device
JPH03175537A (en) Error controller for debugging microprocessor
JPS6165347A (en) Information processor
JPH0414377B2 (en)
JPH0431918A (en) Key scanning device
JPH0414376B2 (en)
JPH0414378B2 (en)
JP2802091B2 (en) Interrupt vector control method
JPS5850410Y2 (en) Interrupt priority controller
JPS6326049A (en) Communication control equipment
JPS63118947A (en) Single chip microcomputer
JPS62266624A (en) Counter device
JPH03188547A (en) Data transfer controller
JPH0535456B2 (en)
JPH01295352A (en) Data chain processing system
JPS63265338A (en) Program control system
JPH0468458A (en) Data communication processing unit
JPS6395551A (en) Serial data processor
JPS63155330A (en) Microprogram controller
JPH04147347A (en) Processor failure recovery control method
JPS6245575B2 (en)
JPH03210629A (en) Multiplying/dividing device
JPS6340955A (en) Direct memory access controller

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees