Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4703394B2 - Interface system - Google Patents
[go: Go Back, main page]

JP4703394B2 - Interface system - Google Patents

Interface system Download PDF

Info

Publication number
JP4703394B2
JP4703394B2 JP2005371138A JP2005371138A JP4703394B2 JP 4703394 B2 JP4703394 B2 JP 4703394B2 JP 2005371138 A JP2005371138 A JP 2005371138A JP 2005371138 A JP2005371138 A JP 2005371138A JP 4703394 B2 JP4703394 B2 JP 4703394B2
Authority
JP
Japan
Prior art keywords
register
code
data
control
bits
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
JP2005371138A
Other languages
Japanese (ja)
Other versions
JP2007172415A (en
Inventor
健一 小笠原
高秀 永谷
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.)
New Japan Radio Co Ltd
Original Assignee
New Japan Radio 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 New Japan Radio Co Ltd filed Critical New Japan Radio Co Ltd
Priority to JP2005371138A priority Critical patent/JP4703394B2/en
Publication of JP2007172415A publication Critical patent/JP2007172415A/en
Application granted granted Critical
Publication of JP4703394B2 publication Critical patent/JP4703394B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本発明は、個々にIDコードを割り付けて個別に制御できるようにした複数のシリアルインターフェースからなるインターフェースシステムに関するものである。   The present invention relates to an interface system composed of a plurality of serial interfaces which can be individually controlled by assigning ID codes individually.

[第1の従来例]
図5に第1の従来例のインターフェースシステムの構成を示す。100A,200Aは同一構成のシリアルインターフェースであり、それぞれシフトレジスタ10A、制御レジスタ群20A、IDチェッカ70を具備する。シフトレジスタ10Aは16ビット構成である。IDチェッカ70には、シリアルインターフェース100A,200Aを識別するための個別のIDコードが4ビットで付与されている。制御レジスタ群20Aは、図6に示すように、アドレスが4ビットで付与された合計16個の8ビットの制御レジスタR0〜R15からなり、個々のレジスタが図示しない負荷を制御する。なお、シリアルインターフェース100A,200Aの各シフトレジスタ10Aは並列接続されている。
[First conventional example]
FIG. 5 shows the configuration of a first conventional interface system. Reference numerals 100A and 200A denote serial interfaces having the same configuration, each including a shift register 10A, a control register group 20A, and an ID checker 70. The shift register 10A has a 16-bit configuration. The ID checker 70 is provided with a 4-bit individual ID code for identifying the serial interfaces 100A and 200A. As shown in FIG. 6, the control register group 20 </ b> A is composed of a total of 16 8-bit control registers R <b> 0 to R <b> 15 assigned with 4 bits, and each register controls a load (not shown). The shift registers 10A of the serial interfaces 100A and 200A are connected in parallel.

この図5のインターフェースシステムでは、各シリアルインターフェース100A,200Aは、16個のクロック単位で端子CSが有効になり、クロックSCKと共に16ビットのシリアル入力データDIがシフトレジスタ10Aに入力すると、当該入力データDIの上位4ビットのIDコードがIDチェッカ70に格納されているIDコードと比較され、合致する場合に当該入力データDIの中位の4ビットのアドレスで制御レジスタ群20A内の制御レジスタR0〜R16のいずれかが選択され、当該選択制御レジスタに当該入力データDIの下位8ビットのデータが取り込まれ、これによって当該選択制御レジスタにより図示しない負荷が制御される。   In the interface system shown in FIG. 5, each serial interface 100A, 200A is enabled when the terminal CS becomes valid in units of 16 clocks, and when 16-bit serial input data DI is input to the shift register 10A together with the clock SCK, the input data The ID code of the upper 4 bits of DI is compared with the ID code stored in the ID checker 70, and if they match, the control registers R0 to R0 in the control register group 20A are used with the middle 4 bits of the input data DI. Any one of R16 is selected, and the lower 8 bits of the input data DI are taken into the selection control register, whereby a load (not shown) is controlled by the selection control register.

図7にこのインターフェースシステムの動作のタイミングチャートを示す。これは、図5のシリアルインターフェース100AのIDコードが「0010」、シリアルインターフェース200AのIDコードが「1001」の場合である。   FIG. 7 shows a timing chart of the operation of this interface system. This is a case where the ID code of the serial interface 100A in FIG. 5 is “0010” and the ID code of the serial interface 200A is “1001”.

ここでは、最初にCS信号が有効になったときに、上位4ビットが「0010」、中位4ビットが「0000」、下位8ビットが「00111111」の合計16ビットの入力データDIが入力され、次回にCS信号が有効になったときに、上位4ビットが「1001」、中位4ビットが「0010」、下位8ビットが「01111100」の合計16ビットの入力データDIが入力されたときの様子を示している。   Here, when the CS signal is first enabled, 16 bits of input data DI is input, with the upper 4 bits being “0010”, the middle 4 bits being “0000”, and the lower 8 bits being “00111111”. When the CS signal becomes valid the next time, when 16 bits of input data DI is input, the upper 4 bits are “1001”, the middle 4 bits are “0010”, and the lower 8 bits are “01111100”. The state of is shown.

最初の入力データDIの上位4ビットの「0010」は、シリアルインターフェース100AのIDチェッカ70に格納されたIDコードと一致するので、そのシリアルインターフェース100Aが選択される。そして、中位4ビットの「0000」により制御レジスタ群20Aの内の制御レジスタR0が選択され、次にCSが有効になったとき、その制御レジスタR0に下位8ビットのデータ「00111111」が書き込まれる。   Since the upper 4 bits “0010” of the first input data DI match the ID code stored in the ID checker 70 of the serial interface 100A, the serial interface 100A is selected. Then, when the control register R0 in the control register group 20A is selected by the middle 4 bits “0000” and CS becomes valid next time, the lower 8 bits of data “00111111” is written to the control register R0. It is.

次回の入力データDIの上位4ビットの「1001」は、シリアルインターフェース200AのIDチェッカ70に格納されたIDコードと一致するので、そのシリアルインターフェース200Aが選択される。そして、中位4ビットの「0010」により制御レジスタ群20Aの制御レジスタR2が選択され、次にCSが有効になったとき、その制御レジスタR2に下位8ビットのデータ「01111100」が書き込まれる。   Since the upper 4 bits “1001” of the next input data DI match the ID code stored in the ID checker 70 of the serial interface 200A, the serial interface 200A is selected. Then, when the control register R2 of the control register group 20A is selected by the middle 4 bits “0010” and CS becomes valid next time, the lower 8 bits of data “01111100” is written into the control register R2.

[第2の従来例]
図8に第2の従来例のインターフェースシステムの構成を示す。100B,200Bは同一構成のシリアルインターフェースであり、それぞれシフトレジスタ10B、制御レジスタ群20Bを具備する。シフトレジスタ10Bは8ビット構成である。制御レジスタ群20Bは、図9に示すように、アドレスが2ビットで付与されたの合計4個の6ビットの制御レジスタR0〜R3からなり、個々の制御レジスタが図示しない負荷を制御する。なお、シリアルインターフェース100B,200Bの各シフトレジスタ10Bは直列接続されている。
[Second conventional example]
FIG. 8 shows the configuration of a second conventional interface system. Reference numerals 100B and 200B denote serial interfaces having the same configuration, and each include a shift register 10B and a control register group 20B. The shift register 10B has an 8-bit configuration. As shown in FIG. 9, the control register group 20B is composed of a total of four 6-bit control registers R0 to R3, each having a 2-bit address, and each control register controls a load (not shown). The shift registers 10B of the serial interfaces 100B and 200B are connected in series.

この図8のインターフェースシステムでは、16個のクロック単位で端子CSが有効になり、クロックSCKと共に16ビットのシリアル入力データDIが入力すると、当該入力データDIの前半の8ビットのデータがシリアルインターフェース200Bに格納され、後半の8ビットのデータがシリアルインターフェース100Bに格納される。前半の8ビットの上位2ビットのアドレスによりシリアルインターフェース200Bの制御レジスタ群20Bの4個の制御レジスタR0〜R3の内の1つが選択され、当該選択制御レジスタに前半の下位6ビットのデータが格納される。また、後半の8ビットの上位2ビットのアドレスによりシリアルインターフェース100Bの制御レジスタ群20Bの4個の制御レジスタR0〜R3の内の1つが選択され、当該選択制御レジスタに前半の下位6ビットのデータが格納される。そして、シリアルインターフェース200Bの制御レジスタ群20Bの選択制御レジスタによって図示しない負荷が制御され、シリアルインターフェース100Bの制御レジスタ群20Bの選択制御レジスタによって図示しない負荷が制御される。図10に動作のタイミングチャートを示した。   In the interface system of FIG. 8, when the terminal CS is enabled in units of 16 clocks and 16-bit serial input data DI is input together with the clock SCK, the first half of the input data DI is 8-bit data. The latter half of the 8-bit data is stored in the serial interface 100B. One of the four control registers R0 to R3 of the control register group 20B of the serial interface 200B is selected by the upper 8 bits of the first 8 bits, and the lower 6 bits of the first half are stored in the selected control register. Is done. Also, one of the four control registers R0 to R3 of the control register group 20B of the serial interface 100B is selected by the upper 8 bits of the latter 8 bits, and the lower 6 bits of data of the first half are selected in the selected control register. Is stored. The load (not shown) is controlled by the selection control register of the control register group 20B of the serial interface 200B, and the load (not shown) is controlled by the selection control register of the control register group 20B of the serial interface 100B. FIG. 10 shows an operation timing chart.

第1の従来例では、シリアルインターフェースを並列に接続するので、必要なデータのみを送ってホスト(図示せず)側から負荷を制御することができる利点があるものの、個々のシリアルインターフェースに固有の固定アドレスを付与する必要があるため、フラッシュROMの組み込み等の特別のプロセスが必要になり、あるいはヒューズ切断等の特殊な工程が必要になるという問題がある。   In the first conventional example, since serial interfaces are connected in parallel, there is an advantage that only the necessary data can be sent and the load can be controlled from the host (not shown) side, but it is unique to each serial interface. Since it is necessary to give a fixed address, there is a problem that a special process such as incorporation of a flash ROM is required or a special process such as fuse cutting is required.

第2の従来例では、個々のシリアルインターフェースに固有の固定アドレスを付与する必要がない利点があるので、前記した特殊プロセスや特殊工程を必要としないものの、シリアルインターフェースが直列接続となっているので、毎回その全てのシフトレジスタにデータを格納する必要があるため、その接続段数が増えるほど、ホスト側から送るデータ長が長くなる問題がある。   In the second conventional example, there is an advantage that it is not necessary to assign a unique fixed address to each serial interface. Therefore, although the special process and special process described above are not required, the serial interface is connected in series. Since it is necessary to store data in all the shift registers every time, there is a problem that the data length sent from the host side becomes longer as the number of connection stages increases.

本発明の目的は、前記した特殊プロセスや特殊工程を必要とせず、かつホスト側から送りデータ長は、最初は長くなるものの、通常動作時では1つのシリアルインターフェースのシフトレジスタ分でけで済むようにしたインターフェースシステムを提供することである。   The object of the present invention does not require the above-mentioned special process or special process, and the length of data sent from the host side is long at the beginning, but only one serial interface shift register is required during normal operation. It is to provide an interface system.

上記目的を達成するために、請求項1にかかる発明のインターフェースシステムは、入力するデータを格納するシフトレジスタと、負荷を制御する複数の制御レジスタからなる制御レジスタ群と、を備えるシリアルインターフェースであって、該制御レジスタ群内の特定の制御レジスタは、前記シフトレジスタに格納されたデータの内の一部をアドレスとして選択されて、前記シフトレジスタに格納されたデータの内の別の一部を制御データとして書き込まれるようにしたシリアルインターフェース、を複数個使用して構成したインターフェースシステムにおいて、前記各シリアルインターフェースは、IDコードが書き換え可能で且つ初期状態で該IDコードが初期値に設定されたIDレジスタを備え、初回のデータ入力では、前記各シフトレジスタを該データ入力に対して直列接続し、前記各シフトレジスタに前記初期値のIDコード、前記IDレジスタのアドレス、および任意の互いに異なるIDコードを1組として、前記シフトレジスタの個数の組数だけ順次送って、前記各シリアルインターフェースの前記IDレジスタにそれぞれ異なるIDコードを書き込み、次回以降のデータ入力では、前記各シフトレジスタを該データ入力に対して並列接続し、前記各シフトレジスタに共通に、特定のIDコード、制御レジスタ群内の特定の制御レジスタのアドレス、および制御データを送って、IDコードが合致したIDレジスタをもつ特定のシリアルインターフェースの制御レジスタ群内の特定の制御レジスタに前記制御データを書き込むことを特徴とする。
請求項2にかかる発明は、請求項1に記載のインターフェースシステムにおいて、前記各シリアルインターフェースは、入力するIDコードと前記IDレジスタに格納されているIDコードを比較して両者が一致すると前記IDレジスタと前記制御レジスタ群を動作可能にするIDチェッカを備えることを特徴とする。
請求項3にかかる発明は、請求項1又は2に記載のインターフェースシステムにおいて、前記各シリアルインターフェースは、前記IDレジスタに格納されたIDコードが前記初期値と一致するとき前記各シリアルインターフェースのシフトレジスタをデータ入力に対して直列接続し、一致しないとき並列接続するセレクタを備えることを特徴とする。
To achieve the above object, an interface system according to a first aspect of the present invention is a serial interface including a shift register for storing input data and a control register group including a plurality of control registers for controlling a load. A specific control register in the control register group is selected by using a part of the data stored in the shift register as an address, and another part of the data stored in the shift register is selected. In an interface system configured by using a plurality of serial interfaces written as control data, each serial interface has an ID code that can be rewritten and the ID code is set to an initial value in an initial state. Register for the first data input, A register is connected in series to the data input, and the number of shift registers is the number of the shift registers, where each shift register has the ID code of the initial value, the address of the ID register, and any different ID code as one set. Are sent sequentially, and different ID codes are written in the ID registers of the serial interfaces. In the subsequent data input, the shift registers are connected in parallel to the data inputs, and are shared by the shift registers. Send the specific ID code, the address of the specific control register in the control register group, and the control data to the specific control register in the control register group of the specific serial interface having the ID register matched with the ID code. It is characterized by writing control data.
According to a second aspect of the present invention, in the interface system according to the first aspect, each of the serial interfaces compares the ID code inputted and the ID code stored in the ID register. And an ID checker that enables the control register group to operate.
The invention according to claim 3 is the interface system according to claim 1 or 2, wherein each serial interface has a shift register of each serial interface when the ID code stored in the ID register matches the initial value. Are connected in series to the data input, and when they do not match, a selector that is connected in parallel is provided.

本発明によれば、前記した特殊プロセスや特殊工程を必要とせず、かつホスト側から送るデータ長は、最初は長くなるものの、通常動作時では1つのシリアルインターフェースのシフトレジスタ分だけで済む利点がある。   According to the present invention, the special process or special process described above is not required, and the data length sent from the host side is initially long, but there is an advantage that only one shift register of the serial interface is required in normal operation. is there.

図1は本発明の1つの実施例のインターフェースシステムの構成を示すブロック図である。100,200は同一構成のシリアルインターフェースであり、それぞれ16ビットのシフトレジスタ10、制御レジスタ群20、IDレジスタ30、IDチェッカ40、ID=0検出回路50、セレクタ60を具備する。   FIG. 1 is a block diagram showing the configuration of an interface system according to one embodiment of the present invention. Reference numerals 100 and 200 denote serial interfaces having the same configuration, each including a 16-bit shift register 10, a control register group 20, an ID register 30, an ID checker 40, an ID = 0 detection circuit 50, and a selector 60.

制御レジスタ群20は、図2に示すように、アドレスが4ビットで付与された合計15個の8ビットの制御レジスタR1〜R15からなり、個々のレジスタが図示しない負荷を制御する。IDレジスタ30は、図2に示すように、4ビットの「0000」でアドレスが付与された8ビットのレジスタR0からなり、その下位4ビットにIDコードが書き込まれる。このIDコードは、初期化状態では「0000」になっている。IDチェッカ40は、IDレジスタ30の下位4ビットのIDコードとシフトレジスタ10の上位4ビットとを比較し、一致したとき信号S1を有効にする。ID=0検出回路50は、IDレジスタ30の下位4ビットに書き込まれたIDコードが「0000」か否かを検出する回路であり、「0000」を検出したとき信号S2を無効にする。セレクタ60は、信号S2が無効になれば入力端子aを選択し、有効になればbを選択する。   As shown in FIG. 2, the control register group 20 is composed of a total of 15 8-bit control registers R1 to R15 each having an address given by 4 bits, and each register controls a load (not shown). As shown in FIG. 2, the ID register 30 is composed of an 8-bit register R0 to which an address is assigned by 4-bit “0000”, and an ID code is written in the lower 4 bits thereof. This ID code is “0000” in the initialized state. The ID checker 40 compares the lower 4 bits of the ID code of the ID register 30 with the upper 4 bits of the shift register 10 and makes the signal S1 valid when they match. The ID = 0 detection circuit 50 is a circuit that detects whether or not the ID code written in the lower 4 bits of the ID register 30 is “0000”, and invalidates the signal S2 when “0000” is detected. The selector 60 selects the input terminal a when the signal S2 becomes invalid, and selects b when the signal S2 becomes valid.

図3は初期状態での動作のタイミングチャートである。初期状態では上記のように各シリアルインターフェース100,200のIDレジスタ30のIDコードは「0000」となっているので、ID=0検出回路50の出力信号S2は無効となり、セレクタ60は端子aを選択しシフトレジスタ10の出力を入力する。よって、シリアルインターフェース100,200の各シフトレジスタ10は直列接続されている。   FIG. 3 is a timing chart of the operation in the initial state. In the initial state, since the ID code of the ID register 30 of each serial interface 100, 200 is “0000” as described above, the output signal S2 of the ID = 0 detection circuit 50 becomes invalid, and the selector 60 sets the terminal a to Select and input the output of the shift register 10. Therefore, the shift registers 10 of the serial interfaces 100 and 200 are connected in series.

ここで、端子CSが32クロック分だけ有効になり、クロックSCKと共に32ビットのシリアル入力データDIが入力すると、その前半の16ビットのデータ「0000000000000010」がシリアルインターフェース200のシフトレジスタ10に格納され、後半の16ビットのデータ「0000000000000001」がシリアルインターフェース100のシフトレジスタ10に格納される。前半および後半の16ビットのデータは、その上位4ビットがIDコード、中位4ビットが制御レジスタ群20の15個の制御レジスタR1〜R15とIDレジスタ30のアドレスを示し、下位8ビットがそれらレジスタに書き込むデータを示す。   Here, when the terminal CS becomes valid for 32 clocks and the 32-bit serial input data DI is input together with the clock SCK, the first half 16-bit data “0000000000000010” is stored in the shift register 10 of the serial interface 200, The latter half 16-bit data “0000000000000001” is stored in the shift register 10 of the serial interface 100. The first half and the second half of the 16-bit data are the upper 4 bits indicating the ID code, the middle 4 bits indicating the addresses of the 15 control registers R1 to R15 of the control register group 20 and the ID register 30, and the lower 8 bits. Indicates the data to be written to the register.

そして、シリアルインターフェース100では、シフトレジスタ10に格納された16ビットのデータの内の上位4ビットのIDコード「0000」が、IDレジスタ30に格納されている8ビットのデータの内の下位4ビットのIDコード「0000」と、IDチェッカ40によって比較される。このときの比較は合致するので信号S1が有効となり、制御レジスタ群20とIDレジスタ30が書込み可能となるが、中位4ビットのデータ「0000」によってIDレジスタ30が選択される。よって、このIDレジスタ30は、シフトレジスタ10の下位8ビットのデータ「00000001」に書きかえられる。   In the serial interface 100, the upper 4 bits of the ID code “0000” in the 16 bits of data stored in the shift register 10 is converted into the lower 4 bits of the 8 bits of data stored in the ID register 30. The ID checker 40 compares the ID code “0000”. Since the comparison at this time matches, the signal S1 becomes valid and the control register group 20 and the ID register 30 can be written, but the ID register 30 is selected by the middle-order 4-bit data “0000”. Therefore, the ID register 30 is rewritten to the lower 8-bit data “00000001” of the shift register 10.

また、シリアルインターフェース200では、シフトレジスタ10に格納された16ビットのデータの内の上位4ビットのIDコード「0000」が、IDレジスタ30に格納されている8ビットのデータの内の下位4ビットのIDコード「0000」と、IDチェッカ40によって比較される。このときの比較は合致するので信号S1が有効となり、制御レジスタ群20とIDレジスタ30が書込み可能となるが、中位4ビットのデータ「0000」によってIDレジスタ30が選択される。よって、このIDレジスタ30は、シフトレジスタ10の下位8ビットのデータ「00000010」に書きかえられる。   In the serial interface 200, the upper 4 bits of the ID code “0000” in the 16 bits of data stored in the shift register 10 is converted into the lower 4 bits of the 8 bits of data stored in the ID register 30. The ID checker 40 compares the ID code “0000”. Since the comparison at this time matches, the signal S1 becomes valid and the control register group 20 and the ID register 30 can be written, but the ID register 30 is selected by the middle-order 4-bit data “0000”. Therefore, the ID register 30 is rewritten to the lower 8-bit data “00000010” of the shift register 10.

以上により、シリアルインターフェース100のIDレジスタ30の下位4ビットのIDコードは「0001」に、シリアルインターフェース200のIDレジスタ30の下位4ビットのIDコードは「0010」に更新される。これにより、シリアルインターフェース100、200のID=0検知回路50は「0000」が非検知となり、信号S2を有効とする。このため、各セレクタ60は端子bを選択するので、シリアルインターフェース100,200のシフトレジスタ10は入力データDIに対して並列接続となる。   As described above, the ID code of the lower 4 bits of the ID register 30 of the serial interface 100 is updated to “0001”, and the ID code of the lower 4 bits of the ID register 30 of the serial interface 200 is updated to “0010”. Accordingly, “0000” is not detected in the ID = 0 detection circuit 50 of the serial interfaces 100 and 200, and the signal S2 is validated. Therefore, since each selector 60 selects the terminal b, the shift registers 10 of the serial interfaces 100 and 200 are connected in parallel to the input data DI.

図4はこのようにして、各シフトレジスタ10が並列接続された後に入力データDIが入力する場合のタイミングチャートである。これ以降は、信号CSが16クロック毎に有効となり、入力する入力データDIは16ビット単位となる。まず、その入力データDIが「00010001011111110」のときは、それがシリアルインターフェース100,200のシフトレジスタ10にそれぞれ取り込まれるが、その上位4ビットのIDコードが「0001」であるので、これがシリアルインターフェース100,200のIDチェッカ40によりそのIDレジスタ30の下位4ビットと比較される。   FIG. 4 is a timing chart when the input data DI is input after the shift registers 10 are connected in parallel as described above. Thereafter, the signal CS becomes valid every 16 clocks, and the input data DI to be input is in units of 16 bits. First, when the input data DI is “00010001011111110”, it is taken into the shift registers 10 of the serial interfaces 100 and 200, respectively, but since the upper 4 bits of the ID code is “0001”, this is the serial interface 100. , 200 is compared with the lower 4 bits of the ID register 30.

この結果、このIDコードは、シリアルインターフェース100のIDレジスタ30の下位4ビットと一致するので、そのシリアルインターフェース100のIDチェッカ40の出力信号S1が有効となる。しかし、シリアルインターフェース200のIDレジスタ30の下位4ビットと一致しないので、シリアルインターフェース200のIDチェッカ40の出力信号S1は無効となる。よって、シリアルインターフェース100の制御レジスタ群20とIDレジスタ30は書込み可能となるが、シリアルインターフェース200のそれは書込み不可となる。   As a result, since this ID code matches the lower 4 bits of the ID register 30 of the serial interface 100, the output signal S1 of the ID checker 40 of the serial interface 100 becomes valid. However, since it does not match the lower 4 bits of the ID register 30 of the serial interface 200, the output signal S1 of the ID checker 40 of the serial interface 200 becomes invalid. Therefore, the control register group 20 and the ID register 30 of the serial interface 100 can be written, but that of the serial interface 200 cannot be written.

このとき、入力データDIの中位4ビットは「0001」であるので、シリアルインターフェース100の制御レジスタ群20の制御レジスタR1が選択されて、この制御レジスタR1に入力データDIの下位8ビットの「01111110」が格納され、この制御レジスタR1の負荷が当該下位8ビットの内容に応じて制御される。   At this time, since the middle 4 bits of the input data DI are “0001”, the control register R1 of the control register group 20 of the serial interface 100 is selected, and the lower 8 bits of the lower 8 bits of the input data DI are stored in this control register R1. "01111110" is stored, and the load of the control register R1 is controlled according to the contents of the lower 8 bits.

次に、入力データDIが「0010010100001111」のときは、それがシリアルインターフェース100,200のシフトレジスタ10にそれぞれ取り込まれるが、その上位4ビットのIDコードが「0010」である。このIDコードは、シリアルインターフェース200のIDレジスタ30の下位4ビットと一致するので、シリアルインターフェース200が選択される。   Next, when the input data DI is “0010010100001111”, it is taken into the shift register 10 of each of the serial interfaces 100 and 200, but the ID code of the upper 4 bits is “0010”. Since this ID code matches the lower 4 bits of the ID register 30 of the serial interface 200, the serial interface 200 is selected.

このとき、入力データDIの中位4ビットは「0010」であるので、シリアルインターフェース200の制御レジスタ群20の制御レジスタR2が選択されて、この制御レジスタR2に入力データDIの下位8ビットの「00001111」が格納され、この制御レジスタR2の負荷が当該下位8ビットの内容に応じて制御される。   At this time, since the middle 4 bits of the input data DI are “0010”, the control register R2 of the control register group 20 of the serial interface 200 is selected, and “8” of the lower 8 bits of the input data DI are stored in this control register R2. "00001111" is stored, and the load of the control register R2 is controlled according to the contents of the lower 8 bits.

以上では各シリアルインターフェース100,200の制御レジスタ群20の制御レジスタR1〜R15に所望のデータを格納する場合について説明したが、前記のようにして書き換えたIDレジスタ30の内容を再度書き換えることもできる。このときは、入力データDIの上位4ビットのIDコードを当該書き換えようとするシリアルインターフェース100又は200のIDコードにセットし、中位4ビットのアドレスをIDレジスタ30の制御レジスタR0アドレスである「0000」にセットし、下位8ビットの下位4ビットに新しいIDコードをセットして、その入力データDIをホストから送り込めばよい。   Although the case where desired data is stored in the control registers R1 to R15 of the control register group 20 of each serial interface 100 and 200 has been described above, the contents of the ID register 30 rewritten as described above can be rewritten again. . At this time, the ID code of the upper 4 bits of the input data DI is set to the ID code of the serial interface 100 or 200 to be rewritten, and the address of the middle 4 bits is the control register R0 address of the ID register 30. 0000 ”, a new ID code is set in the lower 4 bits of the lower 8 bits, and the input data DI is sent from the host.

以上のように、本実施例のインターフェースシステムでは、IDレジスタ30を使用し、その内容を書き換え可能にしているので、第1の従来例で説明したような特殊なプロセスや特殊な工程は必要ない。また、初期化されたIDレジスタ30にIDコードを書き込む際には各シリアルインターフェースのシフトレジスタを直列接続して全シフトレジスタにデータを格納する必要があるが、一旦IDコードを割り振った後の通常動作時は、各シフトレジスタは入力データDIに対して並列接続されるので、通常動作における制御データが長くなることはない。   As described above, in the interface system according to the present embodiment, the ID register 30 is used and the contents thereof can be rewritten. Therefore, a special process or a special process as described in the first conventional example is not necessary. . In addition, when writing the ID code to the initialized ID register 30, it is necessary to connect the shift registers of each serial interface in series and store the data in all the shift registers. During operation, the shift registers are connected in parallel to the input data DI, so that control data in normal operation does not become long.

なお、以上では2個のシリアルインターフェースを使用する場合について説明したが、同様の考え方で3個以上のシリアルインターフェースを使用することもできる。   Although the case where two serial interfaces are used has been described above, three or more serial interfaces can be used in the same way.

本発明の1つの実施例のインターフェースシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the interface system of one Example of this invention. 図1のシリアルインターフェースの制御レジスタ群とIDレジスタの説明図である。It is explanatory drawing of the control register group and ID register of the serial interface of FIG. 図1のシリアルインターフェースにIDコードを割り振る動作のタイミングチャートである。2 is a timing chart of an operation of assigning an ID code to the serial interface of FIG. 図1のシリアルインターフェースにIDコードを割り振った後の通常動作のタイミングチャートである。2 is a timing chart of normal operation after assigning an ID code to the serial interface of FIG. 1. 第1の従来例のインターフェースシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the interface system of a 1st prior art example. 図5のシリアルインターフェースの制御レジスタ群の説明図である。It is explanatory drawing of the control register group of the serial interface of FIG. 図5のインターフェースシステムの動作のタイミングチャートである。It is a timing chart of operation | movement of the interface system of FIG. 第2の従来例のインターフェースシステムの構成を示すブロック図である。It is a block diagram which shows the structure of the interface system of a 2nd prior art example. 図8のシリアルインターフェースの制御レジスタ群の説明図である。It is explanatory drawing of the control register group of the serial interface of FIG. 図8のインターフェースシステムの動作のタイミングチャートである。It is a timing chart of operation | movement of the interface system of FIG.

符号の説明Explanation of symbols

100,100A,100B:シリアルインターフェース
200,200A,200B:シリアルインターフェース
10,10A,10B:シフトレジスタ
20,20A,20B:制御レジスタ群
30:IDレジスタ
40:IDチェッカ
50:ID=0検出回路
60:セレクタ
70:IDチェッカ
100, 100A, 100B: Serial interface 200, 200A, 200B: Serial interface 10, 10A, 10B: Shift register 20, 20A, 20B: Control register group 30: ID register 40: ID checker 50: ID = 0 detection circuit 60: Selector 70: ID checker

Claims (3)

