JPH0652517B2 - Data processing device - Google Patents
Data processing deviceInfo
- Publication number
- JPH0652517B2 JPH0652517B2 JP59049141A JP4914184A JPH0652517B2 JP H0652517 B2 JPH0652517 B2 JP H0652517B2 JP 59049141 A JP59049141 A JP 59049141A JP 4914184 A JP4914184 A JP 4914184A JP H0652517 B2 JPH0652517 B2 JP H0652517B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- serial
- transmission
- reception
- parallel
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/122—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Systems (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】 [技術分野] この発明は、信号処理技術さらにはデータ処理システム
におけるシリアルコミュニケーション方式に適用して有
効な技術に関し、例えばマイクロコンピータシステムの
ようなデータ処理システムにおけるシリアルI/O装置
に利用して有効な技術に関する。Description: TECHNICAL FIELD The present invention relates to a signal processing technique and a technique effectively applied to a serial communication system in a data processing system. For example, serial I / O in a data processing system such as a micro computer system. The present invention relates to a technique effectively used for an O device.
[背景技術] マイクロコンピータと周辺装置との間のデータ転送方式
としては、複数ビットのデータを並列に転送するパラレ
ル方式と、1ビットずつ順番に転送するシリアル方式と
がある。さらに、シリアル方式においても、クロック信
号に同期してデータの転送を行なうクロック同期式のも
のと非同期式(調歩同期式)のものとがある。BACKGROUND ART As a data transfer method between a micro computer and a peripheral device, there are a parallel method for transferring a plurality of bits of data in parallel and a serial method for transferring one bit at a time in sequence. Further, in the serial system, there are a clock synchronous system and a non-synchronous system (asynchronous system) that transfer data in synchronization with a clock signal.
非同期式のシリアル転送方式においては、第1図に示す
ように、先頭の1ビットの“0”(スペース)なるスタ
ートビットBstartを有し、続いて例えば8ビット
のデータ部分があり、最後に2ビットの“1”(マー
ク)からなるストップビットBstopを有する信号が
1フレームのデータとして送受信される。In the asynchronous serial transfer system, as shown in FIG. 1, there is a start bit Bstart of 1 bit "0" (space) at the beginning, followed by, for example, an 8-bit data portion, and finally 2 bits. A signal having a stop bit Bstop consisting of a bit "1" (mark) is transmitted and received as one frame of data.
ところが、従来の非同期式のシリアル転送を行なうよう
にされたマイクロコンピータシステムでは、1フレーム
のデータを1バイトの受信データレジスタに取り込んで
受信が完了すると、受信したデータをマイクロプロセッ
サ(以下CPUと称する)が内部のアキュームレータの
ようなレジスタに読み込み、何らかの処理をしてから次
のデータの受信を受け付ける。また、送信時にも送信す
べきデータをメモリから一旦アキュームレータに読み込
んでから、これを送信レジスタに転送して送信させるよ
うにされていた(日立製作所発行:8/16ビットマイ
クロコンピータ、82年9月号第66〜68頁、752
〜754頁) そのため、上記メモリあるいは受信レジスタからアキュ
ームレータへのデータの読み込みおよびアキュームレー
タからメモリあるいは送信レジスタへのデータの転送を
プログラムに従って実行させなければならない。その結
果、ソフトウェアの負担が大きくなり、スループットが
低下してしまうという問題点がある。However, in the conventional micro-computer system which is designed to perform asynchronous serial transfer, when one frame of data is loaded into the 1-byte receive data register and reception is completed, the received data is processed by a microprocessor (hereinafter referred to as CPU). ) Reads into a register like an internal accumulator, does some processing, and then receives the next data. Also, at the time of transmission, the data to be transmitted was once read from the memory into the accumulator and then transferred to the transmission register for transmission (Hitachi: 8 / 16-bit micro computer, September 1982). Issue 66-68, 752
Therefore, the reading of data from the memory or the receiving register to the accumulator and the transfer of the data from the accumulator to the memory or the transmitting register must be executed according to a program. As a result, there is a problem that the load on the software becomes large and the throughput decreases.
また、通信速度が速くなり、マイクロコンピータが受信
したデータを処理している最中に続けて2フレーム以上
のデータが送られてくると、2フレームのうち初めの1
フレームのデータが失なわれる(後から来たデータでぬ
りかえられる)いわゆるオーバーランエラーを起こして
しまう。これを防ぐには、CPUが先のデータを処理し
ている間は続けて2フレーム以上のデータを送って来な
いようにCPUの側からデータの送信元へRTS(リク
エスト・ツー・センド)信号のような適当な信号を送っ
てやる必要がある。そのため、通信速度がCPUの処理
能力およびソフトウェアにより制限を受けるという不都
合がある。In addition, if the communication speed increases and two or more frames of data are continuously sent while the microcomputer is processing the received data, the first one of the two frames will be sent.
The data of the frame is lost (it can be replaced with the data that came later), which causes a so-called overrun error. To prevent this, while the CPU is processing the previous data, the RTS (Request to Send) signal is sent from the CPU side to the data transmission source so that the data of two or more frames will not be transmitted continuously. It is necessary to send an appropriate signal such as. Therefore, there is an inconvenience that the communication speed is limited by the processing capacity of the CPU and the software.
[発明の目的] この発明の目的は、従来に比べて顕著な効果を奏する信
号処理技術を提供することにある。[Object of the Invention] An object of the present invention is to provide a signal processing technique which exhibits a significant effect as compared with the conventional art.
この発明の他の目的は、例えばシリアル転送方式が採用
されたマイクロコンピータシステムにおいて、ソフトウ
ェアの負担を軽くし、スループットを向上させるととも
に、送受信処理を高速化できるようにすることにある。Another object of the present invention is to reduce the load on software, improve throughput, and speed up transmission / reception processing in a micro computer system employing, for example, a serial transfer system.
この発明の更に他の目的は、データ転送後にいつでもC
PUが既にデータが転送されているか否かを確認できる
ようにしてシステムの機能を向上させることにある。Yet another object of this invention is to provide C at any time after data transfer.
It is to improve the function of the system by enabling the PU to confirm whether or not data has already been transferred.
この発明の前記ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明かにな
るであろう。The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.
[発明の概要] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。[Outline of Invention] The outline of a typical invention disclosed in the present application will be described below.
すなわち、この発明は、1バイトの受信データレジスタ
および送信データレジスタの代わりに、複数個の1バイ
トレジスタを多段接続して、FiFo(ファーストイン
・ファーストアウト)構成としたバッファ回路を設ける
ことにより、CPUからの命令によってアキュームレー
タを介することなく上記バッファ回路とメモリとの間
で、直接複数バイトのデータをブロック転送できるよう
にして、ソフトウェアの負担を軽くし、スループットお
よび通信速度を向上させるという上記目的を達成するも
のである。That is, according to the present invention, instead of the 1-byte reception data register and the transmission data register, a plurality of 1-byte registers are connected in multiple stages to provide a buffer circuit having a FiFo (first-in first-out) configuration. It is possible to directly transfer a block of a plurality of bytes of data between the buffer circuit and the memory by an instruction from the CPU without passing through an accumulator, thereby reducing the load on software and improving the throughput and the communication speed. Is achieved.
また、この発明は、メモリから送信データバッファ回路
へのデータ転送命令によって読み出されたメモリセルを
セットもしくはリセットさせる機能を設けることによっ
て、メモリの所定のエリアをアクセスすることによりC
PUがいつでも既にデータが転送されているか否かを確
認できるようにするという上記目的を達成するものであ
る。In addition, the present invention provides a function for setting or resetting a memory cell read by a data transfer instruction from the memory to the transmission data buffer circuit, thereby accessing C
The purpose of the above is to enable the PU to check whether data has already been transferred at any time.
以下図面を用いてこの発明を具体的に説明する。The present invention will be specifically described below with reference to the drawings.
[実施例] 第2図は、本発明を非同期式のシリアルI/Oを備えた
シングルチップマイコンに適用した場合の一実施例を示
す。図中鎖線Aで囲まれたマイクロコンピータユニット
(以下MCUと称する)は、特に制限されないがシリコ
ンのような1個の半導体チップ上に形成される。[Embodiment] FIG. 2 shows an embodiment in which the present invention is applied to a single-chip microcomputer provided with an asynchronous serial I / O. The micro computer unit (hereinafter referred to as MCU) surrounded by a chain line A in the figure is formed on one semiconductor chip such as silicon, although not particularly limited thereto.
図において、1は適当な順路回路を有するコントローラ
とALU(演算論理ユニット)およびプログラムカウン
タやアキュームレータ等のレジスタ類とからなるCPU
(マイクロプロセッサ)である。このCPU1には内部
バス2を介してプログラムが格納されたROM(リード
・オンリ・メモリ)3やRAM(ランダム・アクセス・
メモリ)4のような記憶装置と、シリアルI/O5が接
続されている。In the figure, reference numeral 1 denotes a CPU including a controller having an appropriate forward circuit and ALU (arithmetic logic unit) and registers such as a program counter and an accumulator.
(Microprocessor). The CPU 1 has a ROM (Read Only Memory) 3 in which a program is stored via an internal bus 2 and a RAM (Random Access Memory).
A storage device such as a memory 4 and a serial I / O 5 are connected.
シリアルI/O5は、上記内部バス2に接続された送信
データバッファ回路6と、同じく内部バス2に接続され
た受信データバッファ回路7と、上記送信データバッフ
ァ回路6に接続され1ワード(例えば8ビット)のデー
タを保持可能な送信シフトレジスタ8と、上記受信デー
タバッファ回路7に接続され同じく1ワードのデータを
保持可能な受信シフトレジスタ9とを備えている。The serial I / O 5 includes a transmission data buffer circuit 6 connected to the internal bus 2, a reception data buffer circuit 7 also connected to the internal bus 2, and one word (for example, 8 words) connected to the transmission data buffer circuit 6. A transmission shift register 8 capable of holding (bit) data, and a reception shift register 9 connected to the reception data buffer circuit 7 and capable of holding 1-word data are also provided.
特に制限されないが、上記送信データバッファ回路6お
よび受信データバッファ回路7は、各々1ワードのデー
タを保持可能な例えば4個のレジスタが多段接続され、
FiFo方式の構成とされている。つまり、内部バス2
より送信データバッファ回路6へ格納された4ワードの
データは、格納された順序で送信シフトレジスタ8へ転
送され、また受信端子Rxより受信シフトレジスタ9へ
入って来たデータは1ワードずつ受信データバッファ回
路7へ転送されて保持され、入ってきた順序で内部バス
2へはき出されるようにされている。Although not particularly limited, in the transmission data buffer circuit 6 and the reception data buffer circuit 7, for example, four registers each capable of holding 1-word data are connected in multiple stages,
It has a FiFo system configuration. That is, the internal bus 2
The four words of data stored in the transmission data buffer circuit 6 are transferred to the transmission shift register 8 in the order in which they are stored, and the data received from the reception terminal Rx to the reception shift register 9 are received word by word. The data is transferred to the buffer circuit 7 and held therein, and is ejected to the internal bus 2 in the order of entry.
また、11はチップに外付けされた水晶振動子を備えた
発振回路、12はこの発振回路11から出力される発振
信号を適当に分周してシステム内のクロック信号CLK
やサンプリングクロックSCL等を形成する分周回路で
ある。Further, 11 is an oscillation circuit provided with a crystal oscillator externally attached to the chip, and 12 is an appropriate division of the oscillation signal output from the oscillation circuit 11, and a clock signal CLK in the system.
And a frequency dividing circuit that forms the sampling clock SCL and the like.
そして、この実施例では送信時にCPU1からロード命
令が出され、かつ最初のデータの格納されているRAM
4内の所定のアドレスを示す信号が内部バス2に出力さ
れると、RAM4がアクセスされて所望のデータが読み
出される。そして送信データバッファ回路6の段階に応
じたワード数(実施例では4ワード)のデータが内部バス
2に出力され、これが直接上記送信データバッファ回路
6内に次々と取り込まれる。送信データバッファ回路6
内に取り込まれたデータは、分周回路12から供給され
る適当なクロック信号に同期して自動的に1ワードずつ
送信シフトレジスタ8に転送される。この際、CPU1
が上記ロード命令を出しさえすれば、1ブロック分のデ
ータがRAM4から読み出され、内部バス2を介して送
信データバッファ回路6に転送されるので、その間CP
U1は他の処理に移ることができる。In this embodiment, a RAM 1 where a load instruction is issued from the CPU 1 at the time of transmission and the first data is stored.
When a signal indicating a predetermined address in 4 is output to the internal bus 2, the RAM 4 is accessed and desired data is read. Then, the data of the number of words (4 words in the embodiment) according to the stage of the transmission data buffer circuit 6 is output to the internal bus 2, and this data is directly taken into the transmission data buffer circuit 6 one after another. Transmission data buffer circuit 6
The data taken in is automatically transferred word by word to the transmission shift register 8 in synchronization with an appropriate clock signal supplied from the frequency dividing circuit 12. At this time, CPU1
As long as the above-mentioned load command is issued, one block of data is read from the RAM 4 and transferred to the transmission data buffer circuit 6 via the internal bus 2.
U1 can move to another process.
送信シフトレジスタ8は、分周回路12からの適当なク
ロックに同期して1ビットずつシフト動作して、送信端
子Txに対し8ビットのデータをシリアルに出力する。
この際、送信シフトレジスタ8は、転送データの先頭に
“0”のスタートビットBstartを付加し、データ
の最後には“1”のストップビットBstopを付加し
て1フレームのデータ信号として送信端子Txに出力す
る。The transmission shift register 8 shifts bit by bit in synchronization with an appropriate clock from the frequency dividing circuit 12 and serially outputs 8-bit data to the transmission terminal Tx.
At this time, the transmission shift register 8 adds a start bit Bstart of "0" to the beginning of the transfer data and a stop bit Bstop of "1" to the end of the data to form a transmission terminal Tx as a data signal of one frame. Output to.
一方、非同期式のシリアル転送方式が採用されたマイク
ロコンピュータシステムにおいては、フロッピーディス
クドライバ等の周辺装置からMCUに対して、先頭にス
タートビットBstartを有し終端に2ビットのスト
ップビットBstopを有する第1図に示すようなデー
タ信号が送られてくる。On the other hand, in a microcomputer system adopting an asynchronous serial transfer system, a peripheral device such as a floppy disk driver has a start bit Bstart at the head and a stop bit Bstop at the end at the end to the MCU. A data signal as shown in FIG. 1 is sent.
すると、上記受信シフトレジスタ9は、上記スタートビ
ットBstartの立下がりエッジを検出して、その後
に続く8ビットのようなデータをボーレートすなわちデ
ータ転送速度に応じた速度で動作して取り込む。この受
信シフトレジスタ9は、上記分周回路12から出力され
るサンプリングクロックSCLによってボーレートに比
例した速度で動作される。Then, the reception shift register 9 detects the falling edge of the start bit Bstart, and operates and fetches the following 8-bit data at a speed corresponding to the baud rate, that is, the data transfer speed. The reception shift register 9 is operated at a speed proportional to the baud rate by the sampling clock SCL output from the frequency dividing circuit 12.
受信シフトレジスタ9に受信された1ワードのデータ
は、自動的に受信データバッファ回路7へ転送される。
受信データバッファ回路7が一杯になる(実施例では4
ワードのデータが取り込まれる)と、一杯になったこと
を知らせる割り込み信号IRQがシリアルI/O5から
CPU1に対して供給される。すると、CPU1はこれ
を受けて、ストア命令を出して、受信データバッファ回
路7のデータを入って来た順序でまとめてRAM4へ転
送させ、RAM4内の所望のエリアにそのデータを格納
する。The 1-word data received by the reception shift register 9 is automatically transferred to the reception data buffer circuit 7.
The reception data buffer circuit 7 becomes full (4 in the embodiment).
When the word data is taken in), the interrupt signal IRQ indicating that the data is full is supplied from the serial I / O 5 to the CPU 1. Then, the CPU 1 receives this and issues a store instruction to collectively transfer the data in the received data buffer circuit 7 to the RAM 4 in the order in which they came in, and store the data in a desired area in the RAM 4.
従って、CPU1は受信データバッファ回路7が受信デ
ータで一杯になるまで他の処理を行なうことができる。
これによって、ソフトウェアの負担が軽減され、スルー
プットおよび通信速度が向上される。Therefore, the CPU 1 can perform other processing until the received data buffer circuit 7 is filled with the received data.
This reduces the load on the software and improves throughput and communication speed.
さらに、この実施例では、RAM4のリセット回路10
が設けられており、例えばRAM4の出力あるいはCP
U1からのロード命令を受けて読み出されたデータの入
っていた番地のメモリセルにリセットをかけて“0”を
書き込んでやるようにされている。Further, in this embodiment, the reset circuit 10 of the RAM 4 is
Is provided, for example, the output of RAM4 or CP
The memory cell at the address containing the data read in response to the load instruction from U1 is reset and "0" is written.
そのため、RAM4から送信すべきデータが読み出され
ると、その後そのデータが入っていたエリアはすべて
“0”にリセットされる。その結果、CPU1はRAM
4内の所定のエリアのデータを読み出してその内容をチ
ェックすることにより、いつでもRAM内のデータが転
送済みであるか否かを知ることができる。上記の場合、
読み出されたメモリセルにリセットをかけて“0”にし
てやる代りに、“1”にセットしてやるようにしてもよ
い。Therefore, when the data to be transmitted is read from the RAM 4, all the areas containing the data are reset to "0". As a result, CPU1 is RAM
By reading the data in the predetermined area in 4 and checking the contents, it is possible to know at any time whether or not the data in the RAM has been transferred. In the above case,
Instead of resetting the read memory cell to "0" and setting it to "1", it may be set.
なお、図示しないが、このシリアルI/O5内には、一
般に第1図の信号のデータの部分が引き延ばされてしま
ったような場合に、スタートビットの立下がり検出後一
定時間後に来るべきストップビットを検出しなかったと
きこれをフレーミングエラーとし、そのデータを受信デ
ータバッファ回路7へ転送しないようにするエラー検出
回路を設けることができる。Although not shown, the serial I / O 5 should come within a certain time after the fall of the start bit is detected in the case where the data portion of the signal shown in FIG. 1 is generally extended. It is possible to provide an error detection circuit that sets the framing error when the stop bit is not detected and prevents the data from being transferred to the reception data buffer circuit 7.
また、上記実施例では、本発明を非同期式のシリアルI
/Oを有するシステムに適用したものについて説明した
が、この発明はこれに限定されるものではなく、同期式
のシリアルI/Oを有するシステムにも適用できるもの
である。In the above embodiment, the present invention is applied to the asynchronous serial I.
However, the present invention is not limited to this, and can be applied to a system having a synchronous serial I / O.
さらに、上記実施例では、一例としてシングルチップマ
イコンに適用したものを説明したが、この発明は通常の
マイクロコンピュータシステムを構成するインターフェ
ース用のI/Oチップにも適用できるものである。Further, in the above-mentioned embodiment, the one applied to a single-chip microcomputer is explained as an example, but the present invention can also be applied to an I / O chip for an interface which constitutes a normal microcomputer system.
[効果] (1)シリアルI/Oを備えたシステムにおいて、1バイ
トのデータを保持可能な受信シフトレジスタおよび送信
シフトレジスタと、複数個の1バイトレジスタを多段接
続してFiFo構成とした送信データバッファ回路およ
び受信データバッファ回路を設けてなるので、CPUか
らの命令によってアキュームレータを介することなく、
上記バッファ回路とメモリとの間で直接複数バイトのデ
ータをブロック転送できるようになるという作用によ
り、ソフトウェアの負担が軽減されスループットおよび
通信速度が向上されるという効果がある。[Effects] (1) In a system equipped with a serial I / O, a reception shift register and a transmission shift register capable of holding 1-byte data, and a plurality of 1-byte registers connected in multiple stages to form a FiFo-structured transmission data Since the buffer circuit and the reception data buffer circuit are provided, the instruction from the CPU does not need to go through the accumulator,
The effect of enabling block transfer of a plurality of bytes of data directly between the buffer circuit and the memory has the effect of reducing the load on software and improving throughput and communication speed.
(2)シリアルI/Oを備えたシステムにおいて、メモリ
から送信データバッファ回路へのデータ転送命令によっ
て読み出されたメモリセルをセットもしくはリセットさ
せる機能を設けるようにしたので、送信の際、データが
読み出される前と後でメモリの内容が変化するという作
用により、メモリの所定のエリアをアクセスすることに
よりCPUがいつでも既にデータが転送されているか否
かを確認できるようになるという効果がある。(2) In a system equipped with serial I / O, the function to set or reset the memory cell read by the data transfer command from the memory to the transmission data buffer circuit is provided, so that the data is not transmitted during transmission. The effect of changing the contents of the memory before and after being read has an effect that the CPU can always confirm whether or not the data has already been transferred by accessing a predetermined area of the memory.
以上本発明者によってなされた発明の実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。例えば上記実施例では、
送信データバッファ回路および受信データバッファ回路
がそれぞれ4段構成にされているが、段数は4段に限定
されず、任意の段数すなわち3段あるいは5段以上であ
ってもよい。Although the present invention has been specifically described based on the embodiments of the invention made by the present inventor, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Nor. For example, in the above embodiment,
Although each of the transmission data buffer circuit and the reception data buffer circuit has a four-stage configuration, the number of stages is not limited to four and may be any number of stages, that is, three stages or five or more stages.
[利用分野] 以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野であるマイクロコンピュー
タシステムに適用した場合について説明したが、この発
明はこれに限定されるものではなく、シリアル通信用イ
ンターフェースを持つすべてのシステムに適用できるも
のである。[Field of Use] In the above description, the case where the invention made by the present inventor is mainly applied to the microcomputer system which is the field of use as the background has been described, but the present invention is not limited to this. It is applicable to all systems with serial communication interface.
例えば、フロッピーディスクドライバあるいはCRTデ
ィスプレイ等の周辺装置を備えたパーソナルコンピュー
タやコンソールタイプライタを備えたシステム開発装置
のように、CPUと周辺装置との間でシリアル通信を行
なう場合、あるいは、データターミナルやキャッシュレ
ジスタシステムのように端末機と中央の大型コンピュー
タをオンラインで結んでシリアル通信を行なう場合やコ
ンピュータ同士でシリアル通信を行なう場合、さらには
音響カプラを用いてシリアル通信を行なうようにされた
システム等にも応用できるものである。For example, when serial communication is performed between the CPU and the peripheral device, such as a personal computer equipped with a peripheral device such as a floppy disk driver or a CRT display, or a system development device equipped with a console typewriter, or a data terminal or When connecting a terminal to a large central computer online for serial communication, such as a cash register system, or when performing serial communication between computers, and a system adapted to perform serial communication using an acoustic coupler, etc. It can also be applied to.
第1図は、非同期式のシリアル通信の際に送信される信
号の波形を示す説明図、 第2図は、本発明に係るシリアルI/O装置を備えたシ
ングルチップマイコンの一実施例を示すブロック図であ
る。 1……CPU(マイクロプロセッサ)、2……内部バ
ス、4……メモリ(RAM)、5……シリアルI/O、
6……送信データバッファ回路、7……受信データバッ
ファ回路、8……送信シフトレジスタ、9……受信シフ
トレジスタ、10……リセット回路、Rx……受信端
子、Tx……送信端子。FIG. 1 is an explanatory diagram showing a waveform of a signal transmitted during asynchronous serial communication, and FIG. 2 shows an embodiment of a single-chip microcomputer provided with a serial I / O device according to the present invention. It is a block diagram. 1 ... CPU (microprocessor), 2 ... internal bus, 4 ... memory (RAM), 5 ... serial I / O,
6 ... Transmission data buffer circuit, 7 ... Reception data buffer circuit, 8 ... Transmission shift register, 9 ... Reception shift register, 10 ... Reset circuit, Rx ... Reception terminal, Tx ... Transmission terminal.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 川下 智恵 東京都千代田区神田駿河台4丁目6番地 株式会社日立製作所内 (56)参考文献 特開 昭55−88118(JP,A) 特開 昭53−11539(JP,A) 実開 昭57−20034(JP,U) ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Chie Kawashita 4-6 Kanda Sugawadai, Chiyoda-ku, Tokyo Inside Hitachi, Ltd. (56) References JP-A-55-88118 (JP, A) JP-A-53- 11539 (JP, A) Actually opened Sho 57-20034 (JP, U)
Claims (3)
と、シリアルなデータの送受信を行なうシリアルI/O
装置とを備えたデータ処理装置であって、 上記シリアルI/O装置は、 送信用端子および受信用端子と、 1ワードの並列送信データを直列データに変換して上記
送信用端子へ出力する並直列変換手段と、 上記受信用端子より入力された直列受信データをワード
単位で並列データに変換する直並列変換手段と、 各々1ワードのデータを保持可能なレジスタが複数個接
続され格納された順序で送信データを上記並直列変換手
段へ転送するための送信データバッファ回路と、 同じく各々1ワードのデータを保持可能なレジスタが複
数個接続され上記直並列変換手段から送られてくる受信
データを順次保持し入ってきた順序でデータを出力する
とともに、受信データで一杯になったときに上記制御手
段への割込み信号を出力するように構成された受信デー
タバッファ回路と、を有し、 上記制御手段は、ロード命令を実行して上記メモリ内の
所望のデータを直接上記送信データバッファ回路へブロ
ック転送し、上記割込み信号を受けたときにストア命令
を実行して上記受信データバッファ回路に入ったデータ
を直接上記メモリ内の所望のエリアにブロック転送する
とともに、上記ロード命令に基づくデータ転送の際に、
転送データが読み出されたメモリ内のエリアをすべて
“0”もしくは“1”にクリアするリセット手段を起動
させるように構成されてなることを特徴とするデータ処
理装置。1. A control means, a readable / writable memory, and a serial I / O for transmitting / receiving serial data.
The serial I / O device comprises a transmission terminal and a reception terminal, and a parallel processing unit for converting 1-word parallel transmission data into serial data and outputting the serial data to the transmission terminal. Serial conversion means, serial-parallel conversion means for converting serial received data input from the reception terminal into parallel data in word units, and a sequence in which a plurality of registers each capable of holding 1-word data are connected and stored. In the same manner, a transmission data buffer circuit for transferring the transmission data to the parallel-serial conversion means and a plurality of registers each capable of holding 1-word data are connected, and the reception data sent from the serial-parallel conversion means are sequentially received. It is configured to output data in the order in which it is held and output an interrupt signal to the control means when the received data is full. The control means executes a load instruction to block-transfer the desired data in the memory directly to the transmission data buffer circuit, and a store instruction when the interrupt signal is received. And block transfer the data stored in the reception data buffer circuit directly to a desired area in the memory, and at the time of data transfer based on the load instruction,
A data processing device characterized by being configured to activate a reset means for clearing all areas in the memory from which transfer data has been read to "0" or "1".
し書込み可能なメモリと、シリアルなデータの送受信を
行なうシリアルI/O装置とが形成されてなるデータ処
理装置であって、 上記シリアルI/O装置は、 送信用端子および受信用端子と、 1ワードの並列送信データを直列データに変換して上記
送信用端子へ出力する並直列変換手段と、 上記受信用端子より入力された直列受信データをワード
単位で並列データに変換する直並列変換手段と、 各々1ワードのデータを保持機能なレジスタが複数個接
続され格納された順序で送信データを上記並直列変換手
段へ転送するための送信データバッファ回路と、 同じく各々1ワードのデータを保持可能なレジスタが複
数個接続され上記直並列変換手段から送られてくる受信
データを順次保持し入ってきた順序でデータを出力する
とともに、受信データで一杯になったときに制御手段へ
の割込み信号を出力するように構成された受信データバ
ッファ回路と、を有し、 上記制御手段は、ロード命令を実行して上記メモリ内の
所望のデータを直接上記送信データバッファ回路へブロ
ック転送し、上記割込み信号を受けたときにストア命令
を実行して上記受信データバッファ回路に入ったデータ
を直接上記メモリ内の所望のエリアにブロック転送する
とともに、上記モード命令に基づくデータ転送の際に、
転送データが読み出されたメモリ内のエリアをすべて
“0”もしくは“1”にクリアするリセット手段を起動
させるように構成されてなることを特徴とするデータ処
理装置。2. A data processing device comprising a control means, a readable / writable memory, and a serial I / O device for transmitting / receiving serial data on one semiconductor substrate. The serial I / O device includes a transmission terminal and a reception terminal, parallel-serial conversion means for converting one word of parallel transmission data into serial data and outputting the serial data to the transmission terminal, and input from the reception terminal. Serial-parallel conversion means for converting serial reception data into parallel data word by word, and a plurality of registers each having a function of holding one word of data are connected to transfer the transmission data to the parallel-serial conversion means in the order stored. Of the transmission data buffer circuit and a plurality of registers each of which can hold one word of data, respectively, are connected to sequentially store the reception data sent from the serial-parallel conversion means. And a reception data buffer circuit configured to output an interrupt signal to the control means when the reception data is full, as well as outputting the data in the input order, wherein the control means is Execute a load instruction to block transfer the desired data in the memory directly to the transmission data buffer circuit, and execute a store instruction when receiving the interrupt signal to directly input the data in the reception data buffer circuit. While performing block transfer to a desired area in the memory, at the time of data transfer based on the mode command,
A data processing device characterized by being configured to activate a reset means for clearing all areas in the memory from which transfer data has been read to "0" or "1".
/O装置は該クロック発生回路によって発生されたクロ
ックに同期して動作するように構成されてなることを特
徴とする特許請求の範囲第2項記載のデータ処理装置。3. A serial I circuit comprising a clock generation circuit.
3. The data processing device according to claim 2, wherein the / O device is configured to operate in synchronization with the clock generated by the clock generation circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59049141A JPH0652517B2 (en) | 1984-03-16 | 1984-03-16 | Data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59049141A JPH0652517B2 (en) | 1984-03-16 | 1984-03-16 | Data processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60195657A JPS60195657A (en) | 1985-10-04 |
| JPH0652517B2 true JPH0652517B2 (en) | 1994-07-06 |
Family
ID=12822802
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59049141A Expired - Lifetime JPH0652517B2 (en) | 1984-03-16 | 1984-03-16 | Data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0652517B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0731720B2 (en) * | 1985-05-18 | 1995-04-10 | 日立マクセル株式会社 | IC card reader / writer |
| JPH0719246B2 (en) * | 1988-01-11 | 1995-03-06 | 三洋電機株式会社 | Digital signal processor |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5311539A (en) * | 1976-07-19 | 1978-02-02 | Fujitsu Ltd | Information transfer system |
| JPS5588118A (en) * | 1978-12-27 | 1980-07-03 | Fujitsu Ltd | Buffer read system |
| JPS5720034U (en) * | 1980-07-08 | 1982-02-02 |
-
1984
- 1984-03-16 JP JP59049141A patent/JPH0652517B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60195657A (en) | 1985-10-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20030046514A1 (en) | Single-chip microcomputer | |
| US20050097240A1 (en) | Supercharge message exchanger | |
| JP2001522116A (en) | Bidirectional communication port for digital signal processor | |
| WO1996000940A1 (en) | Pci to isa interrupt protocol converter and selection mechanism | |
| HK21494A (en) | Data processor having dynamic bus sizing | |
| US4730308A (en) | Interface between a computer bus and a serial packet link | |
| JPH076151A (en) | Cpu core bus optimized for access of on-chip memory device | |
| US5710939A (en) | Bidirectional parallel data port having multiple data transfer rates, master, and slave operation modes, and selective data transfer termination | |
| EP0363889A1 (en) | Vector processor using buffer for preparing vector data | |
| US6898659B2 (en) | Interface device having variable data transfer mode and operation method thereof | |
| US6032204A (en) | Microcontroller with a synchronous serial interface and a two-channel DMA unit configured together for providing DMA requests to the first and second DMA channel | |
| US6728813B1 (en) | Method and apparatus for converting non-burst write cycles to burst write cycles across a bus bridge | |
| EP0690382B1 (en) | Computer system with a multiplexed address bus and pipelined write operations | |
| JPH0652517B2 (en) | Data processing device | |
| US6330629B1 (en) | Information processing system | |
| CN118709190A (en) | A TPM chip interface controller and TPM chip | |
| WO2001025941A1 (en) | Multiprocessor computer systems with command fifo buffer at each target device | |
| JPS6027976A (en) | First-in first-out memory device | |
| JP3304395B2 (en) | Data transfer device and data transfer method | |
| EP0380105B1 (en) | Computer interface | |
| JPH1063617A (en) | Serial communication device | |
| JPS62206657A (en) | Inter-processor data transfer system | |
| JPH10207762A (en) | Memory and electronic devices | |
| JPS6347867A (en) | Inter-dual cpu communication system | |
| JPS6342547A (en) | Line control unit |