JPH09297732A - Serial i/o - Google Patents

Serial i/o

Info

Publication number
JPH09297732A
JPH09297732A JP11069496A JP11069496A JPH09297732A JP H09297732 A JPH09297732 A JP H09297732A JP 11069496 A JP11069496 A JP 11069496A JP 11069496 A JP11069496 A JP 11069496A JP H09297732 A JPH09297732 A JP H09297732A
Authority
JP
Japan
Prior art keywords
transmission
reception
buffer
signal
buffers
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
JP11069496A
Other languages
Japanese (ja)
Other versions
JP3698483B2 (en
Inventor
Takeshi Ichikawa
武志 市川
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP11069496A priority Critical patent/JP3698483B2/en
Publication of JPH09297732A publication Critical patent/JPH09297732A/en
Application granted granted Critical
Publication of JP3698483B2 publication Critical patent/JP3698483B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a serial I/O which can make effective use of a circuit by properly allocating remaining buffers even when one or none of transmitting and receiving buffers is being used. SOLUTION: The serial I/O 50 has the transmitting and receiving buffers (B60-B63) 51-54. This serial I/O is equipped with a transmitting and receiving buffer controller (CON20) 56 which uniquelly allocates transmitting buffers and receiving buffers, by specifying the number of transmitting buffers and the number of receiving buffers, and the selectors (S40-S43) 55-19 which selects one of the transmitting and receiving buffers (B60-B63) 51-54, according to the allocation indication of the transmitting and receiving buffers (B60-B63) 51-54 made by the transmitting and receiving buffer controller (CON20) 56, and reads and writes the specific transmitting and receiving buffer, and the data set in the transmitting and receiving buffer controller (CON20) 56 are altered.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、マイクロコンピュ
ータに内蔵されるシリアルI/Oに係り、詳細には、送
受信バッファをもつシリアルI/Oはマイクロコントロ
ーラ等に内蔵され、他のマイクロコントローラ等とシリ
アルにデータの送受信を行うシリアルI/Oに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial I / O incorporated in a microcomputer, and more specifically, a serial I / O having a transmission / reception buffer is incorporated in a microcontroller or the like and is combined with another microcontroller or the like. The present invention relates to a serial I / O that serially transmits / receives data.

【0002】[0002]

【従来の技術】マイクロコンピュータでは、データ入出
力用の周辺装置を接続するインターフェースとして各種
I/Oを内蔵している。シリアルI/Oはビットシリア
ルな転送を行うインターフェースであり、キーボードや
プリンタ、RS−232C規格等の通信に使用される。
2. Description of the Related Art A microcomputer incorporates various I / O as an interface for connecting peripheral devices for data input / output. The serial I / O is an interface that performs bit-serial transfer and is used for communication such as a keyboard, a printer, and RS-232C standard.

【0003】従来の複数の送受信バッファをもつシリア
ルI/Oは、マイクロコントローラ等に内蔵され、他の
マイクロコントローラ等とシリアルにデータの送受信を
行っている。
A conventional serial I / O having a plurality of transmission / reception buffers is built in a microcontroller or the like and transmits / receives data serially to / from another microcontroller or the like.

【0004】従来の複数の送受信バッファをもつシリア
ルΙ/Oについて図15〜図19を用いて説明する。
A conventional serial I / O having a plurality of transmission / reception buffers will be described with reference to FIGS.

【0005】図15は従来のシリアルΙ/Oの構成を示
すブロック図である。シリアルΙ/Oは、複数ビットの
複数ビットのデータにより送受信を行っている。ここで
は8ビットのデータとして説明する。
FIG. 15 is a block diagram showing the configuration of a conventional serial I / O. The serial I / O transmits / receives data of a plurality of bits. Here, the description will be made with 8-bit data.

【0006】図15において、シリアルI/O10は、
受信シフトレジスタ(RSF1)11、送信シフトレジ
スタ(TSF3)12、受信バッファ(B50,B51)
13,14、送信バッファ(B52,B53)15,1
6、セレクタ(S41,S42,S43)17,18,1
9、受信バッファコントローラ(CON21)20及び
送信バッファコントローラ(CON22)21から構成
されている。
In FIG. 15, the serial I / O 10 is
Reception shift register (RSF1) 11, transmission shift register (TSF3) 12, reception buffer (B50, B51)
13, 14, transmission buffers (B52, B53) 15, 1
6, selectors (S41, S42, S43) 17, 18, 1
9, a reception buffer controller (CON21) 20 and a transmission buffer controller (CON22) 21.

【0007】上記受信シフトレジスタ(RSF1)11
は、シリアル転送されたデータをシフトして8ビットの
データとして保持する。
The reception shift register (RSF1) 11
Shifts the serially transferred data and holds it as 8-bit data.

【0008】上記送信シフトレジスタ(TSF3)12
は、8ビットの転送データを1ビットずつシフトしてシ
リアル転送するレジスタである。
The transmission shift register (TSF3) 12
Is a register that shifts 8-bit transfer data bit by bit and transfers serially.

【0009】上記受信バッファ(B50,B51)13,
14は、マイクロコントローラの設定によりバッファの
数を1個若しくは2個に設定できる受信データの格納バ
ッファである。
The receiving buffers (B50, B51) 13,
Reference numeral 14 is a receive data storage buffer in which the number of buffers can be set to one or two according to the setting of the microcontroller.

【0010】上記送信バッファ(B52,B53)15,
16は、マイクロコントローラの設定によりバッファの
数を1個若しくは2個に設定できる送信データの格納バ
ッファである。
The transmission buffers (B52, B53) 15,
Reference numeral 16 is a transmission data storage buffer in which the number of buffers can be set to one or two according to the setting of the microcontroller.

【0011】上記セレクタ(S41)17は、マイクロ
コントローラに出力するデータを格納する受信バッファ
(B50,B51)13,14を選択する。
The selector (S41) 17 selects the reception buffers (B50, B51) 13, 14 for storing the data to be output to the microcontroller.

【0012】上記セレクタ(S42)18は、マイクロ
コントローラから入力される送信データを格納する送信
バッファ(B52,B53)15,16を選択する。
The selector (S42) 18 selects the transmission buffers (B52, B53) 15, 16 for storing the transmission data input from the microcontroller.

【0013】上記セレクタ(S43)19は、送信シフ
トレジスタ(TSF3)12にデータをセットする送信
バッファ(B52,B53)15,16を選択する。
The selector (S43) 19 selects the transmission buffers (B52, B53) 15, 16 for setting data in the transmission shift register (TSF3) 12.

【0014】上記受信バッファコントローラ(CON2
1)20は、受信シフトレジスタ(RSF1)11で受
信したデータを複数の受信バッファ(B50,B51)1
3,14に割り付けたり、受信シフトレジスタ(RSF
1)11の動作を許可する制御を行う。
The reception buffer controller (CON2)
1) 20 is for receiving the data received by the reception shift register (RSF1) 11 into a plurality of reception buffers (B50, B51) 1
3, 14 and receive shift register (RSF
1) The control for permitting the operation 11 is performed.

【0015】上記送信バッファコントローラ(CON2
2)21は、複数の送信バッファ(B52,B53)1
5,16から送信シフトレジスタ(TSF3)12にセ
ットする送信データの割り付けを行ったり、送信シフト
レジスタ(TSF3)12の動作を許可する制御を行
う。
The transmission buffer controller (CON2)
2) 21 is a plurality of transmission buffers (B52, B53) 1
Transmission data to be set in the transmission shift register (TSF3) 12 from 5 and 16 is allocated, and control for permitting the operation of the transmission shift register (TSF3) 12 is performed.

【0016】以下、上記シリアルI/O10を構成する
各回路について具体的に説明する。まず、上記受信シフ
トレジスタ(RSF1)11について述べる。
Each circuit constituting the serial I / O 10 will be specifically described below. First, the reception shift register (RSF1) 11 will be described.

【0017】入力信号としてシリアル受信データ10
1、受信クロック102、受信許可信号103があり、
出力信号として受信データ信号104、受信完了信号1
05がある。
Serial reception data 10 as an input signal
1, the reception clock 102, the reception permission signal 103,
Reception data signal 104 and reception completion signal 1 as output signals
There is 05.

【0018】シリアル受信データ101は、シリアルデ
ータ入力信号を示す。また、受信クロック信号102
は、シリアル受信クロック信号を示し、本クロックによ
りシリアル受信データ101をサンプルする。
Serial reception data 101 represents a serial data input signal. Also, the reception clock signal 102
Indicates a serial reception clock signal, and the serial reception data 101 is sampled by this clock.

【0019】受信許可信号103は、シリアル受信動作
を許可する信号を示し、“0”のとき受信動作禁止、
“1”のとき受信動作許可を示す。
The reception permission signal 103 is a signal for permitting the serial reception operation. When it is "0", the reception operation is prohibited,
When it is “1”, it indicates that the receiving operation is permitted.

【0020】また、受信データ信号104は、受信シフ
トレジスタ(RSF1)11でセットされた値を受信バ
ッファ(B50,B51)13,14に出力するための8
ビットのデータ信号である。
The received data signal 104 is used to output the value set by the receive shift register (RSF1) 11 to the receive buffers (B50, B51) 13, 14 (8).
It is a bit data signal.

【0021】受信完了信号105は、受信シフトレジス
タ(RSF1)11に8ビットのデータがセットされた
ことを示す受信完了信号である。
The reception completion signal 105 is a reception completion signal indicating that 8-bit data has been set in the reception shift register (RSF1) 11.

【0022】上記送信シフトレジスタ(TSF3)12
について説明する。
The transmission shift register (TSF3) 12
Will be described.

【0023】入力信号として送信データ116、送信ク
ロック信号115、送信許可信号117があり、出力信
号としてシリアル送信データ信号114、送信完了信号
118がある。
There are transmission data 116, a transmission clock signal 115, and a transmission permission signal 117 as input signals, and a serial transmission data signal 114 and a transmission completion signal 118 as output signals.

【0024】送信データ116は、8ビットのデータ入
力信号を示す。また、送信クロック信号115は、シリ
アル送信クロック信号を示し、本クロックによりセット
された送信データ116を出力する。また、送信許可信
号117は、シリアル送信動作を許可する信号を示し、
“0”のとき送信動作禁止、“1”のとき送信動作許可
を示す。
The transmission data 116 represents an 8-bit data input signal. Further, the transmission clock signal 115 indicates a serial transmission clock signal, and outputs the transmission data 116 set by this clock. Further, the transmission permission signal 117 indicates a signal for permitting the serial transmission operation,
"0" indicates that the transmission operation is prohibited, and "1" indicates that the transmission operation is permitted.

【0025】また、シリアル送信データ信号114は、
送信シフトレジスタ(TSF3)12でセットされた値
をシリアルデータとして出力する信号である。
Further, the serial transmission data signal 114 is
This is a signal for outputting the value set in the transmission shift register (TSF3) 12 as serial data.

【0026】送信完了信号118は、送信シフトレジス
タ(TSF3)12に8ビットのデータがセットされた
ことを示す送信完了信号である。
The transmission completion signal 118 is a transmission completion signal indicating that 8-bit data has been set in the transmission shift register (TSF3) 12.

【0027】上記受信バッファコントローラ(CON2
1)20について説明する。
The reception buffer controller (CON2)
1) 20 will be described.

【0028】入力信号として受信完了信号105、リー
ド/ライト信号106、受信バッファコントローラセレ
クト信号1071、データ信号119があり、出力信号
として受信許可信号103、セレクト信号1091、受
信データリード要求信号110、受信バッファ書き込み
許可信号1080,1081がある。
There are a reception completion signal 105, a read / write signal 106, a reception buffer controller select signal 1071, and a data signal 119 as input signals, and a reception permission signal 103, a select signal 1091, a reception data read request signal 110, and a reception signal as output signals. There are buffer write enable signals 1080 and 1081.

【0029】受信完了信号105は、受信シフトレジス
タ(RSF1)11に8ビットのデータがセットされた
ことを示す受信完了信号である。リード/ライト信号1
06は、マイクロコントローラからのリード/ライト信
号である。
The reception completion signal 105 is a reception completion signal indicating that 8-bit data has been set in the reception shift register (RSF1) 11. Read / write signal 1
06 is a read / write signal from the microcontroller.

【0030】受信バッファコントローラセレクト信号1
071は、マイクロコントローラからのリード/ライト
信号106が受信バッファコントローラ(CON21)
20に対して有効であることを示す信号である。本信号
が有効であり、リード/ライト信号がライトを示してい
るときコントロールデータがセットされ受信動作が許可
される。
Receive buffer controller select signal 1
Reference numeral 071 indicates that the read / write signal 106 from the microcontroller is the reception buffer controller (CON21).
It is a signal indicating that 20 is valid. When this signal is valid and the read / write signal indicates write, the control data is set and the receiving operation is permitted.

【0031】また、データ信号119は、受信バッファ
数、受信動作許可のデータ信号である。
The data signal 119 is a data signal for permitting the number of receiving buffers and receiving operation.

