JPH0736565B2 - Serial data receiver - Google Patents
Serial data receiverInfo
- Publication number
- JPH0736565B2 JPH0736565B2 JP61210957A JP21095786A JPH0736565B2 JP H0736565 B2 JPH0736565 B2 JP H0736565B2 JP 61210957 A JP61210957 A JP 61210957A JP 21095786 A JP21095786 A JP 21095786A JP H0736565 B2 JPH0736565 B2 JP H0736565B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- counter
- serial
- terminal
- output
- 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
Links
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000003213 activating effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Landscapes
- Communication Control (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明はシリアルデータの受信装置に関し、極めて簡単
な構成でありながら高度な通信にも対応できる受信装置
を提供するものであり、特にマイクロプロセッサに好適
な装置を実現するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data receiving apparatus, and provides a receiving apparatus which has an extremely simple structure and is compatible with advanced communication, and is particularly suitable for a microprocessor. It realizes such a 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.
問題点を解決するための手段 前記した問題点を解決するために本発明のシリアルデー
タの受信装置は、1フレームのデータビット数に相当す
る受信クロックをカウントするカウンタと、前記データ
ビット数以上のビット幅を有するデータバスと、ブロッ
クセレクト端子がアクティブ状態にされたとき前記デー
タバスに並列データが送出され、前記カウンタの出力に
よってデコードされたビット位置のデータがシリアル入
力端子から転送されるメモリ手段を備えている。Means for Solving the Problems In order to solve the above-mentioned problems, the serial data receiving apparatus of the present invention has a counter for counting a reception clock corresponding to the number of data bits of one frame, and Memory means for transmitting parallel data to the data bus having a bit width and a block select terminal when the block select terminal is activated, and transferring the data at the bit position decoded by the output of the counter from the serial input terminal Is equipped with.
作用 本発明では前記した構成によって、極めて簡単な構成で
シリアルデータの受信装置を実現することができる。Operation According to the present invention, with the above-described configuration, it is possible to realize a serial data receiving device with an extremely simple configuration.
実施例 以下、本発明の一実施例について図面を参照しながら説
明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例におけるシリアルデータの受
信装置をマイクロプロセッサに適用した場合の構成図を
示したものであり、シリアルクロック端子10を介して受
信クロックが供給される3ビットのダウンカウタ100
と、並列データがマイクロプロセッサのデータバス200
に送出され、カウンタバス150を介して供給される前記
カウンタ100の出力によってデコードされたビット位置
のデータが、シリアル入力端子20から供給されるランダ
ムアクセスメモリ300によって主要部が構成されてい
る。また、前記カウンタ100の各ビットの出力はDフリ
ップフロップ400のD端子に供給され、前記Dフリップ
フロップ400の出力信号がANDゲート410および割り込み
出力端子30を介してマイクロプロセッサに体する割り込
み要求信号が発生される。すなわち、Dフリップフロッ
プ400とANDゲート410は、カウンタの1フレーム分のカ
ウント動作が完了したときに割り込み要求信号を発生す
る割り込み信号発生回路を構成している。さらに、リセ
ット端子40,クリア端子50はマイクロプロセッサのノン
ラッチ形式の出力ポートに接続されてソフトウェアによ
るリセット信号が供給され、割り込み禁止端子60はマイ
クロプロセッサのラッチ形式の出力ポートに接続されて
ソフトウェアによる割り込みコントロールに利用され
る。なお、ランダムアクセスメモリ300に接続されるブ
ロックセレクト端子70にはランダムアクセスメモリ300
の並列出力部をアクティブ状態にするためのセレクト信
号が供給される。FIG. 1 is a block diagram showing a case in which a serial data receiving apparatus according to an embodiment of the present invention is applied to a microprocessor. A 3-bit down counter to which a receive clock is supplied via a serial clock terminal 10. 100
And the parallel data is the microprocessor data bus 200
The random access memory 300 supplied from the serial input terminal 20 constitutes the main part of the data of the bit position which is sent to the serial input terminal 20 and is decoded by the output of the counter 100 and supplied via the counter bus 150. Also, the output of each bit of the counter 100 is supplied to the D terminal of the D flip-flop 400, and the output signal of the D flip-flop 400 is an interrupt request signal which is transmitted to the microprocessor via the AND gate 410 and the interrupt output terminal 30. Is generated. That is, the D flip-flop 400 and the AND gate 410 form an interrupt signal generation circuit that generates an interrupt request signal when the counting operation for one frame of the counter is completed. Further, the reset terminal 40 and the clear terminal 50 are connected to the non-latch type output port of the microprocessor to supply a reset signal by software, and the interrupt disable terminal 60 is connected to the latch type output port of the microprocessor to interrupt by software. Used for control. The block select terminal 70 connected to the random access memory 300 is connected to the random access memory 300.
A select signal for activating the parallel output section of is activated.
以上のように構成された受信装置について、第1図の構
成図と第2図に示した主要部のタイミングチャートをも
とにその動作を説明する。The operation of the 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,C,Dは
いずれもカウンタ100の各ビットの出力信号波形を示し
たものであり、第2図E,F,G,H,I,J,K,Lはいずれもラン
ダムアクセスメモリ300の内部に構成されたビット位置
切り換えデコーダの出力信号波形を示したものであり、
第2図Mはシリアル入力端子20に送出されるシリアルデ
ータの変化のもようを示したものである。First, FIG. 2A shows the waveform of the clock signal supplied to the serial clock terminal 10, and FIGS. 2B, C and D show the output signal waveform of each bit of the counter 100. Yes, FIG. 2, E, F, G, H, I, J, K, L all show output signal waveforms of the bit position switching decoder configured inside the random access memory 300.
FIG. 2M shows how the serial data sent to the serial input terminal 20 changes.
第1図に示した装置によってシリアルデータの受信を行
うには、あらかじめカウンタ100とのDフリップフロッ
プ400をリセットしておけば、シリアルクロック端子10
に受信用のクロック信号が供給されると、そのリーディ
ングエッジが到来するごとにカウンタ100のカウント値
が〔111〕,〔110〕……〔001〕,〔000〕と変化してい
き、それに伴って第2図E〜Lに示すように、シリアル
入力端子20からデータを取り込むランダムアクセスメモ
リ300のビット位置も切り換えられていく。カウンタ100
のカウント値が〔000〕になると、Dフリップフロップ4
00のD端子のレベルが‘1'に移行し、シリアルクロック
端子10に供給されるクロック信号のトレイリングエッジ
においてDフリップフロップ400の出力レベルが‘1'に
移行して割り込み出力端子30に割り込み要求信号が送出
される。その結果、マイクロプロセッサは割り込み処理
ルーチンを開始し、この割り込み処理ルーチンによって
ランダムアクセスメモリ300からデータバス200に介して
並列データを読み取ればよい。In order to receive serial data by the device shown in FIG. 1, if the D flip-flop 400 with the counter 100 is reset in advance, the serial clock terminal 10
When the clock signal for reception is supplied to, the count value of the counter 100 changes to [111], [110] ... [001], [000] each time its leading edge arrives. As shown in FIGS. 2E to 2L, the bit position of the random access memory 300 that takes in data from the serial input terminal 20 is also switched. Counter 100
When the count value of becomes [000], the D flip-flop 4
The level of the D terminal of 00 shifts to "1", the output level of the D flip-flop 400 shifts to "1" at the trailing edge of the clock signal supplied to the serial clock terminal 10, and the interrupt output terminal 30 is interrupted. A request signal is sent. As a result, the microprocessor may start an interrupt processing routine and read parallel data from the random access memory 300 via the data bus 200 by this interrupt processing routine.
このようにして、第1図に示したシリアルデータの受信
装置では従来の装置と同じようにしてシリアルデータの
受信を行うことができるが、第1図の構成からもわかる
ように、従来の装置ではシフトレジスタとシフトカウン
タの両方を必要としていたのに対して、本発明のシリア
ルデータの受信装置ではシフトレジスタを必要とぜす、
それに伴って回路構成が簡略化されるとともにランダム
ロジック回路の占める割合が少なくなり、ワンチップの
LSIを構成する際にレイアウトを行いやすく、生産工程
におけるLSIの検査にも適している。さらに、受信デー
タをシフトレジスタを介することなく、直接にシリアル
入力端子20から読み込むように構成しているので、より
高速に大量のデータを処理することもできる。すなわ
ち、ランダムアクセスメモリ300のアドレスを増加させ
て多段バッファ構成にしておき、そのアドレスの選択を
ビット数を増加させたカウンタ100の上位ビットによっ
て行うことにより、より多くの情報を一挙に扱うことが
でき、高度な通信も可能となる。In this way, the serial data receiving apparatus shown in FIG. 1 can receive serial data in the same manner as the conventional apparatus, but as can be seen from the configuration of FIG. In contrast, a shift register and a shift counter are both required, whereas the serial data receiving device of the present invention requires a shift register.
Along with that, the circuit configuration is simplified and the proportion occupied by the random logic circuit is reduced.
Layout is easy when configuring LSI, and it is also suitable for LSI inspection in the production process. Furthermore, since the received data is directly read from the serial input terminal 20 without passing through the shift register, a large amount of data can be processed at higher speed. That is, by increasing the address of the random access memory 300 to form a multi-stage buffer structure and selecting the address by the upper bits of the counter 100 having the increased number of bits, more information can be handled at once. This enables advanced communication.
なお、第3図はランダムアクセスメモリ300の具体的な
構成例を示した回路結線図であり、単位メモリセルはイ
ンバータ301と3ステートインバータ302によって構成さ
れ、ANDゲート303は第1図のカウンタ100のカウント値
を対応するビット位置にデコードするデコーダの一部を
構成しており、例えば、第1図のシリアルクロック端子
10のレベル(SCK)が‘0'のとき、インバータ350の出力
レベルは‘1'となり、前記ANDゲート303の出力レベルも
また‘1'であれば、3ステートインバータ304がアクテ
ィブ状態となってシリアル入力端子20のデータ(SDA)
がメモリセルに書き込まれる。また、並列データの読み
込み時には3ステートインバータ305がアクティブ状態
となる。3 is a circuit connection diagram showing a specific configuration example of the random access memory 300. The unit memory cell is composed of an inverter 301 and a 3-state inverter 302, and the AND gate 303 is a counter 100 of FIG. It constitutes a part of a decoder which decodes the count value of the bit into the corresponding bit position. For example, the serial clock terminal of FIG.
When the level (SCK) of 10 is '0', the output level of the inverter 350 becomes '1', and if the output level of the AND gate 303 is also '1', the 3-state inverter 304 becomes active. Data of serial input terminal 20 (SDA)
Is written in the memory cell. Further, when reading parallel data, the 3-state inverter 305 becomes active.
発明の効果 本発明のシリアルデータの受信装置は以上の説明からも
明らかなように、1フレームのデータビット数に相当す
る受信クロックをカウントするカウンタ100と、前記デ
ータビット数以上のビット幅を有するデータバス200
と、ブロックセレクト端子70がアクティブ状態にされた
とき前記データバスに並列データが送出され、前記カウ
ンタの出力によってデコードされたビット位置のデータ
がシリアル入力端子から転送されるメモリ手段(実施例
においてはランダムアクセスメモリ300を用いているが
ラッチ形式のメモリであってもよい)を備えたことを特
徴とするもので、極めて簡単な構成でシリアルデータの
受信装置を実現することができるとともに、本発明を適
用することにより、比較的容易に高度の処理が行える通
信装置を得ることもでき、大なる効果を奏する。As is apparent from the above description, the serial data receiving apparatus of the present invention has the counter 100 that counts the reception clock corresponding to the number of data bits of one frame, and the bit width that is equal to or more than the number of data bits. Data bus 200
When the block select terminal 70 is activated, parallel data is sent to the data bus, and the data at the bit position decoded by the output of the counter is transferred from the serial input terminal (in the embodiment, a memory means). The random access memory 300 is used, but it may be a latch type memory). It is possible to realize a serial data receiving device with an extremely simple configuration, By applying the above, it is possible to obtain a communication device capable of performing high-level processing relatively easily, and a great effect is achieved.
第1図は本発明の一実施例におけるシリアルデータの受
信装置の構成図、第2図は第1図の主要部のタイミング
チャート、第3図はランダムアクセスメモリの構成例を
示した回路結線図である。 20……シリアル入力端子,100……カウンタ,200……デー
タバス,300……ランダムアクセスメモリ。FIG. 1 is a block diagram of a serial data receiving apparatus according to an embodiment of the present invention, FIG. 2 is a timing chart of main parts of FIG. 1, and FIG. 3 is a circuit connection diagram showing a configuration example of a random access memory. Is. 20 …… Serial input terminal, 100 …… Counter, 200 …… Data bus, 300 …… Random access memory.
Claims (2)
信クロックをカウントするカウンタと、前記データビッ
ト数以上のビット幅を有するデータバスと、ブロックセ
レクト端子がアクティブ状態にされたとき前記データバ
スに並列データが送出され、前記カウンタの出力によっ
てデコードされたビット位置のデータがシリアル入力端
子から転送されるメモリ手段からなるシリアルデータの
受信装置。1. A counter that counts a reception clock corresponding to the number of data bits in one frame, a data bus having a bit width equal to or greater than the number of data bits, and a data bus when the block select terminal is activated. A serial data receiving device comprising memory means for transmitting parallel data and transferring data at a bit position decoded by the output of the counter from a serial input terminal.
信クロックをカウントするカウンタと、前記データビッ
ト数以上のビット幅を有するデータバスと、ブロックセ
レクト端子がアクティブ状態にされたとき前記データバ
スに並列データが送出され、前記カウンタの出力によっ
てデコードされたビット位置のデータがシリアル入力端
子から転送されるメモリ手段と、前記カウンタの1フレ
ーム分のカウント動作が完了したときに割り込み要求信
号を発生する割り込み信号発生回路からなるシリアルデ
ータの受信装置。2. A counter for counting a reception clock corresponding to the number of data bits of one frame, a data bus having a bit width equal to or greater than the number of data bits, and a data bus for the data bus when a block select terminal is activated. The parallel data is sent out, the memory means to which the data at the bit position decoded by the output of the counter is transferred from the serial input terminal, and the interrupt request signal is generated when the counting operation for one frame of the counter is completed. A serial data receiving device including an interrupt signal generating circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61210957A JPH0736565B2 (en) | 1986-09-08 | 1986-09-08 | Serial data receiver |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61210957A JPH0736565B2 (en) | 1986-09-08 | 1986-09-08 | Serial data receiver |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6367053A JPS6367053A (en) | 1988-03-25 |
| JPH0736565B2 true JPH0736565B2 (en) | 1995-04-19 |
Family
ID=16597911
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61210957A Expired - Lifetime JPH0736565B2 (en) | 1986-09-08 | 1986-09-08 | Serial data receiver |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0736565B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57169842A (en) * | 1981-04-13 | 1982-10-19 | Fuji Electric Co Ltd | Data receiver |
| JPS6030231A (en) * | 1983-07-29 | 1985-02-15 | Toshiba Corp | Data buffer device |
-
1986
- 1986-09-08 JP JP61210957A patent/JPH0736565B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6367053A (en) | 1988-03-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4667310A (en) | Large scale circuit device containing simultaneously accessible memory cells | |
| JPS5984289A (en) | Image signal output device | |
| US5522048A (en) | Low-power area-efficient and robust asynchronous-to-synchronous interface | |
| JPH0560425B2 (en) | ||
| US6058439A (en) | Asynchronous first-in-first-out buffer circuit burst mode control | |
| JPS6266322A (en) | Data bus buffer control circuit | |
| JPH0736565B2 (en) | Serial data receiver | |
| JPH0736564B2 (en) | Serial data transmitter | |
| JPH0736563B2 (en) | Transmitter / receiver of serial data | |
| JPH0736566B2 (en) | Serial data transmitter | |
| JPH0736571B2 (en) | Transmitter / receiver of serial data | |
| JPS62296637A (en) | Data sink for serial data | |
| JPH0691555B2 (en) | Transmitter / receiver of serial data | |
| JP2638484B2 (en) | Data processing device | |
| KR940003330B1 (en) | DMA counter circuit | |
| JP2595707B2 (en) | Memory device | |
| JPS6379441A (en) | Transmission/reception equipment for serial data | |
| JPH0771076B2 (en) | Transmitter / receiver of serial data | |
| JPS6379442A (en) | Serial data receiving device | |
| JP3381272B2 (en) | Data transfer method and data processing device | |
| JP2565768B2 (en) | Serial data transceiver | |
| JPH035788A (en) | Display device driving lsi | |
| JPS62299152A (en) | Serial data transmitter | |
| JPS61269288A (en) | Storage element module | |
| JPS59188760A (en) | Data storage circuit of microcomputer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |