JPH0528416B2 - - Google Patents

Info

Publication number
JPH0528416B2
JPH0528416B2 JP61070115A JP7011586A JPH0528416B2 JP H0528416 B2 JPH0528416 B2 JP H0528416B2 JP 61070115 A JP61070115 A JP 61070115A JP 7011586 A JP7011586 A JP 7011586A JP H0528416 B2 JPH0528416 B2 JP H0528416B2
Authority
JP
Japan
Prior art keywords
data
output
circuit
shift register
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61070115A
Other languages
Japanese (ja)
Other versions
JPS62226252A (en
Inventor
Yoshiaki Makii
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP7011586A priority Critical patent/JPS62226252A/en
Publication of JPS62226252A publication Critical patent/JPS62226252A/en
Publication of JPH0528416B2 publication Critical patent/JPH0528416B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マイクロ・コンピユータ回路に関
し、特に1チツプ内にCPUとともに集積された
シリアル入出力回路の新規な構成に関わる。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to microcomputer circuits, and more particularly to a novel configuration of serial input/output circuits integrated together with a CPU in one chip.

従来の技術 一般的なマイクロ・コンピユータ内蔵シリアル
入出力回路は以下のように構成されている。即
ち、添付の第2図に示すように、並列データのビ
ツト数に応じた複数個の2値回路、例えば遅延型
フリツプ・フロツプ回路を、SR1、SR2…のよう
に直列に接続して構成されたシフト・レジスタ回
路1を備えており、データの転送に際しては、ま
ずパラレル入出力回路2を介して転送すべきパラ
レル・データを各レジタス毎に1ビツトずつ入力
し、次いで、このシフト・レジスタ回路1に格納
されたデータを、シフト・レジスタ回路の最終段
に向かつて1ビツトずつシフトし、最終段のデー
タはシリアル・データ出力端子3よりシリアル・
データとしてCPU外部へ出力する。この際のデ
ータのシフトは、クロツク信号入力端子4より入
力されシフト・クロツク制御回路5を介してシフ
ト・レジスタ回路1に入力されるシフト・クロツ
ク信号に同期して行われるように構成されてい
る。
Prior Art A typical serial input/output circuit built into a microcomputer is configured as follows. That is, as shown in the attached Figure 2, a plurality of binary circuits corresponding to the number of bits of parallel data, such as delay flip-flop circuits, are connected in series like SR1, SR2, etc. When transferring data, first, one bit of parallel data to be transferred is input to each register via the parallel input/output circuit 2, and then the shift register circuit 1 The data stored in 1 is shifted 1 bit at a time toward the final stage of the shift register circuit, and the data at the final stage is serially output from the serial data output terminal 3.
Output to the outside of the CPU as data. The data shift at this time is configured to be performed in synchronization with a shift clock signal inputted from a clock signal input terminal 4 and inputted to the shift register circuit 1 via a shift clock control circuit 5. .

このようなシリアル入出力回路のシフトレジス
タは、多くの場合、CPUの演算語長に応じて、
例えば8ビツトCPUのためのものでは8個の要
素よりなるシフト・レジスタ回路が組み込まれ、
1バイト、即ち8ビツトのシリアル/パラレル変
換をもつて、1サイクルの変換/転送とされてい
る。
The shift register of such a serial input/output circuit is often
For example, for an 8-bit CPU, a shift register circuit consisting of 8 elements is incorporated.
One byte, or 8 bits, of serial/parallel conversion is considered to be one cycle of conversion/transfer.

発明が解決しようとする問題点 近年、マイクロコンピユータの応用分野の広が
りと共に、シリアル・データ転送方式にも各種の
方式が開発され、実用に供されてきている。従つ
て、上述の如きCPUの演算語長に合わせたシフ
ト・レジスタを用いて、1バイト毎に変換/転送
を行うことを想定して構成されたシリアル入出力
回路では、各種の転送方式に効率よく対応できな
い場合がある。
Problems to be Solved by the Invention In recent years, with the expansion of the field of application of microcomputers, various serial data transfer systems have been developed and put into practical use. Therefore, a serial input/output circuit configured to perform conversion/transfer for each byte using a shift register that matches the word length of the CPU as described above is not efficient for various transfer methods. It may not be possible to respond well.

即ち、例えば8ビツト用に構成されたマイクロ
コンピユータで1バイト(8ビツト)のデータを
転送する場合に、必ずしも1サイクルの変換/転
送では1バイトのデータ転送をなし得ない場合が
生じるからである。以下、8ビツト用に構成され
たシリアル入出力回路を例に、その問題点につい
て詳述する。
That is, for example, when transferring 1 byte (8 bits) of data with a microcomputer configured for 8 bits, there are cases where it is not always possible to transfer 1 byte of data in 1 cycle of conversion/transfer. . Hereinafter, the problems will be explained in detail using a serial input/output circuit configured for 8 bits as an example.

例えば、転送データの正確さを確認する方法と
して、転送データにパリテイビツト(冗長ビツ
ト)を付加して転送することが広く実施されてい
る。奇数/偶数パリテイ、水平/垂直パリテイな
ど多種の方式があるが、いずれの場合も1バイト
ごとにパリテイビツトとしての1ビツト以上のデ
ータが加わることが一般的である。
For example, as a method of confirming the accuracy of transferred data, it is widely practiced to add parity bits (redundant bits) to the transferred data before transferring the data. There are various types of parity, such as odd/even parity and horizontal/vertical parity, but in either case, it is common to add one or more bits of data as a parity bit to each byte.

ところが、従来の、例えば8ビツト用シリアル
入出力回路を用いてパリテイ付きの1バイトのデ
ータを転送しようとした場合、8ビツト単位でパ
ラレル/シリアル変換/転送を行わなければなら
ないので、まず、1サイクルの変換でデータ8ビ
ツトを転送し、このシリアル転送が完了した時点
でパリテイ・データ1ビツトとダミー7ビツトと
からなる8ビツトのデータを再度シフト・レジス
タ回路を介して転送し、併せて1バイトのシリア
ル・データ転送を完了するという操作が必要とな
る。すなわち、1バイトのデータ転送のために2
サイクルの変換/転送を実施しなければならなか
つた。
However, when trying to transfer 1 byte of data with parity using a conventional 8-bit serial input/output circuit, for example, parallel/serial conversion/transfer must be performed in 8-bit units, so first 8 bits of data are transferred by cycle conversion, and when this serial transfer is completed, 8 bits of data consisting of 1 bit of parity data and 7 dummy bits are transferred again via the shift register circuit, and a total of 1 An operation is required to complete a serial data transfer of bytes. In other words, for 1 byte of data transfer, 2
Cycle conversion/transfer had to be performed.

従つて、パリテイビツトを加えることにより転
送データの信頼性を高めようとすると、処理時間
は実質的に2倍になつてしまい、更に、パリテイ
1ビツト毎に7ビツトのダミーを加えるという、
本来不要のデータ操作が必要となる。
Therefore, if you try to improve the reliability of transferred data by adding parity bits, the processing time will essentially double, and in addition, 7 dummy bits will be added for every 1 parity bit.
Data manipulation that is not originally required is required.

また、比較的低速の入出力機器への転送に広く
利用されている、調歩非同期シリアル送受信方式
(以下UART(Universal Asynchronous
Receiver/Transmitter)方式と記す)について
同様な検討を行う。
In addition, UART (Universal Asynchronous Serial Transmission/Reception) is widely used for transfer to relatively low-speed input/output devices.
A similar study will be conducted regarding the Receiver/Transmitter method).

