JPH01128152A - Serial i/o circuit - Google Patents

Serial i/o circuit

Info

Publication number
JPH01128152A
JPH01128152A JP62287989A JP28798987A JPH01128152A JP H01128152 A JPH01128152 A JP H01128152A JP 62287989 A JP62287989 A JP 62287989A JP 28798987 A JP28798987 A JP 28798987A JP H01128152 A JPH01128152 A JP H01128152A
Authority
JP
Japan
Prior art keywords
data
register
shift register
input
serial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62287989A
Other languages
Japanese (ja)
Inventor
Yasuhiro Minamide
南出 靖宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP62287989A priority Critical patent/JPH01128152A/en
Publication of JPH01128152A publication Critical patent/JPH01128152A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To facilitate the connection among various types of serial I/O circuits by using a data input/output circuit, a polarity switching circuit and a control register. CONSTITUTION:A data input/output circuit 2 performs the LSB fast serial transmission/reception of data in case the switch control is secured by the designation of a control register 4 so that the SOUT and SIN sides of a shift register 1 are connected to the data buses BUS0 and BUS7 respectively. Then the MSB fast serial transmission/reception of data is ensured when said SOUT and SIN sides are connected to the data buses BUS7 and BUS0 respectively. A polarity switching circuit 3 is switched so that the external synchronizing clock signal SCLK is supplied directly as the clock input of the register 1 by a register 4 as long as the register 1 performs the output of data at the fall of a clock. Under such conditions, the register 1 delivers data at the fall of the clock SCLK. Then the register 1 delivers data at the rise of the SCLK in case the inversion of the SCLK is switched so as to secure the clock input of the register 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は電子回路に属するシリアルI/O回路に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] This invention relates to a serial I/O circuit belonging to electronic circuits.

〔従来の技術〕[Conventional technology]

従来のシリアルI/O回路は第2図(こ示すようなもの
であった。図において、(1)は右シフトのシフトレジ
スタ、(SIN)はシフトレジスタ(1)の入力であり
、シリアル送受信入力である。(SouT)はシフトレ
ジスタ(1)の出力であり、シリアル送受信の送信出力
である。(SOLK)はシフトレジスタ(1)のシフト
動作の同期クロック、(BtlS7)〜(BUSO)は
内部データバスのビット7〜ビツト0であり、シフトレ
ジスタ(1)との間でデータの入出力を行う。この従来
例の場合、データは8ビツト構成となっており、また、
シリアル送受信は最下位ビット(LSB)から行われる
The conventional serial I/O circuit was as shown in Figure 2. In the figure, (1) is a right-shift shift register, (SIN) is the input of shift register (1), and is used for serial transmission and reception. (SouT) is the output of the shift register (1) and is the transmission output for serial transmission and reception. (SOLK) is the synchronization clock for the shift operation of the shift register (1), (BtlS7) to (BUSO) are the These are bits 7 to 0 of the internal data bus, and input and output data to and from the shift register (1).In the case of this conventional example, the data has an 8-bit configuration, and
Serial transmission and reception are performed starting from the least significant bit (LSB).

次に動作について説明する。まず、送信するデ−タをデ
ータバス(BUS7)〜(BLJSto)を通してシフ
トレジスタ(1)にセットする。その後、同期クロック
信号(SCLK)が1サイクル入力されると、シフトレ
ジスタは1ビツトだけデータをシフトし、最下位ビット
にあったデータは(5ouT、)に出力される。同時に
シフトレジスタの最下位ビットには(SIN)の入力デ
ータが入る。同様にして、同期クロック信号(SoLx
)が計8サイクル入力されると、シフトレジスタにセッ
トされた8ビツトのデータは全て(5OUT )に出力
され、代りに(SIN)カラ入力された8ビツトのデー
タがシフトレジスタに入る。この受信されたデータはデ
ータバス(BUS7)〜(BUSo)を通して見ること
ができる。この従来例の場合、(5OUT )からのデ
ータの出力も(SIN)からのデータの入力も、シフト
レジスタ(1)の(S。
Next, the operation will be explained. First, data to be transmitted is set in the shift register (1) through data buses (BUS7) to (BLJSto). Thereafter, when one cycle of the synchronous clock signal (SCLK) is input, the shift register shifts the data by one bit, and the data in the least significant bit is output to (5out,). At the same time, the input data of (SIN) is entered into the least significant bit of the shift register. Similarly, the synchronous clock signal (SoLx
) is input for a total of eight cycles, all the 8-bit data set in the shift register is output to (5OUT), and instead, the 8-bit data input (SIN) is input to the shift register. This received data can be viewed through the data buses (BUS7) to (BUSo). In the case of this conventional example, both the output of data from (5OUT) and the input of data from (SIN) are performed by (S) of the shift register (1).

UT)から出力されるビットがデータバスの最下位ビッ
ト(BUSo)につながっているため、最下位ビット(
BUSo)につながっているため、最下位ビットから行
われる。
Since the bit output from the UT) is connected to the least significant bit (BUSo) of the data bus, the least significant bit (BUSo)
BUSo), so it is performed starting from the least significant bit.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のシリアルI/O回路は以上のように構成されてい
たので、シリアル送受信されるデータのビットの順番が
固定されておりにの従来例では最下位ビットからに固定
)、また、同期クロック信号の極性も固定されているた
め、違うタイプのシリアルI/O回路との接続が容易に
はできないという問題点があった。
Since conventional serial I/O circuits are configured as described above, the order of the bits of serially transmitted and received data is fixed (in the conventional example, it is fixed from the least significant bit), and the order of the bits of the data transmitted and received serially is fixed (in the conventional example, it is fixed from the least significant bit), and the synchronous clock signal Since the polarity is also fixed, there is a problem in that it is not easy to connect to a different type of serial I/O circuit.