【0032】受信許可信号103は、受信動作を許可す
ることを示す信号であり、内部にこの信号を保持する回
路を有する。
The reception permission signal 103 is a signal indicating that the reception operation is permitted, and has a circuit for holding this signal inside.

【0033】セレクト信号1091は、受信データをセ
ットする受信バッファ(B50,B51)13,14を選
択する信号である。“0”のときΒ50“1”のときΒ
51を示す。
The select signal 1091 is a signal for selecting the reception buffers (B50, B51) 13 and 14 for setting the reception data. Β when it is “0” 50 Β when it is “1”
51 is shown.

【0034】受信データリード要求信号110は、受信
バッファΒ50〜1に受信データがセットされたことを
示す信号である。この要求が発生することによりマイク
ロコントローラからリード要求が発生する。
The reception data read request signal 110 is a signal indicating that reception data has been set in the reception buffers 50-1. When this request is generated, a read request is generated from the microcontroller.

【0035】受信バッファ書き込み許可信号1080,
1081は、受信データを受信バッファ(B50,B5
1)13,14に書き込みを許可する信号である。受信
シフトレジスタが受信完了したときに“1”となる。
Receive buffer write enable signal 1080,
Reference numeral 1081 denotes a reception buffer for receiving data (B50, B5
1) A signal for permitting writing to 13 and 14. It becomes "1" when the reception shift register completes the reception.

【0036】上記受信バッファコントローラ(CON2
1)20の内部構成について図16を用いて更に詳細に
説明する。
The reception buffer controller (CON2)
1) The internal structure of 20 will be described in more detail with reference to FIG.

【0037】図16は、上記受信バッファコントローラ
(CON21)20の内部構成を示す図であり、この図
において、受信バッファコントローラ(CON21)2
0は、受信バッファ数設定レジスタ(SREG210)3
0、受信バッファセレクトコントローラ(CON201)
31及び受信許可レジスタ(SEREG211)32から
構成される。
FIG. 16 is a diagram showing an internal configuration of the reception buffer controller (CON21) 20. In this figure, the reception buffer controller (CON21) 2 is shown.
0 is the receive buffer number setting register (SREG210) 3
0, receive buffer select controller (CON201)
31 and a reception permission register (SEREG 211) 32.

【0038】上記受信バッファ数設定レジスタ(SRE
G210)30は、受信バッファ数を設定するレジスタで
ある。受信バッファ数設定レジスタ(SREG210)3
0は、リード/ライト信号106、受信バッファコント
ロールセレクト信号1071、データ信号119により
セットされ、“0”のとき受信バッファ数1個、“1”
のとき受信バッファ数2個を示す。
The reception buffer number setting register (SRE
G2 10) 30 is a register for setting the number of receiving buffers. Receive buffer number setting register (SREG210) 3
0 is set by the read / write signal 106, the reception buffer control select signal 1071, and the data signal 119. When it is "0", the number of reception buffers is 1, "1".
Indicates that the number of reception buffers is two.

【0039】上記受信バッファセレクトコントローラ
(CON201)31は、受信バッファ書き込み許可信号
を出力する回路であり、受信バッファ数設定レジスタ
(SREG210)30の設定により受信バッファの書き
込み許可信号1081,1082を制御する。
The receive buffer select controller (CON201) 31 is a circuit for outputting a receive buffer write enable signal, and controls the receive buffer write enable signals 1081 and 1082 by setting the receive buffer number setting register (SREG210) 30. .

【0040】上記受信許可レジスタ(SEREG211)
32は、受信動作の許可/禁止を制御するレジスタであ
る。
The reception permission register (SEREG211)
Reference numeral 32 is a register for controlling permission / prohibition of the reception operation.

【0041】上記送信バッファコントローラ(CON2
2)21について説明する。
The transmission buffer controller (CON2)
2) 21 will be described.

【0042】図15に戻って、入力信号として送信完了
信号118、リード/ライト信号106、送信バッファ
コントローラセレクト信号1072があり、出力信号と
して送信許可信号117、セレクト信号1092,10
93、送信データライト要求信号111がある。
Returning to FIG. 15, there are a transmission completion signal 118, a read / write signal 106 and a transmission buffer controller select signal 1072 as input signals, and a transmission permission signal 117 and select signals 1092, 10 as output signals.
There is a transmission data write request signal 111.

【0043】送信完了信号118は、送信シフトレジス
タ(TSF3)12に8ビットのデータがセットされた
ことを示す送信完了信号である。
The transmission completion signal 118 is a transmission completion signal indicating that 8-bit data has been set in the transmission shift register (TSF3) 12.

【0044】リード/ライト信号106は、マイクロコ
ントローラからのリード/ライト信号である。
The read / write signal 106 is a read / write signal from the microcontroller.

【0045】送信バッファコントローラセレクト信号1
072は、マイクロコントローラからのリード/ライト
信号106が送信バッファコントローラ(CON22)
21,に対して有効であることを示す信号である。本信
号が有効であり、リード/ライト信号106がライトを
示しているときコントロールデータがセットされ送信動
作が許可される。
Transmit buffer controller select signal 1
072 is a transmission buffer controller (CON22) for which the read / write signal 106 from the microcontroller is transmitted.
21 is a signal indicating that it is effective. When this signal is valid and the read / write signal 106 indicates a write, the control data is set and the transmission operation is permitted.

【0046】送信許可信号117は、シリアル送信動作
を許可する信号を示し、“0”のとき送信動作禁止、
“1”のとき送信動作許可を示す。
The transmission permission signal 117 indicates a signal for permitting the serial transmission operation. When it is "0", the transmission operation is prohibited,
When it is "1", it indicates that the transmission operation is permitted.

【0047】セレクト信号1092は、送信データをセ
ットする送信バッファ(B52,B53)15,16を選
択する信号であり、“0”のとき送信バッファ(B5
2)15、“1”のとき送信バッファ(B53)16を示
す。
The select signal 1092 is a signal for selecting the transmission buffers (B52, B53) 15, 16 for setting the transmission data, and when it is "0", the transmission buffer (B5
2) 15, the transmission buffer (B53) 16 is shown when "1".

【0048】セレクト信号1093は、送信シフトレジ
スタ(TSF3)12にセットする送信バッファ(B5
2,B53)15,16を選択する信号であり、“0”の
とき送信バッファ(B52)15、“1”のとき送信バ
ッファ(B53)16を示す。送信データライト要求信
号111は、送信バッファ(B52,B53)15,16
に送信データの書き込みをマイクロコントローラに要求
する信号である。
The select signal 1093 is set in the transmission shift register (TSF3) 12 in the transmission buffer (B5).
2, B53) 15 and 16 are selected. The signal indicates a transmission buffer (B52) 15 when "0" and a transmission buffer (B53) 16 when "1". The transmission data write request signal 111 is transmitted to the transmission buffers (B52, B53) 15, 16
This is a signal that requests the microcontroller to write transmission data.

【0049】上記送信バッファコントローラ(CON2
2)21の内部構成について図17を用いて更に詳細に
説明する。
The transmission buffer controller (CON2)
2) The internal structure of 21 will be described in more detail with reference to FIG.

【0050】図17は、上記送信バッファコントローラ
(CON22)21の内部構成を示す図であり、この図
において、送信バッファコントローラ(CON22)2
1は、送信バッファ数設定レジスタ(TREG220)4
0、送信バッファセレクトコントローラ(CON202)
41及び送信許可レジスタ(TEREG221)42から
構成される。
FIG. 17 is a diagram showing the internal configuration of the transmission buffer controller (CON22) 21. In this figure, the transmission buffer controller (CON22) 2 is shown.
1 is a transmission buffer number setting register (TREG220) 4
0, transmission buffer select controller (CON202)
41 and a transmission permission register (TEREG2 21) 42.

【0051】上記送信バッファ数設定レジスタ(TRE
G220)40は、送信バッファ数を設定するレジスタで
ある。送信バッファ数設定レジスタ(TREG220)4
0は、リード/ライト信号106、送信バッファコント
ロールセレクト信号1072、データ信号119により
セットされ、“0”のとき送信バッファ数1個、“1”
のとき送信バッファ数2個を示す。
The transmission buffer number setting register (TRE
G2 20) 40 is a register for setting the number of transmission buffers. Transmit buffer number setting register (TREG220) 4
0 is set by the read / write signal 106, the transmission buffer control select signal 1072, and the data signal 119. When it is "0", the number of transmission buffers is 1, "1".
Indicates that the number of transmission buffers is two.

【0052】上記送信バッファコントローラ(CON2
02)41は、セレクト信号1092,1093を出力する
回路であり、送信バッファ数設定レジスタ(TREG2
20)40の設定により送信バッファの書き込み許可信号
を制御する。
The transmission buffer controller (CON2)
02) 41 is a circuit which outputs select signals 1092 and 1093, and is a transmission buffer number setting register (TREG2
20) Control the write enable signal of the transmission buffer by setting 40.

【0053】上記送信許可レジスタ(TEREG221)
42は、送信動作の許可/禁止を制御するレジスタであ
る。
The transmission permission register (TEREG221)
Reference numeral 42 is a register for controlling permission / prohibition of the transmission operation.

【0054】図15に戻って、上記受信バッファ(B5
0,B51)13,14について説明する 受信バッファ(B50,B51)13,14は、8ビット
のバッファである。入力信号として受信データ信号10
4、書き込み許可信号1080,1081があるが、入力
信号の説明については省略する。出力信号としては受信
データ信号1120,1121がある。受信データ信号1
120,1121は、受信バッファ書き込み許可信号10
80,1081の“1”の入力により受信データ信号10
4の値をセットする。
Returning to FIG. 15, the reception buffer (B5
0, B51) 13, 14 will be described. The reception buffers (B50, B51) 13, 14 are 8-bit buffers. Received data signal 10 as input signal
4. There are write enable signals 1080 and 1081, but description of the input signals is omitted. Output signals include received data signals 1120 and 1121. Received data signal 1
120 and 1121 are reception buffer write enable signals 10
Received data signal 10 by inputting "1" of 80, 1081
Set the value of 4.

【0055】上記送信バッファ(B52,B53)15,
16について説明する。
The transmission buffers (B52, B53) 15,
16 will be described.

【0056】送信バッファ(B52,B53)15,16
は、8ビットのバッファである。入力信号として送信デ
ータ信号1131、書き込み許可信号1082,1083
があり、出力信号として送信データ信号1122,11
23がある。送信データ信号1122,1123は、書き
込み許可信号1082,1083の“1”の入力により送
信データ信号1131の値をセットする。
Transmission buffers (B52, B53) 15, 16
Is an 8-bit buffer. A transmission data signal 1131 and write permission signals 1082 and 1083 as input signals
And there is a transmission data signal 1122, 11 as an output signal.
There are 23. The transmission data signals 1122 and 1123 set the value of the transmission data signal 1131 by inputting "1" of the write permission signals 1082 and 1083.

【0057】上記セレクタ(S41)17について説明
する。
The selector (S41) 17 will be described.

【0058】入力信号としてリード/ライト信号10
6、セレクト信号1091、データ信号1120,112
1があり、出力信号として受信データ信号1130があ
る。
Read / write signal 10 as an input signal
6, select signal 1091, data signals 1120 and 112
1 and the received data signal 1130 as an output signal.

【0059】この受信データ信号1130は、受信バッ
ファコントローラ(CON21)20からのセレクト信
号1091により受信バッファ(B50,B51)13,
14を選択し、マイクロコントローラへ受信データを出
力する。ここで、セレクト信号1091が“0”のとき
デ一タ信号1120の値を、またセレクト信号1091が
“1”のときデータ信号1121の値を出力する。
The received data signal 1130 is received by the receive buffer (B50, B51) 13 by the select signal 1091 from the receive buffer controller (CON21) 20.
14 is selected and the received data is output to the microcontroller. Here, the value of the data signal 1120 is output when the select signal 1091 is "0", and the value of the data signal 1121 is output when the select signal 1091 is "1".

【0060】上記セレクタ(S42)18について説明
する。
The selector (S42) 18 will be described.

【0061】入力信号としてリード/ライト信号10
6、セレクト信号1092があり、出力信号として送信
バッファセレクト信号1082,1083がある。送信バ
ッファセレクト信号1082,1083は、送信バッファ
(B52,B53)15,16の書き込み許可信号であ
る。
Read / write signal 10 as an input signal
6, there are select signals 1092, and there are transmission buffer select signals 1082 and 1083 as output signals. The transmission buffer select signals 1082 and 1083 are write enable signals for the transmission buffers (B52, B53) 15 and 16.

【0062】上記セレクタ(S43)19について説明
する。
The selector (S43) 19 will be described.

【0063】入力信号として送信データ信号1122,
1123、セレクト信号1093があり、出力信号として
送信データ信号116がある。送信データ信号116
は、送信バッファ(B52,B53)15,16からのデ
ータを選択して送信シフトレジスタ(TSF3)12に
値を出力する。
A transmission data signal 1122 as an input signal,
1123 and a select signal 1093, and a transmission data signal 116 as an output signal. Transmission data signal 116
Selects data from the transmission buffers (B52, B53) 15, 16 and outputs the value to the transmission shift register (TSF3) 12.