UART方式は、非同期の送受信を行うので、
この方式における1サイクルの転送データは、ス
タート・ビツト(1ビツト)+転送データ+パリ
テイ(1ビツト)+ストツプ・ビツト(1、1.5あ
るいは2ビツト)より成つている。
Since the UART method performs asynchronous transmission and reception,
In this system, one cycle of transfer data consists of a start bit (1 bit) + transfer data + parity (1 bit) + stop bit (1, 1.5 or 2 bits).

従つて、8ビツト用のシリアル入出力回路を利
用する場合には、前述の場合と同様に、1バイト
のデータ変換/転送を行うのに少なくとも2サイ
クルの変換を行わなければならない。一方、シフ
ト・レジスタの利用効率を高めるためにダミー・
ビツトの転送を避けようとすれば、1サイクルの
変換で転送できるデータは5ビツトとなり、単位
処理時間当たりの転送できる情報量が低下すると
ともに、1サイクル毎に転送すべきデータを5ビ
ツトごとに区切つてシリアル入出力回路に入力す
るという操作が必要になる。
Therefore, when using an 8-bit serial input/output circuit, at least two cycles of conversion must be performed to convert/transfer one byte of data, as in the case described above. On the other hand, to increase the efficiency of shift register use, dummy
If we try to avoid transferring bits, the data that can be transferred in one cycle of conversion will be 5 bits, which will reduce the amount of information that can be transferred per unit processing time, and the data that should be transferred in each cycle will have to be transferred every 5 bits. It is necessary to separate the data and input it to the serial input/output circuit.