入力するデータを格納するシフトレジスタと、負荷を制御する複数の制御レジスタからなる制御レジスタ群と、を備えるシリアルインターフェースであって、該制御レジスタ群内の特定の制御レジスタは、前記シフトレジスタに格納されたデータの内の一部をアドレスとして選択されて、前記シフトレジスタに格納されたデータの内の別の一部を制御データとして書き込まれるようにしたシリアルインターフェース、を複数個使用して構成したインターフェースシステムにおいて、
前記各シリアルインターフェースは、IDコードが書き換え可能で且つ初期状態で該IDコードが初期値に設定されたIDレジスタを備え、
初回のデータ入力では、前記各シフトレジスタを該データ入力に対して直列接続し、前記各シフトレジスタに前記初期値のIDコード、前記IDレジスタのアドレス、および任意の互いに異なるIDコードを1組として、前記シフトレジスタの個数の組数だけ順次送って、前記各シリアルインターフェースの前記IDレジスタにそれぞれ異なるIDコードを書き込み、
次回以降のデータ入力では、前記各シフトレジスタを該データ入力に対して並列接続し、前記各シフトレジスタに共通に、特定のIDコード、制御レジスタ群内の特定の制御レジスタのアドレス、および制御データを送って、IDコードが合致したIDレジスタをもつ特定のシリアルインターフェースの制御レジスタ群内の特定の制御レジスタに前記制御データを書き込むことを特徴とするインターフェースシステム。
A serial interface including a shift register for storing input data and a control register group including a plurality of control registers for controlling a load, and a specific control register in the control register group is stored in the shift register A plurality of serial interfaces, each of which is selected as an address and another part of the data stored in the shift register is written as control data. In the interface system,
Each serial interface includes an ID register in which the ID code can be rewritten and the ID code is set to an initial value in an initial state.
In the first data input, the shift registers are connected in series to the data input, and the ID code of the initial value, the address of the ID register, and any different ID code are set as a set in each shift register. , Sequentially sending as many pairs as the number of the shift registers, and writing different ID codes to the ID registers of the serial interfaces,
In the subsequent data input, each shift register is connected in parallel to the data input, and in common with each shift register, a specific ID code, an address of a specific control register in the control register group, and control data And writing the control data to a specific control register in a control register group of a specific serial interface having an ID register that matches the ID code.
請求項1に記載のインターフェースシステムにおいて、
前記各シリアルインターフェースは、入力するIDコードと前記IDレジスタに格納されているIDコードを比較して両者が一致すると前記IDレジスタと前記制御レジスタ群を動作可能にするIDチェッカを備えることを特徴とするインターフェースシステム。
The interface system according to claim 1,
Each of the serial interfaces includes an ID checker that enables the ID register and the control register group to operate when the input ID code and the ID code stored in the ID register are compared to match each other. Interface system.
請求項1又は2に記載のインターフェースシステムにおいて、
前記各シリアルインターフェースは、前記IDレジスタに格納されたIDコードが前記初期値と一致するとき前記各シリアルインターフェースのシフトレジスタをデータ入力に対して直列接続し、一致しないとき並列接続するセレクタを備えることを特徴とするインターフェースシステム。
The interface system according to claim 1 or 2,
Each serial interface includes a selector that serially connects the shift register of each serial interface to the data input when the ID code stored in the ID register matches the initial value, and connects in parallel when the ID code does not match. An interface system characterized by
JP2005371138A 2005-12-23 2005-12-23 Interface system Expired - Lifetime JP4703394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005371138A JP4703394B2 (en) 2005-12-23 2005-12-23 Interface system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005371138A JP4703394B2 (en) 2005-12-23 2005-12-23 Interface system

Publications (2)

Publication Number Publication Date
JP2007172415A JP2007172415A (en) 2007-07-05
JP4703394B2 true JP4703394B2 (en) 2011-06-15

Family

ID=38298875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005371138A Expired - Lifetime JP4703394B2 (en) 2005-12-23 2005-12-23 Interface system

Country Status (1)

Country Link
JP (1) JP4703394B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6302713B2 (en) * 2014-03-25 2018-03-28 新日本無線株式会社 Serial communication method and serial communication device

Also Published As

Publication number Publication date
JP2007172415A (en) 2007-07-05

Similar Documents

Publication Publication Date Title
EP0156316B1 (en) Memory device with data access control
KR101036727B1 (en) Method of I2C addressing and device for performing the same
US5437019A (en) Addressing method and apparatus for a computer system
NO152431B (en) PROCEDURE AND APPARATUS FOR PROCESSING INFORMATION AND FOR ERROR LOCATION IN A PRINCIPAL APPLIANCE
US4254463A (en) Data processing system with address translation
US6453380B1 (en) Address mapping for configurable memory system
US7162563B2 (en) Semiconductor integrated circuit having changeable bus width of external data signal
US5668974A (en) Memory with variable levels of interleaving and associated configurator circuit
JPH0243213B2 (en)
JP4703394B2 (en) Interface system
US5987533A (en) Automatically configuring SCSI device addresses using SCSI controller storing predetermined ID and, producing address signals for transferring to peripheral device via SCSI ID input means
JPH03252993A (en) Information writing device for e2prom
JP2008117306A (en) Interface system
US6920544B2 (en) Processor and instruction execution method with reduced address information
JPH0887441A (en) Flash memory access method
JPH09212413A (en) Method and apparatus for forming translation information for translating storage area addresses into memory control signals
JP2008276371A (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
US20050080983A1 (en) Method and apparatus for transmitting and storing data
JP5055142B2 (en) Memory test circuit
US20120268977A1 (en) Semiconductor memory device and programming method thereof
JP5208080B2 (en) Sequence control circuit and control circuit
JP5388617B2 (en) Interface method and system
JPH1040165A (en) Data read method and read buffer
JP3461473B2 (en) Self-diagnosis system and method for main storage device
US6507884B1 (en) Microcomputer with multiple memories for storing data

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081006

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110301

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110308

R150 Certificate of patent or registration of utility model

Ref document number: 4703394

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term