【0064】図18及び図19は上記シリアルΙ/O1
0の信号のタイミングチャートであり、図18はシリア
ルΙ/Oの受信時のタイミングチャート、図19は送信
時のタイミングチャートを示す。
18 and 19 show the above serial I / O1.
18 is a timing chart of a signal of 0, FIG. 18 shows a timing chart at the time of reception of serial I / O, and FIG. 19 shows a timing chart at the time of transmission.

【0065】以下に送信バッファ数を2バイト、受信バ
ッファ数を2バイトに設定した場合を例にとり送受信時
の動作を説明する。
The operation during transmission / reception will be described below by taking the case where the number of transmission buffers is set to 2 bytes and the number of reception buffers is set to 2 bytes as an example.

【0066】まず、図18を参照して受信時の動作につ
いて説明する。
First, the operation at the time of reception will be described with reference to FIG.

【0067】受信バッファコントローラセレクト信号1
071とリード/ライト信号106より受信バッファコ
ントローラ(CON21)20内部の受信許可レジスタ
(SEREG211)32の値が“1”にセットされる。
これにより受信動作許可信号103に“1”が出力され
る。
Receive buffer controller select signal 1
From 071 and the read / write signal 106, the value of the reception permission register (SEREG211) 32 in the reception buffer controller (CON21) 20 is set to "1".
As a result, “1” is output to the reception operation permission signal 103.

【0068】受信クロック102の立ち上がりによりシ
リアル受信データ101がサンプルされ、8ビットの受
信データが受信シフトレジスタ(RSF1)11にセッ
トされる。
Serial reception data 101 is sampled at the rising edge of the reception clock 102, and 8-bit reception data is set in the reception shift register (RSF1) 11.

【0069】受信シフトレジスタ(RSF1)11より
出力される受信完了信号105が“1”にセットされる
ことにより受信バッファコントローラ(CON21)2
0から受信バッファ(B50)13の書き込み許可信号
1080が“1”にセットされる。これにより受信バッ
ファ(B50)13に受信シフトレジスタ(RSF1)
11の8ビットデータ“ΑΑh”がセットされ受信デー
タリード要求信号110が“1”にセットされる。
When the reception completion signal 105 output from the reception shift register (RSF1) 11 is set to "1", the reception buffer controller (CON21) 2
The write enable signal 1080 of the receive buffer (B50) 13 from 0 is set to "1". As a result, the reception shift register (RSF1) is stored in the reception buffer (B50) 13.
11-bit 8-bit data "Ah" is set and the received data read request signal 110 is set to "1".

【0070】次の受信クロック102の立ち上がりによ
りシリアル受信データ101がサンプルされ、8ビット
の受信データが受信シフトレジスタ(RSF1)11に
セットされる。受信シフトレジスタ(RSF1)11か
らの受信完了信号105が“1”にセットされることに
より、受信バッファコントローラ(CON21)20か
ら受信バッファ(Β51)14の書き込み許可信号10
81が“1”にセットされる。
The serial reception data 101 is sampled at the next rise of the reception clock 102, and the 8-bit reception data is set in the reception shift register (RSF1) 11. When the reception completion signal 105 from the reception shift register (RSF1) 11 is set to "1", the write enable signal 10 of the reception buffer controller (CON21) 20 to the reception buffer (B51) 14 is set.
81 is set to "1".

【0071】これにより受信バッファ(Β51)14に
受信シフトレジスタ(RSF1)11の8ビットデータ
“ΒBh”がセットされ、受信データリード要求信号1
10が“1”にセットされる。
As a result, the 8-bit data "Bh" of the reception shift register (RSF1) 11 is set in the reception buffer (B51) 14, and the reception data read request signal 1
10 is set to "1".

【0072】受信バッファ数を1バイトに設定したとき
は、受信バッファ(B50)13のみ動作させ、受信バ
ッファ(B51)14については未使用となる。よっ
て、受信したデータは受信バッファ(B50)13のみ
にセットされる。
When the number of reception buffers is set to 1 byte, only the reception buffer (B50) 13 is operated and the reception buffer (B51) 14 is unused. Therefore, the received data is set only in the reception buffer (B50) 13.

【0073】次に、図19を参照して送信時の動作につ
いて説明する。
Next, the operation during transmission will be described with reference to FIG.

【0074】送信バッファコントローラセレクト信号1
072とリード/ライト信号106、送信バッファセレ
クト信号1092により送信データ1131の値“AA
h”が送信バッファ(B52)15に書き込まれる。送
信バッファ(B52)15にデータがセットされること
により送信バッファコントローラ(CON22)21か
らのセレクト信号1093により送信シフトレジスタ
(TSF3)12に送信バッファ(B52)15の値“A
Ah”がセットされる。
Transmit buffer controller select signal 1
072, the read / write signal 106, and the transmission buffer select signal 1092, the value of the transmission data 1131 is "AA".
"h" is written in the transmission buffer (B52) 15. The data is set in the transmission buffer (B52) 15 so that the transmission shift register (TSF3) 12 receives the selection signal 1093 from the transmission buffer controller (CON22) 21. (B52) Value of 15 "A
Ah "is set.

【0075】送信シフトレジスタ(TSF3)12にセ
ットされた値が送信クロック115に同期して8ビット
の送信データがシリアル送信データ114として出力さ
れる。
The value set in the transmission shift register (TSF3) 12 is synchronized with the transmission clock 115, and 8-bit transmission data is output as serial transmission data 114.

【0076】次に、送信バッファコントローラセレクト
信号1072が“1”に、リード/ライト信号106が
“0”にセットされると、送信バッファセレクト信号1
092が出力され、送信バッファ書き込み許可信号10
83が“1”にセットされる。
Next, when the transmission buffer controller select signal 1072 is set to "1" and the read / write signal 106 is set to "0", the transmission buffer select signal 1 is set.
092 is output and the transmission buffer write enable signal 10
8 3 is set to “1”.

【0077】これにより送信データ1131の値“ΒΒ
h”が送信バッファ(B53)16に書き込まれる。送
信バッファ(B53)16にデータがセットされること
で送信バッファコントローラ(CON22)21からの
セレクト信号109によって送信シフトレジスタ(TS
F3)12に送信バッファ(B53)16の値“BBh”
がセットされる。
As a result, the value “ΒΒ” of the transmission data 1131 is
h ”is written in the transmission buffer (B53) 16. When data is set in the transmission buffer (B53) 16, a transmission shift register (TS) is transmitted by the select signal 109 from the transmission buffer controller (CON22) 21.
F3) The value of the transmission buffer (B53) 16 is "BBh" in 12
Is set.

【0078】送信シフトレジスタ(TSF3)12にセ
ットされた値が送信クロック115に同期して8ビット
の送信データが114から出力される。
The value set in the transmission shift register (TSF3) 12 is synchronized with the transmission clock 115, and 8-bit transmission data is output from 114.

【0079】送信バッファ数を1バイトに設定したとき
は、送信バッファ(B52)15のみ動作させ送信バッ
ファ(B53)16については未使用となる。よって、
送信したデータは送信バッファ(B52)15のみにセ
ットされる。
When the number of transmission buffers is set to 1 byte, only the transmission buffer (B52) 15 is operated and the transmission buffer (B53) 16 is unused. Therefore,
The transmitted data is set only in the transmission buffer (B52) 15.

【0080】[0080]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のシリアルI/Oのデータ転送には以下のよう
な問題点があった。
However, such conventional serial I / O data transfer has the following problems.

【0081】すなわち、受信バッファ(B50,B51)
13,14と送信バッファ(B52,B53)15,16
が固定で割り付けられているため、送信バッファを1個
又は未使用のとき残りの送信バッファが未使用になるた
め回路が有効に活用されない。同様に、受信バッファ
(B50,B51)13,14と送信バッファ(B52,
B53)15,16が固定で割り付けられているため、
受信バッファを1個又は未使用のとき残りのバッファが
未使用になるため回路が有効に活用されない。
That is, the receiving buffer (B50, B51)
13, 14 and transmission buffers (B52, B53) 15, 16
Is fixedly allocated, the circuit is not effectively used because one transmission buffer is used or the remaining transmission buffers are unused. Similarly, the reception buffers (B50, B51) 13, 14 and the transmission buffers (B52,
B53) Since 15 and 16 are fixedly allocated,
When one reception buffer is used or the remaining buffers are unused, the circuit is not effectively used.

【0082】本発明は、送受信バッファが1個又は未使
用のときであっても残りのバッファを適切に割り付けて
回路を有効に活用することができるシリアルI/Oを提
供することを目的とする。
An object of the present invention is to provide a serial I / O capable of effectively allocating the remaining buffer even when one transmitting / receiving buffer is not used or allocating the remaining buffer. .

【0083】[0083]

【課題を解決するための手段】本発明に係るシリアルI
/Oは、複数の送受信バッファを有するシリアルI/O
であって、受信バッファ数又は送信バッファ数の少なく
とも何れか1つを指定することにより使用する送信バッ
ファ数及び受信バッファ数を割り付ける制御手段と、制
御手段による送受信バッファの割り付け指示に基づい
て、複数の送受信バッファの中から所定の送受信バッフ
ァを選択し、該選択した送受信バッファへのリード/ラ
イトを行う選択手段とを備えて構成する。
A serial I according to the present invention.
/ O is a serial I / O having a plurality of transmission / reception buffers
A plurality of transmission buffers and reception buffers to be used by designating at least one of the number of reception buffers or the number of transmission buffers, and a plurality of transmission buffers based on a transmission / reception buffer allocation instruction from the control means. And a selecting means for selecting a predetermined transmission / reception buffer from the transmission / reception buffer and reading / writing the selected transmission / reception buffer.

【0084】制御手段は、送信バッファを1個又は未使
用のとき残りのバッファを受信バッファとして割り付け
るように制御するものであってもよく、制御手段は、受
信バッファを1個又は未使用のとき残りのバッファを送
信バッファとして割り付けるように制御するものであっ
てもよい。
The control means may control one transmission buffer or allocate the remaining buffer as a reception buffer when it is not used, and the control means controls one reception buffer or when it is not used. The remaining buffer may be controlled to be allocated as a transmission buffer.

【0085】また、選択手段は、制御手段からの割り付
け指示により複数の送受信バッファの中から1つを選択
し、所定の送受信バッファへのリード/ライトを行うよ
うに構成してもよい。
Further, the selecting means may be configured to select one from a plurality of transmission / reception buffers in accordance with an allocation instruction from the control means, and read / write to a predetermined transmission / reception buffer.

【0086】さらに、上記シリアルI/Oが、受信デー
タのリード要求を出力する割り込み手段を備え、割り込
み手段は、指定された受信バッファの数だけ受信を行っ
たあと又は1バイト受信毎に受信データリード要求を出
力するように構成したものであってもよく、割り込み手
段は、受信バッファ数を変更したときに受信バッファ数
単位又は1バイト単位に受信データリード要求を出力す
るように構成したものであってもよい。
Further, the serial I / O is provided with an interrupting means for outputting a read request of received data, and the interrupting means receives the received data after receiving the designated number of reception buffers or every reception of one byte. The interrupt means may be configured to output a read request, and the interrupt means may be configured to output a received data read request in units of the number of receiving buffers or in units of 1 byte when the number of receiving buffers is changed. It may be.

【0087】また、制御手段は、受信バッファ数と送信
バッファ数をそれぞれ設定可能な設定手段を備え、設定
手段は、受信バッファ数と送信バッファ数をそれぞれ指
定し、該指定されていない送受信バッファの動作を停止
させるようにしてもよく、送受信バッファは、データの
入力状態によって受信バッファ又は送信バッファの何れ
のバッファとしても使用可能なバッファで構成されたも
のであってもよい。
Further, the control means comprises setting means capable of setting the number of reception buffers and the number of transmission buffers, respectively, and the setting means designates the number of reception buffers and the number of transmission buffers respectively, and sets the transmission and reception buffers not designated. The operation may be stopped, and the transmission / reception buffer may be a buffer that can be used as either the reception buffer or the transmission buffer depending on the input state of data.

【0088】[0088]

【発明の実施の形態】本発明に係るシリアルI/Oは、
マイクロコンピュータ等のシリアルI/Oに適用するこ
とができる。
BEST MODE FOR CARRYING OUT THE INVENTION A serial I / O according to the present invention is
It can be applied to serial I / O such as a microcomputer.

【0089】図1は本発明の第1の実施形態に係るシリ
アルI/Oの構成図である。本実施形態に係るシリアル
I/Oは、複数の送受信バッファを持つシリアルI/O
について有効であるが、ここでは送受信バッファ4個の
ときについて説明する。
FIG. 1 is a block diagram of a serial I / O according to the first embodiment of the present invention. The serial I / O according to this embodiment is a serial I / O having a plurality of transmission / reception buffers.
Is effective, but here, the case of four transmission / reception buffers will be described.

【0090】図1の説明にあたり、前記図15と同一構
成部分及び同一信号部分には同一符号を付している。
In the explanation of FIG. 1, the same components and the same signal portions as those in FIG. 15 are designated by the same reference numerals.

【0091】図1において、シリアルI/O50は、受
信シフトレジスタ(RSF1)11、送信シフトレジス
タ(TSF3)12、送受信バッファ(B60,B61,
B62,B63)51,52,53,54、セレクタ(S
40,S41,S42,S43)55,17,18,19
(選択手段)及び送受信バッファコントローラ(CON
20)56(制御手段)から構成されている。
In FIG. 1, the serial I / O 50 includes a reception shift register (RSF1) 11, a transmission shift register (TSF3) 12, a transmission / reception buffer (B60, B61,
B62, B63) 51, 52, 53, 54, selector (S
40, S41, S42, S43) 55, 17, 18, 19
(Selection means) and transmission / reception buffer controller (CON
20) 56 (control means).

【0092】すなわち、本実施形態に係るシリアルI/
O50は、前記図15に示す従来のシリアルI/O10
の受信バッファコントローラ(CON21)20及び送
信バッファコントローラ(CON22)21に代えて、
送受信バッファコントローラ(CON20)56が設置
され、受信バッファ(B50,B51)13,14及び送
信バッファ(B52,B53)15,16が送受信バッフ
ァ(B60,B61,B62,B63)51,52,53,
54に変更され、新たにセレクタ(S40)55が追加
された構成となっている。
That is, the serial I / O according to this embodiment is
O50 is the conventional serial I / O 10 shown in FIG.
Instead of the reception buffer controller (CON21) 20 and the transmission buffer controller (CON22) 21 of
A transmission / reception buffer controller (CON20) 56 is installed, and reception buffers (B50, B51) 13, 14 and transmission buffers (B52, B53) 15, 16 are transmission / reception buffers (B60, B61, B62, B63) 51, 52, 53,
54, and a selector (S40) 55 is newly added.

【0093】上記送受信バッファコントローラ(CON
20)56について説明する。
The transmission / reception buffer controller (CON
20) 56 will be described.

【0094】入力信号として受信完了信号105、リー
ド/ライト信号106、送受信バッファコントローラセ
レクト信号1070〜1、送信完了信号117、コント
ロールデータ信号119は、前記図15と同様である。
The reception completion signal 105, the read / write signal 106, the transmission / reception buffer controller select signals 1070-1, the transmission completion signal 117, and the control data signal 119 as input signals are the same as in FIG.

【0095】出力信号は以下の通りである。受信許可信
号103、送信許可信号118、受信データリード要求
信号110、送信データライト要求信号111,.送受
信バッファ書き込み許可信号1080〜1083、受信デ
ータセレクト信号1090〜1093、送信データセレク
ト信号1094〜1097がある。このうち、受信許可信
号103、送信許可信号118、受信データリード要求
信号110、送信データライト要求信号111について
は前記図15と同様である。ここでは、送受信バッファ
書き込み許可信号1080〜1083、受信データセレク
ト信号1090〜1093、送信データセレクト信号10
94〜1097について説明する。
The output signals are as follows. Reception permission signal 103, transmission permission signal 118, reception data read request signal 110, transmission data write request signal 111 ,. There are transmission / reception buffer write enable signals 1080 to 1083, reception data select signals 1090 to 1093, and transmission data select signals 1094 to 1097. Of these, the reception permission signal 103, the transmission permission signal 118, the reception data read request signal 110, and the transmission data write request signal 111 are the same as those in FIG. Here, transmission / reception buffer write enable signals 1080 to 1083, reception data select signals 1090 to 1093, and transmission data select signal 10
94 to 1097 will be described.

【0096】送受信バッファ書き込み許可信号1080
〜1083は、送受信データを送受信バッファ(B60〜
B63)51〜54に書き込みを許可する信号である。
Transmit / receive buffer write enable signal 1080
-1083 is a transmission / reception buffer (B60-
B63) This is a signal for permitting writing to 51 to 54.

【0097】受信データセレクト信号1090〜1093
は、受信データをセットする送受信バッファ(B60〜
B63)51〜54を選択する信号である。
Received data select signals 1090-1093
Is a transmission / reception buffer (B60-
B63) This signal selects 51 to 54.

【0098】送信データセレクト信号1094〜1097
は、送信データをセットする送受信バッファ(B60〜
B63)51〜54を選択する信号である。
Transmission data select signals 1094 to 1097
Is a transmission / reception buffer (B60-
B63) This signal selects 51 to 54.

【0099】上記送受信バッファコントローラ(CON
20)56の内部構成について図2を用いて更に詳細に
説明する。
The transmission / reception buffer controller (CON
The internal structure of 20) 56 will be described in more detail with reference to FIG.

【0100】図2は、上記送受信バッファコントローラ
(CON20)56の内部構成を示す図であり、この図
において、送受信バッファコントローラ(CON20)
56は、送受信バッファ数設定レジスタ(ΤSREG2
05)60、受信バッファコントローラ(CON201)6
1、送信バッファコントローラ(CON202)62、送
受信バッファ書き込み許可コントローラ(CON203)
63、送受信許可レジスタ(TSEREG206)64か
ら構成される。
FIG. 2 is a diagram showing the internal structure of the transmission / reception buffer controller (CON20) 56. In this figure, the transmission / reception buffer controller (CON20) is shown.
56 is a transmission / reception buffer number setting register (ΤSREG2
05) 60, receive buffer controller (CON201) 6
1, transmission buffer controller (CON202) 62, transmission / reception buffer write enable controller (CON203)
63 and a transmission / reception permission register (TSEREG 206) 64.

【0101】上記送受信バッファ数設定レジスタ(ΤS
REG205)60は、送受信バッファ数を設定するレジ
スタであり、リード/ライト信号106、送信バッファ
コントローラセレクト信号1071、受信バッファコン
トローラセレクト信号1070、コントロールデ一タ信
号119の値がセットされ、受信バッファコントローラ
(CON201)61に対し受信バッファ数データ信号1
190、送信バッファコントローラに対し送信バッファ
数データ信号1191を出力する。この場合、受信バッ
ファ数を決定することにより自動的に送信バッファ数が
決定される。この送受信バッファ数設定レジスタ(ΤS
REG205)60の動作状態は、図3の表1に示され
る。
The transmission / reception buffer number setting register (ΤS
REG205) 60 is a register for setting the number of transmission / reception buffers, and the values of the read / write signal 106, the transmission buffer controller select signal 1071, the reception buffer controller select signal 1070, and the control data signal 119 are set, and the reception buffer controller (CON201) 61 reception buffer number data signal 1
190, the transmission buffer number data signal 1191 is output to the transmission buffer controller. In this case, the number of transmission buffers is automatically determined by determining the number of reception buffers. This transmission / reception buffer number setting register (ΤS
The operating states of the REG 205) 60 are shown in Table 1 of FIG.

【0102】受信バッファコントローラ(CON201)
61は、受信バッファ書き込み許可信号108R0〜10
8R3を出力する回路である。送受信バッファ数設定レジ
スタ(ΤSREG205)60の設定により受信用の送受
信バッファ(B60〜B63)51〜54の書き込み許可
信号を制御する。この受信バッファコントローラ(CO
N201)61の動作状態は、図4の表2に示される。
Reception buffer controller (CON201)
61 is a reception buffer write enable signal 108R0-10
This is a circuit that outputs 8R3. The write enable signal of the reception transmission / reception buffers (B60 to B63) 51 to 54 is controlled by the setting of the transmission / reception buffer number setting register (T SREG205) 60. This receive buffer controller (CO
The operating state of N201) 61 is shown in Table 2 of FIG.

【0103】送信バッファコントローラ(CON202)
62は、送信バッファ書き込み許可信号108T0〜10
8T3を出力する回路である。送受信バッファ数設定レジ
スタ(ΤSREG205)60の設定により受信用の送受
信バッファ(B60〜B63)51〜54の書き込み許可
信号を制御する。この受信バッファコントローラ(CO
N201)61の動作状態は、図5の表3に示される。
Transmission buffer controller (CON202)
62 is a transmission buffer write enable signal 108T0 to 10
This is a circuit that outputs 8T3. The write enable signal of the reception transmission / reception buffers (B60 to B63) 51 to 54 is controlled by the setting of the transmission / reception buffer number setting register (T SREG205) 60. This receive buffer controller (CO
The operating state of N201) 61 is shown in Table 3 of FIG.

【0104】送受信バッファ書き込み許可コントローラ
(CON203)63は、送受信バッファ書き込み許可信
号1080〜1083を出力する回路であり、受信バッフ
ァコントローラ(CON201)61から入力される受信
バッファ書き込み許可信号108R0〜108R3と送信バ
ッファコントローラ(CON202)62から入力される
送信バッファ書き込み許可信号108T0〜108T3との
オア論理をとることにより送受信バッファ書き込み許可
信号1080〜1083を制御する。
The transmission / reception buffer write permission controller (CON203) 63 is a circuit for outputting the transmission / reception buffer write permission signals 1080-1083, and transmits the reception buffer write permission signals 108R0-108R3 input from the reception buffer controller (CON201) 61. The transmission / reception buffer write permission signals 1080-1083 are controlled by taking an OR logic with the transmission buffer write permission signals 108T0-108T3 input from the buffer controller (CON202) 62.

【0105】送受信許可レジスタ(TSEREG206)
64は、送信許可信号118、受信許可信号103を出
力する制御レジスタである。
Transmission / reception permission register (TSEREG206)
Reference numeral 64 is a control register that outputs the transmission permission signal 118 and the reception permission signal 103.

【0106】本実施形態に係るシリアルI/O50で新
たに設置されたセレクタ(S40)55について説明す
る。
The selector (S40) 55 newly installed in the serial I / O 50 according to this embodiment will be described.

【0107】図1に戻って、入力信号として受信データ
信号104、セレクト信号1090〜1093があり、出
力信号としてバッファセットデータ信号1140〜11
43がある。バッファセットデータ信号1140〜114
3は、送受信バッファコントローラ(CON20)56か
らの受信データセレク卜信号1090〜1093により受
信データ104をバッファセットデータ信号1140〜
1143のうちの1つを選択し出力する。
Returning to FIG. 1, there are received data signal 104 and select signals 1090 to 1093 as input signals, and buffer set data signals 1140 to 1110 as output signals.
There are 43. Buffer set data signal 1140 to 114
3 is a buffer set data signal 1140 to 1400 to receive data 104 according to the received data selection signals 1090 to 1093 from the transmission / reception buffer controller (CON20) 56.
One of 1143 is selected and output.

【0108】上記セレクタ(S41)17について説明
する。
The selector (S41) 17 will be described.

【0109】入力信号として送信データ信号1130、
セレクト信号1094〜1097があり、出力信号として
バッファセットデータ信号1140〜1143がある。バ
ッファセットデータ信号1140〜1143は、送受信バ
ッファコントローラ(CON20)56からの送信デー
タセレク卜信号1094〜7により送信データ1130を
バッファセットデ一タ信号1140〜1143のうちの1
つを選択し出力する。
A transmission data signal 1130 as an input signal,
There are select signals 1094 to 1097, and buffer set data signals 1140 to 1143 are output signals. The buffer set data signal 1140 to 1143 is one of the buffer set data signals 1140 to 1143 which is the transmission data 1130 according to the transmission data selection signal 1094 to 7 from the transmission / reception buffer controller (CON20) 56.
Select one and output.

【0110】上記セレクタ(S42)18について説明
する。
The selector (S42) 18 will be described.

【0111】入力信号としてデータ信号1120〜11
23、セレクト信号1090〜1093があり、出力信号
として受信データ1131がある。受信データ信号11
31は、送受信バッファ(B60〜B63)51〜54か
らのデータ信号1120〜1123のうち1つの値を受信
データセレクト信号1090〜1093によりマイクロコ
ントローラに出力する。
Data signals 1120-11 as input signals
23, select signals 1090 to 1093, and received data 1131 as an output signal. Received data signal 11
31 outputs one value out of the data signals 1120 to 1123 from the transmission / reception buffers (B60 to B63) 51 to 54 to the microcontroller by the received data select signals 1090 to 1093.

【0112】上記セレクタ(S43)19について説明
する。
The selector (S43) 19 will be described.

【0113】入力信号としてデータ信号1120〜11
23、セレクト信号1094〜1097があり、出力信号
として送信データ信号116がある。送信データ信号1
16は、送受信バッファ(B60〜B63)51〜54か
らのデータ信号1120〜1123のうち1つの値を送信
データセレクト信号1094〜1097により送信シフト
レジスタ(TSF3)12に出力する。
Data signals 1120-11 as input signals
23, select signals 1094 to 1097, and a transmission data signal 116 as an output signal. Transmission data signal 1
16 outputs one value out of the data signals 1120 to 1123 from the transmission / reception buffers (B60 to B63) 51 to 54 to the transmission shift register (TSF3) 12 by the transmission data select signals 1094 to 1097.