この発明は上記のような問題点を解消するためになされ
たもので、種々のタイプのシリアルI/O回路と接続が
できるように、シリアル送受信のビットの順番を最上位
からと最下位からの選択ができ、同期クロック信号の極
性も切換えられるシリアルI/O回路を得ることを目的
とする。
This invention was made to solve the above-mentioned problems, and in order to connect with various types of serial I/O circuits, the order of bits for serial transmission and reception is changed from the highest order to the lowest order. It is an object of the present invention to provide a serial I/O circuit that can be selected and can also switch the polarity of a synchronous clock signal.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るシリアルI/O回路は、従来のシリアル
レ′0回路にシフトレジスタとデータバスの接続の上位
、下位を切換えられるデータ入出力回路と、同期クロッ
ク信号の極性切換回路とそれらを制御する制御レジスタ
を設けたものである。
A serial I/O circuit according to the present invention includes a data input/output circuit that can switch between upper and lower connections between a shift register and a data bus, a synchronous clock signal polarity switching circuit, and a control circuit for controlling them. A control register is provided.

〔作用〕[Effect]

この発明におけるデータ入出力回路は、シフトレジスタ
にセットするデータとシフトレジスタから読み出すデー
タまたは内部データバスの上位。
The data input/output circuit according to the present invention is capable of handling data set in a shift register, data read from the shift register, or an upper-level internal data bus.

下位の接続を変えられるため、シフトレジスタのシフト
方向が一定でも相対的に上位へのシフト、下位へのシフ
トが切換えられることになる。また、同期クロック信号
の極性切換回路は、シフトレジスタに入力される同期ク
ロック信号と外部から入力される同期クロック信号の極
性を変えられるため、シフトレジスタの同期極性が固定
されていても、極性切換回路によって外部から入力され
る同期クロックに対するシフトレジスタの同期極性を変
えることができる。
Since the lower-order connections can be changed, even if the shift direction of the shift register is constant, it is possible to switch between relatively upward and downward shifts. In addition, the synchronous clock signal polarity switching circuit can change the polarity of the synchronous clock signal input to the shift register and the synchronous clock signal input from the outside, so even if the synchronous polarity of the shift register is fixed, the polarity switching circuit can The circuit can change the synchronization polarity of the shift register with respect to the synchronization clock input from the outside.