更に、この方式の場合、スタート・ビツトを検
出するために、データ転送開始前はシリアル・デ
ータ外部出力線を高レベルに保つておく必要があ
る。従つて、従来のシリアル入出力回路を利用し
てUART方式でのデータ転送を実施するために
は、データ転送開始前のデータ及びストツプ・ビ
ツトの為のデータを、シフト・レジスタにセツト
するか、或いは、予めシリアル・データ出力端子
をハイ・インピーダンス設定可能な回路とし、外
部にプル・アツプ抵抗を付加するなどの配慮を転
送開始前に施すことが必要であつた。
Furthermore, in this method, in order to detect the start bit, it is necessary to keep the serial data external output line at a high level before starting data transfer. Therefore, in order to perform data transfer using the UART method using a conventional serial input/output circuit, data before starting data transfer and data for a stop bit must be set in a shift register, or Alternatively, it is necessary to take measures such as setting the serial data output terminal to a high impedance circuit and adding an external pull-up resistor before starting the transfer.

以上、代表的なデータ転送方式について従来の
シリアル入出力回路の問題点を述べたが、昨今の
マイクロコンピユーター技術の発達と共にその応
用分野は広がり、上述の方式以外にも多種の方式
が開発・利用されるとともに、1基のマイクロコ
ンピユータがそれらの複数の方式に対応しなけれ
ばならない場合も多く、各種方式のいずれにも効
率よく対応できる汎用性の高いマイクロ・コンピ
ユータ内蔵シリアル入出力回路の必要性が論じら
れている。
Above, we have described the problems of conventional serial input/output circuits regarding typical data transfer methods. However, with the recent development of microcomputer technology, the field of application has expanded, and many other methods have been developed and used in addition to the methods mentioned above. In many cases, a single microcomputer must support multiple systems, and there is a need for a highly versatile serial input/output circuit built into a microcomputer that can efficiently support any of the various systems. is being discussed.

問題点を解決するための手段 前述のように従来のシリアル入出力回路では、
入力されたパラレルデータは、シフト・レジスタ
回路の最終段より直接シリアル・データとして出
力されてる。一方、前述したような従来のシリア
ル入出力回路を使用して各種の転送方式に対応し
た場合の問題は、各種方式によつて、異なる長さ
の通信のためのデータを転送データに付加しなけ
ればならないことによるものである。
Measures to solve the problem As mentioned above, in the conventional serial input/output circuit,
The input parallel data is directly output as serial data from the final stage of the shift register circuit. On the other hand, the problem when using the conventional serial input/output circuit described above to support various transfer methods is that data for different lengths of communication must be added to the transferred data depending on the various methods. This is due to the fact that

しかしながら、転送ために付加される夫々のデ
ータの長さは通常1〜3ビツト程度であり、転送
データほどの語長は持つていない。この点に着目
した本発明者等は、シフト・レジスタ回路の最終
段とシリアル入出力回路の出力端子との間にソフ
トウエアにより制御可能なラツチ回路を設けるこ
とにより、転送データに付加されるデータをシフ
ト・レジスタ回路を介さずに出力データに付加す
ることにより、転送データによるシフトレジスタ
の利用効率を高めることを案出した。
However, the length of each data added for transfer is usually about 1 to 3 bits, and does not have the same word length as the transfer data. The inventors of the present invention focused on this point, and by providing a latch circuit that can be controlled by software between the final stage of the shift register circuit and the output terminal of the serial input/output circuit, the data added to the transferred data is We have devised a method to increase the efficiency of use of the shift register by transfer data by adding it to the output data without going through the shift register circuit.

