JPH09135237A - Transmission control circuit - Google Patents

Transmission control circuit

Info

Publication number
JPH09135237A
JPH09135237A JP7290786A JP29078695A JPH09135237A JP H09135237 A JPH09135237 A JP H09135237A JP 7290786 A JP7290786 A JP 7290786A JP 29078695 A JP29078695 A JP 29078695A JP H09135237 A JPH09135237 A JP H09135237A
Authority
JP
Japan
Prior art keywords
data
buffer
transmission
buffers
input
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
JP7290786A
Other languages
Japanese (ja)
Inventor
Hiroshi Ohata
大畑  浩
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP7290786A priority Critical patent/JPH09135237A/en
Publication of JPH09135237A publication Critical patent/JPH09135237A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the availability of a buffer by using both buffers respectively exclusive for transmission and reception as buffers for transmission/reception at the time other than loop back operation. SOLUTION: At the time of normal transmission, MPU 1 transmits a transmission mode to a buffer manager 10 to start an output controller 5 with a transmission start signal TXE and to switch multiplexer 21 and 22 to the output side of MPU. Next, by synchronizing with a write signal WR, MPU makes an in- clock IN outputted from the manager to write data in the whole area of buffers 33H and 33L in this order. At this time the manager looks at a pointer PIU to switch to 33H to 33L. On the other hand, the controller 5 synchronizes with its own out-clock OUT to make the out-clock OUT outputted from the manager to 33H and 33L and reads data in the order of 33H and 33L to serial-convert it by a P-S conversion circuit 4 to be outputted to a transmission line. At this time, the manager looks at a pointer POU to switch a multiplexer 24 to 33H to 33L.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は送,受信のデータを
一時格納するバッファを持ち、シリアル伝送路を介して
データを送受信する装置の送受信データの入出力部に設
けられ、送信すべきパラレルデータをシリアルデータに
変換し直接又はモデムを介しシリアル伝送路に送信出力
すると共に、直接又はモデムを介しシリアル伝送路から
受信入力したシリアルデータをパラレルデータに変換し
て取込む制御などを行う伝送制御回路であって、自己が
送信したデータをただちに受信することが可能な、いわ
ゆるループバック機能を有すると共に、特にバッファを
有効に利用する機能を備えた伝送制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to parallel data to be transmitted, which is provided in an input / output unit of transmission / reception data of a device having a buffer for temporarily storing transmission / reception data and transmitting / receiving data via a serial transmission line. Transmission control circuit for converting the serial data into serial data and transmitting the data directly or through the modem to the serial transmission line, and converting the serial data received from the serial transmission line directly or through the modem into parallel data and fetching it. The present invention also relates to a transmission control circuit having a so-called loopback function capable of immediately receiving data transmitted by itself, and particularly having a function of effectively using a buffer.

【0002】なお、以下各図において同一の符号は同一
もしくは相当部分を示す。
[0002] In the drawings, the same reference numerals indicate the same or corresponding parts.

【0003】[0003]

【従来の技術】図5は従来の伝送制御回路の要部の構成
例を示す。同図において1はこの伝送制御回路を制御す
ると共に、データ送受信の本体となるMPU、DBはM
PU1のデータバス、RDはMPU1のリード信号及び
その出力端子、WRはMPU1のライト信号及びその出
力端子、INTはMPU1への割込信号及びその入力端
子である。
2. Description of the Related Art FIG. 5 shows an example of the structure of a main part of a conventional transmission control circuit. In the figure, reference numeral 1 denotes the MPU and DB that control the transmission control circuit and are the main body for data transmission / reception.
A data bus of PU1, RD is a read signal of MPU1 and its output terminal, WR is a write signal of MPU1 and its output terminal, and INT is an interrupt signal to MPU1 and its input terminal.

【0004】31は送信データを一時的に蓄積する送信
用バッファで、DI,DOは夫々このバッファ31のデ
ータの入力,出力端子、IN,OUTは夫々このバッフ
ァ31に対してデータの書込,読出のタイミングを与え
るインクロック,アウトクロック及びその入力端子、E
MPはこのバッファ31内の蓄積データが空(エンプテ
ィ)となったことを示すエンプティ信号及びその出力端
子である。
Reference numeral 31 is a transmission buffer for temporarily storing transmission data. DI and DO are data input and output terminals of the buffer 31, respectively, and IN and OUT are data writing to the buffer 31, respectively. In-clock and out-clock for giving read timing and their input terminals, E
MP is an empty signal indicating that the stored data in the buffer 31 has become empty (empty) and its output terminal.

【0005】32は受信データを一時的に蓄積する受信
用バッファで、DI,DOは夫々このバッファ32のデ
ータの入力,出力端子、IN,OUTは夫々このバッフ
ァ32に対してデータの書込,読出のタイミングを与え
るインクロック,アウトクロック及びその入力端子、F
ULはこのバッファ32内が蓄積データで一杯(フル)
となったことを示すフル信号及びその出力端子である。
Reference numeral 32 is a receiving buffer for temporarily accumulating received data. DI and DO are data input and output terminals of the buffer 32, and IN and OUT are data writing to the buffer 32. In-clock and out-clock for giving read timing and its input terminals, F
UL is full of accumulated data in this buffer 32 (full)
It is a full signal indicating that it has become and its output terminal.

【0006】2はデータバスDB上に設けられた双方向
バッファで、MPU1のデータを出力する内部のバッフ
ァ回路2aと、MPU1のリード信号RDのオン/オフ
に応じてデータバスDBへのデータの入力路を夫々オン
/オフする内部の3ステートバッファ回路2bからな
る。4はバッファ31から出力されたパラレルの送信デ
ータをシリアルの送信データにP−S変換し、図外のモ
デムなどを経て伝送路に出力するP−S変換回路、5は
このP−S変換回路4のP−S変換と、アウトクロック
OUTの出力によりバッファ31からのデータの読出を
制御する出力コントローラである。
Reference numeral 2 is a bidirectional buffer provided on the data bus DB, which stores an internal buffer circuit 2a for outputting the data of the MPU 1 and data to the data bus DB according to ON / OFF of the read signal RD of the MPU 1. It comprises an internal 3-state buffer circuit 2b for turning on / off the input paths respectively. Reference numeral 4 denotes a PS conversion circuit that performs PS conversion of parallel transmission data output from the buffer 31 into serial transmission data, and outputs the serial transmission data to a transmission line via a modem (not shown). Reference numeral 5 denotes the PS conversion circuit. 4 is an output controller for controlling the P-S conversion of 4 and the reading of data from the buffer 31 by the output of the outclock OUT.

