[go: up one dir, main page]

JPH04192051A - Asynchronous serial transmission/reception circuit - Google Patents

Asynchronous serial transmission/reception circuit

Info

Publication number
JPH04192051A
JPH04192051A JP2326897A JP32689790A JPH04192051A JP H04192051 A JPH04192051 A JP H04192051A JP 2326897 A JP2326897 A JP 2326897A JP 32689790 A JP32689790 A JP 32689790A JP H04192051 A JPH04192051 A JP H04192051A
Authority
JP
Japan
Prior art keywords
data
buffer
fifo
reception
contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2326897A
Other languages
Japanese (ja)
Inventor
Takashi Yamazaki
貴志 山崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2326897A priority Critical patent/JPH04192051A/en
Publication of JPH04192051A publication Critical patent/JPH04192051A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To batch process the accumulated reception data by providing an error flag buffer. CONSTITUTION:When the serial reception is over, a FIFO stores automatically the data on a reception register 1 in a data buffer 2 of the FIFO and also stores the contents of an error flag set in a flag register 4 in a FIFO data buffer 5. Meanwhile a CPU can reads out successively the contents of the buffer 2 via a data bus 3. In this case, the data received first is read out first. In the same way, the CPU can reads out successively the contents of the buffer 5 via the bus 3. In this case, the error flag set when the first data is received is read out first. Thus the reception data group accumulated in the FIFO and their corresponding error flags can be decided and batch-processed.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、半導体装置に属する非同期シリアル送受信
回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an asynchronous serial transmitting/receiving circuit belonging to a semiconductor device.

[従来の技術] 第2図は、従来の先入れ先圧しのバッファメモリ(以下
FIFOと略称する)を有する非同期シリアル送受信回
路(以下UARTと略称する)構成図である。図におい
て、(1)は[1ARTの受信レジスタ、(2)は8バ
イトのF工F’○、(3)はデータバス、(4)はエラ
ーフラグのレジスタである。
[Prior Art] FIG. 2 is a block diagram of an asynchronous serial transmitting/receiving circuit (hereinafter referred to as UART) having a conventional first-in, first-loading buffer memory (hereinafter referred to as FIFO). In the figure, (1) is a reception register of [1ART, (2) is an 8-byte F'○, (3) is a data bus, and (4) is an error flag register.

次に動作について説明する。U ARTが外部から、シ
リアルデータを1ビツトずつ入力すると、受信レジスタ
(1)内のデータは順次シフトされ、8ビツトのデータ
として蓄えられる。また、0ART内のフラグレジスタ
(4)には、パリティ−エラーフラグの他、オーバーラ
ンエラーフラグ、フレーミングエラーフラグなどのエラ
ーフラグかセット、またはリセットされる。
Next, the operation will be explained. When the UART inputs serial data bit by bit from the outside, the data in the reception register (1) is sequentially shifted and stored as 8-bit data. In addition to the parity error flag, error flags such as an overrun error flag and a framing error flag are set or reset in the flag register (4) in 0ART.

次に、シリアル受信か完了すると、FIFOは自動的に
受信レジスタ(1)のデータをFIFO内のデータバッ
ファ(2)に蓄える。このようにして、シリアル受信さ
れたデータは、受信が完了するごとにデータバッファ(
2)にとりこまれる。第2図のものは、データバッファ
は8バイト構成であるので、8バイトまで蓄えることが
できる。
Next, when the serial reception is completed, the FIFO automatically stores the data in the reception register (1) in the data buffer (2) within the FIFO. In this way, serially received data is transferred to the data buffer (
2). In the one shown in FIG. 2, the data buffer has an 8-byte structure, so up to 8 bytes can be stored.

一方、CPt1からはデータバス(3)を介して順次、
データバッファ(2)の内容を読み出すことができるか
、読み出すデータは、最初に受信されたデータから読み
出される。
On the other hand, from CPt1, via the data bus (3),
The contents of the data buffer (2) can be read, and the data to be read is read from the first received data.

〔発明が解決しようとするiI題〕[II problem that the invention seeks to solve]

従来の先入れ先出しのバッファメモリを有する非同期シ
リアル送受信回路は、以上のように構成しているので、
シリアル受信されたデータは数バイト蓄えておくことが
でき、−括して処理することが可能である。しかし、受
信されたデータか正しく送受信されたかどうかは、1つ
のデータが受信完了するごとに、パリティ−エラーフラ
グなどをチエツクしなければ判定できず、その度にcp
Uの処理を必要とするという問題点があった。
The conventional asynchronous serial transmitter/receiver circuit having a first-in, first-out buffer memory is configured as described above.
Several bytes of serially received data can be stored and processed in batches. However, it is impossible to determine whether the received data was transmitted and received correctly without checking the parity error flag each time one piece of data is received.
There was a problem in that it required processing of U.

この発明は、上記のような問題点を解消するためになさ
れたもので、FIFO内にエラーフラグ用のデータバッ
ファを受け、それぞれの受信データに関する受信時のエ
ラー内容を、−括してチエツクできる非同期シリアル送
受信回路を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and it is possible to receive a data buffer for error flags in a FIFO, and check the error contents of each received data at the time of reception. The purpose is to obtain an asynchronous serial transmitter/receiver circuit.

[課題を解決するための手段〕 この発明に係るF’IFOを有するt]ARTは、tr
Iro内にエラーフラグ用の別のデータバッファを有し
、受信されたシリアルデータの他、エフ−フラグ等も自
白に読み呂せるようにしたものであろう [作用] この発明におけるFIFOを有するDARTは、エラー
フラグ用のバッファを設けたことにより、蓄えられた受
信データを一括して処理できるっ〔実施例〕 以下、この発明の一実施例を図について説明する。第1
図において、(1)は0ARTの受信レジスタ、(2)
は8バイトのデータバッファ(FIFO)であり、(3
)はデータバス、(4)はDARTの受信時のエラーフ
ラグ類のレジスタであ′す、パリティ−エラーオーバー
ランエフ−、フレーミングエフ−などがある、(5)は
前記フラグ類のレジスタの内容を格納するためのデータ
バッファ(FIFO)である。
[Means for Solving the Problems] t]ART having F'IFO according to the present invention is tr
The Iro has a separate data buffer for error flags, and in addition to the received serial data, the F-flag etc. can also be read easily [Function] DART with FIFO in this invention By providing a buffer for error flags, the stored received data can be processed all at once. [Embodiment] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. 1st
In the figure, (1) is the 0ART reception register, (2)
is an 8-byte data buffer (FIFO), and (3
) is the data bus, (4) is the register for error flags during DART reception, including parity, error overrun F, framing F, etc., and (5) is the contents of the flag registers. This is a data buffer (FIFO) for storing.

次に動作について説明する。DARTが外部から、シリ
アルデータを1ビツトずつ入力すると、受信レジスタ(
1)内のデータは順次シフトされ、8ビツトのデータと
して蓄えられる。また、0ART内のフラグレジスタ(
4)には、パリティ−エフ−フラグの他、オーバーラン
エラーフラグ、フレーミングエラーフラグなどのエラー
フラグがセットまたはリセットされる。
Next, the operation will be explained. When the DART inputs serial data one bit at a time from the outside, the reception register (
The data in 1) is sequentially shifted and stored as 8-bit data. Also, the flag register in 0ART (
4), error flags such as an overrun error flag and a framing error flag are set or reset in addition to the parity-F flag.

次に、シリアル受信が完了すると、F工E”Oは自動的
に受信レジスタ(1)のデータをFIFO内のデータバ
ッファ(2)に蓄え、フラグレジスタ(4)内のエラー
フラグの内容をフラグ用のFIl’Oデータバッファ(
5)に蓄える。
Next, when serial reception is completed, the F/E"O automatically stores the data in the receive register (1) in the data buffer (2) in the FIFO, and flags the contents of the error flag in the flag register (4). FIl'O data buffer for (
5) Store.

このようにして、シリアル受信されたデータとエラーフ
ラグの内容は、受信が完了するごとにデータバッファ(
2)と(5)にとりこまれる。
In this way, serially received data and the contents of the error flag are transferred to the data buffer (
2) and (5).

一方、CPUからはデータバス(3)を介して順次、デ
ータバッファ(2)の内容を読み出すことができるが続
み出すデータは、最初に受信されたデータから読み出さ
れる。同様に、CPUからデータバス(3)を介して順
次データバッファ(5)の内容を読み出すことができ、
読み出すデータは最初に受信された時のエラーフラグか
ら読み出される。
On the other hand, the content of the data buffer (2) can be sequentially read from the CPU via the data bus (3), but successive data are read from the first received data. Similarly, the contents of the data buffer (5) can be sequentially read from the CPU via the data bus (3),
The data to be read is read from the error flag when first received.

なお、上記実施例では、データバッファ(2)と(5)
からそれぞれ別々に読み出すようにしているが、バスの
本数が足炒れば、同時に受信データとエラーフラグを読
み出すこともできる。
In addition, in the above embodiment, data buffers (2) and (5)
However, if the number of buses is sufficient, it is also possible to read the received data and error flag at the same time.

また、上記実施例では、エラーフラグも読み出せるよう
にしているが、制御ビット等により、受信データのみか
受信データとフラグの両方かの切替を行わせることもで
きる。
Further, in the embodiment described above, the error flag is also readable, but it is also possible to switch between only the received data or both the received data and the flag using a control bit or the like.