すなわち、本発明のシリアル入出力回路は、直
列に接続された複数の二値素子群とシフト・クロ
ツク制御回路からなるシフト・レジスタ回路と、
該シフト・レジスタ回路の各二値素子にパラレ
ル・データを入力する入力端子と、該シフト・レ
ジスタ回路の最終段よりデータをマイクロ・コン
ピユータ外部へ出力する出力端子とを備えた、シ
リアル入出力回路であつて、該シフト・レジスタ
回路最終段からの出力データを入力され前記出力
端子にデータを出力する出力ラツチ回路と、該出
力ラツチ回路に直接データを書き込む出力ラツチ
制御回路とを備えていることを特徴としている。
That is, the serial input/output circuit of the present invention includes a shift register circuit consisting of a plurality of series-connected binary element groups and a shift clock control circuit;
A serial input/output circuit comprising an input terminal for inputting parallel data to each binary element of the shift register circuit, and an output terminal for outputting data from the final stage of the shift register circuit to the outside of the microcomputer. and includes an output latch circuit that receives output data from the final stage of the shift register circuit and outputs the data to the output terminal, and an output latch control circuit that writes data directly to the output latch circuit. It is characterized by

また、前記出力ラツチ制御回路による出力ラツ
チ回路へのデータの書込みは、ソフトウエアによ
り制御可能に構成されており、更に、前記出力ラ
ツチ回路へのデータの書込みは前記シフト・クロ
ツク発生回路のクロツク・パルス信号と同期して
行うことが有利である。
Further, the writing of data to the output latch circuit by the output latch control circuit is configured to be controllable by software, and furthermore, the writing of data to the output latch circuit is controlled by the clock of the shift clock generation circuit. Advantageously, this is done synchronously with a pulse signal.

作 用 即ち、本発明に従うシリアル入出力回路では、
シフト・レジスタの終段とシリアル入出力回路の
出力端子との間に、ソフトウエアによる制御の可
能なラツチ回路を設けたことにより、各種通信方
式に応じて、転送すべきデータに付加されるパリ
テイビツトあるいは各種コードビツトを転送デー
タに付加することができる。従つて、通信方式に
より、転送データの語長が延びても、データ転送
に際してのパラレル/シリアル変換の回数は増加
せず、効率の高いデータ転送を実現することがで
きる。
In other words, in the serial input/output circuit according to the present invention,
By providing a latch circuit that can be controlled by software between the final stage of the shift register and the output terminal of the serial input/output circuit, parity bits added to the data to be transferred can be adjusted according to various communication methods. Alternatively, various code bits can be added to the transferred data. Therefore, even if the word length of transfer data is increased depending on the communication method, the number of parallel/serial conversions during data transfer does not increase, and highly efficient data transfer can be achieved.

実施例 以下に、実施例を参照して本発明に従うシリア
ル入出力回路についてより具体的に詳述するが、
以下に示されるものは、本発明の一実施例にすぎ
ず、本発明の技術的範囲を何等限定するものでは
ない。
Embodiments The serial input/output circuit according to the present invention will be described in more detail below with reference to embodiments.
What is shown below is only one example of the present invention, and does not limit the technical scope of the present invention in any way.

第1a図は、本発明の基本的な構成を示すブロ
ツク図である。なお、説明の便宜上、図中のシフ
ト・レジスタは8素子からなる8ビツト用のもの
を示しているが、本発明がこれに限定されるもの
ではないことはいうまでもない。
FIG. 1a is a block diagram showing the basic configuration of the present invention. For convenience of explanation, the shift register in the figure is shown as an 8-bit shift register consisting of 8 elements, but it goes without saying that the present invention is not limited to this.

同図に示された本発明によるシリアル入出力回
路では、従来のシリアル入出力回路と同様に、
SR1〜8の8素子の2値回路からなるシフト・レ
ジスタ回路11と、このシフト・レジスタ回路1
1最終段からマイクロ・コンピユータ外部へ出力
する出力端子12とを備えている。このシリアル
入出力回路においては、CPUの内部バス13よ
り、パラレル入出力制御回路14を介してシフ
ト・レジスタ回路11に入力されたパラレル・デ
ータは、シフト・レジスタの初段SR1から最終段
SR8に向かつて1ビツトずつシフトされ、シフ
ト・レジスタ回路11の最終段より順次シリア
ル・データとして出力される。この際のシフト
は、クロツク信号入力端子15より入力され、シ
フト・レジスタクロツク制御回路16を介してシ
フト・レジスタ回路11に入力されたクロツク信
号に同期して行われる。
In the serial input/output circuit according to the present invention shown in the figure, like the conventional serial input/output circuit,
A shift register circuit 11 consisting of a binary circuit of eight elements SR1 to SR8, and this shift register circuit 1
1 and an output terminal 12 for outputting from the final stage to the outside of the microcomputer. In this serial input/output circuit, parallel data input from the internal bus 13 of the CPU to the shift register circuit 11 via the parallel input/output control circuit 14 is transferred from the first stage SR1 of the shift register to the final stage.
The data is shifted one bit at a time toward SR8, and sequentially output as serial data from the final stage of the shift register circuit 11. The shifting at this time is performed in synchronization with a clock signal input from the clock signal input terminal 15 and input to the shift register circuit 11 via the shift register clock control circuit 16.

本発明にかかるシリアル入出力回路では、シフ
ト・レジスタの最終段と出力端子12との間に、
出力ラツチ回路17が備えられており、この出力
ラツチ回路17は出力ラツチ制御回路18によつ
て任意のデータの書込みが可能に構成されてい
る。
In the serial input/output circuit according to the present invention, between the final stage of the shift register and the output terminal 12,
An output latch circuit 17 is provided, and the output latch circuit 17 is configured to be capable of writing arbitrary data by an output latch control circuit 18.

今、例えば、1ビツトのパリテイ付きで8ビツ
ト・データを転送する場合、本発明によるシリア
ル入出力回路では次の様な手順となる。
For example, when transferring 8-bit data with 1-bit parity, the serial input/output circuit according to the present invention takes the following steps.

まず、最初に転送すべき8ビツト・データを内
部バス13よりパラレル入出力制御回路14によ
りシフト・レジスタ11の各要素SR1〜SR8に
各々書き込む。この転送データは、シリアル転送
スタート命令によりシフト・レジスタ・クロツク
制御回路16より出力されるクロツクに従つて1
ビツトずつ順次出力ラツチ回路17に転送されシ
リアル・データ出力端子12より外部シリアル・
データ線に出力される。8ビツトのデータ転送終
了後に出力ラツチ制御回路18により、出力ラツ
チ回路7にパリテイ・データを書き込み、転送デ
ータに続いて出力端子12より出力する。以上一
連の操作によりパリテイを付加した8ビツトのデ
ータのシリアル転送が完了する。
First, 8-bit data to be transferred first is written into each element SR1 to SR8 of the shift register 11 via the internal bus 13 by the parallel input/output control circuit 14. This transfer data is transferred one by one according to the clock output from the shift register clock control circuit 16 in response to a serial transfer start command.
Bit by bit is sequentially transferred to the output latch circuit 17 and output from the serial data output terminal 12 to the external serial
Output to the data line. After the 8-bit data transfer is completed, the output latch control circuit 18 writes parity data into the output latch circuit 7, and outputs it from the output terminal 12 following the transferred data. Through the above series of operations, serial transfer of 8-bit data with parity added is completed.

この時、出力ラツチ回路17に書き込まれるデ
ータが“0”または“1”の2値のいずれかを書
き込むものである場合は、出力ラツチ回路及びそ
の制御回路には第1b図に示すような回路を用い
ることができる。
At this time, if the data to be written to the output latch circuit 17 is either binary value "0" or "1", the output latch circuit and its control circuit should have a circuit as shown in FIG. 1b. can be used.