【0114】このように、本実施形態に係るシリアルI
/O50は、複数の送受信バッファ(B60〜B63)5
1〜54を有するシリアルI/Oであって、受信バッフ
ァ数又は送信バッファ数を指定することにより使用する
送信バッファ数及び受信バッファ数を一意的に割り付け
る送受信バッファコントローラ(CON20)56と、
送受信バッファコントローラ(CON20)56による
送受信バッファ(B60〜B63)51〜54の割り付け
指示に基づいて、複数の送受信バッファ(B60〜B6
3)51〜54の中から1つを選択し、所定の送受信バ
ッファへのリード/ライトを行うセレクタ(S40〜S
43)55,17〜19とを備えた構成となっている。
As described above, the serial I according to this embodiment is
/ O50 is a plurality of transmission / reception buffers (B60 to B63) 5
A transmission / reception buffer controller (CON20) 56 which is a serial I / O having 1 to 54 and which uniquely allocates the number of transmission buffers and the number of reception buffers to be used by designating the number of reception buffers or the number of transmission buffers,
Based on the allocation instruction of the transmission / reception buffers (B60 to B63) 51 to 54 by the transmission / reception buffer controller (CON20) 56, a plurality of transmission / reception buffers (B60 to B6)
3) Selector (S40 to S) that selects one from 51 to 54 and performs read / write to a predetermined transmission / reception buffer.
43) 55 and 17 to 19 are provided.

【0115】以下、上述のように構成されたシリアルI
/O50の動作を説明する。
Hereinafter, the serial I configured as described above will be described.
The operation of / O50 will be described.

【0116】図6及び図7上記シリアルΙ/O50のタ
イミングチャートであり、図6は送信バッファ数3個、
受信バッファ数1個に設定したときの動作を示すタイミ
ングチャート、図7は送信バッファ数1個、受信バッフ
ァ数3個に設定したときの動作を示すタイミングチャー
トである。
6 and 7 are timing charts of the serial I / O 50, in which FIG. 6 shows three transmission buffers,
FIG. 7 is a timing chart showing the operation when the number of reception buffers is set to 1, and FIG. 7 is a timing chart showing the operation when the number of transmission buffers is set to 1 and the number of reception buffers is set to 3.

【0117】まず、図6を参照して送信バッファ数3
個、受信バッファ数1個に設定したときの動作を説明を
する。
First, referring to FIG. 6, the number of transmission buffers is 3
The operation when the number is set to one and the number of reception buffers is set to one will be described.

【0118】上述したように、送受信バッファコントロ
ーラ(CON20)56の送受信バッファ数設定レジス
タTSREG(ΤSREG205)60には、コントロー
ルデータ信号119、受信バッファコントローラセレク
ト信号1070、送信バッファコントローラセレクト信
号1071及びリード/ライト信号106が入力され、
送受信バッファ数設定レジスタTSREG(ΤSREG
205)60は、この受信バッファコントローラセレクト
信号1070、送信バッファコントローラセレクト信号
1071及びリード/ライト信号106により送受信バ
ッファ数設定レジスタTSREG(ΤSREG205)6
0内にコントロールデータ信号119のデータ“01
h”を保持する。この場合は、受信バッファ数1個、送
信バッファ数3個が保持される。
As described above, the transmission / reception buffer controller (CON20) 56 transmission / reception buffer number setting register TSREG (T SREG205) 60 has the control data signal 119, reception buffer controller select signal 1070, transmission buffer controller select signal 1071 and read / write. The write signal 106 is input,
Transmission / reception buffer count setting register TSREG (ΤSREG
205) 60 is a transmission / reception buffer number setting register TSREG (ΤSREG 205) 6 according to the reception buffer controller select signal 1070, the transmission buffer controller select signal 1071 and the read / write signal 106.
The data "01" of the control data signal 119
h ”is held. In this case, the number of receive buffers is 1 and the number of send buffers is 3.

【0119】同時に送信バッファ書き込み許可信号10
8T3に“1”(書き込み許可)が出力され、受信バッフ
ァ書き込み許可信号108R3に“0”が出力される。こ
のことにより、送受信バッファ(B60〜B63)51〜
54の送受信バッファ書き込み許可信号1083が
“1”にセットされ、送信データセレクト信号1097
が“1”にセットされる。これにより送信データ113
0がバッファデータセット信号1143によって送受信バ
ッファ(B63)54にセットされる。
At the same time, the transmission buffer write enable signal 10
"1" (write enable) is output to 8T3, and "0" is output to the receive buffer write enable signal 108R3. As a result, the transmission / reception buffers (B60 to B63) 51 to
The transmission / reception buffer write enable signal 1083 of 54 is set to "1", and the transmission data select signal 1097
Is set to "1". As a result, the transmission data 113
0 is set in the transmission / reception buffer (B63) 54 by the buffer data set signal 1143.

【0120】送信が完了し、次に送信バッファコントロ
ーラセレクト信号1071とリード/ライト信号106
がアサートされると、送信バッファ書き込み許可信号1
08T2に“1”(書き込み許可)が出力され、受信バッ
ファ書き込み許可信号108R2に“0”が出力される。
このことにより、送受信バッファΒ52の送受信バッフ
ァ書き込み許可信号1082が“1”にセットされる。
After the transmission is completed, the transmission buffer controller select signal 1071 and the read / write signal 106 are transmitted.
Is asserted, the transmit buffer write enable signal 1
"1" (write enable) is output to 08T2, and "0" is output to the receive buffer write enable signal 108R2.
As a result, the transmission / reception buffer write enable signal 1082 of the transmission / reception buffer B52 is set to "1".

【0121】これにより送信データ1130がバッファ
データセット信号1142によって送受信バッファ(B
62)53にセットされ、送信データセレクト信号10
96が“1”にセットされる。
As a result, the transmission data 1130 is transmitted / received by the buffer data set signal 1142 to the transmission / reception buffer (B
62) Set to 53 and send data select signal 10
96 is set to "1".

【0122】上述したように、送信バッファコントロー
ラセレクト信号1071とリード/ライト信号106が
アサートされる毎に送信バッファ書き込み許可信号10
8T3→108T2→108T1が順にアサートされ(この
時、受信バッファ書き込み許可信号108R1〜108R3
は“0”を出力する。)、送受信バッファ書き込み許可
信号1083→1082→1081→1083、送信データ
セレクト信号1097→1096→1095→1097の順
でアサートされ、送信データ1130が送受信バッファ
(B60〜B63)51〜54にセットされる。
As described above, every time the transmission buffer controller select signal 1071 and the read / write signal 106 are asserted, the transmission buffer write enable signal 10 is sent.
8T3 → 108T2 → 108T1 are sequentially asserted (at this time, the reception buffer write enable signals 108R1 to 108R3
Outputs “0”. ), The transmit / receive buffer write enable signal 1083 → 1082 → 1081 → 1083, and the transmit data select signal 1097 → 1096 → 1095 → 1097 are asserted in this order, and the transmit data 1130 is set in the transmit / receive buffers (B60 to B63) 51 to 54. .

【0123】また、受信完了信号105が“1”にセッ
トされる毎に送信バッファ書き込み許可信号108T0に
“0”(書き込み許可)が出力され、受信バッファ書き
込み許可信号108R0に“1”が出力される。このこと
により、送受信バッファ書き込み許可信号1080が
“1”にセットされ、受信データセレクト信号1090
が“1”にセットされる。これによりシリアル受信デー
タ104がバッファデータセット信号1140より送受
信バッファ(Β60)51にセットされる。
Each time the reception completion signal 105 is set to "1", "0" (write enable) is output to the transmission buffer write enable signal 108T0 and "1" is output to the receive buffer write enable signal 108R0. It As a result, the transmission / reception buffer write enable signal 1080 is set to "1" and the reception data select signal 1090 is set.
Is set to "1". As a result, the serial reception data 104 is set in the transmission / reception buffer (B 60) 51 from the buffer data set signal 1140.

【0124】次に、図7を参照して送信バッファ数1
個、受信バッファ数3個に設定したときの動作を説明を
する。
Next, referring to FIG. 7, the number of transmission buffers is 1
The operation when the number is set to 3 and the number of reception buffers is set to 3 will be described.

【0125】受信バッファコントローラセレクト信号1
070、送信バッファコントローラセレクト信号1071
及びリード/ライト信号106により送受信バッファ数
設定レジスタTSREG(ΤSREG205)60にコン
トロールデータ信号119のデータ“03h”が保持さ
れる。この場合、受信バッファ数3個、送信バッファ数
1個が保持される。同時に、送信バッファ書き込み許可
信号108T3に“1”(書き込み許可)が出力され、受
信バッファ書き込み許可信号108R3に“0”が出力さ
れる。このことにより、送受信バッファ(B63)54
の送受信バッファ書き込み許可信号1083が“1”に
セットされ、送信データセレクト信号1097が“1”
にセットされる。これにより、送信データ1130がバ
ッファデータセット信号1143によって送受信バッフ
ァ(Β63)54にセットされる。
Receive buffer controller select signal 1
07, transmission buffer controller select signal 1071
Further, the read / write signal 106 holds the data “03h” of the control data signal 119 in the transmission / reception buffer number setting register TSREG (ΤSREG 205) 60. In this case, three reception buffers and one transmission buffer are held. At the same time, "1" (write enable) is output to the transmit buffer write enable signal 108T3, and "0" is output to the receive buffer write enable signal 108R3. As a result, the transmission / reception buffer (B63) 54
The transmission / reception buffer write enable signal 1083 is set to "1", and the transmission data select signal 1097 is set to "1".
Is set to As a result, the transmission data 1130 is set in the transmission / reception buffer (B63) 54 by the buffer data set signal 1143.

【0126】以後、送信バッファコントローラセレクト
信号1071とリード/ライト信号106がアサートさ
れる毎に送信バッファ書き込み許可信号108T3に
“1”(書き込み許可)が出力され、受信バッファ書き
込み許可信号108R3に“0”が出力される。このこと
により、送受信バッファ書き込み許可信号1083が
“1”にセットされ、送信データ1130がバッファデ
ータセット信号1143によって送受信バッファ(Β6
3)54にセットされる。
Thereafter, every time the transmit buffer controller select signal 1071 and the read / write signal 106 are asserted, "1" (write enable) is output to the transmit buffer write enable signal 108T3 and "0" is output to the receive buffer write enable signal 108R3. Is output. As a result, the transmission / reception buffer write enable signal 1083 is set to "1", and the transmission data 1130 is transmitted / received to the transmission / reception buffer (B6 by the buffer data set signal 1143).
3) Set to 54.

【0127】また、受信完了信号105が゛“1”にセ
ットされると、送信バッファ書き込み許可信号108T0
に“0”(書き込み禁止)が出力され、受信バッファ書
き込み許可信号108R0に“1”が出力され、受信デー
タセレクト信号1090が“1”にセットされる。これ
により、シリアル送信データ104がバッファデータセ
ット信号1140によって送受信バッファ(Β60)51
にセットされる。
When the reception completion signal 105 is set to "1", the transmission buffer write enable signal 108T0
"0" (write inhibit) is output to, the receive buffer write enable signal 108R0 is output to "1", and the receive data select signal 1090 is set to "1". As a result, the serial transmission data 104 is transferred to the transmission / reception buffer (B 60) 51 according to the buffer data set signal 1140.
Is set to

【0128】以後、受信完了信号105が“1”にセッ
トされる毎に受信バッファ書き込み許可信号108R0→
108R1→108R2が順にアサートされ(この時、送信
バッファ書き込み許可信号108T0〜108T2は“0”
を出力する。)、送受信バッファ書き込み許可信号10
80→1081→1082→1080、受信データセレクト
信号1090→1091→1092→1090の順にアサー
トされ、シリアル受信データ104がバッファデータセ
ット信号1140〜1143によって送受信バッファ(Β
60〜B62)51〜53にセットされる。
Thereafter, every time the reception completion signal 105 is set to "1", the reception buffer write enable signal 108R0 →
108R1 → 108R2 are sequentially asserted (at this time, the transmission buffer write enable signals 108T0 to 108T2 are "0").
Is output. ), Transmit / receive buffer write enable signal 10
80 → 1081 → 1082 → 1080, reception data select signal 1090 → 1091 → 1092 → 1090 are asserted in this order, and serial reception data 104 is transmitted / received by the buffer data set signals 1140 to 1143.
60 to B62) are set to 51 to 53.

【0129】上記説明は受信バッファ数を設定すること
により送信バッファ数を一意的に決定することを例にと
り説明したが、送信バッファ数を設定することにより受
信バッファ数を一意的に決定することも可能である。
In the above description, the number of transmission buffers is uniquely determined by setting the number of reception buffers. However, the number of reception buffers may be uniquely determined by setting the number of transmission buffers. It is possible.

