JPS6378639A - Serial data transmitter/receiver - Google Patents

Serial data transmitter/receiver

Info

Publication number
JPS6378639A
JPS6378639A JP61224438A JP22443886A JPS6378639A JP S6378639 A JPS6378639 A JP S6378639A JP 61224438 A JP61224438 A JP 61224438A JP 22443886 A JP22443886 A JP 22443886A JP S6378639 A JPS6378639 A JP S6378639A
Authority
JP
Japan
Prior art keywords
data
output
terminal
counter
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.)
Granted
Application number
JP61224438A
Other languages
Japanese (ja)
Other versions
JPH0691555B2 (en
Inventor
Hiroshi Mizuguchi
博 水口
Norihide Kinugasa
教英 衣笠
Yutaka Ota
豊 太田
Saiji Kunihira
宰司 國平
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)

Abstract

PURPOSE:To obtain a communication equipment by which a high level of processing can be performed comparatively easily, with simple constitution, by constituting a device with a means to increase or decrease the output of a counter to which a transmission/reception clock is supplied, a control means to generate the active state of the above means, and a memory means. CONSTITUTION:The main part of the titled device is constituted of a down- counter (or an up-counter) 100 of four bits to which the transmission/reception clock is supplied through a serial clock terminal 10, an incrementor (or a decrementor) 150 to which the output of the down-counter (or the up-counter) 100 is supplied, and which increases (or decreases) the count data of the counter, an NAND gate 1 which sets the incrementor (or the decrementor) 150 in the active state time of transmission or reception, and a random access memory 300 in which a parallel data is transferred between a data bus 200, and the data of a bit position decoded by the output of the incrementor (or the decrementor) 150 is transferred between a serial input/output terminal 20.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はシリアルデータの通信装置に関し、簡単な構成
でありながら高度な通信にも対応できる送受信装置を提
供するものであり、特にマイクロプロセッサに好適な装
置を実現するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a serial data communication device, and provides a transmitting/receiving device that has a simple configuration and can handle advanced communications, and is particularly suitable for microprocessors. This is what realizes the device.

従来の技術 従来からワンチップのマイクロプロセッサなどにおいて
多用されているシリアルデータの通信装置は、シフトレ
ジスタとシフトカウンタ、さらにはバッファレジスタに
よって構成され、その典型的な例が特公昭60−584
82号公報(以下、文献lと略記する。)に示されてい
る。
BACKGROUND OF THE INVENTION Serial data communication devices, which have been widely used in one-chip microprocessors, are composed of shift registers, shift counters, and buffer registers.
This is disclosed in Publication No. 82 (hereinafter abbreviated as Document 1).

発明が解決しようとする問題点 ところで、前記文献1に示されるような装置はランダム
ロジック回路を中心に構成されるので、各回路ブロック
相互間の配線数も多く、回路構成が複雑になるだけでな
(、一度に大量のデータの通信を行う場合にはその処理
の多くをソフトウェアに顧らざるを得す、より高度な通
信あるいは高速のデータ転送を行うためにはその都度回
路構成を変更する必要があった。
Problems to be Solved by the Invention Incidentally, since the device shown in Document 1 is mainly composed of random logic circuits, the number of wires between each circuit block is large, and the circuit configuration becomes complicated. (When communicating a large amount of data at once, much of the processing must be done by software, and the circuit configuration must be changed each time to perform more advanced communication or high-speed data transfer.) There was a need.

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

作用 本発明では前記した構成によって、より簡単な構成で、
しかも汎用性に冨んだ通信装置を実現することができる
Function The present invention has a simpler structure due to the above-described structure, and
Moreover, it is possible to realize a communication device with great versatility.

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

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

なお、3ステートインバータ9のコントロール端子とN
ANDゲート1の入力端子が接続される送受信切り換え
端子80はマイクロプロセッサのラッチ形式の出力ポー
トに接続されてソフトウェアによる送受信の切り換えに
利用され、並列データロード端子81にはマイクロ命令
によるコントロール信号が供給され、ブロックセレクト
端子82には前記ランダムアクセスメモリ300の並列
入出力部をアクティブ状態にするためのセレクト信号が
供給される。
In addition, the control terminal of the 3-state inverter 9 and N
A transmission/reception switching terminal 80 to which the input terminal of the AND gate 1 is connected is connected to a latch-type output port of the microprocessor and used for switching transmission/reception by software, and a control signal based on a microinstruction is supplied to the parallel data load terminal 81. A select signal for activating the parallel input/output section of the random access memory 300 is supplied to the block select terminal 82.

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

まず、第2図Aはシリアルクロック端子10に供給され
るクロック信号波形を示したものであり、第2図Bはリ
セット端子40に供給されるリセット信号波形を示した
ものであり、第2図C,D。
First, FIG. 2A shows the clock signal waveform supplied to the serial clock terminal 10, FIG. 2B shows the reset signal waveform supplied to the reset terminal 40, and FIG. C,D.

E、Fはいずれもダウンカウンタ100の各ピントの出
力信号波形を示したものであり、第2図G。
E and F both show the output signal waveforms of each focus of the down counter 100, and are shown in FIG. 2G.

HはそれぞれNANDゲート1.ANDゲート2の出力
信号波形を示したものであり、第2図■はDフリップフ
ロップ4の出力信号波形を示したものであり、第2図J
はシリアル入出力端子20に送出されるシリアルデータ
の変化のもようを示したものであり、第2図にはシリア
ル入出力端子20に供給されるデータがランダムアクセ
スメモリ300に読み込まれるタイミングを示したちの
である。
H are NAND gates 1 and 1, respectively. 2 shows the output signal waveform of the AND gate 2, FIG. 2 shows the output signal waveform of the D flip-flop 4, and FIG.
2 shows how the serial data sent to the serial input/output terminal 20 changes, and FIG. 2 shows the timing at which the data supplied to the serial input/output terminal 20 is read into the random access memory 300. It's ours.

第1図に示した装置によってシリアルデータの送信を行
うには、第2図に示したように、あらかじめダウンカウ
ンタ100の状態を[1111FにするとともにDフリ
ップフロップ4をリセットしておき、データバス200
からランダムアクセスメモリ3+110に対して16ビ
ツトまたは8ビツトの送信データを書き込む。続いて、
送受信切り換え端子80のレベルを送信状態の“l゛に
移行させ、シリアルクロック端子lOに送信用のクロッ
ク信号を供給すれば、そのリーディングエツジが到来す
るごとにダウンカウンタ100のカウント値が第2図C
−Fに示すように、[1110F 。
In order to transmit serial data using the device shown in FIG. 1, as shown in FIG. 200
16-bit or 8-bit transmission data is written to the random access memory 3+110. continue,
If the level of the transmission/reception switching terminal 80 is shifted to the transmission state "l" and a clock signal for transmission is supplied to the serial clock terminal IO, the count value of the down counter 100 changes as shown in FIG. 2 every time the leading edge arrives. C
-F, as shown in [1110F.

[1101]、・・・・・・と変化していき、それに伴
って、Dフリップフロップ8のD端子に送出されるラン
ダムアクセスメモリ300のデータのビット位置も切り
換えられていく。これによって、Dフリップフロップ8
に供給されるクロック信号のリーディングエツジが到来
するごとに送信データがシリアル入出力端子20に送出
されていくが、ダウンカウンタ100のカウント値が[
1111]になると、ANDゲート2の出力レベルが1
゛に移行し、第2図■に示したようにシリアルクロック
端子10に供給されるクロック信号のトレイリングエツ
ジにおいてDフリップフロップ4の出力レベルが1°に
移行して割り込み出力端子31に割り込み要求信号が送
出される。その結果、マイクロプロセッサは割り込み処
理ルーチンを開始し、必要に応じてデータバス200か
らランダムアクセスメモリ300に対して16ビツトま
たは8ビツトの送信データを再び書き込み、続くデータ
の送信に備える。
[1101], . . . , and accordingly, 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, the D flip-flop 8
Transmission data is sent to the serial input/output terminal 20 every time the leading edge of the clock signal supplied to the clock signal arrives, but the count value of the down counter 100 is [
1111], the output level of AND gate 2 becomes 1.
2, 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. A signal is sent out. As a result, the microprocessor starts an interrupt processing routine, rewrites 16-bit or 8-bit transmission data from data bus 200 to random access memory 300 as necessary, and prepares for subsequent data transmission.

なお、第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 output of the D flip-flop 4 becomes "1" after transmitting 16 bits of data. However, when the level is 0°, the output of the D flip-flop 4 shifts to "1°" when 8 bits of data have been transmitted.

ところで、第1図のNANDゲート1の一方の入力端子
とランダムアクセスメモリ300のシリアルデータ読み
取りクロック入力端子330にはタイミング信号発生回
路500からの出力信号が供給されているが、このタイ
ミング信号発生回路500の動作について第3図に示し
たタイミングチャートをもとに説明する。
Incidentally, an output signal from a timing signal generation circuit 500 is supplied to one input terminal of the NAND gate 1 and the serial data reading clock input terminal 330 of the random access memory 300 in FIG. The operation of 500 will be explained based on 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の信号波
形は同一のものとなる。
FIG. 3A shows a clock signal supplied to the system clock input terminal 90, and FIG. 3B shows a clock signal for transmission and reception applied to the serial clock terminal 10. Figures C, D, and E show the output signal waveforms of the D flip-flops 501, 502, and 503, respectively, and Figure 3F shows the serial data reading clock input terminal 330 via the NOR gate (504).
This figure shows the output signal waveform sent out. In addition,
When the level of the transmission/reception switching terminal 80 is at "1" in the transmission state, the signal waveform in FIG. 1G and the signal waveform in FIG. 3E are the same.

さて、第1図の送受信切り換え端子80のレベルが“1
°になっているときには、NANDゲート1の出力レベ
ルはタイミング信号発生回路500を構成するDフリッ
プフロップ503の出力に依存し、第3図已に示したよ
うにシリアルクロック端子10に印加される送受信用の
クロック信号のリーディングエツジ(前縁)が到来した
のちに“1゛に移行し、トレイリングエツジ(後縁)が
到来したのちに“0°に戻る。一方、前記NANDゲー
ト1の出力レベルが“1゛に移行すると、インクリメン
タ150がアクティブ状態となり、その時点のダウンカ
ウンタ100のカウント値よりも1だけ大きいデータを
ランダムアクセスメモリ300に送出する。また、シリ
アルデータ読み取りクロック入力端子330には前記N
ANDゲート1の出力レベルが“1°に移行している間
に第3図Fに示すような読み取りクロック信号が供給さ
れる。したがって、第1図に示した装置では送受信切り
換え端子80のレベルが°1°にあるとき、すなわちシ
リアルデータの送信モードにあるときにも、シリアルク
ロック端子10に印加されるクロック信号のリーディン
グエツジが到来した直後にランダムアクセスメモリ30
0にあらかじめ格納されているデータの送信が行われた
うえで、ダウンカウンタ100はカウントダウンしてラ
ンダムアクセスメモリ300の次のビットデータの選択
に備えるが、同じクロック信号のトレイリングエツジが
到来した直後にインクリメンタ150によって直前のビ
ット位置が選択されたうえでタイミング信号発生回路5
00からシリアルデータ読み取りクロック入力端子33
0に読み取りクロック信号が供給されることになる。そ
の結果、ランダムアクセスメモリ300の各ビット位置
にはデータを送信したのちにシリアルクロック端子10
に印加される送信クロックのトレイリングエツジにおい
てシリアル入出力端子20のデータが読み込まれること
になる。
Now, the level of the transmission/reception switching terminal 80 in FIG.
°, the output level of the NAND gate 1 depends on the output of the D flip-flop 503 constituting the timing signal generation circuit 500, and as shown in FIG. It shifts to "1" after the leading edge of the clock signal arrives, and returns to "0" after the trailing edge arrives. On the other hand, when the output level of the NAND gate 1 shifts to "1", the incrementer 150 becomes active and sends data that is 1 larger than the count value of the down counter 100 at that time to the random access memory 300. , the serial data read clock input terminal 330 has the N
While the output level of the AND gate 1 is shifting to 1°, a read clock signal as shown in FIG. 3F is supplied. Therefore, in the device shown in FIG. 1°, that is, in the serial data transmission mode, the random access memory 30 immediately after the leading edge of the clock signal applied to the serial clock terminal 10 arrives.
After the data previously stored in 0 is transmitted, the down counter 100 counts down to prepare for selecting the next bit data in the random access memory 300, but immediately after the trailing edge of the same clock signal arrives. The immediately preceding bit position is selected by the incrementer 150, and then the timing signal generation circuit 5
Serial data reading clock input terminal 33 from 00
0 will be supplied with a read clock signal. As a result, after data is transmitted to each bit position of the random access memory 300, the serial clock terminal 10 is
The data on the serial input/output terminal 20 is read at the trailing edge of the transmission clock applied to the serial input/output terminal 20.

このような送信データのエコーバック機能は同じシリア
ルデータラインに多くの送受信ブロックが接続されてい
るときの、送信動作のぶつかりあいの有無の確認に利用
できるだけでなく、1フレーム内の任意のビット数を送
信に割り当て、残りを受信に割り当てるといった複雑な
通信も容易に行うことができる。
This type of transmit data echo back function can not only be used to check whether there is a conflict in transmit operations when many transmit/receive blocks are connected to the same serial data line, but also can be used to check any number of bits in one frame. Complex communications such as allocating one part for sending and the other for receiving can be easily performed.

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

なお、通常のシリアルデータの受信を行うには、送信時
と同様にあらかじめダウンカウンタ100の状態を[1
1111にするとともにDフリフブフロソブ4をリセッ
トしておき、送受信切り換え端子80のレベルを受信状
態の“0゛に移行させておけばインクリメンタ150は
常にアクティブ状態となり、シリアルクロック端子10
に受信用のクロック信号が供給されると、そのリーディ
ングエツジが到来するごとにダウンカウンタ100のカ
ウント値が変化していき、それに伴ってシリアル入出力
端子20からランダムアクセスメモリ300に書き込ま
れるデータのビット位置も切り換えられていき、タイミ
ング信号発生回路500からシリアルデータ読み取りク
ロック入力端子330に読み取りクロックが供給された
ときに選択されたピント位置に受信データが書き込まれ
ていく、ダウンカウンタ100のカウント値が[111
1]になると、送信時と同様に、シリアルクロック端子
10に供給されるクロック信号のトレイリングエツジに
おいて割り込み出力端子31に割り込み要求信号が送出
される。その結果、マイクロプロセッサは割り込み処理
ルーチンを開始するので、この割り込み処理ルーチンに
よってランダムアクセスメモリ300からデータバス2
00を介して並列データを読みをればよい。
Note that in order to receive normal serial data, the state of the down counter 100 is set to [1] in the same way as when transmitting data.
1111, reset the D-flip block 4, and shift the level of the transmission/reception switching terminal 80 to the receiving state of "0", the incrementer 150 will always be in the active state, and the serial clock terminal 10 will be in the active state.
When a reception clock signal is supplied to the down counter 100, the count value of the down counter 100 changes each time the leading edge arrives, and accordingly, the data written from the serial input/output terminal 20 to the random access memory 300 changes. The bit position is also switched, and the count value of the down counter 100 is written to the focus position selected when the read clock is supplied from the timing signal generation circuit 500 to the serial data read clock input terminal 330. is [111
1], an 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 handling routine, which causes data bus 2 to be transferred from random access memory 300 to data bus 2.
You can read parallel data via 00.

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

なお、第4図はランダムアクセスメモリ300の具体的
な構成例を示した回路結線図であり、単位メモリセルは
インバータ301と3ステートインバータ302によっ
て構成されている0例えば、第1図のシリアルデータ読
み取りクロック入力端子330のレベル(CK)が“1
°であるとすると、ダウンカウンタ100の出力が供給
されるANDゲート303のレベルもまたl°であれば
、3ステートインバータ304がアクティブ状態となっ
てシリアル入出力端子20のデータ(SDA)が第4図
のSl端子を介してメモリセルに書き込まれる。また、
送信状態にあって、送受信切り換え端子80のレベルが
“1゛であるとすると、第1図の3ステートインバータ
9の出力側がシリアル入出力端子20に接続されるので
、シリアルクロック信号のリーディングエツジにおいて
、前記ANDゲート303を始めとするデコーダによっ
て選択されたビット位置のメモリセルの出力が第4図の
SO端子を介して前記シリアル入出力端子20に送出さ
れる。さらに、並列データの書き込み時には3ステート
バツフア305がアクティブ状態となり、並列データの
読み込み時には3ステートインバータ306がアクティ
ブ状態となる。
Incidentally, FIG. 4 is a circuit wiring diagram showing a specific example of the configuration of the random access memory 300, and a unit memory cell is composed of an inverter 301 and a 3-state inverter 302. For example, the serial data in FIG. The level (CK) of the read clock input terminal 330 is “1”
If the level of the AND gate 303 to which the output of the down counter 100 is supplied is also l°, the 3-state inverter 304 becomes active and the data (SDA) of the serial input/output terminal 20 is The data is written into the memory cell via the Sl terminal shown in FIG. Also,
In the transmitting state, if the level of the transmitting/receiving switching terminal 80 is "1", the output side of the 3-state inverter 9 in FIG. 1 is connected to the serial input/output terminal 20, so that at the leading edge of the serial clock signal , 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. State buffer 305 becomes active, and 3-state inverter 306 becomes active when reading parallel data.

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

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

第1図は本発明の一実施例におけるシリアルデータの送
受信装置の構成図、第2図および第3図は第1図の主要
部のタイミングチャート、第4図はランダムアクセスメ
モリの構成例を示した回路結線図である。 1・・・・・・NANDゲート、20・・・・・・シリ
アル入出力端子、100・・・・・・ダウンカウンタ、
150・・・・・・インクリメンタ、200・・・・・
・データバス、300・・・・・・ランダムアクセスメ
モリ、1・・・・・・NANDゲート、20・・・・・
・シリアル入出力端子、100・・・・・・ダウンカウ
ンタ、150・・・・・・インクリメンタ、200・・
・・・・データバス、300・・・・・・ランダムアク
セスメモリ。
FIG. 1 is a configuration diagram of a serial data transmitting/receiving device according to an embodiment of the present invention, FIGS. 2 and 3 are timing charts of the main parts of FIG. 1, and FIG. 4 is a configuration example of a random access memory. FIG. 1... NAND gate, 20... serial input/output terminal, 100... down counter,
150...Incrementer, 200...
・Data bus, 300...Random access memory, 1...NAND 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, an incrementing means or decrementing means to which the output of the counter is supplied and incrementing or decrementing the output, and the incrementing means or the decrementing means at the time of transmission or reception. Parallel data is exchanged between a control means for activating the control means and a data bus, and data at a bit position decoded by the output of the increment means or the decrement means is exchanged between a serial input/output terminal. A serial data transmitting and receiving device consisting of memory means.
(2)リード/ライト切り換え端子とブロックセレクト
端子を有し、前記ブロックセレクト端子がアクティブ状
態にされたとき、前記リード/ライト切り換え端子に印
加されるレベルに応じて並列データがデータバスとの間
で授受されるランダムアクセスメモリを備えたことを特
徴とする特許請求の範囲第(1)項記載のシリアルデー
タの送受信装置。
(2) It has a read/write switching terminal and a block select terminal, and when the block select terminal is activated, parallel data is transferred between the data bus and the data bus according to the level applied to the read/write switching terminal. A serial data transmitting/receiving device according to claim 1, characterized in that the serial data transmitting/receiving device is provided with a random access memory that is transmitted and received by a serial data transmitting/receiving device.
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 true JPS6378639A (en) 1988-04-08
JPH0691555B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9855667B2 (en) 2012-06-29 2018-01-02 Seki Press Co., Ltd. Method for splitting end part of metal plate or metal rod, metal parts manufactured by such end splitting method, and method for bonding such metal parts

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9855667B2 (en) 2012-06-29 2018-01-02 Seki Press Co., Ltd. Method for splitting end part of metal plate or metal rod, metal parts manufactured by such end splitting method, and method for bonding such metal parts
US10293507B2 (en) 2012-06-29 2019-05-21 Seki Press Co., Ltd. Method for manufacturing figure-T shaped metal part and figure-T shaped metal part

Also Published As

Publication number Publication date
JPH0691555B2 (en) 1994-11-14

Similar Documents

Publication Publication Date Title
US5696994A (en) Serial interface having control circuits for enabling or disabling N-channel or P-channel transistors to allow for operation in two different transfer modes
US4309755A (en) Computer input/output arrangement for enabling a simultaneous read/write data transfer
CN115080494B (en) SPI slave circuit, SPI communication method, interface and chip
US6061293A (en) Synchronous interface to a self-timed memory array
US4968906A (en) Clock generating circuit for asynchronous pulses
JPS6378639A (en) Serial data transmitter/receiver
US4665328A (en) Multiple clock power down method and structure
JPS6367054A (en) Transmitter for serial data
JPH0721103A (en) Data transfer device
US5249154A (en) Data access controller and method
JPS62299143A (en) Serial data transmitter/receiver
US6920577B2 (en) Clock selection circuit for selecting between an external clock and a clock generated by comparing a count value with a setting value
KR100239437B1 (en) Serial interface communication
JPS6379442A (en) Serial data receiving device
JPH0736564B2 (en) Serial data transmitter
JPS6379441A (en) Transmission/reception equipment for serial data
JPS62296637A (en) Data sink for serial data
JPH0736563B2 (en) Transmitter / receiver of serial data
JPS6367041A (en) Transmitter-receiver for serial data
KR100244885B1 (en) Multi Interrupt Communication Circuit
KR940003330B1 (en) DMA counter circuit
JPS62299144A (en) Serial data source
JP2692469B2 (en) Data controller
JPH053022B2 (en)
JPS62299152A (en) Serial data transmitter

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term