JPS62269539A - Communication controller - Google Patents
Communication controllerInfo
- Publication number
- JPS62269539A JPS62269539A JP61113933A JP11393386A JPS62269539A JP S62269539 A JPS62269539 A JP S62269539A JP 61113933 A JP61113933 A JP 61113933A JP 11393386 A JP11393386 A JP 11393386A JP S62269539 A JPS62269539 A JP S62269539A
- Authority
- JP
- Japan
- Prior art keywords
- data
- cpu
- reception
- communication control
- transfer
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract description 10
- 230000005540 biological transmission Effects 0.000 abstract description 3
- 101150046174 NIP2-1 gene Proteins 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、データ通信機器におけるデータ端末装置から
の非同期式直列伝送データを受信する通信制御装置に関
するものである。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a communication control device for receiving asynchronous serially transmitted data from a data terminal device in data communication equipment.
従来の技術
第3図は、従来の通信制御装置10の構成を示している
。第3図において、1はデータ端末装置からの直列受信
データを並列データに変換し、CPUバス5に送出する
通信制御LSIである。BACKGROUND ART FIG. 3 shows the configuration of a conventional communication control device 10. In FIG. 3, reference numeral 1 denotes a communication control LSI that converts serially received data from a data terminal device into parallel data and sends it to the CPU bus 5.
2は、このシステムを制御するCPUである。3は、通
信制御LSIIからの割込信号を受けて、CPU2に割
込を発生させる割込コントローラである。4は、データ
端末装置からこのシステムが受信したデータをバッファ
リングするメモリである。2 is a CPU that controls this system. 3 is an interrupt controller that receives an interrupt signal from the communication control LSII and causes the CPU 2 to generate an interrupt. 4 is a memory for buffering data received by this system from a data terminal device.
従来、上記のような通信制御装置において非同期式デー
タの受信を行う場合、通信制御LSIIからのデータ転
送は、1キヤラクタごとにCPU2が読みとり、メモリ
4に書きこんでいる。また受信パケットの終結は、次の
キャラクタを通信制御LS11が受信したという割込が
、ある一定時間内に発生しないことにより検知していた
。Conventionally, when receiving asynchronous data in a communication control device such as the one described above, data transfer from the communication control LSII is read character by character by the CPU 2 and written to the memory 4. Further, the end of a received packet is detected by not generating an interrupt indicating that the next character has been received by the communication control LS 11 within a certain period of time.
発明が解決しようとする問題点
しかしながら、上記従来の通信制御装置10では、通信
制御LSI 1からメモリ4へのデータ転送にダイレク
トメモリアクセス(以下、DMAと略記する)を利用で
きず、ソフトウェア処理によって行わなければならない
。そのためデータ転送にCPU2の多くのステップを使
ってしまい、CPU 2の負荷が大きくなってしまうと
いう問題点があった。Problems to be Solved by the Invention However, in the conventional communication control device 10 described above, direct memory access (hereinafter abbreviated as DMA) cannot be used for data transfer from the communication control LSI 1 to the memory 4; It must be made. Therefore, there is a problem in that many steps of the CPU 2 are used for data transfer, resulting in a heavy load on the CPU 2.
本発明は、このような従来の問題点を解決するものであ
り、ハードウェア処理で受信パケットの終結を検知する
ことによって、DMA転送を可能とする通信制御装置を
提供することを目的とするものである。The present invention solves these conventional problems, and aims to provide a communication control device that enables DMA transfer by detecting the end of a received packet through hardware processing. It is.
問題点を解決するための手段
本発明は上記目的を達成するために、受信信号のデータ
伝送を行っていない事を表わすビット列を検出、計数す
る終結検出回路を設け、CPUでキャラクタを読みとる
ことなく、パケットの終結を検知できるようにしたもの
である。Means for Solving the Problems In order to achieve the above object, the present invention provides a termination detection circuit that detects and counts bit strings indicating that no data transmission is being performed in a received signal, and the present invention provides a termination detection circuit that detects and counts bit strings indicating that data transmission is not performed in a received signal. , it is possible to detect the end of a packet.
作 用
従って本発明によれば、非同期式の直列受信データをメ
モリにDMA転送を行うことによってCPUの負荷を軽
減することができるという効果を有する。According to the present invention, the load on the CPU can be reduced by performing DMA transfer of asynchronous serial reception data to the memory.
実施例
以下本発明の一実施例について第1図、第2図と共に説
明する。第1図で、6は受信データの終了を検出するた
めのカウンタ、ゲート回路等から成る終結検出回路、7
はDMAコントローラ、10aは通信制御装置全体であ
り、他の第3図と同様の符号は同一の名称を表わすもの
とする。EXAMPLE An example of the present invention will be described below with reference to FIGS. 1 and 2. In FIG. 1, 6 is a termination detection circuit consisting of a counter, a gate circuit, etc. for detecting the termination of received data; 7
1 is a DMA controller, 10a is the entire communication control device, and other symbols similar to those in FIG. 3 represent the same names.
次に上記実施例の動作について第2図を参照しながら説
明する。通信制御LSI 1がデータ端末装置からの非
同期式受信データを受信し、1キヤラクタごとにDMA
コントローラ7の制御でメモリ4にDMA転送される。Next, the operation of the above embodiment will be explained with reference to FIG. Communication control LSI 1 receives asynchronous reception data from a data terminal device, and performs DMA for each character.
DMA transfer is performed to the memory 4 under the control of the controller 7.
受信パケットが終結すると、受信信号はハイ状態となる
。終結検出回路6はこの・・イ状態を検知し、ハイ状態
の期間中、受信用クロックを計数し、予め指定した個数
になると割込コントローラ3に対し割込信号を発生する
。即ち第2図においては、(イ)で受信信号aの終了を
示すハイ状態を検知し、受信クロックbの計数を開始す
る。予め指定した数のクロックを計数するまで受信信号
のハイ状態が続いていると終結検出回路6は割込信号c
ffo)で発生する。もし予め指定した数のクロックを
計数するまでに受信信号がロー状態になった場合、つま
り、次のキャラクタのスタートビットを受信した場合は
、まだパケットが終結していないと判断し受信を続け、
終結検出回路6はリセットする。When the received packet ends, the received signal goes high. The termination detection circuit 6 detects this state, counts the reception clocks during the high state, and generates an interrupt signal to the interrupt controller 3 when the number reaches a predetermined number. That is, in FIG. 2, the high state indicating the end of the reception signal a is detected at (a), and counting of the reception clock b is started. If the received signal continues to be in a high state until a predetermined number of clocks are counted, the termination detection circuit 6 outputs an interrupt signal c.
ffo). If the reception signal becomes low by the time a pre-specified number of clocks are counted, that is, if the start bit of the next character is received, it is determined that the packet has not ended and reception continues.
The termination detection circuit 6 is reset.
上記実施例によれば、ハードウェアでパケットの終結を
検知し、割込信号を発生するため、データ転送はCPU
2を通して行う必要がな(、DMA転送を用いること
ができ、CPU 2の負担を少なくすることができる。According to the above embodiment, since the end of the packet is detected by hardware and an interrupt signal is generated, data transfer is performed by the CPU.
2, DMA transfer can be used and the load on the CPU 2 can be reduced.
発明の詳細
な説明したように、本発明によれば、非同期式の受信パ
ケットの終結を受信データの終結に伴ない受信データの
レベルが一定になることから、レベル一定の状態の計測
により一定時間経過を待って割込信号をハード的に発生
するように構成したので、CPUを介することなくデー
タのDMA転送が可能となり、従ってCPUの負荷を軽
減出来る利点を有する。As described in detail, according to the present invention, the level of the received data becomes constant as the end of the asynchronous received packet coincides with the end of the received data. Since the interrupt signal is generated by hardware after waiting for the elapsed time, data can be transferred by DMA without going through the CPU, which has the advantage of reducing the load on the CPU.
第1図は本発明の一実施例における通信制御装置のブロ
ック図、第2図は同タイミングチャート、第3図は従来
の通信制御装置のブロック図である。
1・・・通信制御LSI、 2・・・CPU、3・・・
割込コントローラ、4・・・メモリ、5・・・CPUバ
ス、 6・・・終結検出回路、7・・・DMAコントロ
ーラ、 10a・・・通信制御装置。FIG. 1 is a block diagram of a communication control device according to an embodiment of the present invention, FIG. 2 is a timing chart of the same, and FIG. 3 is a block diagram of a conventional communication control device. 1... Communication control LSI, 2... CPU, 3...
Interrupt controller, 4... Memory, 5... CPU bus, 6... Termination detection circuit, 7... DMA controller, 10a... Communication control device.
Claims (1)
し、並列データに変換してCPUバス上に送出するため
の通信制御LSIと、前記CPUバスを介して接続され
たCPUとメモリとダイレクトメモリアクセスコントロ
ーラと、前記受信データの終結に伴なうレベル変化の継
続時計を計測すると共に、前記継続時間が一定時間経過
すると前記受信データが終結したものとして割込信号を
発生する終結検出回路とを備え、前記通信制御LSIと
前記メモリとの間でダイレクトメモリアクセスを行う通
信制御装置。A communication control LSI that receives asynchronous serial reception data from a data terminal device, converts it into parallel data, and sends it out on a CPU bus, and a CPU and memory connected via the CPU bus, and direct memory access. A controller, and a termination detection circuit that measures a continuation clock of a level change accompanying the termination of the received data, and generates an interrupt signal as if the received data has terminated when the continuation time has elapsed for a certain period of time. , a communication control device that performs direct memory access between the communication control LSI and the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61113933A JPS62269539A (en) | 1986-05-19 | 1986-05-19 | Communication controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61113933A JPS62269539A (en) | 1986-05-19 | 1986-05-19 | Communication controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62269539A true JPS62269539A (en) | 1987-11-24 |
Family
ID=14624830
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61113933A Pending JPS62269539A (en) | 1986-05-19 | 1986-05-19 | Communication controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62269539A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0576145U (en) * | 1992-03-13 | 1993-10-15 | 横河電機株式会社 | Communication device |
-
1986
- 1986-05-19 JP JP61113933A patent/JPS62269539A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0576145U (en) * | 1992-03-13 | 1993-10-15 | 横河電機株式会社 | Communication device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4761800A (en) | Method and apparatus for detecting a rate of data transmission | |
JP2641999B2 (en) | Data format detection circuit | |
JPH04251362A (en) | Adaptive direct memory access method and controller thereof | |
JPS62269539A (en) | Communication controller | |
JPS6359042A (en) | Communication interface equipment | |
US5812878A (en) | System for DMA transfer wherein controller waits before execution of next instruction until a counter counts down from a value loaded by said controller | |
JP2615127B2 (en) | Communication processing device | |
JPH11163958A (en) | Communication controller | |
JP2953878B2 (en) | Data transfer system | |
JP2003263404A (en) | Serial communication system and microcomputer using the same | |
JP2573210B2 (en) | Communications system | |
KR0175584B1 (en) | Facsimile | |
US20020099890A1 (en) | Apparatus and method for processing interruptions in a data transmission over a bus | |
JP2630077B2 (en) | Clock synchronous serial interface | |
JP3266034B2 (en) | Communication control device | |
KR0127331Y1 (en) | Retry apparatus of ticom bus | |
KR100244471B1 (en) | Direct memory access controller and control method | |
JPH04117841A (en) | Communication speed detection method in start-stop synchronizing communication system | |
JPH04364623A (en) | Communication speed detection method in start-stop synchronization communication system | |
JPH0721119A (en) | Data receiving device | |
JPS62234446A (en) | Data reception | |
JPS61129941A (en) | Communication control system | |
JPH1196019A (en) | Method for controlling interruption | |
JPH05344106A (en) | Semidouble base band transmission system | |
JPH098863A (en) | Communication protocol controller |