【0130】以上説明したように、第1の実施形態に係
るシリアルI/O50は、送受信バッファ(B60〜B
63)51〜54を有するシリアルI/Oであって、受
信バッファ数又は送信バッファ数を指定することにより
使用する送信バッファ数及び受信バッファ数を一意的に
割り付ける送受信バッファコントローラ(CON20)
56と、送受信バッファコントローラ(CON20)5
6による送受信バッファ(B60〜B63)51〜54の
割り付け指示に基づいて、複数の送受信バッファ(B6
0〜B63)51〜54の中から1つを選択し、所定の送
受信バッファへのリード/ライトを行うセレクタ(S4
0〜S43)55,17〜19とを備え、送受信バッファ
コントローラ(CON20)56にセットするデータを
変えるようにしているので、送信又は受信に割り付ける
バッファ数をプログラマブルに変化させることができ、
送信バッファを1個又は未使用のとき残りのバッファを
受信バッファに割り付けることができるとともに、受信
バッファを1個又は未使用のとき残りのバッファを送信
バッファに割り付けることができ回路を有効に活用する
ことができる。
As described above, the serial I / O 50 according to the first embodiment has the transmission / reception buffers (B60 to B60).
63) A transmission / reception buffer controller (CON20) which is a serial I / O having 51 to 54 and which uniquely allocates the number of transmission buffers to be used and the number of reception buffers by designating the number of reception buffers or the number of transmission buffers
56 and a transmission / reception buffer controller (CON20) 5
Based on the allocation instruction of the transmission / reception buffers (B60 to B63) 51 to 54 according to No. 6, a plurality of transmission / reception buffers (B6
0 to B63) Select one from 51 to 54 to read / write to a predetermined transmission / reception buffer (S4)
0 to S43) 55 and 17 to 19 so that the data set in the transmission / reception buffer controller (CON20) 56 is changed, the number of buffers allocated to transmission or reception can be changed in a programmable manner.
One transmission buffer or the remaining buffer can be allocated to the reception buffer when unused, and the remaining buffer can be assigned to the transmission buffer when one reception buffer or the unused buffer is used effectively. be able to.

【0131】図8は本発明の第2の実施形態に係るシリ
アルI/Oの構成を示すブロック図であり、本実施形態
に係るシリアルI/Oも、複数の送受信バッファを持つ
シリアルI/Oについて有効であるが、ここでは送受信
バッファ4個のときについて説明する。なお、本実施形
態に係るシリアルI/Oの説明にあたり図1に示すシリ
アルI/Oと同一構成部分には同一符号を付して重複部
分の説明を省略する。
FIG. 8 is a block diagram showing the configuration of a serial I / O according to the second embodiment of the present invention. The serial I / O according to this embodiment is also a serial I / O having a plurality of transmission / reception buffers. Is effective, but here, the case of four transmission / reception buffers will be described. In the description of the serial I / O according to the present embodiment, the same components as those of the serial I / O shown in FIG. 1 will be assigned the same reference numerals and overlapping description will be omitted.

【0132】図8において、シリアルI/O70は、受
信シフトレジスタ(RSF1)11、送信シフトレジス
タ(RSF3)12、送受信バッファ(B60,B61,
B62,B63)51,52,53,54、セレクタ(S
40,S41,S42,S43)55,17,18,19及
び送受信バッファコントローラ(CON20)71から
構成されている。
In FIG. 8, the serial I / O 70 includes a reception shift register (RSF1) 11, a transmission shift register (RSF3) 12, a transmission / reception buffer (B60, B61,
B62, B63) 51, 52, 53, 54, selector (S
40, S41, S42, S43) 55, 17, 18, 19 and a transmission / reception buffer controller (CON20) 71.

【0133】すなわち、本実施形態に係るシリアルI/
O70は、送受信バッファコントローラ(CON20)
71の内部に割り込みコントローラ(CON204)72
を組み込んだ構成となっている。
That is, the serial I / O according to this embodiment is
O70 is a transmission / reception buffer controller (CON20)
An interrupt controller (CON204) 72 inside 71
Has been incorporated.

【0134】図9は、上記割り込みコントローラを組み
込んだ送受信バッファコントローラ(CON20)71
の内部構成を示す図であり、この図において、送受信バ
ッファコントローラ(CON20)71は、送受信バッ
ファ数設定レジスタ(ΤSREG205)60、受信バッ
ファコントローラ(CON201)61、送信バッファコ
ントローラ(CON202)62、送受信バッファ書き込
み許可コントローラ(CON203)63、送受信許可レ
ジスタ(TSEREG206)64及び割り込みコントロ
ーラ(CON204)72から構成される。
FIG. 9 shows a transmission / reception buffer controller (CON20) 71 incorporating the above interrupt controller.
2 is a diagram showing the internal configuration of a transmission / reception buffer controller (CON20) 71, a transmission / reception buffer number setting register (T SREG205) 60, a reception buffer controller (CON201) 61, a transmission buffer controller (CON202) 62, and a transmission / reception buffer. It is composed of a write enable controller (CON203) 63, a transmission / reception enable register (TSEREG206) 64, and an interrupt controller (CON204) 72.

【0135】上記割り込みコントローラ(CON204)
72は、受信データリード要求信号110の出力タイミ
ングをコントロールする回路である。入力信号として受
信完了信号105、受信バッファ数データ信号119
0、受信データリード要求制御信号120があり、受信
データリード要求制御信号120は、受信データリード
要求信号110を制御する信号である。
The interrupt controller (CON204)
A circuit 72 controls the output timing of the received data read request signal 110. Reception completion signal 105 and reception buffer number data signal 119 as input signals
0, there is a reception data read request control signal 120, and the reception data read request control signal 120 is a signal for controlling the reception data read request signal 110.

【0136】また、出力信号として受信データリード要
求信号110があり、受信データリード要求信号110
は、マイクロコントローラに対して受信データのリード
を要求する信号である。受信データリード要求信号11
0は、受信データリード要求制御信号120が“1”
(受信データリード要求固定解除)のとき、受信バッフ
ァ設定数分、受信完了信号105をアサート(“1”が
入力される)すると受信データリード要求信号110に
“1”を出力する。受信データリード要求制御信号12
0が“0”(受信データリード要求固定)のとき、受信
完了信号105をアサート(“1”が入力される)する
毎に受信データリード要求信号110に“1”を出力す
る。
Further, there is a received data read request signal 110 as an output signal, and the received data read request signal 110
Is a signal requesting the microcontroller to read the received data. Received data read request signal 11
For 0, the received data read request control signal 120 is "1".
In the case of (fixed release of received data read request), when the reception completion signal 105 is asserted (“1” is input) for the set number of reception buffers, “1” is output to the received data read request signal 110. Received data read request control signal 12
When 0 is “0” (fixed reception data read request), “1” is output to the reception data read request signal 110 each time the reception completion signal 105 is asserted (“1” is input).

【0137】以下、上述のように構成されたシリアルI
/O70の動作を説明する。
Hereinafter, the serial I configured as above will be described.
The operation of / O70 will be described.

【0138】図10及び図11上記シリアルΙ/O70
のタイミングチャートであり、シリアルΙ/O70はこ
の図10及び図11に示す動作で受信データリード要求
信号を制御する。なおこの他の動作は第1の実施形態と
同様である。
FIG. 10 and FIG. 11 The above serial I / O70
The serial I / O 70 controls the received data read request signal by the operation shown in FIGS. 10 and 11. The other operations are the same as those in the first embodiment.

【0139】図10は受信リードデータ要求を1バイト
毎の固定で動作させたときの動作を示すタイミングチャ
ートである。
FIG. 10 is a timing chart showing the operation when the received read data request is fixed at every 1 byte.

【0140】図10に示すように、受信バッファコント
ローラセレクト信号1071、リード/ライト信号10
6により送受信許可レジスタ(TSEREG206)64
の値が“1”にセットされる。これにより受信動作許可
信号103に“1”が出力され、受信動作が開始され
る。8ビットのデータを受信後、受信シフトレジスタ
(RSF1)11の受信完了信号105によって“1”
が出力される。受信完了信号105“1”、受信データ
リード要求制御信号120“0”という状態により受信
データリード要求信号110として“1”(受信データ
リード要求)が出力される。
As shown in FIG. 10, the reception buffer controller select signal 1071 and the read / write signal 10
Transmission / reception permission register (TSEREG206) 64 by 6
Is set to "1". As a result, "1" is output to the reception operation permission signal 103, and the reception operation is started. After receiving 8-bit data, “1” is set by the reception completion signal 105 of the reception shift register (RSF1) 11.
Is output. "1" (reception data read request) is output as the reception data read request signal 110 according to the states of the reception completion signal 105 "1" and the reception data read request control signal 120 "0".

【0141】以後、受信完了信号に“1”が出力される
毎に受信データリード要求信号110から“1”が出力
される。
Thereafter, every time "1" is output to the reception completion signal, "1" is output from the reception data read request signal 110.

【0142】図11は受信リードデータ要求を固定解除
にし、3バイト毎で動作させたときの動作を示すタイミ
ングチャートである。
FIG. 11 is a timing chart showing the operation when the reception read data request is released from the fixed state and operated every 3 bytes.

【0143】図11に示すように、受信バッファコント
ローラセレクト信号1071、リード/ライト信号10
6より送受信許可レジスタ(TSEREG206)64
の値が“1”にセットされる。これにより受信動作許可
信号103に“1”が出力され、受信動作が開始され
る。
As shown in FIG. 11, the reception buffer controller select signal 1071 and the read / write signal 10
Transmission / reception permission register (TSEREG206) 64 from 6
Is set to "1". As a result, "1" is output to the reception operation permission signal 103, and the reception operation is started.

【0144】8ビットのデータを受信後、受信シフトレ
ジスタ(RSF1)11の受信完了信号105より
“1”が出力される。受信完了信号105“1”、受信
データリード要求制御信号120“1”受信バッファ数
データ信号1190“3”という状態により受信データ
リード要求信号110として“0”(受信データリード
要求なし)が出力される。
After receiving the 8-bit data, "1" is output from the reception completion signal 105 of the reception shift register (RSF1) 11. "0" (no reception data read request) is output as the reception data read request signal 110 according to the state of the reception completion signal 105 "1", reception data read request control signal 120 "1" reception buffer number data signal 1190 "3" It

【0145】その後、受信完了信号に“1”が2回出力
されると受信データリード要求信号110から“1”が
出力される。
Thereafter, when "1" is output twice as the reception completion signal, "1" is output from the reception data read request signal 110.

【0146】以後、受信完了信号に“1”が3回出力さ
れる毎に受信データリード要求信号110から“1”が
出力される。
Thereafter, every time "1" is output to the reception completion signal three times, "1" is output from the reception data read request signal 110.

【0147】以上説明したように、第2の実施形態に係
るシリアルI/O70は、送受信バッファコントローラ
(CON20)71の内部に割り込みコントローラ(C
ON204)72を備え、割り込みコントローラ(CON
204)72が、指定された受信バッファの数だけ受信を
行ったあと又は1バイト受信毎に受信データリード要求
を出力するようにしているので、受信バッファ数を変更
したときの受信データリード要求出力を受信バッファ数
単位又は1バイト単位に切り換えることにより、送受信
データのリード/ライトを行うための処理を一括して行
うことができ、マイクロコントローラの処理を軽減する
ことができる。
As described above, the serial I / O 70 according to the second embodiment has the interrupt controller (C) inside the transmission / reception buffer controller (CON20) 71.
ON204) 72, and an interrupt controller (CON
04) 72 outputs the reception data read request after receiving the specified number of reception buffers or every 1-byte reception. Therefore, the reception data read request output when the number of reception buffers is changed By switching to the unit of the number of receiving buffers or the unit of 1 byte, the processing for reading / writing the transmission / reception data can be collectively performed, and the processing of the microcontroller can be reduced.

【0148】図12は本発明の第3の実施形態に係るシ
リアルI/Oの送受信バッファコントローラ(CON2
0)80の内部構成を示す図である。なお、本実施形態
に係るシリアルI/Oの説明にあたり図9に示すシリア
ルI/Oと同一構成部分には同一符号を付して重複部分
の説明を省略する。
FIG. 12 is a serial I / O transmission / reception buffer controller (CON2) according to the third embodiment of the present invention.
It is a figure which shows the internal structure of 0) 80. In the description of the serial I / O according to the present embodiment, the same components as those of the serial I / O shown in FIG. 9 will be assigned the same reference numerals and overlapping description will be omitted.

【0149】図12において、送受信バッファコントロ
ーラ(CON20)80は、受信バッファ数設定レジス
タ(SREG210)81、送信バッファ数設定レジスタ
(ΤREG220)82、受信バッファコントローラ(C
ON201)61、送信バッファコントローラ(CON2
02)62、送受信バッファ書き込み許可コントローラ
(CON203)63、送受信許可レジスタ(TSERE
G206)64及び割り込みコントローラ(CON204)
72から構成される。
In FIG. 12, a transmission / reception buffer controller (CON20) 80 includes a reception buffer number setting register (SREG210) 81, a transmission buffer number setting register (TREG220) 82, and a reception buffer controller (C).
ON201) 61, transmission buffer controller (CON2
02) 62, transmission / reception buffer write permission controller (CON203) 63, transmission / reception permission register (TSERE
G206) 64 and interrupt controller (CON204)
It is composed of 72.

【0150】すなわち、本実施形態に係る送受信バッフ
ァコントローラ(CON20)80は、送受信バッファ
数設定レジスタ(ΤSREG205)60に代えて、受信
バッファ数設定レジスタ(SREG210)81、送信バ
ッファ数設定レジスタ(ΤREG220)82を付加した
構成となっており、この回路を付加することにより送
信、受信のバッファ数を独立して設定可能となる。
That is, the transmission / reception buffer controller (CON20) 80 according to the present embodiment is replaced with the transmission / reception buffer number setting register (ΤSREG205) 60, and the reception buffer number setting register (SREG210) 81 and the transmission buffer number setting register (ΤREG220). The number of buffers for transmission and reception can be independently set by adding this circuit.

【0151】上記受信バッファ数設定レジスタ(SRE
G210)81は、送受信バッファ(Β60〜B62)51
〜53のうち受信に割り付けるバッファ数を設定するレ
ジスタである。
The reception buffer number setting register (SRE
G 210) 81 is a transmission / reception buffer (B 60 to B 62) 51
It is a register for setting the number of buffers to be allocated to reception out of 53.

【0152】入力信号としてリード/ライト信号10
6、受信バッファコントローラセレクト信号1070、
データ信号119がある。また、出力信号として受信バ
ッファ数データ信号1190があり、受信バッファ数デ
ータ信号1190は、送受信バッファ(Β60〜B62)
51〜53のうち受信バッファに割り付ける数を出力す
る信号である。この受信バッファ数設定レジスタ(SR
EG210)81の動作状態は、図13の表4に示され
る。
Read / write signal 10 as an input signal
6, receive buffer controller select signal 1070,
There is a data signal 119. Further, there is a reception buffer number data signal 1190 as an output signal, and the reception buffer number data signal 1190 is a transmission / reception buffer (B60 to B62).
It is a signal that outputs the number of 51 to 53 to be assigned to the reception buffer. This receive buffer number setting register (SR
The operating state of the EG 210) 81 is shown in Table 4 of FIG.

【0153】上記送信バッファ数設定レジスタ(ΤRE
G220)82は、送受信バッファ(Β60〜B62)51
〜53のうち送信に割り付けるバッファ数を設定するレ
ジスタである。
The transmission buffer number setting register (ΤRE
G 220) 82 is a transmission / reception buffer (B 60 to B 62) 51
It is a register for setting the number of buffers to be allocated to transmission out of 53.

【0154】入力信号としてリード/ライト信号10
6、送信バッファコントローラセレクト信号1071、
コントロールデータ信号119がある。また、出力信号
として送信バッファ数データ信号1191があり、送信
バッファ数データ信号1191は、送受信バッファ(Β
60〜B62)51〜53のうち送信バッファに割り付け
る数を出力する信号である。この送信バッファ数設定レ
ジスタ(ΤREG220)82の動作状態は、図13の表
4に示される。
Read / write signal 10 as an input signal
6, transmission buffer controller select signal 1071,
There is a control data signal 119. Further, there is a transmission buffer number data signal 1191 as an output signal, and the transmission buffer number data signal 1191 is transmitted and received by the transmission / reception buffer (B
60 to B62) A signal for outputting the number of 51 to 53 to be assigned to the transmission buffer. The operating state of the transmission buffer number setting register (TREG220) 82 is shown in Table 4 of FIG.

【0155】以下、上述のように構成されたシリアルI
/Oの動作を説明する。
Hereinafter, the serial I constructed as described above will be described.
The operation of / O will be described.

【0156】図14は上記シリアルΙ/Oのタイミング
チャートであり、送信バッファ数、受信バッファ数の設
定を変更するときの動作を示すタイミングチャートであ
る。
FIG. 14 is a timing chart of the serial I / O and is a timing chart showing the operation when changing the settings of the number of transmission buffers and the number of reception buffers.

【0157】図14に示すように、受信バッファコント
ローラセレクト信号1070の値“1”と送信バッファ
コントローラセレクト信号1071の値“1”とリード
/ライト信号106が“0”のとき、受信バッファ数設
定レジスタ(SREG210)81にコントロールデータ
信号119のデータ“03h”がセットされ、受信バッ
ファ数3個となる。
As shown in FIG. 14, when the value "1" of the reception buffer controller select signal 1070, the value "1" of the transmission buffer controller select signal 1071 and the read / write signal 106 are "0", the number of reception buffers is set. The data "03h" of the control data signal 119 is set in the register (SREG210) 81, and the number of receiving buffers becomes three.

【0158】同時に、送信バッファ数設定レジスタ(Τ
REG220)82にコントロールデータ信号119のデ
ータ“03h”がセットされ、送信バッファ数1個とな
る。ここで、送受信バッファ数4個のため送信バッファ
数はコントロールデータ数から4を差し引いた数となる
(図14(1)参照)。
At the same time, the transmission buffer number setting register (Τ
The data "03h" of the control data signal 119 is set in the REG 220) 82, and the number of transmission buffers becomes one. Here, since the number of transmission / reception buffers is 4, the number of transmission buffers is the number obtained by subtracting 4 from the number of control data (see FIG. 14 (1)).

【0159】また、受信バッファコントローラセレクト
信号1070の値“1”と送信バッファコントローラセ
レクト信号1071の値“0”とリード/ライト信号1
06“0”のとき、受信バッファ数設定レジスタ(SR
EG210)81にコントロールデータ信号119のデー
タ“01h”がセットされ、受信バッファ数1個とな
る。
Further, the value "1" of the reception buffer controller select signal 1070, the value "0" of the transmission buffer controller select signal 1071 and the read / write signal 1
When it is 06 “0”, the number of receiving buffer setting register (SR
The data "01h" of the control data signal 119 is set in the EG 210) 81, and the number of receiving buffers becomes one.

【0160】このとき、送信バッファ数設定レジスタ
(ΤREG220)82にコントロールデータ信号119
のデータ“01h”はセットされず、送信バッファ数は
引き続き1個となる(図14(2)参照)。
At this time, the control data signal 119 is sent to the transmission buffer number setting register (ΤREG 220) 82.
The data "01h" is not set, and the number of transmission buffers continues to be 1 (see FIG. 14 (2)).

【0161】受信バッファコントローラセレクト信号1
070の値“0”と送信バッファコントローラセレクト
信号1071の値“1”とリード/ライト信号106が
“0”のとき、受信バッファ数設定レジスタ(ΤSRE
G210)81にコントロールデータ信号119のデータ
“02h”はセットされず、受信バッファ数は引き続き
1個となる。また、送信バッファ数設定レジスタ(TR
EG220)82にコントロールデータ信号119のデ
ータ“02h”がセットされ、送信バッファ数は2個と
なる(図14(3)参照)。
Receive buffer controller select signal 1
When the value of 070 is "0", the value of the transmission buffer controller select signal 1071 is "1", and the read / write signal 106 is "0", the reception buffer number setting register (ΤSRE
The data "02h" of the control data signal 119 is not set in the G210) 81, and the number of receiving buffers continues to be one. Also, the transmission buffer number setting register (TR
The data "02h" of the control data signal 119 is set in the EG 220) 82, and the number of transmission buffers becomes two (see FIG. 14 (3)).

【0162】受信バッファコントローラセレクト信号1
070の値“0”と送信バッファコントローラセレクト
信号1071の値“0”とリード/ライト信号106が
“0”のとき、受信バッファ数設定レジスタ(SREG
210)81にコントロールデータ信号119のデータ
“00h”はセットされず、受信バッファ数は引き続き
1個となる。また、送信バッファ数設定レジスタ(TR
EG220)82にもコントロールデータ信号119の
データ“00h”がセットされず、送信バッファ数も引
き続き2個となる(図14(4)参照)。
Receive buffer controller select signal 1
When the value of 070 is "0", the value of the transmit buffer controller select signal 1071 is "0", and the read / write signal 106 is "0", the receive buffer number setting register (SREG
The data "00h" of the control data signal 119 is not set in 210) 81, and the number of receiving buffers continues to be one. Also, the transmission buffer number setting register (TR
The data “00h” of the control data signal 119 is not set in the EG 220) 82, and the number of transmission buffers continues to be 2 (see FIG. 14 (4)).

【0163】以上説明したように、第3の実施形態に係
るシリアルI/Oは、送受信バッファコントローラ(C
ON20)80が、受信バッファ数設定レジスタ(SR
EG210)81及び送信バッファ数設定レジスタ(ΤR
EG220)82を付加し、受信バッファ数設定レジスタ
(SREG210)81及び送信バッファ数設定レジスタ
(ΤREG220)82が、受信バッファ数と送信バッフ
ァ数をそれぞれ指定し、指定されていない送受信バッフ
ァの動作を停止させるようにしているので、受信バッフ
ァ数、送信バッファ数を個別に設定することができ、シ
ステムに合ったバッファ数でシステム構築が可能とな
る。
As described above, the serial I / O according to the third embodiment has the transmission / reception buffer controller (C
ON20) 80 is the receiving buffer number setting register (SR
EG210) 81 and transmission buffer number setting register (ΤR
EG 220) 82 is added, and the reception buffer number setting register (SREG 210) 81 and the transmission buffer number setting register (ΤREG 220) 82 specify the reception buffer number and the transmission buffer number, respectively, and stop the operation of the transmission and reception buffers not specified. Since the number of receiving buffers and the number of transmitting buffers can be individually set, the system can be constructed with the number of buffers suitable for the system.

【0164】なお、上記各実施形態に係るシリアルI/
Oでは、マイクロコンピュータ等のシリアルI/Oに適
用することができるが、複数の送受信バッファを有する
シリアルI/Oはどのようなものでもよく、マイクロコ
ンピュータ内部に組み込まれる回路の一部であってもよ
い。また、送受信バッファが4個以外の装置においても
同様に適用できることは言うまでもない。
The serial I / O according to each of the above embodiments is
The O can be applied to a serial I / O of a microcomputer or the like, but any serial I / O having a plurality of transmission / reception buffers can be used and is a part of a circuit incorporated in the microcomputer. Good. It goes without saying that the same can be applied to devices other than the four transmission / reception buffers.

【0165】さらに、上記シリアルI/Oを構成するコ
ントローラや各種回路の数、種類接続状態などは前述し
た上述の各実施形態に限られないことは言うまでもな
い。
Further, it goes without saying that the number of controllers and various circuits constituting the serial I / O, the type connection state, etc. are not limited to those in the above-mentioned respective embodiments.

【0166】[0166]

【発明の効果】本発明に係るシリアルI/Oでは、複数
の送受信バッファを有するシリアルI/Oであって、受
信バッファ数又は送信バッファ数の少なくとも何れか1
つを指定することにより使用する送信バッファ数及び受
信バッファ数を割り付ける制御手段と、制御手段による
送受信バッファの割り付け指示に基づいて、複数の送受
信バッファの中から所定の送受信バッファを選択し、該
選択した送受信バッファへのリード/ライトを行う選択
手段とを備えて構成しているので送信バッファを1個又
は未使用のとき残りのバッファを受信バッファに割り付
けることができるとともに、受信バッファを1個又は未
使用のとき残りのバッファを送信バッファに割り付ける
ことができ回路を有効に活用することができる。
The serial I / O according to the present invention is a serial I / O having a plurality of transmission / reception buffers and at least one of the number of reception buffers or the number of transmission buffers.
Control means for allocating the number of transmission buffers and the number of reception buffers to be used by designating one of them, and selecting a predetermined transmission / reception buffer from among the plurality of transmission / reception buffers based on an instruction to allocate transmission / reception buffers by the control means. Since the transmission / reception buffer is configured to include a selection unit for reading / writing the transmission / reception buffer, one transmission buffer or the remaining buffer can be allocated to the reception buffer when not in use, and one reception buffer or When not in use, the remaining buffer can be allocated to the transmission buffer, and the circuit can be effectively used.

【0167】また、本発明に係るシリアルI/Oでは、
受信データのリード要求を出力する割り込み手段を備
え、割り込み手段が、指定された受信バッファの数だけ
受信を行ったあと又は1バイト受信毎に受信データリー
ド要求を出力するように構成しているので、送受信デー
タのリード/ライトを行うための処理を一括して行うこ
とができ、マイクロコントローラの処理を軽減すること
ができる。
In the serial I / O according to the present invention,
Since the interrupt means is configured to output a read request for receiving data, and the interrupt means is configured to output the receive data read request after receiving the designated number of reception buffers or each time one byte is received. The processing for reading / writing the transmission / reception data can be collectively performed, and the processing of the microcontroller can be reduced.

