JPH06149686A - Channel interruption control system - Google Patents

Channel interruption control system

Info

Publication number
JPH06149686A
JPH06149686A JP4299470A JP29947092A JPH06149686A JP H06149686 A JPH06149686 A JP H06149686A JP 4299470 A JP4299470 A JP 4299470A JP 29947092 A JP29947092 A JP 29947092A JP H06149686 A JPH06149686 A JP H06149686A
Authority
JP
Japan
Prior art keywords
timer
dmac
time
stop
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
JP4299470A
Other languages
Japanese (ja)
Inventor
Hisao Kamoda
久男 鴨田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4299470A priority Critical patent/JPH06149686A/en
Publication of JPH06149686A publication Critical patent/JPH06149686A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To attain the accurate timer monitoring of a DMAC and to reduce overhead by providing an operation status informing terminal and a stop terminal at every channel of the DMAC, directly activating/stopping a timer by hardware, and at the time of generating time-out, directly stopping a CMA in the DMAC. CONSTITUTION:At the time of activating the DMAC 11, the timer 2 is directly activated by an operation status informing signal outputted from an operation status informing terminal 12 at every channel, and at the time of generating time-out, a stop signal is inputted to the stop terminal 13 so as to directly stop the operation of the DMAC 11. An interruption signal IRQ generated with the stop signal obtained when the timer 2 generates time-out as one of interruption factors is informed to a DMA requesting source to generate an interruption, the effect of the stop signal generated at the time of time-out in the interrupting processing is read out from a buffer 17 as status and a DMA transfer requesting source is allowed to recognize the generation of time-out.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、チャネル毎にタイマ監
視して割り込みを制御するチャネル割込制御方式に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a channel interrupt control system which controls a timer by monitoring a timer for each channel.

【0002】[0002]

【従来の技術】従来、DMACとI/O制御を1チップ
にした図5に示すようなICは、I/OのDMA転送の
起動から停止までのタイマ監視を行う場合、外部からチ
ャネルの動作状態を見る信号端子や、外部からチャネル
を停止させるための信号端子がないため、ソフト的にタ
イマ監視を行うようにしていた。以下図5の構成および
動作を簡単に説明する。
2. Description of the Related Art Conventionally, an IC having a DMAC and I / O control on one chip as shown in FIG. 5 operates a channel from the outside when a timer monitoring from start to stop of DMA transfer of I / O is performed. Since there is no signal terminal for checking the status or a signal terminal for stopping the channel from the outside, the timer was monitored by software. The configuration and operation of FIG. 5 will be briefly described below.

【0003】図5において、DMAC21は、メモリ間
のデータ転送を制御するものである。I/O制御22
は、I/Oに対する入出力を制御するものである。
In FIG. 5, a DMAC 21 controls data transfer between memories. I / O control 22
Controls input / output to / from the I / O.

【0004】データバス制御23は、データバスに対す
る入出力を制御するものである。タイマ24は、時間を
計測するものである。MPU25は、プログラムに従っ
て各種処理を行うものであって、ここでは、DMA転送
起動時にソフト的にタイマ24を起動し、タイムアウト
を監視したりなどするものである。
The data bus control 23 controls input / output to / from the data bus. The timer 24 measures time. The MPU 25 performs various processes according to a program, and here, when the DMA transfer is activated, the timer 24 is activated by software to monitor the timeout.

【0005】次に、動作を説明する。 (1) MPU25からDMAの起動を受け付けたDM
AC21がDMA転送を開始する。このとき、MPU2
5は、タイマ24にソフト的にタイマ起動する。
Next, the operation will be described. (1) DM that has accepted the activation of DMA from the MPU 25
The AC 21 starts the DMA transfer. At this time, MPU2
5 activates the timer 24 by software.

【0006】(2) DMAC21は、正常にDMA転
送を終了した場合には、*IRQの割り込みでMPU2
5に正常終了の旨を通知する。一方、DMA転送が何ら
かの障害によって終了しない場合、(1)で起動したタ
イマ24からタイムアウトの旨の割り込みで通知を受け
たMPU25はDMA転送に障害が発生したと判断す
る。
(2) When the DMAC 21 normally completes the DMA transfer, the MPU 2 receives an interrupt of * IRQ.
5 is notified of the normal end. On the other hand, when the DMA transfer does not end due to some failure, the MPU 25 notified by the timer 24 started in (1) by the interrupt indicating the timeout determines that the DMA transfer has failed.

【0007】[0007]