[発明の効果] 以上のように、この発明によれば、FIFOにフラグ用
のデータバッファを設けたので、FIFOに蓄えられた
受信データ群とそれに対応するエラーフラグとを一括し
て判断、処理することが可能になる。
[Effects of the Invention] As described above, according to the present invention, since the FIFO is provided with a data buffer for flags, the received data group stored in the FIFO and the error flag corresponding thereto can be collectively judged and processed. It becomes possible to do so.

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

第1図はこの発明の1実施例によるFIFO付0ART
の構成図、第2図は従来のFIFO付UARTの構成図
である。 図において、(1)はUARTの受信レジスタ、(2)
はデータバッファ(F I F O) 、(31はデー
タバス、(41バニラ−グラフ類のレジスタ、(5Nd
エラーグラフ類のデータバッファである。 なお、図中、同一符号は同一、又は相当部分を示す。 代 理 人  大  岩   増  雄第1図
FIG. 1 shows an 0ART with FIFO according to an embodiment of the present invention.
FIG. 2 is a block diagram of a conventional UART with FIFO. In the figure, (1) is the UART reception register, (2)
is a data buffer (FIFO), (31 is a data bus, (41 is a vanilla graph type register, (5Nd
This is a data buffer for error graphs. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Agent Masuo Oiwa Figure 1

Claims (1)

【特許請求の範囲】[Claims] 先入れ先出しのバッファメモリを有する非同期シリアル
送受信回路において、先入れ先出しのバッファメモリ内
に非同期シリアル送受信回路で受信したデータとパリテ
ィーフラグ等のエラーフラグ類を格納する領域を設けた
ことを特徴とする非同期シリアル送受信回路。
An asynchronous serial transmitting/receiving circuit having a first-in, first-out buffer memory, characterized in that an area for storing data received by the asynchronous serial transmitting/receiving circuit and error flags such as a parity flag is provided in the first-in, first-out buffer memory. .
JP2326897A 1990-11-27 1990-11-27 Asynchronous serial transmission/reception circuit Pending JPH04192051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2326897A JPH04192051A (en) 1990-11-27 1990-11-27 Asynchronous serial transmission/reception circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2326897A JPH04192051A (en) 1990-11-27 1990-11-27 Asynchronous serial transmission/reception circuit

Publications (1)

Publication Number Publication Date
JPH04192051A true JPH04192051A (en) 1992-07-10

Family

ID=18192971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2326897A Pending JPH04192051A (en) 1990-11-27 1990-11-27 Asynchronous serial transmission/reception circuit

Country Status (1)

Country Link
JP (1) JPH04192051A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762283A1 (en) * 1995-08-11 1997-03-12 AT&T IPM Corp. Flag detection for first-in first-out memories

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0762283A1 (en) * 1995-08-11 1997-03-12 AT&T IPM Corp. Flag detection for first-in first-out memories

Similar Documents

Publication Publication Date Title
US6553031B1 (en) Communication node apparatus with routing tables in cache memories
EP0239937B1 (en) Serial communications controller
KR100712242B1 (en) Method for automatically sending acknowledgment signal frames from the CAN device and the CAN device
US6366968B1 (en) Physical write packets processing when posted write error queue is full, with posted write error queue storing physical write requests when posted write packet fails
JP2717112B2 (en) Dual port timing controller
EP0260693B1 (en) Program mode access control system
JP2003509787A (en) Semaphore encoding method for ensuring data integrity in a CAN microcontroller and a CAN microcontroller performing the method
US20040131074A1 (en) Method and device for managing transmit buffers
EP0639016A2 (en) Multi-nodal data processing system
US5832233A (en) Network coupler for assembling data frames into datagrams using intermediate-sized data parcels
JPH04192051A (en) Asynchronous serial transmission/reception circuit
JP2002521942A (en) Memory device and method of operating memory device
JP2724322B2 (en) General-purpose asynchronous receiver-transmitter
JPH0744567B2 (en) Communication interface device
US6178462B1 (en) Protocol for using a PCI interface for connecting networks
KR100311619B1 (en) How to send and receive messages between processors in a distributed processing system
JP2924783B2 (en) Remote read processing method and device
CN100553227C (en) Network communication device and method thereof
JP3044653B2 (en) Gateway device
JPH02181248A (en) Direct memory access system
JP3887059B2 (en) Data writing method, data reading method, and memory circuit
KR100339200B1 (en) Apparatus and method using dynamic buffer handling for processing message
JPS6379439A (en) Serial communication equipment
JP3568686B2 (en) Information exchange method in information processing device
JP4068263B2 (en) Cell transmission circuit