【0007】6は図外の伝送路からモデムなどを経て受
信したシリアルの受信データをパラレルの受信データに
S−P変換するS−P変換回路、7はこのS−P変換回
路6のS−P変換と、インクロックINの出力によりバ
ッファ32への受信データの書込を制御する入力コント
ローラである。また、8はMPU1によってデータが書
込まれるレジスタ、9はバッファ31から出力されたエ
ンプティ信号EMP、又はバッファ32から出力された
フル信号FULを割込信号INTとしてMPU1に与え
るNORゲートである。
Reference numeral 6 is an SP conversion circuit for converting the serial reception data received from a transmission line (not shown) via a modem or the like into parallel reception data, and 7 is an SP conversion circuit of the SP conversion circuit 6. It is an input controller for controlling the P conversion and the writing of the reception data to the buffer 32 by the output of the in-clock IN. Further, 8 is a register in which data is written by the MPU 1, and 9 is a NOR gate which gives the empty signal EMP output from the buffer 31 or the full signal FUL output from the buffer 32 to the MPU 1 as an interrupt signal INT.

【0008】次に図6の動作を述べる。なお、以下の
( )内の数字はこの動作の概略のステップを示す。 通常動作: (送信); (1)MPU1はレジスタ8にアクセスしライト信号W
Rを与え、送信開始信号TXEをHにして出力コントロ
ーラ5の送信動作を開始させる。
Next, the operation of FIG. 6 will be described. The numbers in parentheses below indicate the general steps of this operation. Normal operation: (transmission); (1) MPU 1 accesses register 8 and writes signal W
R is applied and the transmission start signal TXE is set to H to start the transmission operation of the output controller 5.

【0009】(2)MPU1はバッファ31がフルにな
るか転送長分データを書込むまで、ライト信号WRをバ
ッファ31のインクロック入力端子INに入力し、双方
向バッファ2を介してバッファ31に送信データを書込
む。なお、出力コントローラ5は送信が終了するまでバ
ッファ31にアウトクロックOUTを入力し、バッファ
31からデータをアウトクロックOUTに同期して読出
し、P−S変換回路4を介し、この読出したデータをP
−S変換して図外の伝送路へ向け送信する。
(2) The MPU 1 inputs the write signal WR to the in-clock input terminal IN of the buffer 31 until the buffer 31 becomes full or writes the data for the transfer length, and the write signal WR is input to the buffer 31 via the bidirectional buffer 2. Write the transmission data. The output controller 5 inputs the outclock OUT to the buffer 31 until the transmission is completed, reads the data from the buffer 31 in synchronization with the outclock OUT, and outputs the read data to the PS through the P-S conversion circuit 4.
-S-convert and send to a transmission path not shown.

【0010】(3)バッファ31がフルになるとMPU
1は一時バッファ31への書込み処理を中断する。一
方、出力コントローラ5は引続いてバッファ31からデ
ータを読出しているがバッファ31がエンプティになる
と、バッファ31からエンプティ信号EMPがNORゲ
ート9を介してMPU1に送られることで、MPU1は
このエンプティを知る。
(3) When the buffer 31 becomes full, the MPU
1 interrupts the writing process to the temporary buffer 31. On the other hand, the output controller 5 continues to read data from the buffer 31, but when the buffer 31 becomes empty, the empty signal EMP is sent from the buffer 31 to the MPU 1 via the NOR gate 9, and the MPU 1 makes this empty. know.

【0011】(4)MPU1はこのエンプティ信号EM
Pを割込端子INTに受けて再び上記(2)の処理を実
行する。 (5)MPU1が転送長分データをバッファ31へ書込
み、出力コントローラ5が全てのデータを送信し終わる
と送信動作は完了する。 (受信); (1)伝送路上に他装置から自装置へデータが送信され
ると、S−P変換回路6を通して受信データはS−P変
換され、データが1バイト溜まるごとに入力コントロー
ラ7がバッファ32にインクロックINを入力すること
で、溜まった1バイト分のデータがこのバッファ32に
書込まれる。
(4) The MPU 1 sends this empty signal EM
When P is received at the interrupt terminal INT, the process (2) is executed again. (5) When the MPU 1 writes the transfer length data in the buffer 31 and the output controller 5 finishes sending all the data, the sending operation is completed. (Reception); (1) When data is transmitted from the other device to the device itself on the transmission path, the received data is S-P converted through the S-P conversion circuit 6, and the input controller 7 operates every time one byte of data is accumulated. By inputting the inclock IN to the buffer 32, the accumulated 1-byte data is written in the buffer 32.

【0012】(2)このようにしてバッファ32がフル
になるか受信データ中の終了コードを受信して受信が終
了したことを検知すると、バッファ32はフル信号FU
Lを出力し、MPU1はNORゲート9を介しこの信号
を割込端子INTに入力してそのこと(フル)を知らさ
れる。 (3)このフル信号FULとしての割込信号INTを受
けて、MPU1はバッファ32がエンプティになるまで
リード信号RDを双方向バッファ2及びバッファ32の
アウトクロック端子OUTに入力してバッファ32から
データを読出す。この時受信が終了していなければMP
Uは、再びバッファ32がフルになるまで読出し処理を
中断する。その間入力コントローラ7は引続いてS−P
変換回路6のデータの受信とそのS−P変換を継続し、
S−P変換データをバッファ32へ書込む。
(2) When it is detected that the buffer 32 is full or the end code in the received data is received and the reception is completed, the buffer 32 outputs the full signal FU.
It outputs L, and the MPU 1 inputs this signal to the interrupt terminal INT via the NOR gate 9 and is informed of that (full). (3) Upon receiving the interrupt signal INT as the full signal FUL, the MPU 1 inputs the read signal RD to the bidirectional buffer 2 and the outclock terminal OUT of the buffer 32 until the buffer 32 becomes empty, and then the data is output from the buffer 32. Read out. If reception has not ended at this time, MP
U suspends the read process until buffer 32 is full again. During that time, the input controller 7 continues to be SP
Continue receiving data from the conversion circuit 6 and its SP conversion,
The SP converted data is written in the buffer 32.

【0013】(4)MPU1は受信データを全て読終わ
るまで、(2),(3)の処理を継続し、受信データを
全て受信すると受信動作を完了する。 ループバック動作:この場合、この伝送制御回路のP−
S変換回路4から伝送路へ送信されたデータは再びこの
伝送制御回路のS−P変換回路6へ折返され、上記の送
信動作と受信動作がほぼ並行して行われる。
(4) The MPU 1 continues the processes of (2) and (3) until it finishes reading all the received data, and when all the received data is received, the receiving operation is completed. Loopback operation: In this case, P- of this transmission control circuit
The data transmitted from the S conversion circuit 4 to the transmission path is returned to the SP conversion circuit 6 of the transmission control circuit again, and the transmission operation and the reception operation described above are performed almost in parallel.

【0014】このように自己が送信したデータをただち
に受信することが可能な、いわゆるループバック機能を
持った伝送制御回路では、伝送の送信用と受信用に夫々
独立したバッファ31,32を持っている。また、ルー
プバック動作時以外の通常動作では送信用と受信用のバ
ッファ31,32は同時に動作することはない。
In this way, the transmission control circuit having a so-called loopback function, which can immediately receive the data transmitted by itself, has independent buffers 31 and 32 for transmission and reception of transmission. There is. Further, in the normal operation other than the loopback operation, the transmission buffer 31 and the reception buffer 32 do not operate at the same time.

【0015】[0015]

【発明が解決しようとする課題】図5で述べた従来の伝
送制御回路では、ループバック動作時以外の通常動作で
は、一方の送信又は受信用のバッファが送信もしくは受
信動作を行っている時は、他方の受信もしくは送信用の
バッファは何も機能していない。つまり、その間、伝送
制御回路が持っているバッファは有効に機能しておら
ず、回路素子や回路素子を配置するスペースが無駄にな
っているという問題がある。また、ループバック動作時
は送信用のバッファ31と受信用のバッファ32が同時
に動作する必要があり、送信用と受信用に夫々独立した
バッファを持たなければならないため、送信用のバッフ
ァと受信用のバッファを一つのバッファでは実現できな
いという問題がある。
In the conventional transmission control circuit described in FIG. 5, in the normal operation other than the loopback operation, when one of the transmission or reception buffers is performing the transmission or reception operation, , The other receive or send buffer is not working. That is, during that time, the buffer included in the transmission control circuit does not function effectively, and there is a problem that a circuit element and a space for arranging the circuit element are wasted. Further, during the loopback operation, the transmission buffer 31 and the reception buffer 32 need to operate at the same time, and it is necessary to have separate buffers for transmission and reception. There is a problem that the above buffer cannot be realized with one buffer.

【0016】そこで本発明はこのような問題を解消でき
るループバック動作可能な伝送制御回路を提供すること
を課題とする。
Therefore, it is an object of the present invention to provide a transmission control circuit capable of loopback operation which can solve such a problem.

【0017】[0017]

【課題を解決するための手段】前記の課題を解決するた
めに、本発明の伝送制御回路は、データ送受信の本体と
なる本体手段(MPU1)、パラレルデータを一時蓄積
する第1及び第2のバッファ(33H及び33L)、パ
ラレルデータを入力しシリアルデータに変換して出力す
るP−S変換手段(P−S変換回路4,出力コントロー
ラ5)、シリアルデータを入力しパラレルデータに変換
して出力するS−P変換手段(S−P変換回路6,入力
コントローラ7)を持ち、ループバック動作時には本体
手段が送信すべきパラレルデータを第1のバッファに書
込み、P−S変換手段がこの第1のバッファの書込デー
タを読出し、シリアルデータに変換して伝送路側へ送信
出力し、伝送路側で折返されたこの送信データをS−P
変換手段が受信入力し、パラレルデータに変換して第2
のバッファに書込み、本体手段がこの第2のバッファの
書込データを読出す伝送制御回路において、第1の制御
信号に応じて第1のバッファのデータの入力部(DI)
を、本体手段のデータの出力部(データバスDB)とS
−P変換手段のデータの出力部とに切替える第1のマル
チプレクサ(21)と、第2の制御信号に応じて第2の
バッファのデータの入力部(DI)を、S−P変換手段
のデータの出力部と本体手段のデータの出力部とに切替
える第2のマルチプレクサ(22)と、第3の制御信号
に応じて本体手段のデータの入力部(データバスDB)
を、(双方向バッファ回路2の3ステートバッファ2b
を介し)第1のバッファのデータの出力部(DO)と第
2のバッファのデータの出力部(DO)とに切替える第
3のマルチプレクサ(23)と、第4の制御信号に応じ
てP−S変換手段のデータの入力部を第1のバッファの
データの出力部と第2のバッファのデータの出力部とに
切替える第4のマルチプレクサ(24)と、第1ないし
第4の制御信号を介し通常動作の送信時、本体手段が送
信すべきデータを第1及び第2のバッファに書込み得る
と共に、P−S変換手段がこの2つのバッファの書込デ
ータを読出し得るように、同じく通常動作の受信時、S
−P変換手段が受信したデータを第1及び第2のバッフ
ァに書込み得ると共に、本体手段がこの2つのバッファ
の書込データを読出し得るように、前記第1ないし第4
のマルチプレクサの切替を制御する手段(バッファマネ
ジャ10)とを備えたものとする。
In order to solve the above-mentioned problems, the transmission control circuit of the present invention comprises a main body means (MPU1) which is a main body for data transmission / reception, and first and second parallel storage means for temporarily storing parallel data. Buffers (33H and 33L), P-S conversion means (PS converter circuit 4, output controller 5) for inputting parallel data and converting and outputting to serial data, serial data input and converting to parallel data and outputting. Has a SP converting means (SP converting circuit 6, input controller 7) for writing the parallel data to be transmitted by the main body means in the first buffer during the loopback operation, and the PS converting means is the first buffer. The write data in the buffer is read, converted into serial data, transmitted and output to the transmission line side, and the transmission data folded back on the transmission line side is sent to the SP.
The conversion means receives and inputs, converts into parallel data, and second
In the transmission control circuit in which the main body means reads out the write data in the second buffer, the data input section (DI) of the first buffer in response to the first control signal.
The data output unit (data bus DB) of the main body means and S
The first multiplexer (21) for switching to the data output section of the -P conversion means, and the data input section (DI) of the second buffer in response to the second control signal are connected to the data of the SP conversion means. Second multiplexer (22) for switching between the output section of the main body means and the output section of the main body data, and the input section of the main body data according to the third control signal (data bus DB)
(The three-state buffer 2b of the bidirectional buffer circuit 2
Via a third multiplexer (23) for switching between a data output part (DO) of the first buffer and a data output part (DO) of the second buffer, and P- in response to a fourth control signal. Via a fourth multiplexer (24) for switching the data input section of the S conversion means to the data output section of the first buffer and the data output section of the second buffer, and the first to fourth control signals. During normal operation transmission, the main body means can write the data to be transmitted into the first and second buffers, and the P-S conversion means can also read the write data in the two buffers. When receiving, S
The first to fourth so that the -P conversion means can write the received data in the first and second buffers, and the main body means can read the write data in the two buffers.
And a means (buffer manager 10) for controlling switching of the multiplexer.

【0018】・ループバック動作時以外の通常動作時に
おいて、動作中の第1のバッファもしくは第2のバッフ
ァへデータが入力され、そのバッファが一杯になると、
機能していない他方の第2のバッファもしくは第1のバ
ッファへデータが入力される。 ・ループバック動作時は、従来の伝送制御回路と同様の
動作を行う。
During normal operation other than loopback operation, when data is input to the operating first buffer or second buffer and the buffer becomes full,
Data is input to the other non-functioning second buffer or first buffer.・ During loopback operation, the same operation as the conventional transmission control circuit is performed.

【0019】[0019]

【発明の実施の形態】図1は本発明の一実施例としての
構成を示すブロック回路図である。同図においては33
(33H,33L)は同構造のバッファで、以下の説明
では夫々をバッファ#1,#2とも呼ぶ。このバッファ
(#1)33H,(#2)33Lには図5で述べたD
I,DOとIN,OUTとEMP,FULの各端子の他
に、新たに入力カウントアップポインタPIU,出力カ
ウントアップポインタPOUの各出力端子が設けられて
いる。
1 is a block circuit diagram showing the configuration of an embodiment of the present invention. In the figure, 33
(33H, 33L) are buffers having the same structure, and are also referred to as buffers # 1 and # 2 in the following description. The buffers (# 1) 33H and (# 2) 33L have the D described in FIG.
In addition to the terminals of I, DO and IN, OUT, EMP, and FUL, output terminals of an input count-up pointer PIU and an output count-up pointer POU are newly provided.

【0020】但し図1では本来独立した端子及び信号I
N,OUTを便宜上I/Oと1つの端子,1本の信号線
で示しており、同様にEMP,FULも便宜上E/Fと
1つの端子,1本の信号線で示している。また、PI
U,POUの端子及び信号についても同様で本来は2つ
の端子と2つの信号線からなる。次に21,22,2
3,24は同構造のマルチプレクサで夫々を便宜上MX
#1,MX#2,MX#3,MX#4とも呼ぶ。ここで
MX(#1)21,MX(#2)22は夫々バッファ#
1,#2に対するデータの2つの入力路の1つを切替選
択する役割を持ち、MX(#3)23は双方向バッファ
回路2の3ステートバッファ2bに対するデータの2つ
の入力路の1つを切替選択する役割を持ち、MX(#
4)24はP−S変換回路4へのデータの2つの入力路
の1つを切替選択する役割を持つ。
However, in FIG. 1, originally independent terminals and signals I are provided.
N and OUT are shown by I / O and one terminal and one signal line for convenience, and similarly, EMP and FUL are also shown by E / F and one terminal and one signal line for convenience. Also, PI
The same applies to the terminals and signals of U and POU, which originally consist of two terminals and two signal lines. Then 21, 22, 2
3 and 24 are multiplexers of the same structure, each of which is a MX for convenience.
Also referred to as # 1, MX # 2, MX # 3, MX # 4. Here, MX (# 1) 21 and MX (# 2) 22 are buffers #, respectively.
The MX (# 3) 23 has a role of switching and selecting one of two input paths for data to 1 and # 2, and the MX (# 3) 23 selects one of two input paths for data to the 3-state buffer 2b of the bidirectional buffer circuit 2. It has a role of switching and selecting, and MX (#
4) 24 has a role of switching and selecting one of two input paths of data to the P-S conversion circuit 4.

【0021】10はマルチプレクサMX#1〜MX#4
を切替えるバッファマネジャである。このバッファマネ
ジャ10は、MPU1からはリード信号RD,ライト信
号WR及びデータバスDBを介しデータを入力し得ると
共に、MPU1へは受信モードとか、バッファ#1,#
2がフルあるいはエンプティであることを知らせるため
の各種のステータス信号STS及び割込信号INTを与
える。
Reference numeral 10 denotes multiplexers MX # 1 to MX # 4.
Is a buffer manager that switches between The buffer manager 10 can input data from the MPU 1 via the read signal RD, the write signal WR, and the data bus DB, and the MPU 1 is in the reception mode or the buffers # 1, #.
Various status signals STS and interrupt signal INT are provided to notify that 2 is full or empty.

【0022】またバッファマネジャ10は、出力コント
ローラ5へはMPU1からのモード連絡により送信開始
信号TXEを与え、出力コントローラ5からはデータ読
出用のアウトクロックOUTを入力し、バッファ#1又
は#2へ分配する。また、入力コントローラ7からはデ
ータ書込用のインクロックINを入力し、バッファ#1
又は#2へ分配する。
Further, the buffer manager 10 gives a transmission start signal TXE to the output controller 5 by the mode communication from the MPU 1, inputs an outclock OUT for data reading from the output controller 5, and sends it to the buffer # 1 or # 2. Distribute. Further, the in-clock IN for data writing is input from the input controller 7, and the buffer # 1 is input.
Or distribute to # 2.

【0023】またバッファマネジャ10は、バッファ#
1,#2へはMPU1から入力したリード信号RD及び
前述のように出力コントローラ5から入力したアウトク
ロックOUTを直接、データ読出用のアウトクロックO
UTとして分配し、MPU1から入力したライト信号W
R及び前述のように入力コントローラ7から入力したイ
ンクロックINを直接、データ書込用のインクロックI
Nとして分配する。またバッファマネジャ10は、バッ
ファ#1,#2からは状態信号として入力カウントアッ
プポインタPIU,出力カウントアップポインタPOU
及びエンプティ信号EMP,フル信号FULを入力す
る。
Further, the buffer manager 10 uses the buffer #
The read signal RD input from the MPU 1 and the outclock OUT input from the output controller 5 as described above are directly supplied to the output terminals 1 and # 2.
Write signal W distributed from UT and input from MPU1
R and the in-clock IN input from the input controller 7 as described above are directly input to the in-clock I for data writing.
Distribute as N. Further, the buffer manager 10 receives an input count-up pointer PIU and an output count-up pointer POU as status signals from the buffers # 1 and # 2.
Also, the empty signal EMP and the full signal FUL are input.

【0024】図2は4バイトの容量を持つバッファ33
(33H,33L)の内部構造の例を示すブロック回路
図である。同図において50〜53は夫々1バイトの容
量を持つバッファ(内部バッファと呼ぶ)、60はこの
内部バッファ50〜53を1つずつ選択してそのデータ
をこのバッファ33のデータ出力端子DOに読出すため
のマルチプレクサである。
FIG. 2 shows a buffer 33 having a capacity of 4 bytes.
It is a block circuit diagram which shows the example of an internal structure of (33H, 33L). In the figure, 50 to 53 are buffers each having a capacity of 1 byte (referred to as internal buffers), 60 is one of the internal buffers 50 to 53, and the data is read to the data output terminal DO of the buffer 33. It is a multiplexer for sending out.

【0025】40はアウトクロックOUTを入力する毎
に、その立上りのタイミングで、マルチプレクサ60に
内部バッファ50〜53を(そのデータ読出しのため
に)順番に1つずつ選択するアドレスを00→01→1
0→11のように出力する2ビットのカウンタであり、
出力カウントアップポインタPOUはこのカウンタ40
のカウントアップ時にHとなって出力される信号であ
る。
Each time the input 40 of the outclock OUT, 40, at the rising timing thereof, an address for selecting the internal buffers 50 to 53 to the multiplexer 60 one by one (for reading the data) is sequentially selected as 00 → 01 →. 1
A 2-bit counter that outputs 0 → 11,
The output count-up pointer POU is the counter 40
It is a signal which becomes H and is output at the time of counting up.

【0026】41はインクロックINを入力する毎に、
その立上りのタイミングで、エンコーダ42に内部バッ
ファ50〜53を(データ書込みのために)順番に1つ
ずつ選択するアドレスを00→01→10→11のよう
に出力する2ビットのカウンタであり、入力カウントア
ップポインタPIUはこのカウンタ41のカウントアッ
プ時にHとなって出力される信号である。
Reference numeral 41 indicates each time the inclock IN is input.
At the rising timing, it is a 2-bit counter that outputs to the encoder 42 the addresses for sequentially selecting the internal buffers 50 to 53 one by one (for data writing) as 00 → 01 → 10 → 11. The input count-up pointer PIU is a signal which becomes H and is output when the counter 41 counts up.

【0027】42はカウンタ41から出力される2ビッ
トの計算値(アドレス)00,01,10,11を夫々
内部バッファ50〜53を選択するアドレス(クロッ
ク)0001,0010,0100,1000に変換す
るエンコーダである。従ってこの図2のバッファ33で
はインクロックINの立上りのタイミングで内部バッフ
ァ50〜53へ順番にデータ入力端子DIのデータが書
込まれ、この時カウンタ41がカウントアップすると入
力カウントアップポインタPIUがHとなる。また、ア
ウトクロックOUTの立上りのタイミングで内部バッフ
ァ50〜53から順番にデータ出力端子DOにデータが
読出され、この時カウンタ40がカウントアップすると
出力カウントアップポインタPOUがHになる。
Reference numeral 42 converts the 2-bit calculated value (address) 00, 01, 10, 11 output from the counter 41 into an address (clock) 0001, 0010, 0100, 1000 for selecting the internal buffers 50 to 53, respectively. It is an encoder. Therefore, in the buffer 33 of FIG. 2, the data of the data input terminal DI is sequentially written to the internal buffers 50 to 53 at the rising timing of the in-clock IN, and when the counter 41 counts up at this time, the input count-up pointer PIU becomes H. Becomes Further, data is sequentially read from the internal buffers 50 to 53 to the data output terminal DO at the rising timing of the out clock OUT, and when the counter 40 counts up at this time, the output count-up pointer POU becomes H.

【0028】この時のバッファ33のデータ入出力のタ
イミングは図3のようになる。なお、エンプティ信号E
MPは内部バッファ50〜53が全て空(データ読出
済)のとき図外の手段によって出力され、フル信号FU
Lは、内部バッファ50〜53が全て一杯(データ書込
済)のとき図外の手段によって出力される。図4は図1
の通常動作の送信時の動作を示すフローチャートでS1
〜S30はその細部のステップを示す。
The data input / output timing of the buffer 33 at this time is as shown in FIG. The empty signal E
MP is output by means (not shown) when the internal buffers 50 to 53 are all empty (data has been read), and a full signal FU is output.
L is output by means not shown when all the internal buffers 50 to 53 are full (data has been written). 4 is shown in FIG.
In the flowchart showing the operation at the time of transmission of the normal operation of S1,
~ S30 shows the detailed steps.

【0029】次に図2〜図4を参照しつつ図1の動作を
説明する。なお、以下( )内の数字はこの動作の概略
のステップを示す。 通常動作: (送信); (1)MPU1はバッファマネジャ10にアクセスして
送信モードである旨を知らせる。これによりバッファマ
ネジャ10は出力コントローラ5への送信開始信号TX
EをHにして出力コントローラ5を起動すると共に(S
1)、MX#1,#2をMPU1の出力側へ切替える
(S2)。
Next, the operation of FIG. 1 will be described with reference to FIGS. The numbers in parentheses below indicate the general steps of this operation. Normal operation: (transmission); (1) The MPU 1 accesses the buffer manager 10 to notify that it is in the transmission mode. As a result, the buffer manager 10 sends the transmission start signal TX to the output controller 5.
When E is set to H and the output controller 5 is activated (S
1), MX # 1 and # 2 are switched to the output side of MPU1 (S2).

【0030】(2)MPU1はバッファ#1及び#2が
フルになるか、転送長分のデータを書込むまで、バッフ
ァ#1又は(#1及び#2)にデータを書込む。即ち図
4においてMPU1は自身のライト信号WRに同期して
バッファマネジャ10からバッファ#1にインクロック
INを送らせ、先ずバッファ#1の先頭の内部バッファ
50へ1バイト分のデータを書込み(S11)、転送長
分のデータをこのバッファ#1に書込完了すれば(S1
2,分岐Y)、送信完了となるが(S30)、転送長分
のデータをバッファに書込完了せず(S12,分岐
N)、このバッファ#1の入力カウントアップポインタ
PIUがHでなければ(S13,分岐N)、再びステッ
プS11に戻って次の1バイト分のデータを次の内部バ
ッファ51へ書込む。
(2) The MPU 1 writes data in the buffer # 1 or (# 1 and # 2) until the buffers # 1 and # 2 are full or the data for the transfer length is written. That is, in FIG. 4, the MPU 1 causes the buffer manager 10 to send the in-clock IN to the buffer # 1 in synchronization with its own write signal WR, and first writes 1-byte data to the internal buffer 50 at the head of the buffer # 1 (S11). ), If the data for the transfer length is completely written in this buffer # 1 (S1
2, branch Y), the transmission is completed (S30), but the data for the transfer length is not written in the buffer (S12, branch N) and the input count-up pointer PIU of this buffer # 1 is not H. (S13, branch N), the process returns to step S11 again to write the next 1-byte data into the next internal buffer 51.

【0031】こうしてステップS11〜S13の動作を
繰返し、バッファ#1の後尾の内部バッファ53にデー
タを書込み、入力カウントアップポインタPIUがHに
なると(S13,分岐Y)、バッファマネジャ10はラ
イト信号WRに同期したインクロックINの出力をバッ
ファ#2に切替える。これによりMPU1はバッファ#
1と同様にこのバッファ#2へ転送長分のデータを書込
完了しない限り(S15,分岐N)、ステップS14〜
S16の動作を繰返して順次バッファ#2の内部バッフ
ァ50〜53へ1バイトずつのデータを書込む。そして
このバッファ#2の入力カウントアップポインタPIU
がHになると(S16,分岐Y)、ステップS11へ戻
り、バッファ#1の先頭の内部バッファ50からのデー
タ書込動作を繰返す。但しこの間に後述(3),(4)
のようにバッファ#1及び#2がフルになると、この2
つのバッファ#1,#2がエンプティになるまでMPU
1の書込動作は開始されない。
In this way, the operations of steps S11 to S13 are repeated, data is written in the internal buffer 53 at the tail of the buffer # 1, and when the input count-up pointer PIU becomes H (S13, branch Y), the buffer manager 10 causes the write signal WR. The output of the in-clock IN synchronized with is switched to the buffer # 2. This causes MPU1 to
As in the case of 1, unless the data for the transfer length is written into this buffer # 2 (S15, branch N), the steps from S14 to
The operation of S16 is repeated to sequentially write the data of each byte into the internal buffers 50 to 53 of the buffer # 2. Then, the input count-up pointer PIU of this buffer # 2
Becomes H (S16, branch Y), the process returns to step S11, and the data writing operation from the internal buffer 50 at the head of the buffer # 1 is repeated. However, during this period (3), (4)
When buffers # 1 and # 2 become full like
MPU until two buffers # 1 and # 2 are empty
The write operation of 1 is not started.

【0032】一方、出力コントローラ5は送信が終了す
るまでバッファ#1又は#2からデータを自身のアウト
クロックOUTに同期して読出し、P−S変換回路4を
介しP−S変換して伝送路にシリアルデータとして送信
する。この時バッファマネジャ10は出力コントローラ
5が読出すバッファにしたがってMX#4をバッファ#
1又はバッファ#2に切替える。
On the other hand, the output controller 5 reads the data from the buffer # 1 or # 2 in synchronization with its own outclock OUT until the transmission is completed, and performs P-S conversion via the P-S conversion circuit 4 for transmission line. As serial data. At this time, the buffer manager 10 buffers MX # 4 according to the buffer read by the output controller 5.
1 or buffer # 2.

【0033】即ち図4において、以下に述べるステップ
S21〜S26の動作が、前述のステップS11〜S1
6の動作と並行して行われる。ここでバッファマネジャ
10は先ずMX#4をバッファ#1の出力側に切替え、
出力コントローラ5のアウトクロックOUTに同期して
バッファ#1にアウトクロックOUTを与え、バッファ
#1内のマルチプレクサ60に先頭の内部バッファ50
を選択させる。これにより出力コントローラ5はバッフ
ァ#1の先頭の内部バッファ50から1バイト分のデー
タを読出し送信する(S21)。そして出力コントロー
ラ5が転送分のデータをこのバッファ#1から読出完了
せず(S22,分岐N)、バッファ#1の出力カウント
アンプポインタPOUがHにならぬ限り(S23,分岐
N)、ステップS21〜S23の動作を繰返し、出力コ
ントローラ5が順次内部バッファ51〜53からデータ
を読出す。そしてバッファ#1の後尾の内部バッファ5
3からデータが読出され、出力カウントアップポインタ
POUがHになると(S23,分岐Y)、バッファマネ
ジャ10はMX#4をバッファ#2の出力側に切替えて
出力コントローラ5のアウトクロックOUTに同期する
アウトクロックOUTの出力をバッファ#2に切替え
る。これによりバッファ#2について、前記バッファ#
1のステップS21〜S23に夫々対応するS24〜S
26のデータ読出動作が行われ、バッファ#2の出力カ
ウントアップポインタPOUがHとなると(S26,分
岐N)、ステップS21に戻り、上述したステップS2
1〜S26の動作を繰返す。
That is, in FIG. 4, the operations of steps S21 to S26 described below are the same as those of steps S11 to S1 described above.
It is performed in parallel with the operation of 6. Here, the buffer manager 10 first switches MX # 4 to the output side of the buffer # 1,
The outclock OUT is given to the buffer # 1 in synchronization with the outclock OUT of the output controller 5, and the head internal buffer 50 is supplied to the multiplexer 60 in the buffer # 1.
To select. As a result, the output controller 5 reads out and transmits 1-byte data from the internal buffer 50 at the head of the buffer # 1 (S21). Then, unless the output controller 5 completes reading the transferred data from the buffer # 1 (S22, branch N) and the output count amplifier pointer POU of the buffer # 1 does not become H (S23, branch N), step S21. The operation from S23 to S23 is repeated, and the output controller 5 sequentially reads data from the internal buffers 51 to 53. And the internal buffer 5 at the tail of buffer # 1
When the data is read from 3 and the output count-up pointer POU becomes H (S23, branch Y), the buffer manager 10 switches MX # 4 to the output side of the buffer # 2 and synchronizes with the outclock OUT of the output controller 5. The output of the outclock OUT is switched to the buffer # 2. As a result, for buffer # 2,
S24 to S corresponding to steps S21 to S23 of 1 respectively
When the data read operation of 26 is performed and the output count-up pointer POU of the buffer # 2 becomes H (S26, branch N), the process returns to step S21 and the above-described step S2 is performed.
The operations of 1 to S26 are repeated.

【0034】(3)前述のようにバッファ#1及び#2
がフルになると、バッファマネジャ10はバッファ#
1,#2からのフル信号FULの入力に基づき、MPU
1へその旨のステータス信号STSと共に割込信号IN
Tを送る。そこでMPU1は一時バッファ#1又はバッ
ファ#2へのデータ書込み処理を中断する。一方、出力
コントローラ5によりバッファ#1又はバッファ#2か
らデータが読出されているが、バッファ#1及び#2が
エンプティになるとバッファマネジャ10はバッファ#
1,#2からのエンプティ信号EMPの入力に基づき、
MPU1へその旨のステータス信号STSと共に割込信
号INTを送る。そこでMPUはそのことを知らされ
る。
(3) Buffers # 1 and # 2 as described above
Is full, the buffer manager 10
Based on the input of full signal FUL from 1 and # 2,
To 1 along with a status signal STS to that effect and an interrupt signal IN
Send T. Therefore, the MPU 1 suspends the data writing process to the temporary buffer # 1 or the buffer # 2. On the other hand, although data is read from the buffer # 1 or the buffer # 2 by the output controller 5, when the buffers # 1 and # 2 become empty, the buffer manager 10 causes the buffer #
Based on the input of empty signal EMP from 1, # 2,
An interrupt signal INT is sent to the MPU 1 together with a status signal STS to that effect. The MPU is then informed of this.

【0035】(4)このエンプティの割込信号INTを
受けてMPUは再び上記(2)の処理を実行する。 (5)転送長分データを書込み、全てのデータを送信し
終わると送信動作は完了する。 (受信); (1)バッファマネジャ10は入力コンバータ7からの
図外の連絡で受信モードとすべきことを知り、MX#
1,MX#2をS−P変換回路6の出力側へ切替える。
伝送路上にデータが送信されるとS−P変換回路6を通
してシリアルデータはパラレルデータに変換され、デー
タが1バイト溜まるごとに入力コントローラ7からイン
クロックINが出力され、バッファマネジャ10は、こ
のインクロックINに同期してバッファ#2へインクロ
ックINを与える。これにより溜まった1バイトのデー
タはバッファ#2の内部バッファ50〜53に順番に書
込まれ、バッファ#2の入力カウントアップポインタP
IUがHになると、バッファマネジャ10は入力コント
ローラ7からのインクロックINに同期したインクロッ
クINの出力をバッファ#1へ切替える。これによりバ
ッファ#1の内部バッファ50〜53へ順次S−P変換
回路6からの受信データが書込まれる。そしてバッファ
#1の入力カウントアップポインタPIUがHになると
再びバッファ#2からの受信データの書込動作が繰返さ
れる。
(4) Upon receipt of the empty interrupt signal INT, the MPU again executes the processing of (2). (5) When the transfer length data is written and all the data is transmitted, the transmission operation is completed. (Reception); (1) The buffer manager 10 learns from the input converter 7 that the reception mode should be set, and MX #
1, MX # 2 is switched to the output side of the SP conversion circuit 6.
When the data is transmitted on the transmission path, the serial data is converted into parallel data through the SP conversion circuit 6, and the in-clock IN is output from the input controller 7 every time one byte of data is accumulated, and the buffer manager 10 causes the ink The inclock IN is given to the buffer # 2 in synchronization with the lock IN. The 1-byte data accumulated as a result is sequentially written into the internal buffers 50 to 53 of the buffer # 2, and the input count-up pointer P of the buffer # 2 is written.
When IU goes high, the buffer manager 10 switches the output of the inclock IN synchronized with the inclock IN from the input controller 7 to the buffer # 1. As a result, the received data from the SP conversion circuit 6 is sequentially written into the internal buffers 50 to 53 of the buffer # 1. When the input count-up pointer PIU of buffer # 1 becomes H, the operation of writing the received data from buffer # 2 is repeated again.

【0036】(2)この間、バッファ#2及び#1がフ
ルになるか受信データ中の終了コードを受信すると、バ
ッファマネジャ10はバッファ#2,#1からのフル信
号FUL等に基づき、その旨のステータス信号STSと
共に割込信号INTをMPU1に送る。これによりMP
U1はそのことを知る。 (3)この割込信号INTを受けてMPUは自身のリー
ド信号RDに同期してバッファマネジャ10にアウトク
ロックOUTを出力させ、バッファ#及び#1がエンプ
ティになるまでバッファ#2又はバッファ#1からデー
タを読出す。この時バッファマネジャ10は読出すバッ
ファにしたがってMX#3をバッファ#1又はバッファ
#2に切替える。また、この時受信が終了していなけれ
ばMPUは、再びバッファ#2及びバッファ#1がフル
になるまで読出し処理を中断する。
(2) During this time, when the buffers # 2 and # 1 become full or the end code in the received data is received, the buffer manager 10 informs the fact based on the full signal FUL from the buffers # 2 and # 1. The interrupt signal INT is sent to the MPU 1 together with the status signal STS. This makes MP
U1 knows that. (3) In response to the interrupt signal INT, the MPU causes the buffer manager 10 to output the outclock OUT in synchronization with the read signal RD of itself, and the buffer # 2 or the buffer # 1 until the buffers # and # 1 become empty. Read data from. At this time, the buffer manager 10 switches MX # 3 to buffer # 1 or buffer # 2 according to the buffer to be read. If the reception is not completed at this time, the MPU suspends the reading process until the buffers # 2 and # 1 are full again.

【0037】(4)MPUは受信データを全て読終わる
まで上記(2)の処理を継続する。そして受信データを
全て受信すると受信動作を完了する。 ループバック動作:MPU1はバッファマネジャ10に
アクセスしてループバックモードであることを知らせ
る。これによりバッファマネジャ10は出力コントロー
ラ5にHの送信開始信号TXEを与えて、出力コントロ
ーラ5を起動すると共に、MX#1をMPU1の出力側
へ、MX#2をS−P変換回路6の出力側へ、MX#3
をバッファ#2の出力側へ、MX#4をバッファ#1の
出力側へ夫々切替える。従ってバッファ#1は送信用バ
ッファ,バッファ#2は受信用のバッファとなる。
(4) The MPU continues the above process (2) until it finishes reading all the received data. When all the received data is received, the receiving operation is completed. Loopback operation: The MPU 1 accesses the buffer manager 10 to inform that it is in the loopback mode. As a result, the buffer manager 10 gives a H transmission start signal TXE to the output controller 5 to activate the output controller 5, and outputs MX # 1 to the output side of MPU1 and MX # 2 to the output of the SP conversion circuit 6. To the side, MX # 3
To the output side of the buffer # 2 and MX # 4 to the output side of the buffer # 1. Therefore, the buffer # 1 serves as a transmission buffer and the buffer # 2 serves as a reception buffer.

【0038】以後の動作は図5のバッファ31,バッフ
ァ32が夫々バッファ(#1)33H,バッファ(#
2)33Lに置換わり、MPU1及び出力コントローラ
5,入力コントローラ7からのバッファ#1,#2に対
するデータの読出や書込がバッファマネジャ10を介在
して行われ、またバッファ#1,#2のエンプティ信号
EMP及びフル信号FULがバッファマネジャ10を介
してMPU1へ伝えられるようにした点以外は図5の場
合と同様である。
In the subsequent operation, the buffer 31 and the buffer 32 shown in FIG. 5 are the buffer (# 1) 33H and the buffer (#), respectively.
2) Replacing with 33L, data reading and writing from the MPU 1 and the output controller 5 and the input controller 7 to the buffers # 1 and # 2 is performed via the buffer manager 10, and the buffers # 1 and # 2 It is similar to the case of FIG. 5 except that the empty signal EMP and the full signal FUL are transmitted to the MPU 1 via the buffer manager 10.

【0039】[0039]

【発明の効果】本発明によれば従来の伝送制御回路で送
信時と受信時とで夫々専用にしか使用されていなかった
データ一時蓄積用のバッファを共に送信用及び受信用に
用い得るようにしたので、従来の伝送制御回路で効率的
に使用されていなかったバッファを効率的に使用し、回
路の素子数を増やすことなくバッファの容量を増加する
ことが可能となる。これにより、これまで回路の使用で
きる最大の素子数や素子の実装面積などの制限により実
現できなかったバッファの容量増加が可能となる。 そ
して、伝送制御回路においてバッファの容量の増加が可
能となることにより、伝送の制御を行うCPUなどのコ
ントローラの負荷が軽減し、伝送制御回路の高速化や低
消費電力化を実現しやすくなるなどの効果が得られる。
According to the present invention, a buffer for temporary data storage, which has been used exclusively for transmission and reception in a conventional transmission control circuit, can be used for both transmission and reception. Therefore, it is possible to efficiently use the buffer that has not been efficiently used in the conventional transmission control circuit and increase the capacity of the buffer without increasing the number of elements in the circuit. As a result, it is possible to increase the capacity of the buffer, which has been impossible to achieve due to limitations such as the maximum number of elements that can be used in the circuit and the mounting area of the elements. Further, since it becomes possible to increase the capacity of the buffer in the transmission control circuit, the load on the controller such as a CPU that controls transmission is reduced, and it becomes easier to realize high speed and low power consumption of the transmission control circuit. The effect of is obtained.

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

【図1】本発明の一実施例としての構成を示すブロック
回路図
FIG. 1 is a block circuit diagram showing a configuration as one embodiment of the present invention.

【図2】同じくバッファの構成を示すブロック回路図FIG. 2 is a block circuit diagram showing the structure of a buffer.

【図3】図2のデータの入出力のタイミングの説明図3 is an explanatory diagram of input / output timing of the data of FIG.

【図4】図1の送信動作の詳細フローチャートFIG. 4 is a detailed flowchart of the transmission operation of FIG.

【図5】従来の伝送制御回路のブロック図FIG. 5 is a block diagram of a conventional transmission control circuit.

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

1 MPU 2 双方向バッファ回路 2a 内部バッファ回路 2b 3ステートバッファ回路 4 P−S変換回路 5 出力コントローラ 6 S−P変換回路 7 入力コントローラ 10 バッファマネジャ 21〜24 マルチプレクサ 21 MX#1 22 MX#2 23 MX#3 24 MX#4 33(33H,33L) バッファ 33H バッファ#1 33L バッファ#2 40,41 カウンタ 42 エンコーダ 50〜53 内部バッファ 60 マルチプレクサ DB データバス DI データ入力端子 DO データ出力端子 RD リード信号 WR ライト信号 INT 割込信号 STS ステータス信号 IN インクロック OUT アウトクロック EMP エンプティ信号 FUL フル信号 PIU 入力カウントアップポインタ POU 出力カウントアップポインタ TXE 送信開始信号 1 MPU 2 Bidirectional buffer circuit 2a Internal buffer circuit 2b 3 State buffer circuit 4 PS conversion circuit 5 Output controller 6 SP conversion circuit 7 Input controller 10 Buffer manager 21-24 Multiplexer 21 MX # 1 22 MX # 2 23 MX # 3 24 MX # 4 33 (33H, 33L) Buffer 33H Buffer # 1 33L Buffer # 2 40,41 Counter 42 Encoder 50-53 Internal Buffer 60 Multiplexer DB Data Bus DI Data Input Terminal DO Data Output Terminal RD Read Signal WR Write signal INT Interrupt signal STS Status signal IN In-clock OUT Out-clock EMP Empty signal FUL full signal PIU Input count-up pointer POU Output count-up pointer T E transmission start signal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データ送受信の本体となる本体手段、 パラレルデータを一時蓄積する第1及び第2のバッフ
ァ、 パラレルデータを入力しシリアルデータに変換して出力
するP−S変換手段、 シリアルデータを入力しパラレルデータに変換して出力
するS−P変換手段を持ち、 ループバック動作時には本体手段が送信すべきパラレル
データを第1のバッファに書込み、P−S変換手段がこ
の第1のバッファの書込データを読出し、シリアルデー
タに変換して伝送路側へ送信出力し、伝送路側で折返さ
れたこの送信データをS−P変換手段が受信入力し、パ
ラレルデータに変換して第2のバッファに書込み、本体
手段がこの第2のバッファの書込データを読出す伝送制
御回路において、 第1の制御信号に応じて第1のバッファのデータの入力
部を、本体手段のデータの出力部とS−P変換手段のデ
ータの出力部とに切替える第1のマルチプレクサと、 第2の制御信号に応じて第2のバッファのデータの入力
部を、S−P変換手段のデータの出力部と本体手段のデ
ータの出力部とに切替える第2のマルチプレクサと、 第3の制御信号に応じて本体手段のデータの入力部を、
第1のバッファのデータの出力部と第2のバッファのデ
ータの出力部とに切替える第3のマルチプレクサと、 第4の制御信号に応じてP−S変換手段のデータの入力
部を、第1のバッファのデータの出力部と第2のバッフ
ァのデータの出力部とに切替える第4のマルチプレクサ
と、 第1ないし第4の制御信号を介し通常動作の送信時、本
体手段が送信すべきデータを第1及び第2のバッファに
書込み得ると共に、P−S変換手段がこの2つのバッフ
ァの書込データを読出し得るように、 同じく通常動作の受信時、S−P変換手段が受信したデ
ータを第1及び第2のバッファに書込み得ると共に、本
体手段がこの2つのバッファの書込データを読出し得る
ように、前記第1ないし第4のマルチプレクサの切替を
制御する手段を備えたことを特徴とする伝送制御回路。
1. Main body means for data transmission / reception, first and second buffers for temporarily storing parallel data, P-S conversion means for inputting parallel data and converting to serial data, and outputting serial data It has an SP converting means for inputting and converting to parallel data and outputting it, and during the loopback operation, the main body means writes the parallel data to be transmitted to the first buffer, and the PS converting means stores the parallel data. The write data is read, converted into serial data, transmitted and output to the transmission path side, and the transmission data folded back on the transmission path side is received and input by the SP conversion means, converted into parallel data, and stored in the second buffer. In the transmission control circuit for writing and reading the write data of the second buffer by the main body means, the input unit of the data of the first buffer in response to the first control signal. , A first multiplexer for switching between the data output section of the main body means and the data output section of the SP conversion means, and the data input section of the second buffer in response to the second control signal, A second multiplexer for switching between a data output section of the conversion means and a data output section of the main body means; and a data input section of the main body means in response to a third control signal,
The third multiplexer that switches between the data output unit of the first buffer and the data output unit of the second buffer, and the data input unit of the PS conversion means according to the fourth control signal are A fourth multiplexer for switching between the data output section of the first buffer and the data output section of the second buffer, and the data to be transmitted by the main body means during the normal operation transmission via the first to fourth control signals. The data received by the SP conversion means may be stored in the first and second buffers so that the PS conversion means can read the write data in the two buffers. It is possible to write to the first and second buffers, and to provide means for controlling switching of the first to fourth multiplexers so that the main body means can read the write data of the two buffers. Transmission control circuit to.
JP7290786A 1995-11-09 1995-11-09 Transmission control circuit Pending JPH09135237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7290786A JPH09135237A (en) 1995-11-09 1995-11-09 Transmission control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7290786A JPH09135237A (en) 1995-11-09 1995-11-09 Transmission control circuit

Publications (1)

Publication Number Publication Date
JPH09135237A true JPH09135237A (en) 1997-05-20

Family

ID=17760495

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7290786A Pending JPH09135237A (en) 1995-11-09 1995-11-09 Transmission control circuit

Country Status (1)

Country Link
JP (1) JPH09135237A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036869A (en) * 2005-07-28 2007-02-08 Nec Electronics Corp Serial/parallel conversion, parallel/serial conversion, and fifo integrated circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036869A (en) * 2005-07-28 2007-02-08 Nec Electronics Corp Serial/parallel conversion, parallel/serial conversion, and fifo integrated circuit
US7840727B2 (en) 2005-07-28 2010-11-23 Nec Electronics Corporation Serial-to-parallel conversion/parallel-to-serial conversion/ FIFO unified circuit

Similar Documents

Publication Publication Date Title
JP2822986B2 (en) Single chip microcomputer with DMA
US5138620A (en) Communication control system
US5572676A (en) Network I/O device having fifo for synchronous and asynchronous operation
JPH09135237A (en) Transmission control circuit
KR20010013137A (en) Communication DMA Device
JP3571195B2 (en) Host interface circuit of image forming apparatus
KR100681371B1 (en) Post write buffer for a dual clock system
JP2632395B2 (en) Bus connection device
JPH1063617A (en) Serial communication device
JP2000295295A (en) Buffer memory for block data transfer and serial data transmission reception system
JPH10333796A (en) Magnetic disk device and fc-al system
JP3651672B2 (en) Arithmetic processing system, especially arithmetic processing system for communication devices
JP2723828B2 (en) Two-signal mixed data transmission circuit
JPS6361339A (en) Information transmitting device
WO2008004301A1 (en) Data transfer unit, processing unit, and data transfer method
CN114880270A (en) SPI equipment and data transmission method thereof
JP2001188770A (en) One chip microcomputer
KR100238150B1 (en) Apparatus for transferring data of main processor
JPH08272735A (en) Information processor
JPH08191319A (en) Data communication system
JPH0556024A (en) Time division direction control transmission system
KR19990051462A (en) Espia circuit of high speed wireless calling terminal
JPH11340876A (en) Serial communication equipment and communication system provided with the same
JPH07110018B2 (en) Serial communication device
JPH01266654A (en) Data transfer control system