【発明が解決しようとする課題】上述したように、従来
は、タイマ24をソフト的に起動していたため、タイマ
24を起動するのにソフト処理が入り、スタートが遅れ
てしまう問題があった。例えば図6に示すように、の
位置で送信DMA動作を行い、次に受信DMA動作を行
う場合、当該受信DMA動作の起動時にソフト的にタイ
マ24を起動していたのでは、タイマスタートよりも先
に受信が開始される可能性があって行えない。そのた
め、の位置でタイマスタートをソフト的に行うように
していた。
As described above, since the timer 24 is conventionally activated by software, there is a problem that a software process is required to activate the timer 24 and the start is delayed. For example, as shown in FIG. 6, when the transmission DMA operation is performed at the position and the reception DMA operation is performed next, the timer 24 is activated by software when the reception DMA operation is activated. It cannot be done because reception may start first. Therefore, the timer start is performed by software at the position.

【0008】しかし、このの位置でタイマスタートす
ることは、送信データ長によりタイマ値をソフトで変更
する処理が必要となってしまうと共に、更にソフトによ
りタイマ24を起動することを多用すると、OSのオー
バーヘッドが多くなり、全体の処理速度が低下してしま
うという問題があった。
However, starting the timer at this position requires a process for changing the timer value by software depending on the transmission data length, and if the timer 24 is often used by software, the OS will be There was a problem that the overhead increased and the overall processing speed decreased.

【0009】本発明は、これらの問題を解決するため、
DMACのチャネル毎の動作状態通知端子と停止端子を
設けてタイマをハードウェアで起動/停止し、正確なタ
イマ監視を実現すると共にオーバーヘッドを軽減するこ
とを目的としている。
The present invention solves these problems.
The purpose of the present invention is to provide an operating state notification terminal and a stop terminal for each channel of the DMAC to start / stop the timer by hardware to realize accurate timer monitoring and reduce overhead.

【0010】[0010]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、DMAC
11およびI/O制御14は、1チップとなったIC1
などであって、DMA転送制御を行うものである。
[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, the DMAC
11 and I / O control 14 are integrated into one chip IC1
Etc., and performs DMA transfer control.

【0011】動作状態通知端子12は、DMAC11の
動作状態を外部に通知するための端子である。停止端子
13は、DMAC11を外部から停止させるための端子
である。
The operating state notifying terminal 12 is a terminal for notifying the operating state of the DMAC 11 to the outside. The stop terminal 13 is a terminal for stopping the DMAC 11 from the outside.

【0012】タイマ2は、時間計測して所定時間を経過
したときにタイムアウトを送出するものである。
The timer 2 measures the time and sends out a timeout when a predetermined time has elapsed.

【0013】[0013]

【作用】本発明は、図1に示すように、DMAC11の
起動時にチャネル毎の動作状態通知端子12からの動作
状態通知信号によってタイマ2を直接に起動し、タイム
アウトしたときに停止信号を停止端子13に入力して直
接にDMAC11の動作を停止させるようにしている。
According to the present invention, as shown in FIG. 1, when the DMAC 11 is started, the timer 2 is directly started by the operation status notification signal from the operation status notification terminal 12 for each channel, and when the time-out occurs, the stop signal is stopped. The operation of the DMAC 11 is directly stopped by inputting it to the line 13.

【0014】また、タイマ2がタイムアウトしたときの
停止信号を割込み要因の1つとして生成した割込信号I
RQをDMA要求元に通知して割込みを発生させ、この
割込みの処理の中でタイムアウトしたときの停止信号で
ある旨をステータスとしてバッファ17からリードし、
タイムアウト発生した旨をDMA転送依頼元が認識する
ようにしている。
An interrupt signal I generated by using a stop signal when the timer 2 times out as one of interrupt factors.
The RQ is notified to the DMA request source to generate an interrupt, and the status indicating that it is a stop signal when a timeout occurs during the processing of this interrupt is read from the buffer 17,
The DMA transfer requester recognizes that a time-out has occurred.

【0015】従って、DMAC11のチャネル毎の動作
状態通知端子12および停止端子13を設けてタイマ2
をハードウェアで起動/停止することにより、DMAC
11の正確なタイマ監視を実現すると共にオーバーヘッ
ドを軽減することが可能となる。
Therefore, the timer 2 is provided with the operation state notification terminal 12 and the stop terminal 13 for each channel of the DMAC 11.
The DMAC by starting / stopping the
It is possible to realize 11 accurate timer monitoring and reduce the overhead.

【0016】[0016]

【実施例】次に、図1から図4を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.

【0017】図1は、本発明の1実施例構成図を示す。
図1において、IC1は、DMAC11、I/O制御1
4、データバス制御15、OR回路16、およびバッフ
ァ17などを1チップにまとめたICであって、メモリ
間のデータ転送を制御するものである。
FIG. 1 shows a block diagram of an embodiment of the present invention.
In FIG. 1, IC1 is a DMAC 11 and I / O control 1
4, an IC in which the data bus controller 15, the OR circuit 16, the buffer 17, and the like are integrated in one chip, and controls data transfer between memories.

【0018】DMAC11は、DMA転送を制御するも
のであって、チャネル毎に動作状態通知端子12および
停止端子13を設けて外部に動作状態通知信号を送出し
たり、外部からの停止信号を取り込んだりなどするもの
である。動作状態通知端子12から外部に送出する動作
状態通知信号は、DAMC11のチャネルがDMA転送
を開始した旨の信号である。停止端子13から内部に入
力する停止信号は、DMAC11の該当チャネルのDM
A転送を停止させる信号である。ここで、DMAC11
の内部で、DMA転送時にバイトカウンタのカウント終
了や、I/O制御部14の終了コード検出や、転送エラ
ーなどのときに*INTを発生させ、OR回路16で他
の割り込み要因と論理和演算して*IRQを発生させ、
MPU3に割り込み通知している。
The DMAC 11 controls the DMA transfer, and is provided with an operation state notification terminal 12 and a stop terminal 13 for each channel to send an operation state notification signal to the outside or take in a stop signal from the outside. And so on. The operation state notification signal transmitted from the operation state notification terminal 12 to the outside is a signal indicating that the channel of the DAMC 11 has started DMA transfer. The stop signal input from the stop terminal 13 is the DM of the corresponding channel of the DMAC 11.
This is a signal for stopping A transfer. Where DMAC11
Internally, * INT is generated when the count of the byte counter is completed during DMA transfer, the end code of the I / O control unit 14 is detected, or a transfer error occurs, and the OR circuit 16 performs an OR operation with other interrupt factors. And generate * IRQ,
Interrupt notification is sent to MPU3.

【0019】I/O制御14は、I/Oに対して出力デ
ータを送出したり、I/Oからの入力データを取り込ん
だりなどのI/Oに対するデータ転送制御を行うもので
あって、I/Oからの入力データを取り込む入力制御部
およびI/Oに出力データを送出する出力制御部から構
成されるものである。
The I / O control 14 controls the data transfer to the I / O, such as sending output data to the I / O and fetching input data from the I / O. It is composed of an input control unit that takes in input data from the I / O and an output control unit that sends output data to the I / O.

【0020】データバス制御15は、データバスとの間
のデータの入出力を制御するものである。OR回路16
は、タイマ2からのチャネル毎のタイムアウト(停止信
号)およびDMAC11からの*INT(DMA転送の
完了通知などのための割込み信号)の論理和演算を行う
回路である。このOR回路16で論理和演算した結果の
信号*IRQは、MPU3に割込み信号として入力す
る。
The data bus controller 15 controls the input / output of data to / from the data bus. OR circuit 16
Is a circuit for performing a logical sum operation of the timeout (stop signal) for each channel from the timer 2 and * INT (interrupt signal for notifying completion of DMA transfer) from the DMAC 11. The signal * IRQ obtained as the result of the logical sum operation in the OR circuit 16 is input to the MPU 3 as an interrupt signal.

【0021】バッファ17は、*IRQによって割込み
が発生したときに、割込み処理の中でMPU3がその割
込み要因をリードするためのバッファである。タイマ2
は、時間を計測するものであって、ここでは、DMAC
11の動作状態通知端子12からのチャネル毎の動作状
態通知信号が入力されたときにタイマ起動したり、予め
設定された時間を経過してタイムアウトとなったときに
停止信号をDMAC11の停止端子13に入力して当該
DMAC11のチャネル毎のDMA動作を停止させたり
するものである。
The buffer 17 is a buffer for the MPU 3 to read the interrupt factor in the interrupt processing when the interrupt is generated by * IRQ. Timer 2
Is for measuring time, and here is the DMAC.
A timer is started when an operation status notification signal for each channel is input from the operation status notification terminal 12 of 11 or a stop signal is sent to the stop terminal 13 of the DMAC 11 when a preset time elapses and a timeout occurs. To stop the DMA operation for each channel of the DMAC 11 concerned.

【0022】MPU3は、プログラムに従って各種制御
を行うものであって、ここでは、DMA転送要求をDM
AC11に通知したり、DMAC11などからの*IR
Qによる割込みによって起動された割込み処理の中でバ
ッファ17の内容をリードしていずれの割込み要因(タ
イムアウト、依頼したDMA転送の正常終了など)かを
認識したりなどするものである。
The MPU 3 performs various controls according to a program, and here, a DMA transfer request is DMed.
Notify AC11 or * IR from DMAC11 etc.
The content of the buffer 17 is read in the interrupt process activated by the interrupt by Q to recognize which interrupt factor (timeout, normally completed DMA transfer requested, etc.).

【0023】次に、図2を用いて正常DMA転送時の図
1の構成の動作を詳細に説明する。図2において、S1
は、MPUからのDMAの起動を受け付ける。これは、
図1のDMAC11がMPU3からのDMAの起動(D
MA転送の起動)を受け付ける。
Next, the operation of the configuration of FIG. 1 during normal DMA transfer will be described in detail with reference to FIG. In FIG. 2, S1
Accepts activation of DMA from the MPU. this is,
The DMAC 11 of FIG. 1 starts the DMA from the MPU 3 (D
(Activation of MA transfer) is accepted.

【0024】S2は、DMA起動する。これは、DMA
C11がS1でDMAの起動を受け付けたことに対応し
て、DMA転送を起動する。S3は、DMA転送する。
これは、DMAC11の制御のもとでメモリ間のデータ
転送を行う。
In step S2, DMA is activated. This is DMA
In response to the C11 accepting the DMA activation in S1, the DMA transfer is activated. In S3, DMA transfer is performed.
This transfers data between memories under the control of the DMAC 11.

【0025】この際、S7で動作状態通知信号によりタ
イマスタートする。これは、DMAC11の動作状態通
知端子12から動作状態通知信号をタイマ2に送出し、
直接にタイマスタートさせる。
At this time, the timer is started by the operation state notification signal in S7. This sends an operation state notification signal from the operation state notification terminal 12 of the DMAC 11 to the timer 2,
Start the timer directly.

【0026】S4は、DMA転送終了する。この際、S
8でタイマストップする。これは、DMAC11が例え
ばDMAC11の動作状態通知端子12から動作状態通
知信号をインアクティブにしてタイマ2を停止させる。
In step S4, the DMA transfer ends. At this time, S
The timer stops at 8. This causes the DMAC 11 to deactivate the operation state notification signal from the operation state notification terminal 12 of the DMAC 11, and stops the timer 2.

【0027】S5は、MPUに割り込み通知する。これ
は、DMAC11がS4でDMA転送が正常終了したこ
とに対応して、*INTをOR回路16に入力して*I
RQでMPU3に割り込み通知する。
In step S5, the MPU is notified of interruption. This corresponds to the fact that the DMAC 11 has completed the DMA transfer normally in S4 and inputs * INT to the OR circuit 16 to input * I.
The RQ notifies the MPU3 of interruption.

【0028】S6は、MPU3がステータスを読みDM
A完了と認識する。これは、S5で割り込み通知を受け
たMPU3が割り込み処理の中で、バッファ17の内容
をリードし、*INTによる割り込み通知であることを
認識し、DMA転送が正常完了と判断する。
In step S6, the MPU 3 reads the status and DMs
A is recognized as completed. This is because the MPU 3 which has received the interrupt notification in S5 reads the contents of the buffer 17 during the interrupt processing, recognizes that the interrupt notification is based on * INT, and judges that the DMA transfer is normally completed.

【0029】以上によって、DMAC11がDMA起動
を受け付け、DMA起動すると共に動作状態通知端子1
2から動作状態通知信号を外部のタイマ2に通知してタ
イマ起動し、この場合にはDMA転送が正常終了したの
で*INTを契機として割り込みをMPU3に通知し、
割り込みの処理の中でMPU3がDMA転送が正常終了
したと判断する。この際に、動作状態通知端子12から
外部に送出した動作状態通知信号によってタイマ2を直
接に起動しているので、タイマスタートの起動遅れがな
いと共にMPU3に負担をかけることがない。
As described above, the DMAC 11 accepts the DMA activation, the DMA activation is performed, and the operation state notification terminal 1
2 notifies the external timer 2 of the operation state notification signal and starts the timer. In this case, since the DMA transfer is normally completed, the interrupt is notified to the MPU 3 triggered by * INT,
During the interrupt process, the MPU 3 determines that the DMA transfer is normally completed. At this time, since the timer 2 is directly activated by the operation state notification signal sent from the operation state notification terminal 12 to the outside, there is no delay in starting the timer and no burden on the MPU 3.

【0030】次に、図3を用いてタイムアウト時の図1
の構成の動作を詳細に説明する。図3において、S11
は、MPUからのDMAの起動を受け付ける。これは、
図1のDMAC11がMPU3からのDMAの起動(D
MA転送の起動)を受け付ける。
Next, referring to FIG. 3, FIG.
The operation of the above configuration will be described in detail. In FIG. 3, S11
Accepts activation of DMA from the MPU. this is,
The DMAC 11 of FIG. 1 starts the DMA from the MPU 3 (D
(Activation of MA transfer) is accepted.

【0031】S12は、DMA起動する。これは、DM
AC11がS11でDMAの起動を受け付けたことに対
応して、DMA転送を起動する。S13は、DMA転送
する。これは、DMAC11の制御のもとでメモリ間の
データ転送を行う。
In step S12, DMA is activated. This is DM
In response to the AC11 accepting the DMA activation in S11, the DMA transfer is activated. In S13, DMA transfer is performed. This transfers data between memories under the control of the DMAC 11.

【0032】この際、S15で動作状態通知信号により
タイマスタートする。これは、DMAC11の動作状態
通知端子12から動作状態通知信号をタイマ2に送出
し、直接にタイマスタートさせる。
At this time, the timer is started by the operation state notification signal in S15. This sends an operation state notification signal from the operation state notification terminal 12 of the DMAC 11 to the timer 2 to directly start the timer.

【0033】S16は、タイムアウト発生する。これ
は、S15でタイマ2をタイマスタートさせ、予め設定
した所定時間を経過してタイムアウトが発生する。S1
7は、MPUに割込み通知する。これは、タイマ2から
直接受取るとともに、MPUに割り込み通知する。即
ち、S16でタイマ2がタイムアウトしたことに対応し
て、タイムアウト信号(停止信号)を停止端子13を介
してDMAC11に直接に入力すると共に、OR回路1
6を介して*IRQとしてMPU3に割り込みを通知す
る。
In S16, a time-out occurs. This means that the timer 2 is timer-started in S15, and a timeout occurs after a preset predetermined time has elapsed. S1
7 notifies the MPU of interruption. This is directly received from the timer 2 and an interrupt is notified to the MPU. That is, in response to the time-out of the timer 2 in S16, the time-out signal (stop signal) is directly input to the DMAC 11 via the stop terminal 13, and the OR circuit 1
The interrupt is notified to the MPU 3 as * IRQ via 6.

【0034】この際、S14で、停止端子13から停止
信号(タイムアウト信号)を直接に受け取ったDMAC
11がDMA転送を強制的に停止する。S18は、MP
Uがステータスを読み、タイムアウトと判断する。これ
は、S17で割り込み通知を受けたMPU3が割り込み
処理の中で、バッファ17の内容をリードし、タイムア
ウトによる割り込み通知であることを認識し、DMA転
送がタイムアウトしたと判断する。
At this time, in S14, the DMAC which directly receives the stop signal (timeout signal) from the stop terminal 13
11 forcibly stops the DMA transfer. S18 is MP
U reads the status and determines that it has timed out. This is because the MPU 3 which received the interrupt notification in S17 reads the contents of the buffer 17 during the interrupt processing, recognizes that the interrupt notification is due to a timeout, and determines that the DMA transfer has timed out.

【0035】以上によって、DMAC11がDMA起動
を受け付け、DMA起動すると共に動作状態通知端子1
2から動作状態通知信号を外部のタイマ2に通知してタ
イマ起動し、この場合にはDMA転送が正常終了するこ
となく、タイムアウトを契機として割り込みをMPU3
に通知し、割り込みの処理の中でMPU3がDMA転送
がタイムアウトで異常終了したと判断する。この際に、
動作状態通知端子12から外部に送出した動作状態通知
信号によってタイマ2を直接に起動し、タイムアウト時
にタイムアウト信号(停止信号)をDMAC11の停止
端子13に直接に入力してDMA転送を停止および*I
RQで割り込み通知をMPU3に行っているため、タイ
マスタートの起動遅れがないと共に、タイマ3の起動や
タイムアウト時のDMAC11のDMA転送停止のため
にMPU3の負担をかけることがなく、オーバーヘッド
を軽減できる。
As described above, the DMAC 11 accepts the DMA activation, the DMA activation is performed, and the operation state notification terminal 1
2 notifies the external timer 2 of the operation status notification signal and starts the timer. In this case, the DMA transfer does not end normally, and an interrupt is issued when the time-out triggers the MPU 3
In the interrupt processing, the MPU 3 determines that the DMA transfer ended abnormally due to a timeout. At this time,
The timer 2 is directly activated by the operation status notification signal sent from the operation status notification terminal 12 to the outside, and the timeout signal (stop signal) is directly input to the stop terminal 13 of the DMAC 11 at the time-out to stop the DMA transfer and * I.
Since the interrupt notification is sent to the MPU 3 by the RQ, there is no delay in the start of the timer start, and the overhead is reduced without burdening the MPU 3 for starting the timer 3 or stopping the DMA transfer of the DMAC 11 at the time-out. .

【0036】図4は、本発明の動作説明図を示す。これ
は、図1の構成におけるタイムチャートである。図4の
(a)は、通常のタイムチャートを示す。これは、図2
の正常DMA転送時のタイムチャートである。ここで、
*CH*STは、DMAC11の動作状態通知端子12
からチャネル毎にDMA転送起動時に送出する動作状態
通知信号であって、*CH0ST(チャネルCH0の動
作状態通知信号)や*CH1ST(CH1の動作状態通
知信号)などである。
FIG. 4 shows an operation explanatory diagram of the present invention. This is a time chart in the configuration of FIG. FIG. 4A shows a normal time chart. This is shown in Figure 2.
7 is a time chart at the time of normal DMA transfer. here,
* CH * ST is the operating state notification terminal 12 of the DMAC 11.
Is an operation state notification signal transmitted from each channel at the time of starting the DMA transfer, such as * CH0ST (channel CH0 operation state notification signal) or * CH1ST (CH1 operation state notification signal).

【0037】*TOUT*は、タイマ2がタイムアウト
したときに送出するチャネル毎の信号(停止信号)であ
って、*TOUT0(チャネルCH0のタイムアウト信
号)や*TOUT1(チャネルCH1のタイムアウト信
号)などである。
* TOUT * is a signal (stop signal) for each channel transmitted when the timer 2 times out, and is * TOUT0 (timeout signal of channel CH0) or * TOUT1 (timeout signal of channel CH1). is there.

【0038】*INTは、DMAC11のDMA転送が
正常終了などしたときに送出する信号である。図4の
(a)において、は、DMA起動したことに対応し
て、*CH*ST(動作状態通知信号)がアクティブと
なり、DMAC11がこの動作状態通知信号をタイマ2
に通知して起動し、動作状態にする(図2のS7)。
* INT is a signal transmitted when the DMA transfer of the DMAC 11 is completed normally. In (a) of FIG. 4, * CH * ST (operating state notification signal) becomes active in response to DMA activation, and the DMAC 11 sends this operating state notification signal to the timer 2
Is activated to activate the system (S7 of FIG. 2).

【0039】は、チップ内の割り込み要求が発生した
ことに対応して、*INTを送出してMPU3に割り込
みでDMA転送終了を通知すると共に、*CH*STを
インアクティブにしてタイマ2の動作を停止させる。
In response to the occurrence of an interrupt request in the chip, the above-mentioned signal is sent * INT to notify the MPU 3 of the end of the DMA transfer by an interrupt, and * CH * ST is made inactive to operate the timer 2. To stop.

【0040】以上によって、DMAC11がでDMA
起動したときに、*CH*STでタイマ2を直接に起動
し、DMA転送終了時に*INTでMPU3に終了を通
知すると共に、*CH*STをインアクティブにしてタ
イマ2を停止させる。これらにより、タイマ2の起動、
停止をDMAC11が*CH*ST(動作状態通知信
号)を使用して直接に行い、MPU3に負担をかけない
と共に遅れなく起動することが可能となる。
By the above, the DMAC 11 is DMA
When it is activated, the timer 2 is directly activated by * CH * ST, the termination is notified to the MPU 3 by * INT at the end of the DMA transfer, and the timer 2 is stopped by deactivating * CH * ST. With these, start of timer 2,
It is possible for the DMAC 11 to directly stop the signal using * CH * ST (operation status notification signal), thereby not burdening the MPU 3 and starting it up without delay.

【0041】図4の(b)は、タイムアウト時のタイム
チャートを示す。これは、図3のタイムアウト時のタイ
ムチャートである。ここで、*CH*ST、*TOUT
*、および*INTは図4の(a)と同様であるので、
説明を省略する。
FIG. 4B shows a time chart at the time of timeout. This is a time chart at the time of timeout in FIG. Where * CH * ST, * TOUT
Since * and * INT are the same as in (a) of FIG. 4,
The description is omitted.

【0042】図4の(b)において、は、DMA起動
したことに対応して、*CH*ST(動作状態通知信
号)がアクティブとなり、DMAC11がこの動作状態
通知信号をタイマ2に通知して起動し、動作状態にする
(図3のS15)。
In FIG. 4B, * CH * ST (operating state notification signal) becomes active in response to DMA activation, and the DMAC 11 notifies the timer 2 of this operating state notification signal. It is activated and brought into an operating state (S15 in FIG. 3).

【0043】は、タイマ3にタイムアウト発生したこ
とに対応して、*TOUT*(停止信号)をDMAC1
1に入力してDMA転送停止などする。詳述すれば、*
TOUT*(停止信号)を送出してDMAC11の停止
端子13から入力し、当該DMAC11を直接にDMA
停止すると共に、OR回路16を介して*IRQをMP
U3に通知して割り込みの中でMPU3がタイムアウト
をバッファ17からリードして認識する。そして、DM
AC11は、*CH*STをインアクティブにすると共
に必要に応じて*INTをアクティブにする。
In response to the timer 3 having timed out, * TOUT * (stop signal) is sent to the DMAC1.
Input to 1 to stop DMA transfer. To be more specific, *
TOUT * (stop signal) is sent and input from the stop terminal 13 of the DMAC 11, and the DMAC 11 is directly DMA-transmitted.
Stop * MPMP * IRQ via OR circuit 16
The U3 is notified and the MPU 3 reads the timeout from the buffer 17 and recognizes it in the interrupt. And DM
The AC 11 inactivates * CH * ST and activates * INT when necessary.

【0044】以上によって、DMAC11がでDMA
起動したときに、*CH*STでタイマ2を直接に起動
し、でタイムアウト発生したときに*TOUT*をD
MAC11に直接に入力してDMA停止および*IRQ
をMPU3に通知してタイムアウトによる終了の旨を通
知する。これらにより、タイマ2の起動、停止をDMA
C11が*CH*ST(動作状態通知信号)を使用して
直接に行い、しかもタイムアウト発生時に*TOUT*
(停止信号)によって直接にDMAC11によるDMA
停止を行い、MPU3に負担をかけないと共にタイマ起
動を遅れなく起動することが可能となる。
By the above, the DMAC 11 is DMA
When it is started, * CH * ST is used to directly start timer 2, and when a timeout occurs in, * TOUT * is set to D
Directly input to MAC11 to stop DMA and * IRQ
To the MPU 3 to notify the end of the timeout. With these, the start and stop of the timer 2 is DMA
C11 directly uses * CH * ST (operation status notification signal), and * TOUT * when timeout occurs
DMA by the DMAC 11 directly by (stop signal)
This makes it possible to stop the operation so that the MPU 3 is not burdened and the timer can be started without delay.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
DMAC11のチャネル毎の動作状態通知端子12およ
び停止端子13を設けてタイマ2をハードウェアで直接
に起動/停止、更にタイムアウト発生時にDMAC11
のDMA停止を直接に行ったりする構成を採用している
ため、DMAC11の正確なタイマ監視を実現すると共
にオーバーヘッドを軽減することができる。また、DM
AC11およびI/O制御14、更に必要な外部回路
(OR回路16、バッファ17など)をチップ内に収め
ることにより、省スペースを図ることが可能となる。
As described above, according to the present invention,
The operation state notification terminal 12 and the stop terminal 13 for each channel of the DMAC 11 are provided to directly start / stop the timer 2 by hardware, and when the time-out occurs, the DMAC 11
Since the DMA is stopped directly, it is possible to realize accurate timer monitoring of the DMAC 11 and reduce the overhead. Also, DM
Space can be saved by accommodating the AC 11 and the I / O control 14, and the necessary external circuits (OR circuit 16, buffer 17, etc.) in the chip.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の正常DMA転送時のフローチャートで
ある。
FIG. 2 is a flowchart at the time of normal DMA transfer of the present invention.

【図3】本発明のタイムアウト時のフローチャートであ
る。
FIG. 3 is a flowchart of the present invention at the time of timeout.

【図4】本発明の動作説明図である。FIG. 4 is an explanatory diagram of the operation of the present invention.

【図5】従来技術の構成図である。FIG. 5 is a configuration diagram of a conventional technique.

【図6】従来技術の動作説明図である。FIG. 6 is an operation explanatory diagram of a conventional technique.

【符号の説明】[Explanation of symbols]

1:IC 11:DMAC 12:動作状態端子 13:停止端子 14:I/O制御 15:データバス制御 16:OR回路 17:バッファ 2:タイマ 3:MPU 1: IC 11: DMAC 12: Operating state terminal 13: Stop terminal 14: I / O control 15: Data bus control 16: OR circuit 17: Buffer 2: Timer 3: MPU

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】チャネル毎にタイマ監視して割り込みを制
御するチャネル割込制御方式において、 DMAC(11)のチャネル毎の動作状態通知端子(1
2)および停止端子(13)を設け、 この動作状態通知端子(12)からの動作状態通知信号
によってタイマ(2)を直接に起動すると共に、この起
動したタイマ(2)がタイムアウトしたときに停止信号
を上記停止端子(13)に直接に入力して停止させるよ
うに構成したことを特徴とするチャネル割込制御方式。
1. A channel interrupt control system for controlling an interrupt by monitoring a timer for each channel, wherein an operation state notification terminal (1) for each channel of a DMAC (11) is provided.
2) and a stop terminal (13) are provided, and the timer (2) is directly activated by the operation state notification signal from the operation state notification terminal (12) and is stopped when the activated timer (2) times out. A channel interrupt control system characterized in that a signal is directly input to the stop terminal (13) to stop the signal.
【請求項2】上記停止信号を割込み要因の1つとして生
成した割込信号IRQをDMA要求元に通知して割込み
を発生させ、この割込みの処理の中でタイムアウトした
ときの停止信号である旨をステータスとしてバッファ
(17)からリードし得るように構成したことを特徴と
した請求項1記載のチャネル割込制御方式。
2. A stop signal when an interrupt signal IRQ generated by using the stop signal as one of the interrupt factors is notified to a DMA request source to generate an interrupt and a timeout occurs in the processing of this interrupt. 2. The channel interrupt control system according to claim 1, wherein the status is read from the buffer (17).
JP4299470A 1992-11-10 1992-11-10 Channel interruption control system Pending JPH06149686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4299470A JPH06149686A (en) 1992-11-10 1992-11-10 Channel interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4299470A JPH06149686A (en) 1992-11-10 1992-11-10 Channel interruption control system

Publications (1)

Publication Number Publication Date
JPH06149686A true JPH06149686A (en) 1994-05-31

Family

ID=17872994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4299470A Pending JPH06149686A (en) 1992-11-10 1992-11-10 Channel interruption control system

Country Status (1)

Country Link
JP (1) JPH06149686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7055752B2 (en) 2000-05-22 2006-06-06 Matsushita Electric Industrial Co., Ltd. IC card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7055752B2 (en) 2000-05-22 2006-06-06 Matsushita Electric Industrial Co., Ltd. IC card

Similar Documents

Publication Publication Date Title
JPH06149686A (en) Channel interruption control system
JPS634209B2 (en)
JPH0578925A (en) Communication control method
KR100253446B1 (en) Data transmission system for transmitting data between plural microcomputer application instruments
JP2000089971A (en) Method and device for controlling interruption order
JP2842639B2 (en) Data transfer method
JP2976343B2 (en) Startup acceptance method
JP2667285B2 (en) Interrupt control device
JPS6337453A (en) Bus switch device
JPH10116245A (en) Dma controller
JPH1020968A (en) Selective hardware resetting circuit
JPS598038A (en) Data input and output processor
JP4030216B2 (en) Microprocessor, system including microprocessor, and bus cycle control method of microprocessor
JPH0311848A (en) Communication controller
JPH0535460B2 (en)
JP2802091B2 (en) Interrupt vector control method
JPH05158723A (en) Abnormality diagnostic device for decentralized processing type controller
JPS5936456A (en) Communication controller
JPS616755A (en) Data transfer system
JPS63153635A (en) Specification system for data transfer speed
JPH0488458A (en) Bus arbitration system
JPH08314814A (en) Communication equipment
JPH08123742A (en) Retrial controller
JPS62245456A (en) Time monitor and control system
JPH0248762A (en) Computer system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030204