〔実施例〕〔Example〕

以下、この゛発明の一実施例を図について説明する。 An embodiment of this invention will be described below with reference to the drawings.

第1図において、(1)は右シフトのシフトレジスタ、
(SIN)はシフトレジスタ(1)の入力、(5OUT
 )はシフトレジスタ(1)の出力、(SC■、K)は
シフトレジスタ(1)の同期クロック信号、(BUS7
)〜(BUSO)は内部データバスのビット7〜ビツト
Oであり、前記従来のものと同じものである。(2)は
データバス(BUS7)〜(BUSo)とシフトレジス
タの接続の上位、下位を切変えるデータ入出力回路、(
3)はシフトレジスタ(1)に入るクロック信号の極性
を切換える極性切換回路、(4)はデータ入出力回路(
2)と極性切換回路(3)を制御する制御レジスタで、
ビット1がデータ入出力回路(2)につながり、ビット
0が極性切換回路(3)につながっている。
In FIG. 1, (1) is a right shift shift register,
(SIN) is the input of shift register (1), (5OUT
) is the output of shift register (1), (SC■, K) is the synchronous clock signal of shift register (1), (BUS7
) to (BUSO) are bits 7 to 0 of the internal data bus, which are the same as in the conventional bus. (2) is a data input/output circuit that switches the upper and lower connections between the data buses (BUS7) to (BUSo) and the shift register;
3) is a polarity switching circuit that switches the polarity of the clock signal entering the shift register (1), and (4) is a data input/output circuit (
2) and a control register that controls the polarity switching circuit (3).
Bit 1 is connected to the data input/output circuit (2), and bit 0 is connected to the polarity switching circuit (3).

次に、この発明によるシリアルI/O回路の動作につい
て説明する。図の中でシフトレジスタ(1)の動作は前
記従来のシリアルVO回路と同じである。
Next, the operation of the serial I/O circuit according to the present invention will be explained. In the figure, the operation of the shift register (1) is the same as that of the conventional serial VO circuit.

この発明の第1図の例では、第2図の回路にデータバス
とシフトレジスタの接続の上位、下位を切換えるデータ
入出力回路(2)と同期クロック信号の極性を切換える
極性切換回路(3)とそれらを制御する制御レジスタ(
4)が付いたものになっている。
In the example of FIG. 1 of this invention, the circuit of FIG. 2 includes a data input/output circuit (2) that switches between upper and lower connections between the data bus and the shift register, and a polarity switching circuit (3) that switches the polarity of the synchronous clock signal. and the control registers that control them (
4).

まず、データ入出力回路(2)について説明すると、制
御レジスタ(4)の指定により、シフトレジスタの最初
にデータ出力される(SOUT)側がデータバスの最下
位のビットo (BUSo)と、データ入力される(S
UN)側がデータバスの最上位のビット7 (BUS7
)と接続されるように切換えられていると、シフトレジ
スタ(1)のシリアル出力(5OUT )はデータの最
下位のビット0から行われ、(SIN)から入力された
データは最初・′に入力されたデータがデータバスのビ
ットO(BUSO)に入るため、LSBファーストのシ
リアル送受信ということになる。次に、制御レジスタ(
4)の指定によりシフトレジスタの最初にデータ出力さ
れる(SOUT)側がデータバスの最上位のビット7 
(BUS7)と、データ入力される(SIN)側がデー
タバスの最下位のビット0(BUSo)と接続されると
、シフトレジスタ(1)のシリアル出力(SOUT)は
データの最上位のビット7から行われ、(SIN)から
入力されたデータは最初に入力されたデータがデータバ
スのビット7(BUS7)に入るため、MSBファース
トのシリアル送受信ということになる。
First, to explain the data input/output circuit (2), according to the specification of the control register (4), the first data output (SOUT) side of the shift register is the lowest bit o (BUSo) of the data bus, and the data input be done (S
UN) side is the most significant bit 7 of the data bus (BUS7
), the serial output (5OUT) of shift register (1) is performed from the lowest bit 0 of the data, and the data input from (SIN) is first input to Since the received data enters bit O (BUSO) of the data bus, serial transmission/reception is performed with the LSB first. Next, the control register (
According to the specification in 4), the first data output (SOUT) side of the shift register is the most significant bit 7 of the data bus.
(BUS7) and the data input side (SIN) are connected to the least significant bit 0 (BUSo) of the data bus, the serial output (SOUT) of the shift register (1) starts from the most significant bit 7 of the data. Since the first data inputted from (SIN) enters bit 7 (BUS7) of the data bus, serial transmission/reception is performed with the MSB first.

極性切換回路(3)は、シフトレジスタ(1)がクロッ
クの立ち下がりでデータを出力するタイプだとすると、
制御レジスタ(4)によって外部からの同期クロック信
号(SOLK)が直接シフトレジスタ(1)のクロック
入力として入るように切換えられていると、シフトレジ
スタ(1)は同期クロック(SOLK)の立ち下がりで
データを出力することになる。また、極性切換回路(3
)が制御レジスタ(4)によって外部からの同期クロッ
ク(S OLK )の反転をシフトレジスタ(1)のク
ロック入力となるように切換えられていると、シフトレ
ジスタ(1)は同期クロック信号(5OLK)の立ち上
がりでデータを出力することになる。
Assuming that the shift register (1) is a type that outputs data at the falling edge of the clock, the polarity switching circuit (3) is
If the control register (4) is switched so that the external synchronous clock signal (SOLK) is directly input as the clock input of the shift register (1), the shift register (1) is activated at the falling edge of the synchronous clock (SOLK). The data will be output. In addition, the polarity switching circuit (3
) is switched by the control register (4) so that the inversion of the external synchronous clock (SOLK) becomes the clock input of the shift register (1), the shift register (1) receives the synchronous clock signal (5OLK) Data will be output at the rising edge of .

なお、上記実施例ではシフトレジスタ、データバスのビ
ット数が8ビツト、シフトレジスタの同期が立ち下がり
同期の場合を示したが、データのビット数、シフトレジ
スタの同期極性に制限はない。また、シフトレジスタ、
データ入出力回路。
In the above embodiment, the number of bits of the shift register and the data bus is 8 bits, and the synchronization of the shift register is falling synchronization, but there is no limit to the number of bits of data or the polarity of synchronization of the shift register. Also, shift register,
Data input/output circuit.

極性切換回路、制御レジスタの構造に制限はない。There are no restrictions on the structure of the polarity switching circuit and control register.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、シリアル送受信の方向
(MSBファースト、LSBファースト)、同期クロッ
ク信号の極性を制御レジスタによって自由に切換えられ
るので、種々のタイプのシリアルI/O回路との接続が
容易に行えるようになる。
As described above, according to the present invention, the direction of serial transmission/reception (MSB first, LSB first) and the polarity of the synchronous clock signal can be freely switched by the control register, so that connection with various types of serial I/O circuits is possible. It becomes easy to do.

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

第1図はこの発明の一実施例によるシリアルレ勺回路図
、第2図は従来のシリアルI/O回路図である。 図において、(1)はシフトレジスタ、(2)はデータ
入出力回路、(3)は極性切換回路、(4)は制御レジ
スタ。 なお、図中、同一符号は同一、または相当部分を示す。
FIG. 1 is a serial input circuit diagram according to an embodiment of the present invention, and FIG. 2 is a conventional serial I/O circuit diagram. In the figure, (1) is a shift register, (2) is a data input/output circuit, (3) is a polarity switching circuit, and (4) is a control register. In addition, in the figures, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】 クロック信号に同期して一方向にのみシフトするシフト
レジスタとこのシフトレジスタと内部データバスとのデ
ータ入出力において、データの上位、下位をレジスタで
の指定により入れ変えることのできるデータ入出力回路
と、外部からシフトレジスタに入る同期クロック信号の
極性をレジスタの指定により切換えることのできる極性
切換回路と、データ入出力の上位、下位及びクロック信
号の極性を指定するレジスタとを備えたことを特徴とす
るシリアルI/O回路。 レジスタでの指定により、シフトレジスタとデータバス
の入出力の上位、下位を入れ変えることにより、シリア
ル転送を最下位ビットからにしたり、最上位ビットから
にしたりすることができ、また、レジスタでの指定によ
り、シリアル転送の同期クロックの極性を変えることが
できることを特徴とする特許請求の範囲第1項記載のシ
リアルI/O回路。
[Claims] A shift register that shifts only in one direction in synchronization with a clock signal, and a system in which high-order and low-order data can be exchanged by specifying in the register in data input/output between this shift register and an internal data bus. A polarity switching circuit that can switch the polarity of a synchronized clock signal that enters the shift register from the outside by specifying a register, and a register that specifies the upper and lower data input/output and the polarity of the clock signal. A serial I/O circuit characterized by: By changing the upper and lower inputs and outputs of the shift register and the data bus, serial transfer can start from the least significant bit or from the most significant bit. 2. The serial I/O circuit according to claim 1, wherein the polarity of the synchronization clock for serial transfer can be changed by designation.
JP62287989A 1987-11-12 1987-11-12 Serial i/o circuit Pending JPH01128152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62287989A JPH01128152A (en) 1987-11-12 1987-11-12 Serial i/o circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62287989A JPH01128152A (en) 1987-11-12 1987-11-12 Serial i/o circuit

Publications (1)

Publication Number Publication Date
JPH01128152A true JPH01128152A (en) 1989-05-19

Family

ID=17724355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62287989A Pending JPH01128152A (en) 1987-11-12 1987-11-12 Serial i/o circuit

Country Status (1)

Country Link
JP (1) JPH01128152A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1510896A1 (en) * 2002-05-31 2005-03-02 Fujitsu Limited Remotely-operated robot, and robot self position identifying method
JP2008217733A (en) * 2007-03-08 2008-09-18 Oki Electric Ind Co Ltd Serial interface circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1510896A1 (en) * 2002-05-31 2005-03-02 Fujitsu Limited Remotely-operated robot, and robot self position identifying method
EP1510896A4 (en) * 2002-05-31 2005-12-14 Fujitsu Ltd Remotely-operated robot, and robot self position identifying method
US7120519B2 (en) 2002-05-31 2006-10-10 Fujitsu Limited Remote-controlled robot and robot self-position identification method
JP2008217733A (en) * 2007-03-08 2008-09-18 Oki Electric Ind Co Ltd Serial interface circuit

Similar Documents

Publication Publication Date Title
JPH01128152A (en) Serial i/o circuit
JPH0267665A (en) Interface circuit
JPS62182857A (en) Input and output controller
SU1195364A1 (en) Microprocessor
JP2508322B2 (en) Serial I / O circuit built-in micro computer
JPH0661076B2 (en) Data transfer device
JP2518387B2 (en) Serial data transmission circuit
JPS6097461A (en) Data bus control circuit
JPH0325826B2 (en)
JPH04370889A (en) Extension circuit for output port
JPH03187544A (en) Synchronizing processing lsi interface system
JPH05252039A (en) Multi-channel d/a converter of 3-line serial data transfer system
JPS61174851A (en) Bus control system
JPS5856892B2 (en) Multi-microprocessor method
JPS58218230A (en) Selecting circuit of delay time
JPH04317231A (en) Data bus system
JPH03156555A (en) Bus control system
JPS62121567A (en) Data processor
JPS6258751A (en) Polarity switching circuit
JPS63174131A (en) Interruption controller
JPS6429957A (en) Serial interface circuit
JPS6279519A (en) General-use register reading method
JPH0485796A (en) Control circuit for shift path
JPS628822B2 (en)
JPH02126745A (en) Bidirectional multi-step network