即ち、第1b図において、ラツチ信号Cが
“0”のときは、点線にて包囲された回路17が
ラツチ回路を構成し、シフト・レジスタ11から
の信号を順次ラツチして出力する。また、ラツチ
信号Cが“1”になると、シフト・レジスタ11
からの入力は遮断される一方、書込みデータ信号
Bからの入力が、シリアル入出力回路の出力端1
2へ電送される。このとき、書込み信号Bは、書
込み制御信号Aによつて制御されている。
That is, in FIG. 1b, when the latch signal C is "0", the circuit 17 surrounded by the dotted line constitutes a latch circuit, and sequentially latches and outputs the signals from the shift register 11. Furthermore, when the latch signal C becomes "1", the shift register 11
The input from the write data signal B is blocked, while the input from the write data signal B is input to the output terminal 1 of the serial input/output circuit.
It is sent by wire to 2. At this time, write signal B is controlled by write control signal A.

このような回路において、ラツチ信号として、
シフト・クロツク信号を用いれば、出力端子12
からの出力される信号はシフト・クロツクに同期
して行われるため、従来のシリアル入出力回路を
用いて9ビツトのデータをシリアル転送した場合
と全く同じ信号が、ダミー・ビツトを変換/転送
することなくマイクロ・コンピユータ外部に出力
される。
In such a circuit, as a latch signal,
Using the shift clock signal, output terminal 12
Since the signal output from the converter is synchronized with the shift clock, the exact same signal that converts/transfers the dummy bits is used when 9-bit data is serially transferred using a conventional serial input/output circuit. It is output to the outside of the microcomputer without any interference.

また、このような回路が、本発明による装置の
従来からのシリアル入出力回路としての機能を妨
げるものではないことはいうまでもない。
Further, it goes without saying that such a circuit does not interfere with the function of the device according to the present invention as a conventional serial input/output circuit.

次に、UART方式の転送について考える。 Next, consider UART-based transfer.

UART方式は非同期転送であるから、転送開
始時にデータ線上でスタート・ビツトの“0”を
検出するために、データの転送開始前は外部シリ
アル・データ線を高レベルに保つ必要がある。そ
こで、本発明にかかるシリアル入出力回路では、
出力ラツチ制御回路により、出力ラツチ回路を高
レベルに保つことにより、これを実現することが
できる。
Since the UART method is an asynchronous transfer, it is necessary to keep the external serial data line at a high level before starting the data transfer in order to detect the start bit "0" on the data line at the start of the transfer. Therefore, in the serial input/output circuit according to the present invention,
The output latch control circuit allows this to be achieved by keeping the output latch circuit at a high level.

この場合の出力ラツチ回路には例えば第1C図
のような回路を用いることができる。
For the output latch circuit in this case, for example, a circuit as shown in FIG. 1C can be used.

即ち、ラツチ信号Cが“0”のときは、参照番
号17にて示される回路はラツチとして機能し、
シフト・レジスタ11からの信号は遮断される。
また、ラツチ信号Cが“1”のときは、シフト・
レジスタ11からのデータが、出力端子12へ伝
送されるが、出力ラツチ制御回路18から“1”
が入力されているときは、“1”が出力端子12
へ出力される。
That is, when the latch signal C is "0", the circuit indicated by reference numeral 17 functions as a latch,
The signal from shift register 11 is blocked.
Also, when the latch signal C is "1", the shift
The data from the register 11 is transmitted to the output terminal 12, but the output latch control circuit 18 outputs "1".
is input, “1” is output terminal 12
Output to.

従つて、UART方式によるデータ通信に際し
ては、送信前は、出力ラツチ制御回路18により
出力端子12を高レベル即ち“1”に保ち、転送
開始時にスタート・ビツト“0”を出力ラツチ回
路17に書込み、しかる後に転送データをシフ
ト・レジスタを介してシリアル転送し、最後に再
び出力ラツチ回路17に“1”を書き込む。これ
らの操作はいずれもシフトクロツク信号と同期し
て行われ、出力された信号は従来のシリアル入出
力回路を用いてUART方式により出力されたも
のと全く同等なものである。
Therefore, when communicating data using the UART method, the output terminal 12 is kept at a high level, that is, "1", by the output latch control circuit 18 before transmission, and the start bit "0" is written to the output latch circuit 17 at the start of transfer. , and then serially transfers the transfer data via the shift register, and finally writes "1" into the output latch circuit 17 again. All of these operations are performed in synchronization with the shift clock signal, and the output signals are completely equivalent to those output by the UART system using a conventional serial input/output circuit.

以上一連の操作によりUART方式による転送
が完了する。
The above series of operations completes the transfer using the UART method.

このように、本発明にかかるシリアル入出力回
路では、出力ラツチ制御回路18により出力ラツ
チ回路17に適切なデータを書き込むことによ
り、転送データはシフト・レジスタ回路を利用し
てシリアル・パラレル変換してシリアル転送し、
各種転送方式により付加されデータは、出力ラツ
チ回路17および出力ラツチ制御回路18を利用
して必要なビツト数だけ転送データの前後ににシ
リアルに付加することが可能となる。
As described above, in the serial input/output circuit according to the present invention, by writing appropriate data to the output latch circuit 17 by the output latch control circuit 18, the transfer data is converted from serial to parallel using the shift register circuit. Serial transfer,
Data added by various transfer methods can be serially added before and after the transfer data by the required number of bits by using the output latch circuit 17 and the output latch control circuit 18.

なお、ここで挙げた回路はそれぞれひとつの実
施例にすぎず、出力ラツチ回路に“0”または
“1”を書込みあるいはそれを保つことができ、
更に、その書込みをシフト・クロツク信号と同期
することのできるものであれば回路の選択は本発
明を限定するものではない。
Note that each of the circuits mentioned here is only one example, and it is possible to write or maintain "0" or "1" in the output latch circuit.
Furthermore, the choice of circuit is not a limitation on the invention, provided that its writing can be synchronized with the shift clock signal.

発明の効果 以上詳述のように本発明により提供されるマイ
クロ・コンピユータ内蔵シリアル入出力回路にお
いては、シフト・レジスタ最終段出力とシリアル
出力端子との間に、新たに出力ラツチ回路および
この出力ラツチ回路にデータを書き込む出力ラツ
チ制御回路を設けて、ソフトウエアにより出力信
号に直接データを付加することを可能にしたこと
により、CPUの語長に応じたシフト・レジスタ
を利用しながら、プログラム上の操作のみで、
種々のシリアル・データ転送方式に対して効率の
高い転送を行うことが可能となる。
Effects of the Invention As detailed above, in the microcomputer built-in serial input/output circuit provided by the present invention, an output latch circuit and this output latch circuit are newly added between the final stage output of the shift register and the serial output terminal. By providing an output latch control circuit that writes data to the circuit, and making it possible to add data directly to the output signal using software, you can use the shift register according to the word length of the CPU and Just by operating
It becomes possible to perform highly efficient transfer for various serial data transfer methods.

また、本発明にかかるシリアル入出力回路は、
前述した方式のみならず、今後開発される未知の
方式にも、また利用に応じた特殊な方式にも、ハ
ードウエアを変更することなく対応でき、マイク
ロコンピユータの利用範囲を広げるために非常に
有効なものである。
Further, the serial input/output circuit according to the present invention includes:
In addition to the methods mentioned above, it can support unknown methods that will be developed in the future, as well as special methods depending on the usage, without changing the hardware, making it extremely effective in expanding the scope of use of microcomputers. It is something.

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

第1図は、本発明のシリアル入出力回路の一実
施例の構成を示す図であり、第1a図は、本発明
のシリアル入出力回路のブロツク図を、第1b図
および第1c図は、本発明によるシリアル入出力
回路の出力ラツチ制御回路の一例を示す回路図で
ある。また、第2図は、従来のシリアル入出力回
路の一例を示すブロツク図である。 〔主な参照符号〕、1,11……シフト・レジ
スタ回路、2,14……パラレル入出力制御回
路、3,12……シリアル・データ出力端子、
4,15……クロツク信号入力端子、5,16…
…シフト・クロツク制御回路、13……マイク
ロ・コンピータ内部バス、17……出力ラツチ回
路、18……出力ラツチ制御回路、A……書込み
制御信号、B……書込みデータ信号、C……ラツ
チ信号。
FIG. 1 is a diagram showing the configuration of an embodiment of the serial input/output circuit of the present invention, FIG. 1a is a block diagram of the serial input/output circuit of the present invention, and FIGS. 1b and 1c are FIG. 2 is a circuit diagram showing an example of an output latch control circuit of a serial input/output circuit according to the present invention. Further, FIG. 2 is a block diagram showing an example of a conventional serial input/output circuit. [Main reference symbols], 1, 11...Shift register circuit, 2, 14...Parallel input/output control circuit, 3, 12...Serial data output terminal,
4, 15...Clock signal input terminal, 5, 16...
...Shift clock control circuit, 13...Microcomputer internal bus, 17...Output latch circuit, 18...Output latch control circuit, A...Write control signal, B...Write data signal, C...Latch signal .

Claims (1)

【特許請求の範囲】[Claims] 1 直列に接続された第1及び第2の二値素子及
びシフト・クロツク制御回路を有するシフト・レ
ジスタ回路、前記シフト・レジスタ回路の前記第
1及び第2の二値素子にパラレル・データを入力
するための入力端子、及び前記シフトレジスタ回
路の最終段からのデータを受け出力端子にデータ
を出力する出力ラツチ回路を備えるシリアル入出
力回路であつて、前記パラレル・データが前記出
力端子から出力された後に前記出力ラツチ回路に
直接二値データを書き込み前記出力端子から出力
させる出力ラツチ制御回路をさらに備えたことを
特徴とするシリアル入出力回路。
1. A shift register circuit having first and second binary elements connected in series and a shift clock control circuit, inputting parallel data to the first and second binary elements of the shift register circuit. and an output latch circuit that receives data from the final stage of the shift register circuit and outputs the data to the output terminal, wherein the parallel data is output from the output terminal. The serial input/output circuit further comprises an output latch control circuit that directly writes binary data into the output latch circuit and outputs it from the output terminal after the data has been processed.
JP7011586A 1986-03-27 1986-03-27 Serial input and output circuit Granted JPS62226252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7011586A JPS62226252A (en) 1986-03-27 1986-03-27 Serial input and output circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7011586A JPS62226252A (en) 1986-03-27 1986-03-27 Serial input and output circuit

Publications (2)

Publication Number Publication Date
JPS62226252A JPS62226252A (en) 1987-10-05
JPH0528416B2 true JPH0528416B2 (en) 1993-04-26

Family

ID=13422226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7011586A Granted JPS62226252A (en) 1986-03-27 1986-03-27 Serial input and output circuit

Country Status (1)

Country Link
JP (1) JPS62226252A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS503738A (en) * 1973-05-16 1975-01-16
JPS5687958A (en) * 1979-12-18 1981-07-17 Matsushita Electric Ind Co Ltd Start-stop synchronizing type signal transmitter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS503738A (en) * 1973-05-16 1975-01-16
JPS5687958A (en) * 1979-12-18 1981-07-17 Matsushita Electric Ind Co Ltd Start-stop synchronizing type signal transmitter

Also Published As

Publication number Publication date
JPS62226252A (en) 1987-10-05

Similar Documents

Publication Publication Date Title
US4593393A (en) Quasi parallel cyclic redundancy checker
US20020075173A1 (en) Parallel in serial out circuit for use in data communication system
GB2060961A (en) Data processing system having memory modules with distributed address information
JPH0528416B2 (en)
JPH0479422A (en) Transmission control circuit
JPH0721103A (en) Data transfer device
JPS58170117A (en) Serial/parallel-parallel/serial converting circuit
JPS5843934B2 (en) Shingouhenkansouchi
JPH05250316A (en) Inter-device interface system
JPH05204848A (en) Serial communication system
JPH056335A (en) Inter-device interface system
JPS648384B2 (en)
JP2849804B2 (en) Memory access interface circuit and memory access method
SU1807490A1 (en) Device for controlling digital communication channels
JPH0381180B2 (en)
JPH03209544A (en) Memory control circuit
JP2521535B2 (en) Data transfer circuit
JPS5847461Y2 (en) Digital output device for word connection
JPS6355653A (en) Data transfer device
SU1496008A1 (en) Binary code converter
JPS62279756A (en) Data transfer system
JPH05252039A (en) Multi-channel d/a converter of 3-line serial data transfer system
JPH05315971A (en) Serial/parallel conversion circuit
JPS6335143B2 (en)
JPS6064573A (en) Picture signal reducing system