【0168】さらに、本発明に係るシリアルI/Oで
は、受信バッファ数と送信バッファ数をそれぞれ設定可
能な設定手段を備え、設定手段が、受信バッファ数と送
信バッファ数をそれぞれ指定し、該指定されていない送
受信バッファの動作を停止させるように構成しているの
で、受信バッファ数、送信バッファ数を個別に設定する
ことができ、システムに合ったバッファ数でシステム構
築ができる。
Further, the serial I / O according to the present invention is provided with setting means capable of setting the number of receiving buffers and the number of transmitting buffers, respectively, and the setting means designates the number of receiving buffers and the number of transmitting buffers respectively. Since it is configured to stop the operation of the transmission / reception buffers that are not stored, the number of reception buffers and the number of transmission buffers can be individually set, and the system can be constructed with the number of buffers suitable for the system.

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

【図1】本発明を適用した第1の実施形態に係るシリア
ルI/Oの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a serial I / O according to a first embodiment to which the present invention is applied.

【図2】上記シリアルI/Oの送受信バッファコントロ
ーラの内部構成を示す図である。
FIG. 2 is a diagram showing an internal configuration of a transmission / reception buffer controller of the serial I / O.

【図3】上記シリアルI/Oの送受信バッファ数設定レ
ジスタの動作を説明するための図である。
FIG. 3 is a diagram for explaining an operation of the transmission / reception buffer number setting register of the serial I / O.

【図4】上記シリアルI/Oの受信バッファコントロー
ラの動作を説明するための図である。
FIG. 4 is a diagram for explaining the operation of the serial I / O reception buffer controller.

【図5】上記シリアルI/Oの送信バッファコントロー
ラの動作を説明するための図である。
FIG. 5 is a diagram for explaining the operation of the serial I / O transmission buffer controller.

【図6】上記シリアルΙ/Oの送信バッファ数3個、受
信バッファ数1個に設定したときの動作を示すタイミン
グチャートである。
FIG. 6 is a timing chart showing the operation when the number of serial I / O transmission buffers is set to 3 and the number of reception buffers is set to 1;

【図7】上記シリアルΙ/Oの送信バッファ数1個、受
信バッファ数3個に設定したときの動作を示すタイミン
グチャートである。
FIG. 7 is a timing chart showing the operation when the number of serial I / O transmission buffers is set to 1 and the number of reception buffers is set to 3;

【図8】本発明を適用した第2の実施形態に係るシリア
ルI/Oの構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a serial I / O according to a second embodiment to which the present invention is applied.

【図9】上記シリアルI/Oの送受信バッファコントロ
ーラの内部構成を示す図である。
FIG. 9 is a diagram showing an internal configuration of the transmission / reception buffer controller of the serial I / O.

【図10】上記シリアルI/Oの受信リードデータ要求
を1バイト毎の固定で動作させたときの動作を示すタイ
ミングチャートである。
FIG. 10 is a timing chart showing the operation when the received read data request of the serial I / O is fixedly operated for each byte.

【図11】上記シリアルI/Oの受信リードデータ要求
を固定解除にし、3バイト毎で動作させたときの動作を
示すタイミングチャートである。
FIG. 11 is a timing chart showing an operation when the reception read data request of the serial I / O is released from fixed state and operated every 3 bytes.

【図12】本発明を適用した第3の実施形態に係るシリ
アルI/Oの内部構成を示す図である。
FIG. 12 is a diagram showing an internal configuration of a serial I / O according to a third embodiment of the present invention.

【図13】上記シリアルI/Oの送信、受信バッファ数
設定レジスタの動作を説明するための図である。
FIG. 13 is a diagram for explaining the operation of the serial I / O transmission / reception buffer number setting register.

【図14】上記シリアルΙ/Oの送信バッファ数、受信
バッファ数の設定を変更するときの動作を示すタイミン
グチャートである。
FIG. 14 is a timing chart showing an operation when changing the settings of the number of transmission buffers and the number of reception buffers of the serial I / O.

【図15】従来のシリアルI/Oの構成を示すブロック
図である。
FIG. 15 is a block diagram showing a configuration of a conventional serial I / O.

【図16】従来のシリアルI/Oの受信バッファコント
ローラの内部構成を示す図である。
FIG. 16 is a diagram showing an internal configuration of a conventional serial I / O receive buffer controller.

【図17】従来のシリアルI/Oの送信バッファコント
ローラの内部構成を示す図である。
FIG. 17 is a diagram showing an internal configuration of a conventional serial I / O transmission buffer controller.

【図18】従来のシリアルΙ/Oの受信時の動作を示す
タイミングチャートである。
FIG. 18 is a timing chart showing an operation at the time of receiving a conventional serial I / O.

【図19】従来のシリアルΙ/Oの受信時の動作を示す
タイミングチャートである。
FIG. 19 is a timing chart showing an operation at the time of receiving a conventional serial I / O.

【符号の説明】[Explanation of symbols]

50,70 シリアルI/O、11 受信シフトレジス
タ(RSF1)、12送信シフトレジスタ(TSF
3)、51,52,53,54 送受信バッファ(B6
0,B61,B62,B63)、55,17,18,19
セレクタ(S40,S41,S42,S43)(選択手
段)、56,71 送受信バッファコントローラ(CO
N20)(制御手段)、60 送受信バッファ数設定レ
ジスタ(ΤSREG205)、61 受信バッファコント
ローラ(CON201)、62 送信バッファコントロー
ラ(CON202)、63 送受信バッファ書き込み許可
コントローラ(CON203)、64 送受信許可レジス
タ(TSEREG206)、72割り込みコントローラ
(CON204)、81 受信バッファ数設定レジスタ
(SREG210)、82 送信バッファ数設定レジスタ
(ΤREG220)
50,70 serial I / O, 11 reception shift register (RSF1), 12 transmission shift register (TSF
3), 51, 52, 53, 54 Transmission / reception buffer (B6
0, B61, B62, B63), 55, 17, 18, 19
Selectors (S40, S41, S42, S43) (selection means), 56, 71 transmission / reception buffer controller (CO
N20) (control means), 60 transmission / reception buffer number setting register (T SREG205), 61 reception buffer controller (CON201), 62 transmission buffer controller (CON202), 63 transmission / reception buffer write enable controller (CON203), 64 transmission / reception enable register (TSEREG206) , 72 interrupt controller (CON204), 81 reception buffer number setting register (SREG210), 82 transmission buffer number setting register (ΤREG220)

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数の送受信バッファを有するシリアル
I/Oであって、 受信バッファ数又は送信バッファ数の少なくとも何れか
1つを指定することにより使用する送信バッファ数及び
受信バッファ数を割り付ける制御手段と、 前記制御手段による送受信バッファの割り付け指示に基
づいて、複数の送受信バッファの中から所定の送受信バ
ッファを選択し、該選択した送受信バッファへのリード
/ライトを行う選択手段とを備えたことを特徴とするシ
リアルI/O。
1. A serial I / O having a plurality of transmission / reception buffers, wherein control means for allocating the number of transmission buffers and the number of reception buffers to be used by designating at least one of the number of reception buffers or the number of transmission buffers. And a selection means for selecting a predetermined transmission / reception buffer from a plurality of transmission / reception buffers based on an instruction to allocate the transmission / reception buffer by the control means, and for performing read / write to the selected transmission / reception buffer. Characteristic serial I / O.
【請求項2】 前記制御手段は、送信バッファを1個又
は未使用のとき残りのバッファを受信バッファとして割
り付けるように制御することを特徴とする請求項1に記
載のシリアルI/O。
2. The serial I / O according to claim 1, wherein the control means controls one transmission buffer or allocates the remaining buffer as a reception buffer when it is unused.
【請求項3】 前記制御手段は、受信バッファを1個又
は未使用のとき残りのバッファを送信バッファとして割
り付けるように制御することを特徴とする請求項1に記
載のシリアルI/O。
3. The serial I / O according to claim 1, wherein the control means controls so as to allocate one reception buffer or the remaining buffer as a transmission buffer when it is unused.
【請求項4】 前記選択手段は、前記制御手段からの割
り付け指示により複数の送受信バッファの中から1つを
選択し、所定の送受信バッファへのリード/ライトを行
うように構成したことを特徴とする請求項1に記載のシ
リアルI/O。
4. The selection means is configured to select one from a plurality of transmission / reception buffers in accordance with an allocation instruction from the control means, and to perform read / write to a predetermined transmission / reception buffer. The serial I / O according to claim 1.
【請求項5】 さらに、上記請求項1記載のシリアルI
/Oにおいて、 受信データのリード要求を出力する割り込み手段を備
え、 前記割り込み手段は、指定された受信バッファの数だけ
受信を行ったあと又は1バイト受信毎に受信データリー
ド要求を出力するように構成したことを特徴とする請求
項1に記載のシリアルI/O。
5. The serial I according to claim 1 above.
/ O, an interrupt means for outputting a read request of received data is provided, and the interrupt means outputs a received data read request after receiving the designated number of reception buffers or every 1-byte reception. The serial I / O according to claim 1, wherein the serial I / O is configured.
【請求項6】 前記割り込み手段は、受信バッファ数を
変更したときに受信バッファ数単位又は1バイト単位に
受信データリード要求を出力するように構成したことを
特徴とする請求項5に記載のシリアルI/O。
6. The serial device according to claim 5, wherein the interrupt means is configured to output a received data read request in units of the number of receiving buffers or in units of 1 byte when the number of receiving buffers is changed. I / O.
【請求項7】 前記制御手段は、受信バッファ数と送信
バッファ数をそれぞれ設定可能な設定手段を備え、 前記設定手段は、受信バッファ数と送信バッファ数をそ
れぞれ指定し、該指定されていない送受信バッファの動
作を停止させるようにしたことを特徴とする請求項1、
2又は3の何れかに記載のシリアルI/O。
7. The control means includes setting means capable of setting the number of reception buffers and the number of transmission buffers respectively, and the setting means specifies the number of reception buffers and the number of transmission buffers respectively, and the transmission / reception not designated. 2. The operation of the buffer is stopped.
The serial I / O described in either 2 or 3.
【請求項8】 前記送受信バッファは、データの入力状
態によって受信バッファ又は送信バッファの何れのバッ
ファとしても使用可能なバッファで構成されたことを特
徴とする請求項1、4又は7の何れかに記載のシリアル
I/O。
8. The transmission / reception buffer is configured as a buffer that can be used as either a reception buffer or a transmission buffer depending on a data input state. Serial I / O as described.
JP11069496A 1996-05-01 1996-05-01 Serial I / O Expired - Fee Related JP3698483B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11069496A JP3698483B2 (en) 1996-05-01 1996-05-01 Serial I / O

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11069496A JP3698483B2 (en) 1996-05-01 1996-05-01 Serial I / O

Publications (2)

Publication Number Publication Date
JPH09297732A true JPH09297732A (en) 1997-11-18
JP3698483B2 JP3698483B2 (en) 2005-09-21

Family

ID=14542089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11069496A Expired - Fee Related JP3698483B2 (en) 1996-05-01 1996-05-01 Serial I / O

Country Status (1)

Country Link
JP (1) JP3698483B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010835A (en) * 2007-06-29 2009-01-15 Mitsubishi Electric Corp Communication controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010835A (en) * 2007-06-29 2009-01-15 Mitsubishi Electric Corp Communication controller

Also Published As

Publication number Publication date
JP3698483B2 (en) 2005-09-21

Similar Documents

Publication Publication Date Title
KR19990077646A (en) Bus control method, bus control apparatus, and storage medium for storing bus control program
US5481678A (en) Data processor including selection mechanism for coupling internal and external request signals to interrupt and DMA controllers
KR20020073784A (en) Direct memory access controller being converted transfer mode flexibly according to data transfer counter value
JP3467382B2 (en) High speed processor
US6189075B1 (en) Circuit for the management of memories in a multiple-user environment with access request and priority
KR101128898B1 (en) Direct memory access controller, system and method for transferring a data using the same
US7650440B2 (en) Peripheral supplied addressing in a simple DMA module
JPH09297732A (en) Serial i/o
JPH10228446A (en) Bus arbitration system
KR100334044B1 (en) System lsi having communication function
JPH10326224A (en) Digital signal processor
JP2550868B2 (en) Communication control LSI
JP3910165B2 (en) High speed processor
JP2001319470A (en) Fifo circuit
JPH04282938A (en) Communication controller
JPH09282301A (en) Microcontroller
JPS5945756A (en) Line buffer device
KR100962306B1 (en) Bidirectional data transmission apparatus and the method thereof for embedded system
JPH03231534A (en) Data transmitter
JPH11249713A (en) Master station unit for remote input and output device
JPH04246744A (en) Arbitration circuit
JPH0784937A (en) Microprocessor connecting circuit of peripheral circuit
JP2002024168A (en) Serial data transfer device
JPH05143364A (en) Interruption control device
JPH06119287A (en) Data transfer system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040427

A521 Written amendment

Effective date: 20040617

Free format text: JAPANESE INTERMEDIATE CODE: A523

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Effective date: 20040622

Free format text: JAPANESE INTERMEDIATE CODE: A911

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20050705

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050705

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20080715

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees