Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0691555B2 - Transmitter / receiver of serial data - Google Patents
[go: Go Back, main page]

JPH0691555B2 - Transmitter / receiver of serial data - Google Patents

Transmitter / receiver of serial data

Info

Publication number
JPH0691555B2
JPH0691555B2 JP61224438A JP22443886A JPH0691555B2 JP H0691555 B2 JPH0691555 B2 JP H0691555B2 JP 61224438 A JP61224438 A JP 61224438A JP 22443886 A JP22443886 A JP 22443886A JP H0691555 B2 JPH0691555 B2 JP H0691555B2
Authority
JP
Japan
Prior art keywords
data
terminal
output
transmission
serial
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.)
Expired - Lifetime
Application number
JP61224438A
Other languages
Japanese (ja)
Other versions
JPS6378639A (en
Inventor
博 水口
教英 衣笠
豊 太田
宰司 國平
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP61224438A priority Critical patent/JPH0691555B2/en
Publication of JPS6378639A publication Critical patent/JPS6378639A/en
Publication of JPH0691555B2 publication Critical patent/JPH0691555B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明はシリアルデータの通信装置に関し、簡単な構成
でありながら高度な通信にも対応できる送受信装置を提
供するものであり、特にマイクロプロセッサに好適な装
置を実現するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data communication device, and provides a transmission / reception device that is simple in structure and capable of handling advanced communication, and is particularly suitable for a microprocessor. It realizes the device.

従来の技術 従来からワンチップのマイクロプロセッサなどにおいて
多用されているシリアルデータの通信装置は、シフトレ
ジスタとシフトカウンタ、さらにはバッファレジスタに
よって構成され、その典型的な例が特公昭60−58482号
公報(以下、文献1と略記する。)に示されている。
2. Description of the Related Art Conventionally, a serial data communication device that has been frequently used in a one-chip microprocessor or the like is composed of a shift register, a shift counter, and a buffer register, and a typical example thereof is Japanese Patent Publication No. 60-58482. (Hereinafter abbreviated as Document 1).

発明が解決しようとする問題点 ところで、前記文献1に示されるような装置はランダム
ロジック回路を中心に構成されるので、各回路ブロック
相互間の配線数も多く、回路構成が複雑になるだけでな
く、一度に大量のデータの通信を行う場合にはその処理
の多くをソフトウェアに頼らざるを得ず、より高度な通
信あるいは高速のデータ転送を行うためにはその都度回
路構成を変更する必要があった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention By the way, since the device as described in the above-mentioned document 1 is mainly composed of the random logic circuit, the number of wirings between the respective circuit blocks is large and the circuit structure becomes complicated. However, if a large amount of data is to be communicated at one time, most of the processing must rely on software, and the circuit configuration must be changed each time for higher-level communication or high-speed data transfer. there were.

問題点を解決するための手段 前記した問題点を解決するために本発明のシリアルデー
タの送受信装置では、送受信クロックが供給されるカウ
ンタと、前記カウンタの出力が供給されるとともにそれ
をインクリメントあるいはデクリメントするインクリメ
ント手段あるいはデクリメント手段と、送信時あるいは
受信時のいずれかに前記インクリメント手段あるいは前
記デクリメント手段をアクティブ状態にするコントロー
ル手段と、並列データがデータバスとの間で授受され、
前記インクリメント手段あるいは前記デクリメント手段
の出力によってデコードされたビット位置のデータがシ
リアル入出力端子との間で授受されるメモリからなる通
信手段を備えている。
Means for Solving the Problems In order to solve the above-mentioned problems, in a serial data transmitting / receiving apparatus of the present invention, a counter to which a transmission / reception clock is supplied and an output of the counter are supplied and increment or decrement of the counter is supplied. An incrementing means or a decrementing means for controlling, a control means for activating the incrementing means or the decrementing means at the time of transmission or reception, and parallel data are transmitted and received between the data bus,
The communication means comprises a memory for transmitting / receiving the data of the bit position decoded by the output of the increment means or the decrement means to / from the serial input / output terminal.

作用 本発明では前記した構成によって、より簡単な構成で、
しかも汎用性に富んだ通信装置を実現することができ
る。
Action In the present invention, the above-mentioned configuration provides a simpler configuration,
Moreover, it is possible to realize a versatile communication device.

実施例 以下、本発明の一実施例について図面を参照しながら説
明する。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例におけるシリアルデータの送
受信装置をマイクロプロセッサに適用した場合の構成図
を示したものであり、シリアルクロック端子10を介して
送受信クロックが供給される4ビットのダウンカウンタ
100と、前記ダウンカウンタ100の出力が供給されてその
カウントデータをインクリメントするインクリメンタ15
0と、受信時に前記インクリメント150をアクティブ状態
にするNANDゲート1と、並列データがデータバス200と
の間で授受され、前記インクリメンタ150の出力によっ
てデコードされたビット位置のデータがシリアル入出力
端子20との間で授受されるランダムアクセスメモリ300
によって主要部が構成されている。また、前記ダウンカ
ウンタ100の出力はANDゲート2およびORゲート3を介し
てDフリップフロップ4のD端子に供給され、前記Dフ
リップフロップ4の出力信号が送受信動作完了報知端子
30に供給されるとともに、NORゲート5および割り込み
出力端子31を介してマイクロプロセッサに対する割り込
み要求信号となるように構成されている。さらに、リセ
ット端子40,クリア端子50はマイクロプロセッサのノン
ラッチ形式の出力ポートに接続されてソフトウェアによ
るリセット信号が供給され、割り込み禁止端子60と送受
信データのフレーム長選択端子70はいずれもマイクロプ
ロセッサのラッチ形式の出力ポートに接続されてそれぞ
れソフトウェアによる割り込みコントロールと割り込み
タイミングの切り換えに利用される。また、前記シリア
ル入出力端子20に供給される信号はシュミット形式のイ
ンバータ6とインバータ7を介して前記ランダムアクセ
スメモリ300のシリアルデータ入力端子310に印加され、
前記ランダムアクセスメモリ300のシリアルデータ出力
端子320には波形整形用のDフリップフロップ8のD端
子が接続され、前記Dフリップフロップ8の出力信号は
3ステートインバータ9を介して前記シリアル入出力端
子20に送出されるように構成されている。一方、前記シ
リアルクロック端子10に供給されるクロック信号とシス
テムクロック入力端子90に供給されるクロック信号から
タイミング信号発生回路500によって作りだされるタイ
ミング信号が前記ランダムアクセスメモリ300のシリア
ルデータ読み取りクロック入力端子330に供給されてい
る。なお、3ステートインバータ9のコントロール端子
とNANDゲート1の入力端子が接続される送受信切り換え
端子80はマイクロプロセッサのラッチ形式の出力ポート
に接続されてソフトウェアによる送受信の切り換えに利
用され、並列データロード端子81にはマイクロ命令によ
るコントロール信号が供給され、ブロックセレクト端子
82には前記ランダムアクセスメモリ300の並列入出力部
をアクティブ状態にするためのセレクト信号が供給され
る。
FIG. 1 is a block diagram showing a case in which a serial data transmitting / receiving apparatus according to an embodiment of the present invention is applied to a microprocessor, and a 4-bit down signal to which a transmission / reception clock is supplied via a serial clock terminal 10. counter
100 and the incrementer 15 that is supplied with the output of the down counter 100 and increments the count data thereof.
0, the NAND gate 1 that activates the increment 150 at the time of reception, and parallel data is transmitted and received between the data bus 200, and the data at the bit position decoded by the output of the incrementer 150 is the serial input / output terminal. Random access memory 300 exchanged with 20
The main part is composed of. The output of the down counter 100 is supplied to the D terminal of the D flip-flop 4 via the AND gate 2 and the OR gate 3, and the output signal of the D flip-flop 4 is a transmission / reception operation completion notification terminal.
It is configured to be supplied to 30 and to be an interrupt request signal to the microprocessor via the NOR gate 5 and the interrupt output terminal 31. Further, the reset terminal 40 and the clear terminal 50 are connected to a non-latch type output port of the microprocessor to be supplied with a reset signal by software, and the interrupt prohibition terminal 60 and the frame length selection terminal 70 of transmission / reception data are both latched by the microprocessor. It is connected to the output port of the format and used for interrupt control by software and switching of interrupt timing. The signal supplied to the serial input / output terminal 20 is applied to the serial data input terminal 310 of the random access memory 300 via the Schmidt type inverter 6 and the inverter 7.
The D terminal of the D flip-flop 8 for waveform shaping is connected to the serial data output terminal 320 of the random access memory 300, and the output signal of the D flip-flop 8 is passed through the 3-state inverter 9 to the serial input / output terminal 20. Is configured to be delivered to. Meanwhile, the timing signal generated by the timing signal generating circuit 500 from the clock signal supplied to the serial clock terminal 10 and the clock signal supplied to the system clock input terminal 90 is the serial data read clock input of the random access memory 300. It is supplied to the terminal 330. A transmission / reception switching terminal 80, to which the control terminal of the 3-state inverter 9 and the input terminal of the NAND gate 1 are connected, is connected to a latch-type output port of the microprocessor and is used for switching transmission / reception by software. The control signal by the micro instruction is supplied to 81, and the block select terminal
A selection signal for activating the parallel input / output unit of the random access memory 300 is supplied to 82.

以上のように構成された送受信装置について、第1図の
構成図および第2図に示した主要部のタイミングチャー
トをもとにその動作を説明する。
The operation of the transmitter / receiver configured as described above will be described based on the timing charts of the main parts shown in the configuration diagram of FIG. 1 and FIG.

まず、第2図Aはシリアルクロック端子10に供給される
クロック信号波形を示したものであり、第2図Bはリセ
ット端子40に供給されるリセット信号波形を示したもの
であり、第2図C,D,E,Fはいずれもダウンカウンタ100の
各ビットの出力信号波形を示したものであり、第2図G,
HはそれぞれNANDゲート1,ANDゲート2の出力信号波形を
示したものであり、第2図IはDフリップフロップ4の
出力信号波形を示したものであり、第2図Jはシリアル
入出力端子20に送出されるシリアルデータの変化のもよ
うを示したものであり、第2図Kはシリアル入出力端子
20に供給されるデータがランダムアクセスメモリ300に
読み込まれるタイミングを示したものである。
First, FIG. 2A shows a clock signal waveform supplied to the serial clock terminal 10, and FIG. 2B shows a reset signal waveform supplied to the reset terminal 40. C, D, E, and F are output signal waveforms of each bit of the down counter 100, and are shown in FIG.
H shows the output signal waveforms of the NAND gate 1 and the AND gate 2, respectively, FIG. 2I shows the output signal waveform of the D flip-flop 4, and FIG. 2J shows the serial input / output terminals. The change of the serial data sent to 20 is shown in Fig. 2K.
20 shows the timing at which the data supplied to 20 is read into the random access memory 300.

第1図に示した装置によってシリアルデータの送信を行
うには、第2図に示したように、あらかじめダウンカウ
ンタ100の状態を[1111]にするとともにDフリップフ
ロップ4をリセットしておき、データバス200からラン
ダムアクセスメモリ300に対して16ビットまたは8ビッ
トの送信ビットを書き込む。続いて、送受信切り換え端
子80のレベルを送信状態の‘1'に移行させ、シリアルク
ロック端子10に送信用のクロック信号を供給すれば、そ
のリーディングエッジが到来するごとにダウンカウンタ
100のカウント値が第2図C〜Fに示すように、[111
0],[1101],……と変化していき、それに伴って、
Dフリップフロップ8のD端子に送出されるランダムア
クセスメモリ300のデータのビット位置も切り換えられ
ていく。これによって、Dフリップフロップ8に供給さ
れるクロック信号のリーディングエッジが到来するごと
に送信データがシリアル入出力端子20に送出されていく
が、ダウンカウンタ100のカウント値が[1111]になる
と、ANDゲート2の出力レベルが‘1'に移行し、第2図
Iに示したようにシリアルクロック端子10が供給される
クロック信号のトレイリングエッジにおいてDフリップ
フロップ4の出力レベルが‘1'に移行して割り込み出力
端子31に割り込み要求信号が送出される。その結果、マ
イクロプロセッサは割り込み処理ルーチンを開始し、必
要に応じてデータバス200からランダムアクセスメモリ3
00に対して16ビットまたは8ビットの送信データを再び
書き込み、続くデータの送信に備える。
In order to transmit serial data by the device shown in FIG. 1, as shown in FIG. 2, the state of the down counter 100 is set to [1111] and the D flip-flop 4 is reset in advance. 16 bits or 8 bits of transmission bits are written from the bus 200 to the random access memory 300. Next, if the level of the transmission / reception switching terminal 80 is shifted to '1' in the transmission state and the clock signal for transmission is supplied to the serial clock terminal 10, the down counter is reached every time its leading edge arrives.
As shown in FIGS. 2C to 2F, the count value of 100 is [111
0], [1101], and so on.
The bit position of the data of the random access memory 300 sent to the D terminal of the D flip-flop 8 is also switched. As a result, transmission data is sent to the serial input / output terminal 20 each time the leading edge of the clock signal supplied to the D flip-flop 8 arrives, but when the count value of the down counter 100 becomes [1111], AND The output level of the gate 2 shifts to "1", and the output level of the D flip-flop 4 shifts to "1" at the trailing edge of the clock signal supplied to the serial clock terminal 10 as shown in FIG. 2I. Then, the interrupt request signal is sent to the interrupt output terminal 31. As a result, the microprocessor initiates the interrupt handling routine, and the data bus 200 drives the random access memory 3 as needed.
16-bit or 8-bit transmission data is rewritten to 00 to prepare for transmission of the subsequent data.

なお、第1図および第2図からもわかるように、フレー
ム長選択端子70のレベルが‘1'になっているときにはデ
ータを16ビット分送信した時点でDフリップフロップ4
の出力が‘1'に移行するが、そのレベルが‘0'になって
いるときにはデータを8ビット分送信した時点でDフリ
ップフロップ4の出力が‘1'に移行する。
As can be seen from FIGS. 1 and 2, when the level of the frame length selection terminal 70 is "1", the D flip-flop 4 is activated when 16 bits of data are transmitted.
The output of the D flip-flop 4 shifts to "1", but when the level is "0", the output of the D flip-flop 4 shifts to "1" when 8 bits of data are transmitted.

ところで、第1図のNANDゲート1の一方の入力端子とラ
ンダムアクセスメモリ300のシリアルデータ読み取りク
ロック入力端子330にはタイミング信号発生回路500から
の出力信号が供給されているが、このタイミング信号発
生回路500の動作について第3図に示したタイミングチ
ャートをもとに説明する。
By the way, the output signal from the timing signal generation circuit 500 is supplied to one input terminal of the NAND gate 1 of FIG. 1 and the serial data read clock input terminal 330 of the random access memory 300. The operation of 500 will be described with reference to the timing chart shown in FIG.

第3図Aはシステムクロック入力端子90に供給されるク
ロック信号を示したものであり、第3図Bはシリアルク
ロック端子10に印加される送受信用のクロック信号を示
したものであり、第3図C,D,EはそれぞれDフリップフ
ロップ501,502,503の出力信号波形を示したものであ
り、第3図FはNORゲート504を介してシリアルデータ読
み取りクロック入力端子330に送出される出力信号波形
を示したものである。なお、送受信切り換え端子80のレ
ベルが送信状態の‘1'にあるときには、第1図Gの信号
波形と第3図Eの信号波形は同一のものとなる。
3A shows a clock signal supplied to the system clock input terminal 90, and FIG. 3B shows a clock signal for transmission / reception applied to the serial clock terminal 10. FIGS. C, D, and E show output signal waveforms of the D flip-flops 501, 502, and 503, respectively, and FIG. 3F shows output signal waveforms sent to the serial data read clock input terminal 330 via the NOR gate 504. It is a thing. When the level of the transmission / reception switching terminal 80 is "1" in the transmission state, the signal waveform of FIG. 1G and the signal waveform of FIG. 3E are the same.

さて、第1図の送受信切り換え端子80のレベルが‘1'に
なっているときには、NANDゲート1の出力レベルはタイ
ミング信号発生回路500を構成するDフリップフロップ5
03の出力に依存し、第3図Eに示したようにシリアルク
ロック端子10に印加される送受信用のクロック信号のリ
ーディングエッジ(前縁)が到来したのちに‘1'に移行
し、トレイリングエッジ(後縁)が到来したのちに‘0'
に戻る。一方、前記NANDゲート1の出力レベルが‘1'に
移行すると、インクリメンタ150がアクティブ状態とな
り、その時点のダウンカウンタ100のカウント値よりも
1だけ大きいデータをランダムアクセスメモリ300に送
出する。また、シリアルデータ読み取りクロック入力端
子330には前記NANDゲート1の出力レベルが‘1'に移行
している間に第3図Fに示すような読み取りクロック信
号が供給される。したがって、第1図に示した装置では
送受信切り換え端子80のレベルが‘1'にあるとき、すな
わちシリアルデータの送信モードにあるときにも、シリ
アルクロック端子10に印加されるクロック信号のリーデ
ィングエッジが到来した直後にランダムアクセスメモリ
300にあらかじめ格納されているデータの送信が行われ
たうえで、ダウンカウンタ100はカウントダウンしてラ
ンダムアクセスメモリ300の次のビットデータの選択に
備えるが、同じクロック信号のトレイリングエッジが到
来した直後にインクリメンタ150によって直前のビット
位置が選択されたうえでタイミング信号発生回路500か
らシリアルデータ読み取りクロック入力端子330に読み
取りクロック信号が供給されることになる。その結果、
ランダムアクセスメモリ300の各ビット位置にはデータ
を送信したのちにシリアルクロック端子10に印加される
送信クロックのトレイリングエッジにおいてシリアル入
出力端子20のデータが読み込まれることになる。このよ
うな送信データのエコーバック機能は同じシリアルデー
タラインに多くの送受信ブロックが接続されているとき
の、送信動作のぶつかりあいの有無の確認に利用できる
だけでなく、1フレーム内の任意のビット数を送信に割
り当て、残りを受信に割り当てるといった複雑な通信も
容易に行うことができる。
Now, when the level of the transmission / reception switching terminal 80 in FIG. 1 is "1", the output level of the NAND gate 1 is the D flip-flop 5 which constitutes the timing signal generating circuit 500.
Depending on the output of 03, as shown in FIG. 3E, after the leading edge of the clock signal for transmission / reception applied to the serial clock terminal 10 arrives, it shifts to '1' and trailing '0' after the edge (trailing edge) arrives
Return to. On the other hand, when the output level of the NAND gate 1 shifts to "1", the incrementer 150 becomes active, and the incrementer 150 sends out to the random access memory 300 data larger by 1 than the count value of the down counter 100 at that time. The serial data read clock input terminal 330 is supplied with a read clock signal as shown in FIG. 3F while the output level of the NAND gate 1 is shifting to "1". Therefore, in the device shown in FIG. 1, even when the level of the transmission / reception switching terminal 80 is "1", that is, in the serial data transmission mode, the leading edge of the clock signal applied to the serial clock terminal 10 is Random access memory immediately after arrival
After the data stored in 300 is transmitted, the down counter 100 counts down to prepare for the selection of the next bit data of the random access memory 300, but immediately after the trailing edge of the same clock signal arrives. Then, the previous bit position is selected by the incrementer 150, and then the read clock signal is supplied from the timing signal generation circuit 500 to the serial data read clock input terminal 330. as a result,
After transmitting data to each bit position of the random access memory 300, the data of the serial input / output terminal 20 is read at the trailing edge of the transmission clock applied to the serial clock terminal 10. Such an echo back function of the transmission data can be used not only for confirming the collision of the transmission operation when many transmission / reception blocks are connected to the same serial data line, but also for determining the number of bits in one frame. Complex communications such as assigning to transmission and assigning the rest to reception can be easily performed.

このように、タイミング信号発生回路500はシリアル入
出力端子20からランダムアクセスメモリ300にシリアル
データを読み込むタイミングを設定するために用いられ
ている。
As described above, the timing signal generation circuit 500 is used to set the timing of reading serial data from the serial input / output terminal 20 to the random access memory 300.

なお、通常のシリアルデータの受信を行うには、送信時
と同様にあらかじめダウンカウンタ100の状態を[111
1]にするとともにDフリップフロップ4をリセットし
ておき、送受信切り換え端子80のレベルを受信状態の
‘0'に移行させておけばインクリメンタ150は常にアク
ティブ状態となり、シリアルクロック端子10に受信用の
クロック信号が供給されると、そのリーディングエッジ
が到来するごとにダウンカウンタ100のカウント値が変
化していき、それに伴ってシリアル入出力端子20からラ
ンダムアクセスメモリ300に書き込まれるデータのビッ
ト位置も切り換えられていき、タイミング信号発生回路
500からシリアルデータ読み取りクロック入力端子330に
読み取りクロックが供給されたときに選択されたビット
位置に受信データが書き込まれていく。ダウンカウンタ
100のカウント値が[1111]になると、送信時と同様
に、シリアルクロック端子10に供給されるクロック信号
のトレイリングエッジにおいて割り込み出力端子31に割
り込み要求信号が送出される。その結果、マイクロプロ
セッサは割り込み処理ルーチンを開始するので、この割
り込み処理ルーチンによってランダムアクセスメモリ30
0からデータバス200を介して並列データを読み取ればよ
い。
To receive normal serial data, set the state of the down counter 100 to [111
1] and the D flip-flop 4 is reset and the level of the transmission / reception switching terminal 80 is shifted to '0' in the receiving state, the incrementer 150 is always in the active state and the serial clock terminal 10 is for receiving. When the clock signal is supplied, the count value of the down counter 100 changes each time its leading edge arrives, and the bit position of the data written from the serial input / output terminal 20 to the random access memory 300 also changes accordingly. Timing signal generation circuit that is switched
When the read clock is supplied from 500 to the serial data read clock input terminal 330, the received data is written in the bit position selected. Down counter
When the count value of 100 becomes [1111], the interrupt request signal is sent to the interrupt output terminal 31 at the trailing edge of the clock signal supplied to the serial clock terminal 10 as in the case of transmission. As a result, the microprocessor starts an interrupt processing routine, which causes the random access memory 30 to operate.
Parallel data may be read from 0 via the data bus 200.

このようにして、第1図に示したシリアルデータの送受
信装置では従来の装置と同じようにしてシリアルデータ
の送受信を行うことができるが、第1図の構成からもわ
かるように、従来の装置ではカウンタとシフトカウンタ
の両方を必要としていたのに対して、本発明のシリアル
データの送受信装置では、わずか4ビットのダウンカウ
ンタ100とインクリメンタ150によって1フレームが16あ
るいは8ビットのシリアルデータを送受信することがで
きる。また、従来の装置では送信時にシリアルクロック
の最初のリーディングエッジが到来したときにシフトレ
ジスタの内容が変化するために、送信データをシフトレ
ジスタにセットする際にデータそのものを1ビット分だ
けシフトさせておく必要があるが、本発明のシリアルデ
ータの送受信装置では、送信と受信の切り換えをインク
リメンタ150をアクティブ状態にするか否かで行ってい
るために容易に送信データと受信データのビット位置の
対応がとれる。それに伴って回路構成が簡略化されると
ともにランダムロジック回路の占める割合が少なくな
り、ワンチップのLSIを構成する際にレイアウトを行い
やすく、生産工程におけるLSIの検査にも適している。
さらに、送受信データをシフトレジスタを介することな
く、送信時には直接にランダムアクセスメモリ300から
送出させ、受信時には直接読み込むように構成している
ので、より高速に大量のデータを処理することもでき
る。すなわち、第1図に示した実施例においてはランダ
ムアクセスメモリ300の総ビット数は16ビットであるの
で、送受信するデータの1フレームが8ビット構成であ
れば前記ランダムアクセスメモリ300はダブルバッファ
の機能を有していることになるが、1フレームが16ビッ
ト構成ののデータを送受信する場合にはダブルバッファ
機能を有さないので、1フレーム送受信する度にデータ
バス200との間で並列データを授受する必要がある。し
かしながら、ダウンカウンタ100とランダムアクセスメ
モリ300のビット数を増加させることにより容易に多段
バッファ構成となり、これによってより多くの情報を一
挙に扱うことができ、高度な通信も可能となる。
In this way, the serial data transmitting / receiving apparatus shown in FIG. 1 can transmit / receive serial data in the same manner as the conventional apparatus. However, as can be seen from the configuration of FIG. In contrast to this, both a counter and a shift counter are required, whereas the serial data transmitting / receiving apparatus of the present invention transmits / receives serial data of 16 or 8 bits per frame by the down counter 100 and incrementer 150 of only 4 bits. can do. Further, in the conventional device, since the contents of the shift register change when the first leading edge of the serial clock arrives during transmission, the data itself is shifted by one bit when the transmission data is set in the shift register. In the serial data transmitting / receiving apparatus of the present invention, switching between transmission and reception is performed depending on whether the incrementer 150 is activated or not. Therefore, the bit positions of the transmission data and the reception data can be easily set. Correspondence can be taken. Along with that, the circuit configuration is simplified and the proportion occupied by the random logic circuit is reduced, so that the layout can be easily performed when constructing a one-chip LSI, and it is also suitable for the inspection of the LSI in the production process.
Further, since the transmission / reception data is directly transmitted from the random access memory 300 at the time of transmission and is directly read at the time of reception without passing through the shift register, it is possible to process a large amount of data at higher speed. That is, in the embodiment shown in FIG. 1, since the total number of bits of the random access memory 300 is 16 bits, if one frame of data to be transmitted / received has a structure of 8 bits, the random access memory 300 has a double buffer function. However, when one frame transmits / receives 16-bit data, it does not have a double buffer function, so parallel data is exchanged with the data bus 200 every time one frame is transmitted / received. Need to give and receive. However, by increasing the number of bits of the down counter 100 and the random access memory 300, a multi-stage buffer configuration can be easily obtained, which allows more information to be handled at once and advanced communication can be performed.

なお、第4図はランダムアクセスメモリ300の具体的な
構成例を示した回路結線図であり、単位メモリセルはイ
ンバータ301と3ステートインバータ302によって構成さ
れている。例えば、第1図のシリアルデータ読み取りク
ロック入力端子330のレベル(CK)が‘1'であるとする
と、ダウンカウンタ100の出力が供給されるANDゲート30
3のレベルもまた‘1'であれば、3ステートインバータ3
04がアクティブ状態となってシリアル入出力端子20のデ
ータ(SDA)が第4図のSI端子を介してメモリセルに書
き込まれる。また、送信状態にあって、送受信切り換え
端子80のレベルが‘1'であるとすると、第1図の3ステ
ートインバータ9の出力側がシリアル入出力端子20に接
続されるので、シリアルクロック信号のリーディングエ
ッジにおいて、前記ANDゲート303を始めとするデコーダ
によって選択されたビット位置のメモリセルの出力が第
4図のSO端子を介して前記シリアル入出力端子20に送出
される。さらに、並列データの書き込み時には3ステー
トバッファ305がアクティブ状態となり、並列データの
読み込み時には3ステートインバータ306がアクティブ
状態となる。
Note that FIG. 4 is a circuit connection diagram showing a specific configuration example of the random access memory 300, and a unit memory cell is composed of an inverter 301 and a three-state inverter 302. For example, if the level (CK) of the serial data read clock input terminal 330 of FIG. 1 is '1', the output of the down counter 100 is supplied to the AND gate 30.
If the level of 3 is also '1', the 3-state inverter 3
04 becomes active and the data (SDA) of serial input / output terminal 20 is written to the memory cell via the SI terminal in FIG. If the level of the transmission / reception switching terminal 80 is "1" in the transmission state, the output side of the 3-state inverter 9 in FIG. 1 is connected to the serial input / output terminal 20, and thus the reading of the serial clock signal is performed. At the edge, the output of the memory cell at the bit position selected by the decoder including the AND gate 303 is sent to the serial input / output terminal 20 via the SO terminal in FIG. Further, when writing parallel data, the 3-state buffer 305 becomes active, and when reading parallel data, the 3-state inverter 306 becomes active.

発明の効果 本発明のシリアルデータの送受信装置は以上の説明から
も明らかなように、送受信クロックが供給されるカウン
タ(実施例においてはダウンカウンタ100によってこの
カウンタを構成しているが、もちろんアップカウンタで
あってもよい。)と、前記カウンタの出力が供給される
とともにそれをインクリメントあるいはデクリメントす
るインクリメント手段あるいはデクリメント手段(実施
例においてはダウンカウンタ100のカウント出力をイン
クリメントするインクリメンタ150によってインクリメ
ント手段が構成されているが、前記カウンタがアップカ
ウンタであれインクリメント手段の代わりにアップカウ
ンタのカウント出力をデクリメントするデクリメント手
段を用いることになる。)と、送信時あるいは受信時の
いずれかに前記インクリメント手段あるいは前記デクリ
メント手段をアクティブ状態にするコントロール手段
(実施例においてはNANDゲート1によって構成されてい
る。)と、並列データがデータバス200との間で授受さ
れ、前記インクリメント手段あるいは前記デクリメント
手段の出力によってデコードされたビット位置のデータ
がシリアル入出力端子との間で授受されるメモリ手段
(実施例においてはランダムアクセスメモリ300を用い
ているがラッチ形式のメモリであってもよい。)を備え
たことを特徴とするもので、簡単な構成で通信装置を実
現することができるとともに、本発明を適用することに
より、比較的容易に高度の処理が行える通信装置を得る
こともでき、大なる効果を奏する。
As is apparent from the above description, the serial data transmission / reception apparatus of the present invention has a counter to which a transmission / reception clock is supplied (in the embodiment, the down counter 100 constitutes this counter, but of course, the up counter). The output of the counter is supplied and the incrementing or decrementing means for incrementing or decrementing the output (in the embodiment, the incrementing means by the incrementer 150 for incrementing the count output of the down counter 100 is However, if the counter is an up-counter, decrement means for decrementing the count output of the up-counter is used instead of the increment means), and either before transmission or reception. The parallel data is transferred between the control means (which is constituted by the NAND gate 1 in the embodiment) for activating the increment means or the decrement means and the data bus 200, and the increment means or the decrement means. Memory means for transmitting / receiving the bit position data decoded by the output of the means to / from the serial input / output terminal (in the embodiment, the random access memory 300 is used, but a latch type memory may be used). In addition to being able to realize a communication device with a simple configuration, by applying the present invention, it is also possible to obtain a communication device capable of relatively advanced processing, It has a great effect.

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

第1図は本発明の一実施例におけるシリアルデータの送
受信装置の構成図、第2図および第3図は第1図の主要
部のタイミングチャート、第4図はランダムアクセスメ
モリの構成例を示した回路結線図である。 1……NANDゲート、20……シリアル入出力端子、100…
…ダウンカウンタ、150……インクリメンタ、200……デ
ータバス、300……ランダムアクセスメモリ、1……NAN
Dゲート、20……シリアル入出力端子、100……ダウンカ
ウンタ、150……インクリメンタ、200……データバス、
300……ランダムアクセスメモリ。
FIG. 1 is a configuration diagram of a serial data transmitting / receiving apparatus according to an embodiment of the present invention, FIGS. 2 and 3 are timing charts of main parts of FIG. 1, and FIG. 4 is a configuration example of a random access memory. It is a circuit connection diagram. 1 ... NAND gate, 20 ... Serial input / output terminal, 100 ...
… Down counter, 150 …… Incrementer, 200 …… Data bus, 300 …… Random access memory, 1 …… NAN
D gate, 20 ... serial input / output terminal, 100 ... down counter, 150 ... incrementer, 200 ... data bus,
300 ... Random access memory.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】送受信クロックが供給されるカウンタと、
前記カウンタの出力が供給されるとともにそれをインク
リメントあるいはデクリメントするインクリメント手段
あるいはデクリメント手段と、送信時あるいは受信時の
いずれかに前記インクリメント手段あるいは前記デクリ
メント手段をアクティブ状態にするコントロール手段
と、並列データがデータバスとの間で授受され、前記イ
ンクリメント手段あるいは前記デクリメント手段の出力
によってデコードされたビット位置のデータがシリアル
入出力端子との間で授受されるメモリ手段からなるシリ
アルデータの送受信装置。
1. A counter to which a transmission / reception clock is supplied,
The output of the counter is supplied and increment means or decrement means for incrementing or decrementing the output, control means for activating the increment means or the decrement means at either transmission or reception, and parallel data A serial data transmission / reception device comprising memory means for exchanging data at a bit position, which is transmitted / received to / from a data bus and decoded by the output of the increment means or the decrement means, to / from a serial input / output terminal.
【請求項2】リード/ライト切り換え端子とブロックセ
レクト端子を有し、前記ブロックセレクト端子がアクテ
ィブ状態にされたとき、前記リード/ライト切り換え端
子に印加されるレベルに応じて並列データがデータバス
との間で授受されるランダムアクセスメモリを備えたこ
とを特徴とする特許請求の範囲第(1)項記載のシリア
ルデータの送受信装置。
2. A read / write switching terminal and a block select terminal, wherein when the block select terminal is activated, parallel data is transferred to a data bus according to the level applied to the read / write switching terminal. The serial data transmission / reception apparatus according to claim 1, further comprising a random access memory that is exchanged between the serial data transmission / reception devices.
JP61224438A 1986-09-22 1986-09-22 Transmitter / receiver of serial data Expired - Lifetime JPH0691555B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61224438A JPH0691555B2 (en) 1986-09-22 1986-09-22 Transmitter / receiver of serial data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61224438A JPH0691555B2 (en) 1986-09-22 1986-09-22 Transmitter / receiver of serial data

Publications (2)

Publication Number Publication Date
JPS6378639A JPS6378639A (en) 1988-04-08
JPH0691555B2 true JPH0691555B2 (en) 1994-11-14

Family

ID=16813771

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61224438A Expired - Lifetime JPH0691555B2 (en) 1986-09-22 1986-09-22 Transmitter / receiver of serial data

Country Status (1)

Country Link
JP (1) JPH0691555B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5165806B1 (en) 2012-06-29 2013-03-21 株式会社関プレス Metal part manufacturing method and metal part obtained by the manufacturing method

Also Published As

Publication number Publication date
JPS6378639A (en) 1988-04-08

Similar Documents

Publication Publication Date Title
US4309755A (en) Computer input/output arrangement for enabling a simultaneous read/write data transfer
EP0057511B1 (en) Information processing unit
US5142556A (en) Data transfer system and method of transferring data
US6058439A (en) Asynchronous first-in-first-out buffer circuit burst mode control
JP2001127827A (en) Data transfer system
JPH0691555B2 (en) Transmitter / receiver of serial data
EP0793181B1 (en) Data transmission system between master and slave and slave using the same
US5283763A (en) Memory control system and method
US4040032A (en) Peripheral device controller for a data processing system
JPH0736566B2 (en) Serial data transmitter
JPH0736571B2 (en) Transmitter / receiver of serial data
US6292861B1 (en) Processor having interface with bus arbitration circuit
JPH0771076B2 (en) Transmitter / receiver of serial data
JPH0736563B2 (en) Transmitter / receiver of serial data
JPH0554667A (en) Memory device with serial data / parallel data mutual conversion function
JPH0736565B2 (en) Serial data receiver
JPS6379441A (en) Transmission/reception equipment for serial data
JPH0736564B2 (en) Serial data transmitter
JPS62296637A (en) Data sink for serial data
US7761611B2 (en) Design method for a DMA-compatible peripheral
CA1234220A (en) Bus translator
JP2565768B2 (en) Serial data transceiver
JPS6379442A (en) Serial data receiving device
JP2994906B2 (en) Data receiving circuit
JP3381272B2 (en) Data transfer method and data processing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term