JP5071655B2 - Control circuit - Google Patents
Control circuit Download PDFInfo
- Publication number
- JP5071655B2 JP5071655B2 JP2007303617A JP2007303617A JP5071655B2 JP 5071655 B2 JP5071655 B2 JP 5071655B2 JP 2007303617 A JP2007303617 A JP 2007303617A JP 2007303617 A JP2007303617 A JP 2007303617A JP 5071655 B2 JP5071655 B2 JP 5071655B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- flip
- flop circuit
- signal
- external
- 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.)
- Active
Links
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 5
- 238000000034 method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Logic Circuits (AREA)
Description
本発明は、制御回路に関する。 The present invention relates to a control circuit.
中央演算処理装置(CPU)等からのデータに基づき外部装置を制御する場合には、外部装置の必要に応じた数の出力端子が必要になる。しかし、CPUに用意されている出力端子の数を超える出力端子数を必要とする場面も少なくない。このような場合、CPUと外部装置とを中継する制御回路(制御用IC)を設け、外部装置の制御に必要な数の出力端子をこの制御回路に持たせることが一般的である。
従来は、必要な出力端子数を備えた制御用ICを用意して使用していた。しかし、必要な出力端子数はアプリケーション(製品)ごとに異なるため、全ての製品で使用できるような多数の出力端子を有する制御用ICを用意すると、パッケージも大きくなる。よって実装面積も大きくなり、また、パッケージ自体も高価なものになる。 Conventionally, a control IC having the necessary number of output terminals has been prepared and used. However, since the required number of output terminals differs depending on the application (product), if a control IC having a large number of output terminals that can be used in all products is prepared, the package becomes large. Therefore, the mounting area becomes large and the package itself becomes expensive.
また、制御用ICの出力端子数を最小限のものとし、それを超える数の出力端子が必要になった場合には、CPUからのデータをそのまま出力する出力端子の外部に外部フリップフロップ回路を接続し、そのフリップフロップ回路の出力端子を利用することで、実質的に出力端子の数を増やす手法もある。しかし、外部フリップフロップ回路の出力状態はCPUからは確認できないため、外部フリップフロップ回路の出力状態をCPU内部で記憶しておく必要があり、CPUで動作するプログラムが煩雑になるという問題があった。また、外部フリップフロップ回路の出力状態を読み出すための端子を制御用ICに新たに設けることは可能だが、端子数を減らしたいという目的が達成されなくなる。 In addition, when the number of output terminals of the control IC is minimized and the number of output terminals exceeding that is required, an external flip-flop circuit is provided outside the output terminal for outputting data from the CPU as it is. There is also a method of substantially increasing the number of output terminals by connecting and using the output terminals of the flip-flop circuit. However, since the output state of the external flip-flop circuit cannot be confirmed from the CPU, it is necessary to store the output state of the external flip-flop circuit inside the CPU, which causes a problem that the program operating on the CPU becomes complicated. . Further, although it is possible to newly provide a terminal for reading the output state of the external flip-flop circuit in the control IC, the purpose of reducing the number of terminals cannot be achieved.
本発明は、以上のような問題点に鑑みてなされたものであり、端子数を増やすことなく、外部フリップフロップ回路の出力状態をCPU等から読み出し可能な制御回路を提供することを目的とする。 The present invention has been made in view of the above problems, and an object thereof is to provide a control circuit that can read the output state of an external flip-flop circuit from a CPU or the like without increasing the number of terminals. .
(1)本発明にかかる制御回路は、中央処理装置から制御信号を受け付けて、前記制御信号に応じて少なくとも1つの外部装置又は前記中央処理装置にデータを出力する制御回路であって、前記中央処理装置との間で前記制御信号及びデータを入出力する入出力部と、前記入出力部から入力されたデータを出力する複数の外部出力端子を含む第1の出力部と、出力端子が前記外部装置のいずれかに接続され、前記中央処理装置が有するアドレス空間内の1つのアドレスと1対1に対応する外部フリップフロップ回路のデータ端子が、前記第1の出力部の外部出力端子への接続が想定される場合に、前記外部フリップフロップ回路と1対1に対応する対応フリップフロップ回路と、を含み、前記入出力部を介して、前記中央処理装置から前記外部フリップフロップ回路及び前記対応フリップフロップ回路に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合には、前記外部フリップフロップ回路及び前記対応フリップフロップ回路に前記所定のデータを書き込み、前記入出力部を介して、前記中央処理装置から前記外部フリップフロップ回路及び前記対応フリップフロップ回路に対応するアドレスのデータを読み出す制御信号を受け付けた場合には、前記対応フリップフロップ回路に保持されているデータを、前記入出力部を介して前記中央処理装置に出力することを特徴とする。 (1) A control circuit according to the present invention is a control circuit that receives a control signal from a central processing unit and outputs data to at least one external device or the central processing unit according to the control signal. An input / output unit that inputs / outputs the control signal and data to / from a processing device, a first output unit that includes a plurality of external output terminals that output data input from the input / output unit, and an output terminal that includes the output terminal A data terminal of an external flip-flop circuit connected to one of the external devices and corresponding one-to-one with an address in the address space of the central processing unit is connected to the external output terminal of the first output unit. When connection is assumed, the external flip-flop circuit and a corresponding flip-flop circuit corresponding to one-to-one are included, and the external processing unit is connected to the external processing unit via the input / output unit. When a control signal for writing predetermined data to an address corresponding to the flip-flop circuit and the corresponding flip-flop circuit is received, the predetermined data is written to the external flip-flop circuit and the corresponding flip-flop circuit, and the input / output When a control signal for reading data at an address corresponding to the external flip-flop circuit and the corresponding flip-flop circuit is received from the central processing unit via the unit, the data held in the corresponding flip-flop circuit is And outputting to the central processing unit via the input / output unit.
制御信号は、例えば所定のアドレスに対応するフリップフロップ回路に所定のデータを書き込む命令や、所定のアドレスに対応するフリップフロップ回路のデータを読み出す命令が含まれていてもよい。 The control signal may include, for example, an instruction for writing predetermined data in a flip-flop circuit corresponding to a predetermined address and an instruction for reading data of a flip-flop circuit corresponding to a predetermined address.
外部装置は、例えばデータの入出力装置、通信装置、記憶装置、照明装置、表示装置、電源装置、モータ等、中央処理装置からの制御信号に基づき制御できる装置でもよい。 The external device may be a device that can be controlled based on a control signal from the central processing unit, such as a data input / output device, a communication device, a storage device, a lighting device, a display device, a power supply device, and a motor.
入出力部は、入力端子と出力端子を含む構成でもよく、入力端子と出力端子を共用する構成でもよい。また、入出力部と中央処理装置は、例えば通信バスで接続されてもよい。 The input / output unit may include an input terminal and an output terminal, or may share the input terminal and the output terminal. Further, the input / output unit and the central processing unit may be connected by, for example, a communication bus.
外部フリップフロップ回路及び対応フリップフロップ回路は、データの更新タイミングを決めるクロック信号を受け付けるクロック端子を含む構成でもよい。 The external flip-flop circuit and the corresponding flip-flop circuit may include a clock terminal that receives a clock signal for determining data update timing.
本発明によれば、中央処理装置からのデータをそのまま出力する出力端子と外部フリップフロップ回路を利用することにより、現実の外部出力端子の数を増やすことなく外部装置にデータを出力できる端子を実質的に増やすことが可能であり、さらに、中央処理装置から対応フリップフロップ回路の出力状態を読み出すことにより、新たに制御回路の端子を増やすことなく、実質的に外部フリップフロップ回路の出力状態を読み出すことができる。 According to the present invention, by using an output terminal that directly outputs data from the central processing unit and an external flip-flop circuit, a terminal that can output data to an external device without increasing the number of actual external output terminals is substantially provided. Furthermore, by reading out the output state of the corresponding flip-flop circuit from the central processing unit, the output state of the external flip-flop circuit is substantially read out without newly increasing the number of terminals of the control circuit. be able to.
(2)本発明にかかる制御回路は、前記外部フリップフロップ回路と前記対応フリップフロップ回路のデータ端子には同一のデータが入力され、前記外部フリップフロップ回路と前記対応フリップフロップ回路のクロック端子には同一のタイミング信号に基づくクロック信号が入力されることを特徴とする。 (2) In the control circuit according to the present invention, the same data is input to the data terminals of the external flip-flop circuit and the corresponding flip-flop circuit, and the clock terminals of the external flip-flop circuit and the corresponding flip-flop circuit are input. A clock signal based on the same timing signal is input.
制御回路は、中央処理装置からの制御信号からクロック信号を生成するデコード部を含む構成でもよい。 The control circuit may include a decoding unit that generates a clock signal from a control signal from the central processing unit.
クロック信号は、中央処理装置からの制御信号の一部をタイミング信号として、これに基づいて生成されてもよい。また、クロック信号は、制御信号の一部の信号を論理演算して生成したタイミング信号に基づいて生成してもよい。タイミング信号の基となる制御信号には、例えば、制御回路を指定するチップセレクト信号、フリップフロップ回路のアドレスを指定するアドレス信号、フリップフロップ回路にデータの書き込みを許可するライトイネーブル信号などがある。 The clock signal may be generated based on a part of the control signal from the central processing unit as a timing signal. The clock signal may be generated based on a timing signal generated by performing a logical operation on a part of the control signal. The control signal that is the basis of the timing signal includes, for example, a chip select signal that designates the control circuit, an address signal that designates the address of the flip-flop circuit, and a write enable signal that permits the flip-flop circuit to write data.
本発明によれば、外部フリップフロップ回路と対応フリップフロップ回路に同一のデータを書き込むことができる。 According to the present invention, the same data can be written to the external flip-flop circuit and the corresponding flip-flop circuit.
(3)本発明にかかる制御回路は、複数の外部出力端子を含む第2の出力部と、前記第2の出力部の外部出力端子及び前記中央処理装置が有するアドレス空間内の1つのアドレスとそれぞれ1対1に対応し、前記第2の出力部からデータを出力する出力フリップフロップ回路と、を含み、前記入出力部を介して、前記中央処理装置から前記出力フリップフロップ回路に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合には、前記出力フリップフロップ回路に前記所定のデータを書き込み、前記入出力部を介して、前記中央処理装置から前記出力フリップフロップ回路に対応するアドレスのデータを読み出す制御信号を受け付けた場合には、前記出力フリップフロップ回路に保持されているデータを、前記入出力部を介して前記中央処理装置に出力することを特徴とする。 (3) A control circuit according to the present invention includes a second output unit including a plurality of external output terminals, an external output terminal of the second output unit, and one address in an address space of the central processing unit. An output flip-flop circuit corresponding to each one-to-one and outputting data from the second output unit, and an address corresponding to the output flip-flop circuit from the central processing unit via the input / output unit When a control signal for writing predetermined data is received, the predetermined data is written to the output flip-flop circuit, and an address corresponding to the output flip-flop circuit is transmitted from the central processing unit via the input / output unit. When the control signal for reading the data is received, the data held in the output flip-flop circuit is transferred via the input / output unit. And outputs to the central processing unit.
出力フリップフロップ回路は、データの更新タイミングを決めるクロック信号を受け付けるクロック端子を含む構成でもよい。 The output flip-flop circuit may include a clock terminal that receives a clock signal that determines data update timing.
本発明によれば、出力フリップフロップ回路から直接出力できることで、外部フリップフロップ回路が接続されない場合でも外部装置にデータを出力することができる。 According to the present invention, since data can be output directly from the output flip-flop circuit, data can be output to an external device even when the external flip-flop circuit is not connected.
(4)本発明にかかる制御回路は、前記第1の出力部の同一の外部出力端子にデータ端子が接続された前記外部フリップフロップ回路と前記出力フリップフロップ回路のクロック端子に、それぞれ異なるタイミング信号に基づくクロック信号が入力されることを特徴とする。 (4) The control circuit according to the present invention has different timing signals for the external flip-flop circuit whose data terminal is connected to the same external output terminal of the first output section and the clock terminal of the output flip-flop circuit, respectively. A clock signal based on the above is input.
制御回路は、中央処理装置からの制御信号からクロック信号を生成するデコード部を含む構成でもよい。 The control circuit may include a decoding unit that generates a clock signal from a control signal from the central processing unit.
クロック信号は、中央処理装置からの制御信号の一部をタイミング信号として、これに基づいて生成されてもよい。また、クロック信号は、制御信号の一部の信号を論理演算して生成したタイミング信号に基づいて生成してもよい。タイミング信号の基となる制御信号には、例えば、制御回路を指定するチップセレクト信号、フリップフロップ回路のアドレスを指定するアドレス信号、フリップフロップ回路にデータの書き込みを許可するライトイネーブル信号などがある。 The clock signal may be generated based on a part of the control signal from the central processing unit as a timing signal. The clock signal may be generated based on a timing signal generated by performing a logical operation on a part of the control signal. The control signal that is the basis of the timing signal includes, for example, a chip select signal that designates the control circuit, an address signal that designates the address of the flip-flop circuit, and a write enable signal that permits the flip-flop circuit to write data.
本発明によれば、外部フリップフロップ回路と出力フリップフロップ回路に異なるデータを書き込むことが可能となる。これにより、外部出力端子を有効に使うことができる。 According to the present invention, different data can be written to the external flip-flop circuit and the output flip-flop circuit. Thereby, the external output terminal can be used effectively.
(5)本発明にかかる制御回路は、前記第1の出力部の同一の外部出力端子に、複数の前記外部フリップフロップ回路のデータ端子の接続が想定される場合に、前記外部フリップ回路のクロック端子にそれぞれ異なるタイミング信号に基づくクロック信号が入力されることを特徴とする。 (5) The control circuit according to the present invention is configured such that the clock of the external flip circuit is connected when the data terminals of the plurality of external flip-flop circuits are assumed to be connected to the same external output terminal of the first output unit. A clock signal based on a different timing signal is input to each terminal.
制御回路は、中央処理装置からの制御信号からクロック信号を生成するデコード部を含む構成でもよい。 The control circuit may include a decoding unit that generates a clock signal from a control signal from the central processing unit.
クロック信号は、中央処理装置からの制御信号の一部をタイミング信号として、これに基づいて生成されてもよい。また、クロック信号は、制御信号の一部の信号を論理演算して生成したタイミング信号に基づいて生成してもよい。タイミング信号の基となる制御信号には、例えば、制御回路を指定するチップセレクト信号、フリップフロップ回路のアドレスを指定するアドレス信号、フリップフロップ回路にデータの書き込みを許可するライトイネーブル信号などがある。 The clock signal may be generated based on a part of the control signal from the central processing unit as a timing signal. The clock signal may be generated based on a timing signal generated by performing a logical operation on a part of the control signal. The control signal that is the basis of the timing signal includes, for example, a chip select signal that designates the control circuit, an address signal that designates the address of the flip-flop circuit, and a write enable signal that permits the flip-flop circuit to write data.
本発明によれば、複数の外部フリップフロップ回路に異なるデータを書き込むことができる。 According to the present invention, different data can be written to a plurality of external flip-flop circuits.
以下、本発明を適用した実施の形態について図面を参照して説明する。ただし、本発明は以下の実施の形態に限定されるものではない。また、本発明は、以下の内容を自由に組み合わせたものを含むものとする。 Embodiments to which the present invention is applied will be described below with reference to the drawings. However, the present invention is not limited to the following embodiments. Moreover, this invention shall include what combined the following content freely.
図1乃至図4は、本発明を適用した実施の形態に係る制御回路の一例について説明するための図である。 1 to 4 are diagrams for explaining an example of a control circuit according to an embodiment to which the present invention is applied.
(1)構成
図1は本発明を適用した実施の形態に係る制御回路の構成の一例を示した図である。
(1) Configuration FIG. 1 is a diagram showing an example of a configuration of a control circuit according to an embodiment to which the present invention is applied.
制御回路100は、入出力部101を含む。入出力部101は、中央処理装置200との間で制御信号及びデータを入出力する。入出力部101は、入力端子と出力端子を含む構成でもよく、入力端子と出力端子を共用する構成であってもよい。また、入出力部101と中央処理装置200との間は、例えば通信バス130で接続されていてもよい。中央処理装置200は、内部にアドレス空間201を含む。
The control circuit 100 includes an input /
制御回路100は、第1の出力部110を含む。第1の出力部110は、入出力部101で受け取ったデータを、外部フリップフロップ回路301に出力する。第1の出力部110は、複数の外部出力端子111を含む。本実施の形態においては、外部出力端子111−1から111−mまでのm個の外部出力端子を含んでいる。外部装置400は、例えばデータの入出力装置、通信装置、記憶装置、照明装置、表示装置、電源装置、モータ等、中央処理装置200からの制御信号に基づき制御できる装置であってもよい。
The control circuit 100 includes a
外部フリップフロップ回路301は、中央処理装置200が有するアドレス空間201内の1のアドレスと1対1に対応する。外部フリップフロップ回路301は、クロック端子、データ端子、リセット端子(クリア端子)、出力端子を含む。外部フリップフロップ回路301の出力端子は、所定の外部装置400に接続され、所定のデータを出力する。
The external flip-
本実施の形態では、外部フリップフロップ回路301−1から301−kまでのk個の外部フリップフロップ回路が、各外部出力端子111に1つずつ接続されている。なお、外部フリップフロップ回路301は全ての外部出力端子111に接続されている必要はない。また、1つの外部出力端子111に複数の外部フリップフロップ回路301が接続されてもよい。
In this embodiment, k external flip-flop circuits from external flip-flop circuits 301-1 to 301-k are connected to each
制御回路100は、第2の出力部112を含んでもよい。第2の出力部112は、出力フリップフロップ回路104の出力データを、所定の外部装置400に出力する。第2の出力部112は、複数の外部出力端子113を含む。本実施の形態においては、外部出力端子113−1から113−nまでのn個の外部出力端子を含んでいる。
The control circuit 100 may include a
制御回路100は、対応フリップフロップ回路103を含む。対応フリップフロップ回路103は、クロック端子、データ端子、リセット端子(クリア端子)、出力端子を含む。対応フリップフロップ回路103は、外部フリップフロップ回路301と1対1に対応する。対応フリップフロップ回路103のデータ端子には、入出力部101で受け取ったデータが入力される。本実施の形態においては、対応フリップフロップ回路103−1のデータ端子に入力されるデータと、外部出力端子111−1から出力されるデータは同一である。対応フリップフロップ回路103の出力端子は、後述する出力切替部107を介して入出力部101に接続される。
The control circuit 100 includes a corresponding flip-
本実施の形態では、制御回路100は、各外部フリップフロップ回路301に対応して、対応フリップフロップ回路103−1から103−kまでのk個の対応フリップフロップ回路を含んでいる。なお、対応フリップフロップ回路は、接続が想定される外部フリップフロップ回路の数だけあればよく、例えば現実には接続されていない外部フリップフロップ回路と対応する場合も含む。
In the present embodiment, the control circuit 100 includes k corresponding flip-flop circuits corresponding to each external flip-
制御回路100は、出力フリップフロップ回路104を含んでもよい。出力フリップフロップ回路104は、クロック端子、データ端子、リセット端子(クリア端子)、出力端子を含む。出力フリップフロップ回路104は、中央処理装置200が有するアドレス空間201内の1のアドレスと1対1に対応する。出力フリップフロップ回路104のデータ端子には、入出力部101で受け取ったデータが入力される。本実施の形態においては、外部出力端子113−1から113−nまでのn個の外部出力端子を含んでいるため、出力フリップフロップ回路104も、各外部出力端子に対応してn個設けられている。なお、出力フリップフロップ回路104の出力端子は、第2の出力部112を介して所定の外部装置400に接続される。出力フリップフロップ回路104の出力端子は、後述する出力切替部108を介して入出力部101に接続される。
The control circuit 100 may include an output flip-
なお、対応フリップフロップ回路103と出力フリップフロップ回路104は、内部フリップフロップマトリクス120として一体に構成してもよい。
Note that the corresponding flip-
制御回路100は、デコード部105を含んでもよい。デコード部105は、中央処理装置200からの制御信号に含まれるアドレスや書き込み又は読み出しの命令を判別してもよい。デコード部105は、中央処理装置200からの制御信号に含まれるアドレスに対応する外部フリップフロップ回路301、対応フリップフロップ回路103又は出力フリップフロップ回路104のクロック端子にクロック信号を出力してもよい。また、デコード部105は、中央処理装置200からの制御信号に含まれる書き込み又は読み出しの命令を判別した結果を後述する出力切替部107及び出力切替部108に出力してもよい。
The control circuit 100 may include a
制御回路100は、リセット信号生成部106を含んでもよい。リセット信号生成部106は、制御回路100の外部からの信号に基づき、外部フリップフロップ回路301、対応フリップフロップ回路103及び出力フリップフロップ回路104のリセット端子(クリア端子)に所定の信号を出力し、外部フリップフロップ回路301、対応フリップフロップ回路103及び出力フリップフロップ回路104の初期値を設定してもよい。なお、外部からの信号は中央処理装置200が出力してもよい。
The control circuit 100 may include a reset signal generation unit 106. The reset signal generation unit 106 outputs a predetermined signal to the reset terminal (clear terminal) of the external flip-
制御回路100は、出力切替部107を含んでもよい。出力切替部107は、対応フリップフロップ回路103の出力端子に接続され、デコード部105の出力結果に基づき、データを外部に出力しない通常状態と、入出力部101を介して中央処理装置200に出力する読み出し状態を切り替えてもよい。
The control circuit 100 may include an
制御回路100は、出力切替部108を含んでもよい。出力切替部108は、出力フリップフロップ回路104の出力端子に接続され、デコード部105の出力結果に基づき、データを第2の出力部112を介して外部装置400へのみ出力する通常状態と、データを第2の出力部112を介して外部装置400へ出力するとともに入出力部101を介して中央処理装置200に出力する読み出し状態を切り替えてもよい。
The control circuit 100 may include an
なお、本実施の形態にかかる制御回路100は、例えば専用の半導体集積回路で構成してもよく、またCPLD(Complex Programmable Logic Device)で構成してもよい。また、外部フリップフロップ回路301は、複数のフリップフロップ回路を含むクロック入力付きの汎用フリップフロップICで構成してもよい。
The control circuit 100 according to the present embodiment may be configured with, for example, a dedicated semiconductor integrated circuit, or may be configured with a CPLD (Complex Programmable Logic Device). Further, the external flip-
(2)動作
(a)外部フリップフロップ回路及び対応フリップフロップ回路への書き込み動作
はじめに、中央処理装置200から外部フリップフロップ回路301及び対応フリップフロップ回路103に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合に、外部フリップフロップ回路301及び対応フリップフロップ回路103に所定のデータを書き込む動作を説明する。
(2) Operation (a) Write Operation to External Flip-Flop Circuit and Corresponding Flip-Flop Circuit First, a control signal for writing predetermined data from the
図2は、図1の制御回路において、中央処理装置200の1クロックの制御信号に基づいて、外部フリップフロップ回路301と対応フリップフロップ回路103にデータを書き込む動作を説明するためのタイミングチャートである。
FIG. 2 is a timing chart for explaining the operation of writing data to the external flip-
図2の信号(A)はチップセレクト信号である。チップセレクト信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。チップセレクト信号は、中央処理装置200に複数の制御回路が接続している場合に、命令を送る制御回路を特定するために用いられる。本実施の形態では、チップセレクト信号がLowレベルのときに制御回路100が選択されるように構成されている。
The signal (A) in FIG. 2 is a chip select signal. The chip select signal is one of control signals output from the
図2の信号(B)はアドレス信号である。アドレス信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。アドレス信号は、アドレス空間201内のアドレスと対応し、データを書き込むフリップフロップ回路を特定するために用いられる。本実施の形態では、デコード部105により、アドレス信号と各フリップフロップ回路との対応がとられるように構成されている。
The signal (B) in FIG. 2 is an address signal. The address signal is one of control signals output from the
図2の信号(C)は入力データ信号である。入力データ信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。入力データ信号は、各フリップフロップ回路に書き込まれるデータを表す。
The signal (C) in FIG. 2 is an input data signal. The input data signal is one of control signals output from the
図2の信号(D)はライトイネーブル信号である。ライトイネーブル信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。ライトイネーブル信号は、チップセレクト信号及びアドレス信号により特定されたフリップフロップ回路に、入力データ信号に表されたデータの書き込みを許可するために用いられる。本実施の形態では、ライトイネーブル信号がLowレベルのときに、特定されたフリップフロップ回路にデータが書き込まれるように構成されている。
The signal (D) in FIG. 2 is a write enable signal. The write enable signal is one of control signals output from the
図2の信号(E)は、デコード部105の内部信号である、アドレスデコード信号である。アドレスデコード信号は、入出力部101から入力されたチップセレクト信号及びアドレス信号によりデータを書き込むフリップフロップ回路を特定する信号である。本実施の形態では、チップセレクト信号及びアドレス信号のいずれもがLowレベルのときに、アドレスデコード信号がHighレベルになるように構成されている。本実施の形態では、ライトイネーブル信号がHighレベルからLowレベルに変化して書き込みが許可された後にアドレスデコード信号を生成しているため、チップセレクト信号及びアドレス信号に比べて、デコード部105がデコードに要する時間(デコード時間)T1だけ遅れてアドレスデコード信号が生成されている。
A signal (E) in FIG. 2 is an address decode signal that is an internal signal of the
図2の信号(F)は、デコード部105の出力信号であり、対応フリップフロップ回路103のクロック端子に入力される第1のクロック信号である。第1のクロック信号は、対応フリップフロップ回路103が保持するデータの更新タイミングを決定する。本実施の形態では、第1のクロック信号がLowレベルからHighレベルに変化するタイミングで、対応フリップフロップ回路103が保持するデータが、対応フリップフロップ回路103のデータ端子に入力されている入力データ信号が表すデータに更新されるように構成されている。また、本実施の形態では、アドレスデコード信号がLowレベルからHighレベルに変化して対応フリップフロップ回路103が特定された後に、デコード部105がライトイネーブル信号を反転して第1のクロック信号を生成しているため、ライトイネーブル信号に比べて、デコード部105がデコードに要する時間(デコード時間)T2だけ遅れて第1のクロック信号が生成されている。すなわち、本実施の形態では、アドレスデコード信号と、ライトイネーブル信号の反転信号との積をタイミング信号として、第1のクロック信号を生成している。
A signal (F) in FIG. 2 is an output signal of the
図2の信号(G)は、対応フリップフロップ回路103の出力信号である。対応フリップフロップ回路103の出力信号は、第1のクロック信号に対応して更新された後のデータ、すなわち対応フリップフロップ回路103に保持されているデータを対応フリップフロップ回路103の出力端子から出力した信号である。本実施の形態では、対応フリップフロップ回路103の出力信号は、第1のクロック信号がLowレベルからHighレベルに変化するタイミングで対応フリップフロップ回路103に保持されているデータが出力されている。
A signal (G) in FIG. 2 is an output signal of the corresponding flip-
図2の信号(H)は、デコード部105の出力信号であり、外部フリップフロップ回路301のクロック端子に入力される第2のクロック信号である。第2のクロック信号は、外部フリップフロップ回路301が保持するデータの更新タイミングを決定する。本実施の形態では、第2のクロック信号がLowレベルからHighレベルに変化するタイミングで、外部フリップフロップ回路301が保持するデータが、外部フリップフロップ回路301のデータ端子に入力されている入力データ信号が表すデータに更新されるように構成されている。また、本実施の形態では、第1のクロック信号と同様に、アドレスデコード信号がLowレベルからHighレベルに変化して対応フリップフロップ回路103が特定された後に、デコード部105がライトイネーブル信号を反転して第2のクロック信号を生成している。すなわち、本実施の形態では、アドレスデコード信号と、ライトイネーブル信号の反転信号との積をタイミング信号として、第2のクロック信号を生成している。なお、本実施の形態では、デコード部105が第1のクロック信号に従属して第2のクロック信号を生成しているため、第1のクロック信号に比べて、第1のクロック信号のパルス幅T3よりも短い時間T4だけ遅れて第2のクロック信号が生成されているが、T4は0でもよい。
A signal (H) in FIG. 2 is an output signal of the
図2の信号(I)は、外部フリップフロップ回路301の出力信号である。外部フリップフロップ回路301の出力信号は、第2のクロック信号に対応して更新された後のデータ、すなわち外部フリップフロップ回路301に保持されているデータを外部フリップフロップ回路301の出力端子から出力した信号である。本実施の形態では、外部フリップフロップ回路301の出力信号は、第2のクロック信号がLowレベルからHighレベルに変化するタイミングで外部フリップフロップ回路301に保持されているデータが出力されている。
A signal (I) in FIG. 2 is an output signal of the external flip-
以上の動作により、中央処理装置200の1クロックの制御信号に基づいて、外部フリップフロップ回路301と対応フリップフロップ回路103に同一のデータを書き込むことができる。
With the above operation, the same data can be written to the external flip-
なお、リセット信号生成部106が、外部フリップフロップ回路301のクリア端子(リセット端子)と対応フリップフロップ回路103のクリア端子(リセット端子)に対して同一のタイミングでリセット信号を出力することにより、外部フリップフロップ回路301と対応フリップフロップ回路103の初期値を揃えることができる。
The reset signal generation unit 106 outputs a reset signal at the same timing to the clear terminal (reset terminal) of the external flip-
(b)対応フリップフロップ回路からの読み出し動作
次に、入出力部101を介して、中央処理装置200から外部フリップフロップ回路301及び対応フリップフロップ回路103に対応するアドレスのデータを読み出す制御信号を受け付けた場合に、対応フリップフロップ回路103に保持されているデータを、入出力部101を介して中央処理装置200に出力する動作、すなわち、対応フリップフロップ回路103からデータを読み出す動作を説明する。
(B) Reading Operation from Corresponding Flip-Flop Circuit Next, a control signal for reading data at addresses corresponding to the external flip-
図3は、図1の制御回路において、中央処理装置200の1クロックの制御信号に基づいて、対応フリップフロップ回路103からデータを読み出す動作を説明するためのタイミングチャートである。
FIG. 3 is a timing chart for explaining the operation of reading data from the corresponding flip-
図3の信号(J)はチップセレクト信号である。チップセレクト信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。チップセレクト信号は、中央処理装置200に複数の制御回路が接続している場合に、命令を送る制御回路を特定するために用いられる。本実施の形態では、チップセレクト信号がLowレベルのときに制御回路100が選択されるように構成されている。
The signal (J) in FIG. 3 is a chip select signal. The chip select signal is one of control signals output from the
図3の信号(K)はアドレス信号である。アドレス信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。アドレス信号は、アドレス空間201内のアドレスと対応し、データを読み出すフリップフロップ回路を特定するために用いられる。本実施の形態では、デコード部105により、アドレス信号と各フリップフロップ回路との対応がとられるように構成されている。
The signal (K) in FIG. 3 is an address signal. The address signal is one of control signals output from the
図3の信号(L)は出力データ信号である。出力データ信号は、制御回路100から入出力部101を介して出力し、中央処理装置200に入力される。すなわち、本動作において中央処理装置200が読み出すデータを表す信号である。出力データ信号の生成方法は後述する。
The signal (L) in FIG. 3 is an output data signal. The output data signal is output from the control circuit 100 via the input /
図3の信号(M)はリードイネーブル信号である。リードイネーブル信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。リードイネーブル信号は、チップセレクト信号及びアドレス信号により特定されたフリップフロップ回路に、データの読み出しを許可するために用いられる。本実施の形態では、リードイネーブル信号がLowレベルのときに、特定されたフリップフロップ回路からデータが読み出されるように構成されている。
A signal (M) in FIG. 3 is a read enable signal. The read enable signal is one of control signals output from the
図3の信号(N)は、デコード部105の内部信号である、アドレスデコード信号である。アドレスデコード信号は、入出力部101から入力されたチップセレクト信号及びアドレス信号によりデータを読み出すフリップフロップ回路を特定する信号である。本実施の形態では、チップセレクト信号及びアドレス信号のいずれもがLowレベルのときに、アドレスデコード信号がHighレベルになるように構成されている。本実施の形態では、リードイネーブル信号がHighレベルからLowレベルに変化して読み出しが許可された後にアドレスデコード信号を生成しているため、チップセレクト信号及びアドレス信号に比べて、デコード部105がデコードに要する時間(デコード時間)T5だけ遅れてアドレスデコード信号が生成されている。
A signal (N) in FIG. 3 is an address decode signal that is an internal signal of the
図3の信号(O)は、デコード部105の出力信号である、アウトプットイネーブル信号である。アウトプットイネーブル信号は、出力切替部107に入力する。アウトプットイネーブル信号が入力された出力切替部107は、対応フリップフロップ回路103の出力端子からの出力信号を、外部に出力しない通常状態から、入出力部101から通信バス130を介して中央処理装置200に出力する読み出し状態へと切り替える。本実施の形態では、アウトプットイネーブル信号がHighレベルのときに読み出し状態になるように構成されている。また、本実施の形態では、アドレスデコード信号がLowレベルからHighレベルに変化して対応フリップフロップ回路103が特定された後にアウトプットイネーブル信号を生成しているため、リードイネーブル信号に比べて、デコード部105がデコードに要する時間(デコード時間)T6だけ遅れてアウトプットイネーブル信号が生成されている。なお、アウトプットイネーブル信号は、書き込み動作の場合に図2で説明したライトイネーブル信号が入力されていない場合にのみ出力してもよい。
A signal (O) in FIG. 3 is an output enable signal that is an output signal of the
そして、アウトプットイネーブル信号により読み出し状態へと切り替えられると、上述した出力データ信号が入出力部101を介して中央処理装置200へ出力される。本実施の形態では、出力データ信号は、チップセレクト信号及びアドレス信号とアウトプットイネーブル信号が重なる時間T7に出力されるように構成されている。
Then, when the output enable signal is switched to the read state, the output data signal described above is output to the
以上の動作により、中央処理装置200の1クロックの制御信号に基づいて、対応フリップフロップ回路103からデータを読み出すことができる。そして、対応フリップフロップ回路103と外部フリップフロップ回路301には、前述した書き込み動作により同じデータが書き込まれているので、中央処理装置200が外部フリップフロップ回路301からデータを読み出すことと同じ結果を得ることができる。
With the above operation, data can be read from the corresponding flip-
(c)出力フリップフロップ回路への書き込み動作
次に、入出力部101を介して、中央処理装置200から出力フリップフロップ回路104に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合に、出力フリップフロップ回路104に所定のデータを書き込む動作を説明する。
(C) Write Operation to Output Flip-Flop Circuit Next, when a control signal for writing predetermined data to an address corresponding to the output flip-
図4は、図1の制御回路において、中央処理装置200の1クロックの制御信号に基づいて、出力フリップフロップ回路104にデータを書き込む動作を説明するためのタイミングチャートである。
FIG. 4 is a timing chart for explaining the operation of writing data to the output flip-
図4の信号(P)はチップセレクト信号である。チップセレクト信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。チップセレクト信号は、中央処理装置200に複数の制御回路が接続している場合に、命令を送る制御回路を特定するために用いられる。本実施の形態では、チップセレクト信号がLowレベルのときに制御回路100が選択されるように構成されている。
The signal (P) in FIG. 4 is a chip select signal. The chip select signal is one of control signals output from the
図4の信号(Q)はアドレス信号である。アドレス信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。アドレス信号は、アドレス空間201内のアドレスと対応し、データを書き込むフリップフロップ回路を特定するために用いられる。本実施の形態では、デコード部105により、アドレス信号と各フリップフロップ回路との対応がとられるように構成されている。
The signal (Q) in FIG. 4 is an address signal. The address signal is one of control signals output from the
図4の信号(R)は入力データ信号である。入力データ信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。入力データ信号は、各フリップフロップ回路に書き込まれるデータを表す。
The signal (R) in FIG. 4 is an input data signal. The input data signal is one of control signals output from the
図4の信号(S)はライトイネーブル信号である。ライトイネーブル信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。ライトイネーブル信号は、チップセレクト信号及びアドレス信号により特定されたフリップフロップ回路に、入力データ信号に表されたデータの書き込みを許可するために用いられる。本実施の形態では、ライトイネーブル信号がLowレベルのときに、特定されたフリップフロップ回路にデータが書き込まれるように構成されている。
The signal (S) in FIG. 4 is a write enable signal. The write enable signal is one of control signals output from the
図4の信号(T)は、デコード部105の内部信号である、アドレスデコード信号である。アドレスデコード信号は、入出力部101から入力されたチップセレクト信号及びアドレス信号によりデータを書き込むフリップフロップ回路を特定する信号である。本実施の形態では、チップセレクト信号及びアドレス信号のいずれもがLowレベルのときに、アドレスデコード信号がHighレベルになるように構成されている。本実施の形態では、ライトイネーブル信号がHighレベルからLowレベルに変化して書き込みが許可された後にアドレスデコード信号を生成しているため、チップセレクト信号及びアドレス信号に比べて、デコード部105がデコードに要する時間(デコード時間)T8だけ遅れてアドレスデコード信号が生成されている。
A signal (T) in FIG. 4 is an address decode signal that is an internal signal of the
図4の信号(U)は、デコード部105の出力信号であり、出力フリップフロップ回路104のクロック端子に入力される第3のクロック信号である。第3のクロック信号は、出力フリップフロップ回路104が保持するデータの更新タイミングを決定する。本実施の形態では、第3のクロック信号がLowレベルからHighレベルに変化するタイミングで、出力フリップフロップ回路104が保持するデータが、出力フリップフロップ回路104のデータ端子に入力されている入力データ信号が表すデータに更新されるように構成されている。また、本実施の形態では、アドレスデコード信号がLowレベルからHighレベルに変化して出力フリップフロップ回路104が特定された後に、デコード部105がライトイネーブル信号を反転して第1のクロック信号を生成しているため、ライトイネーブル信号に比べて、デコード部105がデコードに要する時間(デコード時間)T9だけ遅れて第3のクロック信号が生成されている。すなわち、本実施の形態では、アドレスデコード信号と、ライトイネーブル信号の反転信号との積をタイミング信号として、第3のクロック信号を生成している。
A signal (U) in FIG. 4 is an output signal of the
なお、前述したアドレス空間200において、出力フリップフロップ回路104は対応フリップフロップ回路103及び外部フリップフロップ回路301とは異なるアドレスに1対1で対応している。したがって、第3のクロック信号は、前述した第1のクロック信号及び第2のクロック信号とは重ならないタイミングで生成される。
In the
図4の信号(V)は、出力フリップフロップ回路104の出力信号である。出力フリップフロップ回路104の出力信号は、出力フリップフロップ回路104の出力端子から、第3のクロック信号に対応して書き込まれたデータ、すなわち出力フリップフロップ回路104に保持されているデータを出力した信号である。本実施の形態では、出力フリップフロップ回路104の出力信号は、第3のクロック信号がLowレベルからHighレベルに変化するタイミングで出力フリップフロップ回路104に保持されているデータが出力されている。
A signal (V) in FIG. 4 is an output signal of the output flip-
以上の動作により、中央処理装置200の1クロックの制御信号に基づいて、出力フリップフロップ回路104にデータを書き込むことができる。
With the above operation, data can be written to the output flip-
なお、出力フリップフロップ回路104は、対応フリップフロップ回路103とは異なり、外部フリップフロップ回路301と1対1に対応するフリップフロップ回路ではない。したがって、出力フリップフロップ回路104に書き込むデータと同じデータを外部フリップフロップ回路301に書き込む動作は行わない。
Unlike the corresponding flip-
また、リセット信号生成部106が、出力フリップフロップ回路104のクリア端子(リセット端子)に対してリセット信号を出力することにより、出力フリップフロップ回路104の初期値を設定することができる。
Further, the reset signal generation unit 106 can set the initial value of the output flip-
(d)出力フリップフロップ回路からの読み出し動作
次に、入出力部101を介して、中央処理装置200から出力フリップフロップ回路104に対応するアドレスのデータを読み出す制御信号を受け付けた場合に、出力フリップフロップ回路104に保持されているデータを、入出力部101を介して中央処理装置200に出力する動作、すなわち、出力フリップフロップ回路104からデータを読み出す動作を説明する。
(D) Reading Operation from Output Flip-Flop Circuit Next, when a control signal for reading data at an address corresponding to the output flip-
図1の制御回路において、中央処理装置200の1クロックの制御信号に基づいて、出力フリップフロップ回路104からデータを読み出す動作は、対応フリップフロップ回路103からデータを読み出す動作とほぼ同じであるので、再び図3のタイミングチャートを用いて説明する。
In the control circuit of FIG. 1, the operation of reading data from the output flip-
図3の信号(J)はチップセレクト信号である。チップセレクト信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。チップセレクト信号は、中央処理装置200に複数の制御回路が接続している場合に、命令を送る制御回路を特定するために用いられる。本実施の形態では、チップセレクト信号がLowレベルのときに制御回路100が選択されるように構成されている。
The signal (J) in FIG. 3 is a chip select signal. The chip select signal is one of control signals output from the
図3の信号(K)はアドレス信号である。アドレス信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。アドレス信号は、アドレス空間201内のアドレスと対応し、データを読み出すフリップフロップ回路を特定するために用いられる。本実施の形態では、デコード部105により、アドレス信号と各フリップフロップ回路との対応がとられるように構成されている。
The signal (K) in FIG. 3 is an address signal. The address signal is one of control signals output from the
図3の信号(L)は出力データ信号である。出力データ信号は、制御回路100から入出力部101を介して出力し、中央処理装置200に入力される。すなわち、本動作において中央処理装置200が読み出すデータを表す信号である。出力データ信号の生成方法は後述する。
The signal (L) in FIG. 3 is an output data signal. The output data signal is output from the control circuit 100 via the input /
図3の信号(M)はリードイネーブル信号である。リードイネーブル信号は、中央処理装置200から出力され、通信バス130を介して入出力部101に入力される制御信号の1つである。リードイネーブル信号は、チップセレクト信号及びアドレス信号により特定されたフリップフロップ回路に、データの読み出しを許可するために用いられる。本実施の形態では、リードイネーブル信号がLowレベルのときに、特定されたフリップフロップ回路からデータが読み出されるように構成されている。
A signal (M) in FIG. 3 is a read enable signal. The read enable signal is one of control signals output from the
図3の信号(N)は、デコード部105の内部信号である、アドレスデコード信号である。アドレスデコード信号は、入出力部101から入力されたチップセレクト信号及びアドレス信号によりデータを読み出すフリップフロップ回路を特定する信号である。本実施の形態では、チップセレクト信号及びアドレス信号のいずれもがLowレベルのときに、アドレスデコード信号がHighレベルになるように構成されている。本実施の形態では、リードイネーブル信号がHighレベルからLowレベルに変化して読み出しが許可された後にアドレスデコード信号を生成しているため、チップセレクト信号及びアドレス信号に比べて、デコード部105がデコードに要する時間(デコード時間)T5だけ遅れてアドレスデコード信号が生成されている。
A signal (N) in FIG. 3 is an address decode signal that is an internal signal of the
図3の信号(O)は、デコード部105の出力信号である、アウトプットイネーブル信号である。アウトプットイネーブル信号は、出力切替部108に入力する。アウトプットイネーブル信号が入力された出力切替部108は、出力フリップフロップ回路104の出力端子からの出力信号を、第2の出力部112を介して外部装置400へのみ出力する通常状態から、第2の出力部112を介して外部装置400へ出力するとともに入出力部101から通信バス130を介して中央処理装置200に出力する読み出し状態へと切り替える。本実施の形態では、アウトプットイネーブル信号がHighレベルのときに読み出し状態になるように構成されている。また、本実施の形態では、アドレスデコード信号がLowレベルからHighレベルに変化して出力フリップフロップ回路104が特定された後にアウトプットイネーブル信号を生成しているため、リードイネーブル信号に比べて、デコード部105がデコードに要する時間(デコード時間)T6だけ遅れてアウトプットイネーブル信号が生成されている。なお、アウトプットイネーブル信号は、書き込み動作の場合に図4で説明したライトイネーブル信号が入力されていない場合にのみ出力してもよい。
A signal (O) in FIG. 3 is an output enable signal that is an output signal of the
そして、アウトプットイネーブル信号により読み出し状態へと切り替えられると、上述した出力データ信号が入出力部101を介して中央処理装置200へ出力される。本実施の形態では、出力データ信号は、チップセレクト信号及びアドレス信号とアウトプットイネーブル信号が重なる時間T7に出力されるように構成されている。
Then, when the output enable signal is switched to the read state, the output data signal described above is output to the
以上の動作により、中央処理装置200の1クロックの制御信号に基づいて、出力フリップフロップ回路104からデータを読み出すことができる。
With the above operation, data can be read from the output flip-
(3)本実施の形態の効果
本実施の形態にかかる制御回路は以上のように構成されている。この制御回路によると、外部フリップフロップ回路301と1対1に対応する対応フリップフロップ回路103を用い、入出力部101を介して、中央処理装置200から外部フリップフロップ回路301に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合には、外部フリップフロップ回路301及び対応フリップフロップ回路103に所定のデータを書き込み、入出力部101を介して、中央処理装置200から外部フリップフロップ回路301に対応するアドレスのデータを読み出す制御信号を受け付けた場合には、対応フリップフロップ回路103に保持されているデータを、入出力部を介して中央処理装置に出力するため、中央処理装置からのデータをそのまま出力する第1の出力部110と外部フリップフロップ回路301を利用することにより、現実の外部出力端子の数を増やすことなく外部装置400にデータを出力できる端子を実質的に増やすことが可能であり、さらに、中央処理装置200から対応フリップフロップ回路103の出力状態を読み出すことにより、新たに制御回路100の端子を増やすことなく、実質的に外部フリップフロップ回路301の出力状態を読み出すことができる。
(3) Effects of the present embodiment The control circuit according to the present embodiment is configured as described above. According to this control circuit, the corresponding flip-
また、外部フリップフロップ回路301と対応フリップフロップ回路103のデータ端子には同一のデータが入力され、外部フリップフロップ回路301と対応フリップフロップ回路103のクロック端子には同一のタイミング信号に基づくクロック信号が入力されているので、外部フリップフロップ回路301と対応フリップフロップ回路103に同一のデータを書き込むことができる。
Further, the same data is input to the data terminals of the external flip-
さらに、外部出力端子111及び中央処理装置200が有するアドレス空間内201の1つのアドレスとそれぞれ1対1に対応した出力フリップフロップ回路104を有することにより、出力フリップフロップ回路104から直接出力できることで、外部フリップフロップ回路301が接続されない場合でも外部装置400にデータを出力することができる。
Furthermore, by having the output flip-
また、同一の外部出力端子111にデータ端子が接続された外部フリップフロップ回路301と出力フリップフロップ回路104のクロック端子に、それぞれ異なるタイミング信号に基づくクロック信号が入力されることにより、外部フリップフロップ回路301と出力フリップフロップ回路104に異なるデータを書き込むことが可能となる。これにより、外部出力端子111を有効に使うことができる。
In addition, clock signals based on different timing signals are input to the clock terminals of the external flip-
加えて、同一の前記外部出力端子111に複数の外部フリップフロップ回路301のデータ端子が接続された場合には、それぞれアドレス空間201内の異なるアドレスに1対1で対応することになるので、外部フリップ回路301のクロック端子にそれぞれ異なるタイミング信号に基づくクロック信号が入力され、複数の外部フリップフロップ回路301に異なるデータを書き込むことができる。
In addition, when the data terminals of a plurality of external flip-
さらに、本実施の形態にかかる制御回路において、例えば現実には接続されていない外部フリップフロップ回路301に対応する対応フリップフロップ回路103にデータが入力されたとしても、外部出力端子111から出力されるデータが無視されるだけで、特に不都合は発生しない。したがって、外部フリップフロップ回路301の接続の有無にかかわらず、中央処理装置200では同一のプログラムを実行することができ、プログラムの互換性、汎用性が高い制御回路を実現することができる。
Furthermore, in the control circuit according to the present embodiment, for example, even if data is input to the corresponding flip-
本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法及び結果が同一の構成、あるいは目的及び効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。 The present invention includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.
例えば、本実施の形態では、外部フリップフロップ回路301−1から301−kまでのk個の外部フリップフロップ回路が、各外部出力端子111に1つずつ接続されているが、外部フリップフロップ回路301は全ての外部出力端子111に接続されている必要はなく、また、1つの外部出力端子111に複数の外部フリップフロップ回路301が接続されてもよい。すなわち、外部装置400の必要に応じて、外部フリップフロップ回路301の数は任意に設定することが可能である。
For example, in this embodiment, k external flip-flop circuits from external flip-flop circuits 301-1 to 301-k are connected to each
100 制御回路、101 入出力部、103 対応フリップフロップ回路、104 出力フリップフロップ回路、105 デコード部、106 リセット信号生成部、107 出力切替部、108 出力切替部、110 第1の出力部、111 外部出力端子、112 第2の出力部、113 外部出力端子、120 内部フリップフロップマトリクス、130 通信バス、200 中央処理装置、201 アドレス空間、301 外部フリップフロップ回路、400 外部装置 100 control circuit, 101 input / output unit, 103 corresponding flip-flop circuit, 104 output flip-flop circuit, 105 decoding unit, 106 reset signal generation unit, 107 output switching unit, 108 output switching unit, 110 first output unit, 111 external Output terminal, 112 Second output unit, 113 External output terminal, 120 Internal flip-flop matrix, 130 Communication bus, 200 Central processing unit, 201 Address space, 301 External flip-flop circuit, 400 External device
Claims (5)
前記中央処理装置との間で前記制御信号及びデータを入出力する入出力部と、
前記入出力部から入力されたデータを出力する複数の外部出力端子を含む第1の出力部と、
出力端子が前記外部装置のいずれかに接続され、前記中央処理装置が有するアドレス空間内の1つのアドレスと1対1に対応する外部フリップフロップ回路のデータ端子が、前記第1の出力部の外部出力端子への接続が想定される場合に、前記外部フリップフロップ回路と1対1に対応する対応フリップフロップ回路と、を含み、
前記入出力部を介して、前記中央処理装置から前記外部フリップフロップ回路及び前記対応フリップフロップ回路に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合には、前記外部フリップフロップ回路及び前記対応フリップフロップ回路に前記所定のデータを書き込み、
前記入出力部を介して、前記中央処理装置から前記外部フリップフロップ回路及び前記対応フリップフロップ回路に対応するアドレスのデータを読み出す制御信号を受け付けた場合には、前記対応フリップフロップ回路に保持されているデータを、前記入出力部を介して前記中央処理装置に出力することを特徴とする制御回路。 A control circuit that receives a control signal from a central processing unit and outputs data to at least one external device or the central processing unit according to the control signal;
An input / output unit for inputting / outputting the control signal and data to / from the central processing unit;
A first output unit including a plurality of external output terminals for outputting data input from the input / output unit;
An output terminal is connected to one of the external devices, and a data terminal of the external flip-flop circuit corresponding to one address in the address space of the central processing unit is connected to the external of the first output unit. When connection to an output terminal is assumed, the external flip-flop circuit and a corresponding flip-flop circuit corresponding one-to-one,
When a control signal for writing predetermined data to an address corresponding to the external flip-flop circuit and the corresponding flip-flop circuit is received from the central processing unit via the input / output unit, the external flip-flop circuit and the Write the predetermined data to the corresponding flip-flop circuit,
When a control signal for reading data at an address corresponding to the external flip-flop circuit and the corresponding flip-flop circuit is received from the central processing unit via the input / output unit, the control signal is held in the corresponding flip-flop circuit. The control circuit is characterized in that the output data is output to the central processing unit via the input / output unit.
前記外部フリップフロップ回路と前記対応フリップフロップ回路のデータ端子には同一のデータが入力され、
前記外部フリップフロップ回路と前記対応フリップフロップ回路のクロック端子には同一のタイミング信号に基づくクロック信号が入力されることを特徴とする制御回路。 The control circuit according to claim 1,
The same data is input to the data terminals of the external flip-flop circuit and the corresponding flip-flop circuit,
A control circuit, wherein clock signals based on the same timing signal are input to clock terminals of the external flip-flop circuit and the corresponding flip-flop circuit.
複数の外部出力端子を含む第2の出力部と、
前記第2の出力部の外部出力端子及び前記中央処理装置が有するアドレス空間内の1つのアドレスとそれぞれ1対1に対応し、前記第2の出力部からデータを出力する出力フリップフロップ回路と、を含み、
前記入出力部を介して、前記中央処理装置から前記出力フリップフロップ回路に対応するアドレスに所定のデータを書き込む制御信号を受け付けた場合には、前記出力フリップフロップ回路に前記所定のデータを書き込み、
前記入出力部を介して、前記中央処理装置から前記出力フリップフロップ回路に対応するアドレスのデータを読み出す制御信号を受け付けた場合には、前記出力フリップフロップ回路に保持されているデータを、前記入出力部を介して前記中央処理装置に出力することを特徴とする制御回路。 The control circuit according to claim 1 or 2,
A second output unit including a plurality of external output terminals;
An output flip-flop circuit that has a one-to-one correspondence with an external output terminal of the second output unit and one address in the address space of the central processing unit, and outputs data from the second output unit; Including
When a control signal for writing predetermined data to an address corresponding to the output flip-flop circuit is received from the central processing unit via the input / output unit, the predetermined data is written to the output flip-flop circuit,
When a control signal for reading data at an address corresponding to the output flip-flop circuit is received from the central processing unit via the input / output unit, the data held in the output flip-flop circuit is input to the input flip-flop circuit. A control circuit for outputting to the central processing unit via an output unit.
前記第1の出力部の同一の外部出力端子にデータ端子が接続された前記外部フリップフロップ回路と前記出力フリップフロップ回路のクロック端子に、それぞれ異なるタイミング信号に基づくクロック信号が入力されることを特徴とする制御回路。 The control circuit according to claim 3,
Clock signals based on different timing signals are input to the clock terminals of the external flip-flop circuit and the output flip-flop circuit whose data terminals are connected to the same external output terminal of the first output section, respectively. Control circuit.
前記第1の出力部の同一の外部出力端子に、複数の前記外部フリップフロップ回路のデータ端子の接続が想定される場合に、前記外部フリップ回路のクロック端子にそれぞれ異なるタイミング信号に基づくクロック信号が入力されることを特徴とする制御回路。 The control circuit according to any one of claims 1 to 4,
When connection of data terminals of the plurality of external flip-flop circuits is assumed to be connected to the same external output terminal of the first output unit, clock signals based on different timing signals are respectively provided to clock terminals of the external flip circuit. A control circuit characterized by being input.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007303617A JP5071655B2 (en) | 2007-11-22 | 2007-11-22 | Control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007303617A JP5071655B2 (en) | 2007-11-22 | 2007-11-22 | Control circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009129197A JP2009129197A (en) | 2009-06-11 |
| JP5071655B2 true JP5071655B2 (en) | 2012-11-14 |
Family
ID=40820044
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007303617A Active JP5071655B2 (en) | 2007-11-22 | 2007-11-22 | Control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5071655B2 (en) |
-
2007
- 2007-11-22 JP JP2007303617A patent/JP5071655B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009129197A (en) | 2009-06-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102810082B (en) | The Memory Controller of the priority distribution capability with dynamic port | |
| EP0840455A2 (en) | A microcontroller accessible macrocell | |
| CN103824580A (en) | Logic devices, digital filters including logic devices, and methods of controlling logic devices | |
| KR100689812B1 (en) | A semiconductor device, a method of setting a mirror mode of the device, and a module using the device | |
| US10949204B2 (en) | Microcontroller with configurable logic peripheral | |
| JP2013109747A (en) | Power control for memory device | |
| JP5071655B2 (en) | Control circuit | |
| JPH11145786A (en) | Flip-flop reset circuit | |
| CN105720958B (en) | FPGA chip power-on control method, circuit and FPGA chip | |
| KR100594317B1 (en) | Shift register with low power consumption and operation method of the shift register | |
| JP5918192B2 (en) | Data processing apparatus and method in PLC system | |
| JP5336398B2 (en) | Semiconductor integrated circuit and semiconductor integrated circuit configuration changing method | |
| US6611462B2 (en) | Semiconductor integrated circuit | |
| KR20180013451A (en) | Semiconductor Apparatus | |
| KR100223848B1 (en) | Output circuit of semiconductor device | |
| JP4682786B2 (en) | Microcomputer | |
| KR100264194B1 (en) | Semiconductor memory device | |
| KR950025534A (en) | Multiplexing Circuit of Interrupt Signal | |
| KR100583834B1 (en) | Semiconductor memory device for reducing current consumption in non-power-down mode and memory system using the memory device | |
| KR950010943B1 (en) | Input/output controller for micro control system | |
| KR20120077278A (en) | Micro-controller in semiconductor device | |
| CN119763623A (en) | Chip, data buffer circuit and control method thereof | |
| JP2005228142A (en) | Memory control circuit | |
| JP2008192036A (en) | Microcontroller | |
| JP2002055968A (en) | I / O control circuit of microcomputer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100916 |
|
| 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: 20120725 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
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: 20120807 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5071655 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150831 Year of fee payment: 3 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |