JPH05334181A - Control signal generator - Google Patents
Control signal generatorInfo
- Publication number
- JPH05334181A JPH05334181A JP14417192A JP14417192A JPH05334181A JP H05334181 A JPH05334181 A JP H05334181A JP 14417192 A JP14417192 A JP 14417192A JP 14417192 A JP14417192 A JP 14417192A JP H05334181 A JPH05334181 A JP H05334181A
- Authority
- JP
- Japan
- Prior art keywords
- address
- signal
- circuit
- value
- data
- 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
Links
Abstract
(57)【要約】
【目的】 アドレス設定値やタイミング設定値を書き換
えることにより、容易に発生信号を制御することができ
る制御信号発生装置の提供を目的とする。
【構成】 設定レジスタ8内には書き換え可能な設定ア
ドレス情報が記憶されており、CPUはバスライン70
を通じてこのアドレス値を指定してアクセスを行う。と
ころが、電源入力直後は、この設定アドレス情報自体が
記憶されていない状態であるので、CPUはROM93
にアクセスすることができず、プログラムそのものを取
り込めない。このため、第一の初期アドレス発生回路に
ハードウエア的に固定、記憶されているアドレス値に基
づいて、CPUはROM93にアクセスを行おうとする
ものである。
(57) [Abstract] [Purpose] An object of the present invention is to provide a control signal generator capable of easily controlling a generated signal by rewriting an address setting value or a timing setting value. [Configuration] Rewritable setting address information is stored in the setting register 8, and the CPU uses the bus line 70.
This address value is specified through to access. However, since the set address information itself is not stored immediately after the power is input, the CPU reads the ROM 93.
I can't access the program and cannot load the program itself. Therefore, the CPU tries to access the ROM 93 based on the address value fixed and stored in the first initial address generation circuit in terms of hardware.
Description
【0001】[0001]
【産業上の利用分野】本発明は制御信号発生装置に関
し、特に設定値の書き換えによって発生信号を自在に制
御するものに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control signal generator, and more particularly to a control signal generator which controls a generated signal by rewriting a set value.
【0002】[0002]
【従来の技術】制御信号発生装置としては、例えば図1
2に示す制御回路72、74…がある。この制御回路7
2、74等は、CPU2からメモリ73、75…に与え
られるデータの書き込み、読み出しの指令を制御するも
のである。以下に図12に基づいて各部の機能、動作の
詳細を説明する。2. Description of the Related Art As a control signal generator, for example, FIG.
There are control circuits 72, 74 ... Shown in FIG. This control circuit 7
Reference numerals 2, 74, etc. control commands for writing and reading data given from the CPU 2 to the memories 73, 75, .... Details of the functions and operations of the respective units will be described below with reference to FIG.
【0003】CPU2からのデータを格納するメモリは
複数備えられている。図12の例ではメモリ73、75
…が設けられ、各メモリに対応して制御回路72、74
…が設けられれている。そして、それぞれの制御回路、
メモリを区別するため、各々には個別上位アドレスとし
て(001)2、(010)2…が付与されており、CP
U2はこの上位アドレスを指定することでメモリを特定
し、データの処理を行う。ここで、()2はバイナリー
データを示す表示である。尚、各メモリの個別上位アド
レスは、制御回路内の回路構成を組み替えることによっ
て、それぞれ特定されている。A plurality of memories for storing data from the CPU 2 are provided. In the example of FIG. 12, the memories 73 and 75
... are provided, and control circuits 72 and 74 are provided corresponding to the respective memories.
... is provided. And each control circuit,
In order to distinguish the memories, (001) 2 , (010) 2 ...
U2 specifies the memory by specifying this upper address and processes the data. Here, () 2 is a display showing binary data. The individual upper address of each memory is specified by rearranging the circuit configuration in the control circuit.
【0004】今、仮にメモリ73にデータを書き込むと
する。この場合、CPU2はバスライン71を通じ、メ
モリに対して直接、書き込むべきデータを出力する。ま
た、CPU2は同時にバスライン70を通じてアドレス
データも出力する。このアドレスデータとして、例えば
(00110100)2が出力されたとする。この中、
前の3桁の(001)2は制御回路72の個別上位アド
レスを示しており、この(001)2が制御回路72に
取り込まれる。そして、制御回路72は、自己の個別上
位アドレスが指定されたことを知り、メモリ73にデー
タの書き込みを行うべきことを認識する。なお、上位ア
ドレス(001)2は他の全ての制御回路(例えば制御
回路74)にも与えられるが、他の制御回路においては
個別上位アドレス(制御回路74では(010)2)が
不一致であるので、書き込み処理は行われない。Now, assume that data is written in the memory 73. In this case, the CPU 2 directly outputs the data to be written to the memory via the bus line 71. The CPU 2 also outputs address data through the bus line 70 at the same time. As the address data, for example, (00110100) 2 is output. In this
The previous three digits (001) 2 indicate the individual upper address of the control circuit 72, and this (001) 2 is fetched by the control circuit 72. Then, the control circuit 72 knows that its own individual upper address is designated, and recognizes that data should be written in the memory 73. Although the higher-order address (001) 2 is given to all other control circuits (for example, the control circuit 74), the individual higher-order address ((010) 2 in the control circuit 74) does not match in the other control circuits. Therefore, the writing process is not performed.
【0005】CPU2からの上位アドレス(001)2
を取り込んだ制御回路72は、メモリ73のチップセレ
クトCS入力にCS信号を出力する。また、制御回路7
2にはCPU2からR/W信号が与えられる。このR/
W信号は、書き込みまたは読み出しのいずれの処理かを
指示する信号であり、書き込み処理の場合はL信号とし
て、また読み出し処理の場合はH信号として与えられ
る。今、書き込み処理を行うので、L信号が与えられ
る。そして制御回路72は、このR/W信号に基づいて
メモリ73のW入力に書き込み許可信号を出力する。な
お、データの読み出しを行う場合は、CPU2からR/
W信号としてH信号が与えられ、制御回路72は読み出
し許可信号をR入力に出力することになる。Upper address (001) 2 from CPU 2
The control circuit 72 that has taken in outputs the CS signal to the chip select CS input of the memory 73. In addition, the control circuit 7
An R / W signal is given to CPU 2 from CPU 2. This R /
The W signal is a signal for instructing either writing or reading processing, and is given as an L signal in the case of writing processing and as an H signal in the case of reading processing. Since the writing process is performed now, the L signal is given. Then, the control circuit 72 outputs a write permission signal to the W input of the memory 73 based on the R / W signal. In addition, when reading data, R /
The H signal is given as the W signal, and the control circuit 72 outputs the read permission signal to the R input.
【0006】以上のように、制御回路72からはCS信
号および書き込み許可信号が出力され、メモリ73はこ
れらの両信号を受けた時点で、バスライン71を通じて
与えられたデータを書き込む。尚、上記アドレスデータ
(00110100)2のうち、後の5桁(1010
0)2は下位アドレスを示している。この下位アドレス
は、メモリ73中の書き込み番地を示すもので、メモリ
73は下位アドレスを取り込んで(10100)2の記
憶領域にデータを書き込み記憶する。データの処理が終
了すると、制御回路72は、オア回路G3を介してCP
U2に応答信号を出力する。CPU2は、この応答信号
によってデータ処理の終了を認識する。As described above, the CS signal and the write enable signal are output from the control circuit 72, and the memory 73 writes the data given through the bus line 71 at the time of receiving these signals. Of the above address data (00110100) 2 , the last five digits (1010
0) 2 indicates a lower address. This lower address indicates a write address in the memory 73, and the memory 73 takes in the lower address and writes and stores the data in the storage area of (10100) 2 . When the data processing is completed, the control circuit 72 sends the CP via the OR circuit G3.
Output a response signal to U2. The CPU 2 recognizes the end of the data processing based on this response signal.
【0007】ところで、バスライン71上には次々と新
たなデータが出力されており、上記のようにアドレスデ
ータの指示に基づいて、各メモリに順次、書き込まれて
いる。したがって、新たなデータの出力直後は、前のデ
ータ内容との関連でデータが不安定な状態にある。仮
に、このような不安定なデータをメモリに書き込んだと
すると、誤ったデータが記憶されてしまうことになる。
つまり、CPU2がバスライン71を介してデータを出
力した直後、制御回路72が直ちにCS信号および書き
込み許可信号を出力すると誤動作の虞がある。By the way, new data is sequentially output onto the bus line 71, and is sequentially written in each memory based on the instruction of the address data as described above. Therefore, immediately after the output of new data, the data is in an unstable state in relation to the previous data content. If such unstable data were written in the memory, incorrect data would be stored.
That is, if the control circuit 72 outputs the CS signal and the write enable signal immediately after the CPU 2 outputs the data via the bus line 71, there is a risk of malfunction.
【0008】このため制御回路は、CS信号の出力後、
一定時間遅らせて書き込み許可信号をメモリに出力する
ようにしている。制御回路がこのような時間差を発生さ
せることによって、バスライン71上のデータの安定を
待って書き込み処理を行うことが可能になる。尚、CP
U2からデータの読み出し指令があった場合も同様で、
安定したデータを読み出すために、制御回路はメモリの
R入力に一定時間遅らせて読み出し許可信号を出力す
る。Therefore, the control circuit, after outputting the CS signal,
The write enable signal is output to the memory with a delay of a certain time. When the control circuit generates such a time difference, it becomes possible to wait for the data on the bus line 71 to stabilize before performing the writing process. In addition, CP
The same applies when there is a data read command from U2.
In order to read stable data, the control circuit outputs a read enable signal to the R input of the memory with a delay for a certain time.
【0009】制御回路からの書き込み許可信号や読み出
し許可信号を一定時間遅らせる方法としては、遅延回路
や論理回路が用いられている。制御回路に内蔵されてい
る遅延回路等の回路構成を組替えることで、遅延時間の
調整が可能となる。As a method of delaying the write permission signal and the read permission signal from the control circuit for a fixed time, a delay circuit or a logic circuit is used. The delay time can be adjusted by changing the circuit configuration such as the delay circuit built in the control circuit.
【0010】[0010]
【発明が解決しようとする課題】従来の制御信号発生装
置には、以下のような問題があった。上記のように、デ
ータ内容の安定を待って処理を行うため、制御回路はC
S信号の発信後、一定時間遅らせて書き込み許可信号等
をメモリに出力する。そして、このような時間差を発生
させるために遅延回路や論理回路が用いられている。The conventional control signal generator has the following problems. As described above, the control circuit waits for stabilization of the data contents before processing, so the control circuit
After transmitting the S signal, a write enable signal or the like is output to the memory with a delay of a certain time. Then, a delay circuit or a logic circuit is used to generate such a time difference.
【0011】ここで、この遅延時間、つまりデータ内容
が安定するまでの時間は、制御対象(例えばメモリ)に
よって区々であり、これら制御対象に応じて遅延時間を
設定する必要がある。ところが、遅延回路や論理回路の
構成によって時間差を発生させている従来の制御回路に
おいては、遅延時間を変更する場合、回路構成の組み替
えを行わなければならない。すなわち、様々な遅延時間
に柔軟に対応することができない。Here, this delay time, that is, the time until the data content stabilizes, varies depending on the control target (for example, memory), and it is necessary to set the delay time according to these control targets. However, in the conventional control circuit in which the time difference is generated by the configuration of the delay circuit or the logic circuit, when changing the delay time, the circuit configuration must be rearranged. That is, it is not possible to flexibly deal with various delay times.
【0012】また、各制御回路に付与されている個別上
位アドレスも、制御回路内の回路構成を組み替えること
によって特定されている。したがって、個別上位アドレ
スの変更を容易に行うことができない。The individual higher-order address given to each control circuit is also specified by rearranging the circuit configuration in the control circuit. Therefore, the individual upper address cannot be changed easily.
【0013】以上のように、従来の制御回路は汎用性に
乏しく、例えば遅延時間や個別上位アドレスなどを変更
しようとする場合、回路の組み替え作業が必要であると
いう問題があった。そこで本発明は、アドレス設定値や
タイミング設定値を書き換えることにより、容易に発生
信号を制御することができる制御信号発生装置の提供を
目的とする。As described above, the conventional control circuit is poor in versatility, and there is a problem that the circuit rearrangement work is required when changing the delay time or the individual upper address, for example. Therefore, it is an object of the present invention to provide a control signal generator that can easily control a generated signal by rewriting an address setting value or a timing setting value.
【0014】[0014]
【課題を解決するための手段】請求項1の制御信号発生
装置は、アドレス信号と動作信号とを受けて、アドレス
選択信号およびタイミング信号を出力する制御信号発生
装置において、書き換え可能なアドレス設定値を記憶す
るアドレス設定値記憶手段、書き換え可能なタイミング
設定値を記憶するタイミング設定値記憶手段、ハードウ
エア的に固定された初期アドレス値を記憶する初期アド
レス値記憶手段、アドレス信号、およびアドレス設定値
もしくは初期アドレス値に基づいてアドレス一致信号を
出力するアドレス一致信号出力手段、動作信号、アドレ
ス一致信号、およびタイミング設定値に基づいてアドレ
ス選択信号およびタイミング信号を出力するタイミング
制御手段、を備えたことを特徴とする。According to another aspect of the present invention, there is provided a control signal generator which receives an address signal and an operation signal and outputs an address selection signal and a timing signal. Set value storage means for storing, a timing set value storage means for storing rewritable timing set values, an initial address value storage means for storing a hardware fixed initial address value, an address signal, and an address set value. Alternatively, an address match signal output means for outputting an address match signal based on an initial address value, an operation signal, an address match signal, and a timing control means for outputting an address selection signal and a timing signal based on a timing set value are provided. Is characterized by.
【0015】請求項2の制御信号発生装置は、初期モー
ド信号が与えられていないときは、アドレス一致信号出
力手段は、初期アドレス値に基づくアドレス一致信号を
出力しない、ことを特徴とする制御信号発生装置。According to another aspect of the control signal generator of the present invention, the address match signal output means does not output the address match signal based on the initial address value when the initial mode signal is not applied. Generator.
【0016】請求項3の制御信号発生装置は、前記モー
ド切り換え信号を出力するモード切り換えレジスタ書き
換え可能なモード切り換えレジスタアドレス値を記憶す
るモード切り換えレジスタアドレス値記憶手段、を備え
ており、モード切り換えレジスタのアドレスを前記モー
ド切り換えレジスタアドレス値によって決定する、こと
を特徴とする制御信号発生装置。A control signal generator according to a third aspect of the present invention comprises a mode switching register address value storage means for storing a mode switching register address value capable of rewriting the mode switching register for outputting the mode switching signal. The control signal generating device is characterized in that the address of is determined by the address value of the mode switching register.
【0017】[0017]
【作用】請求項1の制御信号発生装置においては、アド
レス設定値またはタイミング設定値が書き換え可能であ
る。したがって、これらの設定値を任意に変更すること
ができる。In the control signal generator of the first aspect, the address setting value or the timing setting value can be rewritten. Therefore, these set values can be arbitrarily changed.
【0018】さらに、アドレス一致信号出力手段は、ア
ドレス信号、およびアドレス設定値もしくは初期アドレ
ス値に基づいてアドレス一致信号を出力する。したがっ
て、未だアドレス設定値記憶手段にアドレス設定値が記
憶されていない場合でも、初期アドレス値に基づいてア
ドレス一致信号を出力することができる。Further, the address match signal output means outputs an address match signal based on the address signal and the address set value or the initial address value. Therefore, even when the address setting value is not stored in the address setting value storage means, the address match signal can be output based on the initial address value.
【0019】請求項2の制御信号発生装置においては、
初期モード信号が与えられていないときは、アドレス一
致信号出力手段は、初期アドレス値に基づくアドレス一
致信号を出力しない。したがって、初期モード信号を与
えなければ、初期アドレス値に基づくアドレス一致信号
の出力を禁止することができ、他の記憶手段に付与され
ているアドレスと同じ値を初期アドレス値として用いる
ことができる。In the control signal generator of claim 2,
When the initial mode signal is not given, the address match signal output means does not output the address match signal based on the initial address value. Therefore, if the initial mode signal is not given, the output of the address match signal based on the initial address value can be prohibited, and the same value as the address given to the other storage means can be used as the initial address value.
【0020】請求項3の制御信号発生装置においては、
モード切り換えレジスタのアドレスをモード切り換えレ
ジスタアドレス値によって決定する。したがって、モー
ド切り換えレジスタのアドレスを自在に変更することが
できる。In the control signal generator of claim 3,
The address of the mode switching register is determined by the mode switching register address value. Therefore, the address of the mode switching register can be freely changed.
【0021】[0021]
【実施例】まず、制御信号発生装置の基本的構成および
その動作を説明する。図4は本実施例における制御信号
発生装置10のブロック図であり、図12に示される制
御回路72、74…の代わりとして設けられる。DESCRIPTION OF THE PREFERRED EMBODIMENTS First, the basic structure and operation of the control signal generator will be described. FIG. 4 is a block diagram of the control signal generator 10 in the present embodiment, which is provided in place of the control circuits 72, 74 ... Shown in FIG.
【0022】すなわち、この制御信号発生装置10には
それぞれ個別上位アドレスが付与されており、バスライ
ン70を通じて送信されるアドレスデータを取り込んで
自己の個別上位アドレスが指定されたか否かを判別す
る。また、この制御信号発生装置10は、自己の個別上
位アドレスが指定された場合、メモリに向けてCS信号
を出力する。さらに、CS信号出力後、一定時間遅らせ
て書き込み信号または読み出し信号を出力し、バスライ
ン71上のデータが安定するのを待って処理を行う。That is, each control signal generator 10 is provided with an individual upper address, and the address data transmitted through the bus line 70 is fetched to determine whether or not its own individual upper address is designated. Further, the control signal generator 10 outputs the CS signal to the memory when its own individual upper address is designated. Further, after the CS signal is output, a write signal or a read signal is output after a certain delay, and the process is performed after the data on the bus line 71 is stabilized.
【0023】まず、図4に基づいて、制御信号発生装置
10がアドレスデータを取り込み、自己の個別上位アド
レスが指定されたかを判別する場合の動作を説明する。
図に示すように、制御信号発生装置10内には設定レジ
スタ8が設けられており、この設定レジスタ8には設定
アドレス情報および設定制御情報が記憶されている。設
定アドレス情報および設定制御情報の詳細な内容を図6
に掲げる。例えば、設定アドレス情報として、個別上位
アドレス(00100000)2およびマスクビット
(00011111)2が記憶されているとする。この
マスクビット(00011111)2は、個別上位アド
レス(00100000)2の中から後の5桁を排除す
ることを示しており、その結果、この制御信号発生装置
10の個別上位アドレスは(001)2であることが認
識される。First, the operation in the case where the control signal generator 10 fetches the address data and determines whether its own individual upper address is designated will be described with reference to FIG.
As shown in the figure, a setting register 8 is provided in the control signal generator 10, and the setting register 8 stores setting address information and setting control information. FIG. 6 shows the detailed contents of the setting address information and the setting control information.
Listed. For example, it is assumed that an individual upper address (0010000) 2 and a mask bit (00011111) 2 are stored as the set address information. The mask bits (00011111) 2 is shown to eliminate the 5 digits after from the individual upper address (00100000) 2. As a result, the individual upper address of the control signal generator 10 (001) 2 Is recognized.
【0024】制御信号発生装置10には、さらに比較器
H1が設けられている。この比較器H1は、上記設定ア
ドレス情報と、バスライン70を通じてCPU2から送
信されるアドレスデータ(図12参照)とを取り込み、
これらを比較する。そして、両者が一致する場合に、タ
イミング制御回路6に向けてアドレス一致信号を出力す
る。The control signal generator 10 is further provided with a comparator H1. The comparator H1 fetches the set address information and the address data (see FIG. 12) transmitted from the CPU 2 through the bus line 70,
Compare these. When the two match, the address match signal is output to the timing control circuit 6.
【0025】今、仮にバスライン70を通じてCPU2
からアドレスデータ(00110100)2が送信され
たとする。このアドレスデータの中、前の3桁(00
1)2が上位アドレスを示している。比較器H1はアド
レスデータ(00110100)2を取り込むと同時
に、設定レジスタ8から設定アドレス情報を読み込む。
この場合、設定アドレス情報は、前に述べたように個別
上位アドレス(001)2として認識されるので、この
制御信号発生装置10は自己の個別上位アドレスが指定
されたことを知り、アドレス一致信号を出力する。Now, suppose that the CPU 2 is temporarily operated through the bus line 70.
It is assumed that address data (00110100) 2 is transmitted from The last 3 digits (00
1) 2 indicates the upper address. The comparator H1 takes in the address data (00110100) 2 and at the same time reads the set address information from the setting register 8.
In this case, since the set address information is recognized as the individual upper address (001) 2 as described above, the control signal generator 10 knows that its own individual upper address is designated, and the address match signal Is output.
【0026】次に、アドレス一致信号を受け取ったタイ
ミング制御回路6の動作の詳細を説明する。例えばこの
場合、CPU2からはデータの書き込みの指令が与えら
れているとする。具体的には、CPU2からのR/W信
号が、書き込みを指示するL信号として与えられる(図
4、図12参照)。R/W信号としてのこのL信号は、
直接、タイミング制御回路6内に取り込まれる。なお、
図7に各種の信号出力のタイミングチャートを掲げる。Next, the operation of the timing control circuit 6 which receives the address match signal will be described in detail. For example, in this case, it is assumed that the CPU 2 has given a data write command. Specifically, the R / W signal from the CPU 2 is given as the L signal instructing the writing (see FIGS. 4 and 12). This L signal as an R / W signal is
It is directly taken into the timing control circuit 6. In addition,
FIG. 7 shows a timing chart of various signal outputs.
【0027】タイミング制御回路6の詳細な回路構成を
図5に示す。まず、比較器H1(図4)からのアドレス
一致信号は、アンド回路D1に与えられ、有効信号(1
1111111)2が入力されていることを条件に、メ
モリに向けてCS信号が出力される(図7のタイミング
チャートおよび図4、図12参照)。この有効信号は設
定レジスタ8内に記憶されており、電源入力時のプログ
ラム起動後、各データが安定した時点で(000000
00)2から(11111111)2に書き換えられる。A detailed circuit configuration of the timing control circuit 6 is shown in FIG. First, the address match signal from the comparator H1 (FIG. 4) is given to the AND circuit D1, and the valid signal (1
11111111) 2 is input, the CS signal is output to the memory (see the timing chart of FIG. 7 and FIGS. 4 and 12). This valid signal is stored in the setting register 8, and when each data becomes stable after the program is started at the time of power input ((000000)
It is rewritten from (00) 2 to (11111111) 2 .
【0028】CS信号がメモリに対して出力されるとと
もに、タイミング制御回路6内のタイマー52、53、
54がスタートするようになっている。更に、アドレス
一致信号は反転回路K1を介し、フリップフロップF
1、F2、F3のR入力に与えられ、各フリップフロッ
プをリセットする。While the CS signal is output to the memory, the timers 52, 53 in the timing control circuit 6,
54 is set to start. Further, the address match signal is sent to the flip-flop F through the inverting circuit K1.
It is applied to the R inputs of 1, F2 and F3 to reset each flip-flop.
【0029】一方、CPU2からは、前述のようにR/
W信号がL信号としてタイミング制御回路6に与えられ
ている(図7のタイミングチャート参照)。このL信号
は反転回路K2によりH信号となってアンド回路D3に
与えられる。また、アンド回路D3には、設定レジスタ
8(図4)に記憶されている設定制御情報の中から、書
き込み可能信号が取り込まれる。On the other hand, from the CPU 2, R /
The W signal is given to the timing control circuit 6 as the L signal (see the timing chart of FIG. 7). This L signal becomes an H signal by the inverting circuit K2 and is given to the AND circuit D3. Further, a writable signal is taken into the AND circuit D3 from the setting control information stored in the setting register 8 (FIG. 4).
【0030】この場合の書き込み可能信号は、図6に示
すように(11111111)2であり、その結果、ア
ンド回路D3は書き込みが許されていることを認識して
信号を出力する。この書き込み可能信号自体も、自在に
書き換え制御できるようになっている。書き込み可能信
号を(00000000)2にしておけば、このタイミ
ング制御回路6からの書き込み許可信号の出力を禁止す
ることができ、メモリをデータ読み出し専用にすること
ができる。なお、同様に読み出し可能信号を(0000
0000)2にすれば、読み出しを禁止することができ
る。The writable signal in this case is (11111111) 2 as shown in FIG. 6, and as a result, the AND circuit D3 recognizes that writing is permitted and outputs a signal. This writable signal itself can also be freely rewritten and controlled. If the writable signal is set to (00000000) 2 , the output of the write enable signal from the timing control circuit 6 can be prohibited, and the memory can be exclusively used for reading data. Similarly, the readable signal is set to (0000
If it is set to 0000) 2 , reading can be prohibited.
【0031】アンド回路D3からの出力信号は、まず、
アンド回路D5に取り込まれる。そして、アンド回路D
5はメモリに向けて書き込み許可信号を出力するため、
フリップフロップF2から信号が与えられるのを待つ状
態になる。また、アンド回路D3からの出力信号は、オ
ア回路G1を介してアンド回路D6にも取り込まれる。
このアンド回路D6も、フリップフロップF3からの信
号を待って応答信号を出力する。The output signal from the AND circuit D3 is
It is taken into the AND circuit D5. And AND circuit D
Since 5 outputs a write enable signal to the memory,
It is in a state of waiting for a signal to be given from the flip-flop F2. The output signal from the AND circuit D3 is also fetched into the AND circuit D6 via the OR circuit G1.
The AND circuit D6 also waits for the signal from the flip-flop F3 and outputs a response signal.
【0032】一方、比較器H3はタイマー53からのタ
イマー、および書き込み信号設定値を取り込み、これら
を比較する。この書き込み信号設定値は、設定レジスタ
8内に設定制御情報として記憶されている。この場合の
書き込み信号設定値としては、図6に示すように(00
110000)2が記憶されており、これは30μSECに
対応している。つまり、比較器H3は、アドレス一致信
号によってタイマー53がスタートした後、30μSEC
経過時点で、フリップフロップF2のS入力に向けて信
号出力を行う(図7のタイミングチャート参照)。On the other hand, the comparator H3 fetches the timer from the timer 53 and the write signal set value and compares them. This write signal setting value is stored in the setting register 8 as setting control information. The write signal setting value in this case is (00
110000) 2 is stored, which corresponds to 30 μSEC. In other words, the comparator H3 receives 30 μSEC after the timer 53 is started by the address match signal.
When the time has elapsed, the signal is output to the S input of the flip-flop F2 (see the timing chart of FIG. 7).
【0033】フリップフロップF2のS入力への信号入
力に伴い、フリップフロップF2はアンド回路D5に信
号を与える。こうして、アンド回路D5からは、メモリ
のW入力に向けて書き込み許可信号が出力され、メモリ
はバスライン71を介して送られるデータの書き込み処
理を行う(図4、図12参照)。With the signal input to the S input of the flip-flop F2, the flip-flop F2 supplies a signal to the AND circuit D5. In this way, the AND circuit D5 outputs the write enable signal to the W input of the memory, and the memory performs the writing process of the data sent via the bus line 71 (see FIGS. 4 and 12).
【0034】また、比較器H4もタイマー54からのタ
イマー、および応答信号設定値を取り込みこれらを比較
している。この応答信号設定値も設定レジスタ8内に記
憶されており、(01010010)2と設定されてい
る。この設定値は40μSECに対応している。つまり、
比較器H4は40μSEC経過時点(上記書き込み許可信
号出力後10μSEC経過時点)で、フリップフロップF
3のS入力に向けて信号出力を行う(図7のタイミング
チャート参照)。The comparator H4 also takes in the timer from the timer 54 and the response signal set value and compares them. This response signal set value is also stored in the setting register 8 and is set to (01010010) 2 . This set value corresponds to 40 μSEC. That is,
When the comparator H4 passes 40 μSEC (10 μSEC after the write enable signal is output), the flip-flop F
A signal is output toward the S input of No. 3 (see the timing chart of FIG. 7).
【0035】フリップフロップF3のS入力への信号入
力に伴い、フリップフロップF3はアンド回路D6に信
号を与える。こうして、アンド回路D6からは、CPU
2に向けて応答信号が出力され、CPU2はデータの書
き込み処理が終了したことを認識して次の処理動作を開
始する(図4、図12参照)。With the signal input to the S input of the flip-flop F3, the flip-flop F3 supplies a signal to the AND circuit D6. Thus, from the AND circuit D6, the CPU
2, a response signal is output toward CPU 2, and the CPU 2 recognizes that the data writing process is completed and starts the next processing operation (see FIGS. 4 and 12).
【0036】なお、設定レジスタ8には設定制御情報と
して読み出し信号設定値(00011000)2も記憶
されている。この設定値は10μSECに対応しており、
10μSEC経過時点でアンド回路D4から読み出し許可
信号が出力されるようになっている。The setting register 8 also stores a read signal setting value (00011000) 2 as setting control information. This set value corresponds to 10μSEC,
A read permission signal is output from the AND circuit D4 when 10 μSEC has elapsed.
【0037】以上が制御信号発生装置10の信号発生動
作である。ここで、設定レジスタ8内に記憶されている
各データは、CPU2からの制御に基づいて自在に書き
換え可能になっている。これらのデータ書き換えによっ
て、例えば個別上位アドレスを容易に変更することがで
き、装置の汎用性を高めることができる。また、読み出
し信号設定値、書き込み信号設定値、応答信号設定値な
ども自在に書き換えることができる(図6参照)。つま
り、これらに対応してタイミング制御回路6から出力さ
れる読み出し許可信号、書き込み許可信号、応答信号の
出力時間を任意に変更することができる。さらに、読み
出し可能信号、書き込み可能信号の変更も容易である
(図6参照)。The above is the signal generating operation of the control signal generator 10. Here, each data stored in the setting register 8 can be freely rewritten under the control of the CPU 2. By rewriting these data, for example, the individual upper address can be easily changed, and the versatility of the device can be improved. Further, the read signal set value, the write signal set value, the response signal set value, etc. can be freely rewritten (see FIG. 6). That is, the output time of the read permission signal, the write permission signal, and the response signal output from the timing control circuit 6 can be arbitrarily changed correspondingly. Furthermore, it is easy to change the readable signal and the writable signal (see FIG. 6).
【0038】以下に、図8を用いて、設定レジスタ8内
のデータ書き換え動作の詳細を説明する。まず、設定レ
ジスタ8内のデータの書き換えを行う場合、CPU2は
バスライン70を通じてアドレスデータを出力する。
今、仮にアドレスデータ(00001001)2が出力
されたとする。このアドレスデータの中、前の5桁が上
位設定アドレスを示しており、上位設定アドレス(00
001)2は比較器H5に取り込まれる。Details of the data rewriting operation in the setting register 8 will be described below with reference to FIG. First, when rewriting the data in the setting register 8, the CPU 2 outputs address data through the bus line 70.
Now, suppose that address data (00001001) 2 is output. In this address data, the previous 5 digits indicate the upper setting address, and the upper setting address (00
001) 2 is taken into the comparator H5.
【0039】一方、個別上位設定アドレス値回路35に
は、設定レジスタ8に付与された個別上位設定アドレス
値(00001)2が記憶されている。前述のように、
設定レジスタが内蔵された制御信号発生装置は、各メモ
リに対応して複数設けられているので(図12の制御回
路72、74…参照)、それぞれの設定レジスタを特定
するための個別上位設定アドレス値が付与され記憶され
ている。On the other hand, the individual higher-order set address value circuit 35 stores the individual higher-order set address value (00001) 2 given to the setting register 8. As aforementioned,
Since a plurality of control signal generators each having a built-in setting register are provided corresponding to each memory (see control circuits 72, 74 ... In FIG. 12), an individual upper setting address for specifying each setting register is provided. A value is given and stored.
【0040】比較器H5はこの個別上位設定アドレス値
(00001)2を取り込み、バスライン70を通じて
与えられた上位設定アドレス(00001)2と比較す
る。この場合、両者は一致するので、比較器H5は設定
レジスタ8に向けて設定レジスタ一致信号を出力する。
この設定レジスタ一致信号を受けて設定レジスタ8は、
自己が指定されたことを知り、記憶しているデータを書
き換えるべきことを認識する。The comparator H5 This individual upper set address value (00001) 2 uptake, compared with the upper set address (00001) 2 given through the bus line 70. In this case, since the two match, the comparator H5 outputs a setting register matching signal to the setting register 8.
Upon receiving this setting register match signal, the setting register 8
Knowing that self has been designated, recognizes that the stored data should be rewritten.
【0041】また、設定レジスタ8には、バスライン7
0を通じて下位設定アドレスが与えられている。この下
位設定アドレスは、設定レジスタ8内の各データ(図
6)の中、いずれのデータを書き換えるのか、つまり設
定レジスタ8内の記憶領域を特定している。具体的に
は、アドレスデータ(00001001)2の後の3桁
(001)2が下位設定アドレスを示している。例え
ば、(001)2に対応する記憶領域が応答信号設定値
の記憶場所であれば、この応答信号設定値の書き換えを
行うべきことが認識される。Further, the setting register 8 has a bus line 7
The lower setting address is given through 0. This lower setting address specifies which data in each data (FIG. 6) in the setting register 8 is rewritten, that is, the storage area in the setting register 8 is specified. Specifically, the 3-digit (001) 2 after the address data (00001001) 2 indicates the lower setting address. For example, if the storage area corresponding to (001) 2 is the storage location of the response signal setting value, it is recognized that the response signal setting value should be rewritten.
【0042】新たに書き込まれる応答信号設定値のデー
タは、バスライン71を通じてCPU2から与えられ
る。なお、図12においては、バスライン71のデータ
は制御回路に取り込まれていないが、この例ではバスラ
イン71は各制御信号発生装置の設定レジスタに接続さ
れている(図示せず)。例えば、バスライン71から
(01010111)2が与えられ、応答信号設定値と
してこの新たなデータが記憶される。The newly written response signal set value data is given from the CPU 2 through the bus line 71. In FIG. 12, the data on the bus line 71 is not taken in by the control circuit, but in this example, the bus line 71 is connected to the setting register of each control signal generator (not shown). For example, (01010111) 2 is given from the bus line 71, and this new data is stored as the response signal setting value.
【0043】以上のようにして設定レジスタ8内のデー
タは、CPU2からの指令に基づいて容易に書き換えら
れる。なお、個別上位アドレス、書き込み信号設定値、
読み出し信号設定値などについても同様の動作を経て、
設定値の変更が行われる。As described above, the data in the setting register 8 can be easily rewritten based on the instruction from the CPU 2. In addition, individual upper address, write signal setting value,
The same operation is performed for read signal setting values,
The setting value is changed.
【0044】次に、設定レジスタ8内のデータ書き換え
に関する他の構成を図9に示す。この構成においては、
比較器H5から出力された設定アドレス一致信号は、一
旦、アンド回路D7に取り込まれる。そして、この比較
器H5にCPU2からの状態制御信号が与えられて初め
て設定レジスタ8に信号が出力されるようになってい
る。Next, FIG. 9 shows another configuration relating to data rewriting in the setting register 8. In this configuration,
The set address coincidence signal output from the comparator H5 is temporarily taken into the AND circuit D7. Then, the signal is output to the setting register 8 only after the state control signal from the CPU 2 is given to the comparator H5.
【0045】このように、バスライン70を通じて、例
えばアドレスデータ(00001001)2が出力され
ても、状態制御信号が与えられない限り設定レジスタ8
内のデータの書き換えが実行されることはない。すなわ
ち、通常の動作時に、設定レジスタ8内のデータ書き換
えを禁止するようにすれば、上記アドレス(00001
001)2を他のメモリの個別アドレスとして付与する
ことができる。こうして、各記憶領域に対し、アドレス
の値を効率的に付与することが可能になる。As described above, even if, for example, the address data (00001001) 2 is output through the bus line 70, as long as the status control signal is not applied, the setting register 8
The rewriting of the data inside is not executed. That is, if the data rewriting in the setting register 8 is prohibited during the normal operation, the address (00001)
001) 2 can be given as an individual address of another memory. In this way, it becomes possible to efficiently assign an address value to each storage area.
【0046】図4に対応する他の構成を図10に示す。
これはアドレス一致信号の出力制御の他の構成例であ
る。図に示すように、アドレス一致信号は一旦、アンド
回路D8に取り込まれる。そして、このアンド回路D8
には、設定アドレス一致信号が反転回路K3を介して与
えられるようになっている。つまり、設定アドレス一致
信号が出力され、設定レジスタ8内のデータ書き換えが
行われている間は、アドレス一致信号の出力が禁止され
ている状態になる。こうして、データ書き換え中に、誤
ってアドレス一致信号が出力されてしまうことを回避す
ることができ、誤動作を確実に防止することができる。Another configuration corresponding to FIG. 4 is shown in FIG.
This is another configuration example of output control of the address match signal. As shown in the figure, the address match signal is once taken in by the AND circuit D8. And this AND circuit D8
A set address coincidence signal is applied to the input terminal via the inverting circuit K3. That is, while the set address match signal is output and the data in the setting register 8 is being rewritten, the output of the address match signal is prohibited. In this way, it is possible to prevent the address coincidence signal from being erroneously output during data rewriting, and it is possible to reliably prevent malfunction.
【0047】次に、図11に他の構成による回路を示
す。前に述べたようにCPU2は複数の制御信号発生装
置、メモリを制御しており(図12参照)、それぞれの
制御信号発生装置内に設定レジスタやタイミング制御回
路が設けられている。図11に示す回路構成では、この
中からタイミング制御回路を抜き出し、マルチプレクサ
30を介してタイミング制御回路6の共有化を図ろうと
するものである。以下に詳細を説明する。Next, FIG. 11 shows a circuit having another structure. As described above, the CPU 2 controls a plurality of control signal generators and memories (see FIG. 12), and each control signal generator has a setting register and a timing control circuit. In the circuit configuration shown in FIG. 11, the timing control circuit is extracted from this and the timing control circuit 6 is shared through the multiplexer 30. The details will be described below.
【0048】バスライン70を通じて与えられるアドレ
スデータは、各比較器H6、H7、H8に取り込まれ、
それぞれの設定レジスタ81、82、83の個別上位ア
ドレスと比較される。そして、アドレスデータと一致す
る比較器からアドレス一致信号が出力される。このアド
レス一致信号は、まず、マルチプレクサ30に取り込ま
れる。マルチプレクサ30は、アドレス一致信号に基づ
いて設定レジスタを選択し、その設定レジスタから所定
の設定制御情報を取り込んでタイミング制御回路6に与
える。The address data given through the bus line 70 is taken into each of the comparators H6, H7 and H8,
It is compared with the individual upper address of each setting register 81, 82, 83. Then, an address match signal is output from the comparator that matches the address data. The address match signal is first fetched by the multiplexer 30. The multiplexer 30 selects a setting register based on the address match signal, fetches predetermined setting control information from the setting register, and supplies it to the timing control circuit 6.
【0049】なお、比較器から出力されるアドレス一致
信号は、オア回路G2を介してタイミング制御回路6に
与えられるようになっている。また、タイミング制御回
路6には、CPU2からのR/W信号も与えられてい
る。こうして、タイミング制御回路6は、メモリに向け
て各種信号(CS信号、R信号、W信号など)を出力す
る。以上のようにタイミング制御回路を共有化すること
によって、製品のコストダウンを図ることができる。The address coincidence signal output from the comparator is applied to the timing control circuit 6 via the OR circuit G2. The timing control circuit 6 is also supplied with the R / W signal from the CPU 2. In this way, the timing control circuit 6 outputs various signals (CS signal, R signal, W signal, etc.) to the memory. By sharing the timing control circuit as described above, it is possible to reduce the cost of the product.
【0050】次に、本発明に係る制御信号発生装置の一
実施例を図1に基づいて説明する。この図1は図4に対
する実施例であり、制御信号発生装置10内には、初期
アドレス値記憶手段である第一の初期アドレス発生回路
3、比較器H9、およびアドレス一致信号出力手段とし
てのオア回路G4が設けられている。また、図1に示す
制御信号発生装置10は、ROM93のデータ制御用と
して設けられているものである。各部の機能、動作を以
下に説明する。Next, an embodiment of the control signal generator according to the present invention will be described with reference to FIG. This FIG. 1 is an embodiment for FIG. 4, and in the control signal generator 10, a first initial address generating circuit 3 which is an initial address value storage means, a comparator H9, and an OR as an address coincidence signal output means. A circuit G4 is provided. The control signal generator 10 shown in FIG. 1 is provided for controlling the data of the ROM 93. The function and operation of each part will be described below.
【0051】制御信号発生装置内の設定レジスタには、
上述のように設定アドレス情報や設定制御情報の各種の
データが記憶されている。そして、これらの設定データ
に基づいて、メモリに対する処理制御が行われている。
ここで、コンピュータの電源入力直後においては、各制
御信号発生装置内の設定レジスタには、所定のデータが
書き込まれていない状態にある。このため電源が入力さ
れると、CPUはまずROM93の先頭番地から、順
次、記憶されている初期プログラムを読み出して実行
し、このプログラムにしたがってそれぞれの設定レジス
タに所定のデータを書き込み、記憶させる。In the setting register in the control signal generator,
As described above, various data such as setting address information and setting control information are stored. Then, processing control for the memory is performed based on these setting data.
Immediately after the power supply to the computer, the setting register in each control signal generator is in a state in which predetermined data is not written. Therefore, when the power is input, the CPU first reads and executes the stored initial program sequentially from the head address of the ROM 93, and writes and stores predetermined data in each setting register according to this program.
【0052】ところが、図1に示すように、ROM93
の制御信号発生装置10自体にも設定レジスタ8が設け
られており、電源入力直後はこの設定レジスタ8にも設
定アドレス情報等が記憶されていない。したがって、C
PUがアドレスデータを出力したとしても、ROM93
を指定することができず、ROM93に格納されている
初期プログラムそのものを取り込めないことになってし
まう。However, as shown in FIG.
The setting register 8 is also provided in the control signal generator 10 itself, and the setting address information and the like are not stored in the setting register 8 immediately after the power is input. Therefore, C
Even if the PU outputs the address data, the ROM 93
Cannot be specified, and the initial program itself stored in the ROM 93 cannot be loaded.
【0053】このような不都合を解消するために、本実
施例では第一の初期アドレス発生回路3および比較器H
9が設けられている。この第一の初期アドレス発生回路
3には、ROM93を示す初期アドレスとして、例えば
(000)2がハードウエア的に設定されている。ハー
ドウエア的に設定されているため、電源入力直後であっ
ても(000)2の信号が確実に出力されるようになっ
ている。そして、第一の初期アドレス発生回路3から出
力された初期アドレス(000)2は、比較器H9に取
り込まれる。In order to eliminate such an inconvenience, in this embodiment, the first initial address generating circuit 3 and the comparator H are used.
9 is provided. In the first initial address generating circuit 3, for example, (000) 2 is set in hardware as an initial address indicating the ROM 93. Since it is set by hardware, the (000) 2 signal is reliably output even immediately after power is input. Then, the initial address (000) 2 output from the first initial address generation circuit 3 is fetched by the comparator H9.
【0054】一方、CPUは電源入力直後、ROM93
にアクセスするため、バスライン70を通じてアドレス
データ(000)2を出力する。そして、このアドレス
データ(000)2も比較器H9に取り込まれる。こう
して比較器H9は、双方の信号が一致したことにより自
己のメモリ、すなわちROM93が指定されたことを認
識してアドレス一致信号を出力する。このアドレス一致
信号はオア回路G4を通じてタイミング制御回路6に与
えられる。On the other hand, the CPU immediately after the power is input, the ROM 93
Address data (000) 2 is output through the bus line 70 in order to access. Then, this address data (000) 2 is also taken into the comparator H9. In this way, the comparator H9 recognizes that its own memory, that is, the ROM 93 is designated by the coincidence of both signals, and outputs the address coincidence signal. The address match signal is given to the timing control circuit 6 through the OR circuit G4.
【0055】以上のようにしてCPUはROM93にア
クセスし、ROM93内の初期プログラムを取り込み、
それぞれの制御信号発生装置内の設定レジスタに設定デ
ータを書き込む。そして、各設定レジスタ内のデータに
基づき、他のメモリへのアクセスを行い、以後、所定の
処理を実行する。なお、図1に示すように、オア回路G
4には比較器H1からのアドレス一致信号も与えられる
ようになっており、通常の動作時においても、タイミン
グ制御回路6に向けてアドレス一致信号が出力される。As described above, the CPU accesses the ROM 93, fetches the initial program in the ROM 93,
Write the setting data to the setting register in each control signal generator. Then, based on the data in each setting register, another memory is accessed, and thereafter, a predetermined process is executed. As shown in FIG. 1, the OR circuit G
The address match signal from the comparator H1 is also supplied to the comparator 4, and the address match signal is output to the timing control circuit 6 even during normal operation.
【0056】図2に他の実施例を掲げる。これは、図1
に示した制御信号発生装置に、更にアンド回路D9を設
けたものである。アンド回路D9には、上述の比較器H
9から出力されるアドレス一致信号と伴に、CPUから
出力されるモード切り換え信号が与えられるようになっ
ている。すなわち、CPUからのモード切り換え信号
が、Hレベル(初期モード信号)として与えられない限
り、アドレス一致信号がタイミング制御回路6に出力さ
れることはない。FIG. 2 shows another embodiment. This is
An AND circuit D9 is further provided to the control signal generator shown in FIG. The AND circuit D9 includes the comparator H described above.
A mode switching signal output from the CPU is given together with the address match signal output from the CPU 9. That is, unless the mode switching signal from the CPU is given as the H level (initial mode signal), the address coincidence signal is not output to the timing control circuit 6.
【0057】CPUは、電源入力直後にまず、比較器H
9に向けてこのモード切り換え信号をHレベルとして出
力する。このため、図1に基づいて説明したように、バ
スライン70を通じて比較器H9にアドレスデータ(0
00)2が与えられた場合、比較器H9はアドレス一致
信号を出力する。そして、これに基づいてCPUはRO
M93にアクセスし、初期プログラムを取り込む。Immediately after the power is input, the CPU first sets the comparator H
This mode switching signal is output to the H level as the H level. Therefore, as described with reference to FIG. 1, the address data (0
00) 2 is given, the comparator H9 outputs an address coincidence signal. Then, based on this, the CPU
Access M93 to load the initial program.
【0058】こうして、初期プログラムを取り込んだ
後、CPUはモード切り換え信号をLレベルにする。す
なわち、この後は、バスライン70を通じてアドレスデ
ータ(000)2が与えられたとしても、アンド回路D
9からアドレス一致信号が出力されることはない。以
後、CPUからのROM93に対するアドレス指定は、
設定レジスタ8内に記憶されている設定アドレス情報に
基づいて行われる。In this way, after loading the initial program, the CPU sets the mode switching signal to the L level. That is, after that, even if the address data (000) 2 is given through the bus line 70, the AND circuit D
No address match signal is output from 9. After that, the address designation from the CPU to the ROM 93 is
This is performed based on the setting address information stored in the setting register 8.
【0059】モード切り換え信号をLレベルにしたこと
によって、アドレスデータ(000)2を他のメモリの
個別アドレスとして付与することができる。つまり、各
記憶領域に対し、アドレスの値を効率的に付与すること
が可能になる。By setting the mode switching signal to the L level, the address data (000) 2 can be given as an individual address of another memory. That is, it becomes possible to efficiently assign the value of the address to each storage area.
【0060】図3に、上記モード切り換え信号を制御す
るための回路構成を示す。モード切り換えレジスタ77
にはモード切り換え情報が記憶されており、ここからモ
ード切り換え信号がアンド回路D9(図2)に向けて出
力されるようになっている。上に述べたように、電源入
力直後はモード切り換え信号をHレベルとして出力する
必要があるため、モード切り換えレジスタ77は電源が
入力されると、自動的に「1」を出力するようになって
いる。そして、同時にこの「1」がモード切り換え情報
として記憶される。FIG. 3 shows a circuit configuration for controlling the mode switching signal. Mode switching register 77
Mode switching information is stored in the memory, and a mode switching signal is output from this to the AND circuit D9 (FIG. 2). As described above, since it is necessary to output the mode switching signal as H level immediately after the power is input, the mode switching register 77 automatically outputs "1" when the power is input. There is. At the same time, this "1" is stored as mode switching information.
【0061】アンド回路D9にこのモード切り換え信号
「1」が与えられることによって、CPUはROM93
にアクセスし、初期プログラムを実行して各設定レジス
タに所定のデータを書き込む。このとき、CPUはモー
ドアドレス設定レジスタ79にも、設定アドレス情報お
よび設定制御情報を書き込む。このモードアドレス設定
レジスタ79は、モード切り換えレジスタ77に対して
付与される個別アドレスを記憶するものである。When the mode switching signal "1" is given to the AND circuit D9, the CPU is made to operate in the ROM 93.
, And execute the initial program to write predetermined data to each setting register. At this time, the CPU also writes the setting address information and the setting control information in the mode address setting register 79. The mode address setting register 79 stores the individual address given to the mode switching register 77.
【0062】このモードアドレス設定レジスタ79への
データ書き込みは、次のようにして行われる。モードア
ドレス設定レジスタ79自体の個別アドレスは、第二の
初期アドレス発生回路17にハードウエア的に記憶され
ており、この個別アドレス、例えば(010)2は比較
器H11に向けて出力されている。一方、CPUはモー
ドアドレス設定レジスタ79を指定するため、バスライ
ン70を通じてアドレスデータ(010)2を比較器H
11に与える。比較器H11は両信号の一致によってア
ンド回路D11に信号出力を行う。Data writing to the mode address setting register 79 is performed as follows. The individual address of the mode address setting register 79 itself is stored in hardware in the second initial address generation circuit 17, and this individual address, for example, (010) 2 is output to the comparator H11. On the other hand, since the CPU designates the mode address setting register 79, the address data (010) 2 is transferred to the comparator H through the bus line 70.
Give to 11. The comparator H11 outputs a signal to the AND circuit D11 when the two signals match.
【0063】ここで、アンド回路D11には、モード切
り換えレジスタ77から出力されるモード切り換え信号
が取り込まれている。この時点では、モード切り換え信
号はHレベル「1」であるため、アンド回路D11は、
上記比較器H11からの信号を受けてモードアドレス設
定レジスタ79に信号出力を行う。こうしてモードアド
レス設定レジスタ79は、初期的動作として自己にデー
タを書き込むべきことを認識し、バスライン71を通じ
てCPUから与えられるデータ、例えば(100)2を
取り込み記憶する。前に述べたように、ここで書き込ん
だデータ(100)2が、モード切り換えレジスタ77
に付与された個別アドレスである。The AND circuit D11 receives the mode switching signal output from the mode switching register 77. At this point in time, the mode switching signal is at the H level "1", so the AND circuit D11
Upon receiving the signal from the comparator H11, the signal is output to the mode address setting register 79. In this way, the mode address setting register 79 recognizes that data should be written to itself as an initial operation, and fetches and stores the data given from the CPU, for example, (100) 2 through the bus line 71. As described above, the data (100) 2 written here is the mode switching register 77.
It is an individual address assigned to.
【0064】以上のようにして、CPUは各設定レジス
タへのデータ書き込み等の処理、つまり初期プログラム
の実行処理を終了する。そして、通常処理に入るため、
図2に基づいて説明したように、モード切り換え信号を
Lレベル「0」にする。このモード切り換え信号を
「0」にするための動作を以下に説明する。As described above, the CPU finishes the processing such as data writing to each setting register, that is, the execution processing of the initial program. And because it goes into normal processing,
As described with reference to FIG. 2, the mode switching signal is set to the L level “0”. The operation for setting the mode switching signal to "0" will be described below.
【0065】この場合CPUは、第三の初期アドレス発
生回路27に記憶されている個別アドレスを用いて、モ
ード切り換えレジスタ77にアクセスを行う。この第三
の初期アドレス発生回路27には、個別アドレス、例え
ば(011)2がハードウエア的に記憶されている。C
PUはこの(011)2をバスライン70を通じて比較
器H12に与え、比較器H12は両信号の一致に基づい
てアンド回路D12にう信号出力を行う。In this case, the CPU uses the individual address stored in the third initial address generating circuit 27 to access the mode switching register 77. In the third initial address generation circuit 27, an individual address, for example, (011) 2 is stored by hardware. C
PU gives this (011) 2 to the comparator H12 through the bus line 70, and the comparator H12 outputs a signal to the AND circuit D12 based on the coincidence of both signals.
【0066】ここで、アンド回路D12には、モード切
り換えレジスタ77から出力されるモード切り換え信号
が取り込まれている。この時点では、モード切り換え信
号は未だHレベル「1」であるため、アンド回路D12
は、上記比較器H12からの信号を受けてオア回路G
5、タイミング制御回路89を通じてモード切り換えレ
ジスタ77に信号を出力する。こうして、モード切り換
えレジスタ77が指定され、モード切り換え信号がHレ
ベル「1」からLレベル「0」に切り換えられる。Here, the AND circuit D12 receives the mode switching signal output from the mode switching register 77. At this point, the mode switching signal is still at the H level "1", so the AND circuit D12
Receives the signal from the comparator H12 and receives the OR circuit G
5. Output a signal to the mode switching register 77 through the timing control circuit 89. In this way, the mode switching register 77 is designated, and the mode switching signal is switched from the H level "1" to the L level "0".
【0067】以上のようにして、モード切り換え信号が
「0」に切り換わり、図2におけるアンド回路D9に与
えられる。そして、以後通常の処理動作が開始される。
ところが、通常動作中に、設定レジスタ内のデータを書
き換える必要が生じることがある。この場合、モード切
り換えレジスタ77から出力されるモード切り換え信号
を、電源入力直後と同様に、再び「1」にしなければな
らない。As described above, the mode switching signal is switched to "0" and given to the AND circuit D9 in FIG. Then, the normal processing operation is started thereafter.
However, it may be necessary to rewrite the data in the setting register during normal operation. In this case, the mode switching signal output from the mode switching register 77 has to be set to "1" again just as when the power is input.
【0068】このときは、モードアドレス設定レジスタ
79に記憶させた個別アドレス(100)2を用いて、
モード切り換えレジスタ77にアクセスする。具体的に
は、CPUはバスライン70を通じて、アドレスデータ
(100)2を比較器H10に与える。そして、比較器
H10はモードアドレス設定レジスタ79に記憶されて
いる(100)2を取り込み、一致信号をアンド回路D
10に向けて出力する。At this time, using the individual address (100) 2 stored in the mode address setting register 79,
Access the mode switching register 77. Specifically, the CPU supplies the address data (100) 2 to the comparator H10 through the bus line 70. Then, the comparator H10 takes in (100) 2 stored in the mode address setting register 79, and outputs the coincidence signal to the AND circuit D.
Output to 10.
【0069】ここで、アンド回路D10には、モード切
り換えレジスタ77からのモード切り換え信号が、反転
回路K4を介して与えられるようになっている。この時
点では、モード切り換え信号は「0」であり、反転回路
K4によって反転されてHレベル「1」としてアンド回
路D10に取り込まれる。したがって、アンド回路D1
0からは信号が出力され、オア回路G5、タイミング制
御回路89を通じてモード切り換えレジスタ77に入力
される。Here, the mode switching signal from the mode switching register 77 is applied to the AND circuit D10 through the inverting circuit K4. At this time, the mode switching signal is "0", which is inverted by the inverting circuit K4 and taken into the AND circuit D10 as H level "1". Therefore, the AND circuit D1
A signal is output from 0 and is input to the mode switching register 77 through the OR circuit G5 and the timing control circuit 89.
【0070】以上のようにしてCPUはモード切り換え
レジスタ77にアクセスを行い、モード切り換え信号を
Lレベル「0」からHレベル「1」に切り換える。As described above, the CPU accesses the mode switching register 77 and switches the mode switching signal from the L level "0" to the H level "1".
【0071】[0071]
【発明の効果】請求項1の制御信号発生装置において
は、アドレス設定値またはタイミング設定値が書き換え
可能である。すなわち、これらの設定値を任意に変更す
ることができる。In the control signal generator of the first aspect, the address setting value or the timing setting value can be rewritten. That is, these set values can be arbitrarily changed.
【0072】したがって、設定値の変更により制御信号
発生装置の汎用性を高めることができる。Therefore, the versatility of the control signal generator can be improved by changing the set value.
【0073】さらに、アドレス一致信号出力手段は、ア
ドレス信号、およびアドレス設定値もしくは初期アドレ
ス値に基づいてアドレス一致信号を出力する。すなわ
ち、未だアドレス設定値記憶手段にアドレス設定値が記
憶されていない場合でも、初期アドレス値に基づいてア
ドレス一致信号を出力することができる。Further, the address match signal output means outputs an address match signal based on the address signal and the address set value or the initial address value. That is, even when the address setting value is not stored in the address setting value storage means, the address match signal can be output based on the initial address value.
【0074】したがって、例えば電源入力直後、アドレ
ス設定値の書き込み前であっても、ハードウエア的に固
定された初期アドレス値に基づいてアクセスを行うこと
ができる。Therefore, for example, even after the power is input and before the address setting value is written, the access can be performed based on the hardware-fixed initial address value.
【0075】請求項2の制御信号発生装置においては、
初期モード信号が与えられていないときは、アドレス一
致信号出力手段は、初期アドレス値に基づくアドレス一
致信号を出力しない。すなわち、初期モード信号を与え
なければ、初期アドレス値に基づくアドレス一致信号の
出力を禁止することができ、他の記憶手段に付与されて
いるアドレスと同じ値を初期アドレス値として用いるこ
とができる。In the control signal generator of claim 2,
When the initial mode signal is not given, the address match signal output means does not output the address match signal based on the initial address value. That is, if the initial mode signal is not given, the output of the address match signal based on the initial address value can be prohibited, and the same value as the address given to the other storage means can be used as the initial address value.
【0076】したがって、他の記憶手段との間でアドレ
ス設定値を効率的に付与することが可能となる。Therefore, the address setting value can be efficiently given to other storage means.
【0077】請求項3の制御信号発生装置においては、
モード切り換えレジスタのアドレスをモード切り換えレ
ジスタアドレス値によって決定する。すなわち、モード
切り換えレジスタのアドレスを自在に変更することがで
きる。In the control signal generator of claim 3,
The address of the mode switching register is determined by the mode switching register address value. That is, the address of the mode switching register can be freely changed.
【0078】したがって、アドレス値の自由度を高める
ことができる。Therefore, the degree of freedom of the address value can be increased.
【図1】本発明に係る制御信号発生装置の一実施例を示
す回路図である。FIG. 1 is a circuit diagram showing an embodiment of a control signal generator according to the present invention.
【図2】本発明に係る制御信号発生装置の他の実施例を
示す回路図である。FIG. 2 is a circuit diagram showing another embodiment of the control signal generator according to the present invention.
【図3】図2におけるモード切り換え信号を制御するた
めの回路図である。3 is a circuit diagram for controlling a mode switching signal in FIG.
【図4】制御信号発生装置の基本的構成を示す回路図で
ある。FIG. 4 is a circuit diagram showing a basic configuration of a control signal generator.
【図5】図4のタイミング制御回路の詳細な回路図であ
る。5 is a detailed circuit diagram of the timing control circuit of FIG.
【図6】図4の設定レジスタ内の記憶データの内容を示
す図である。6 is a diagram showing the contents of stored data in a setting register of FIG.
【図7】各種の出力信号のタイミングチャートである。FIG. 7 is a timing chart of various output signals.
【図8】他の制御信号発生装置を示す回路図である。FIG. 8 is a circuit diagram showing another control signal generator.
【図9】図8に示す回路の他の実施例である。9 is another embodiment of the circuit shown in FIG. 8. FIG.
【図10】図4に示す回路の他の実施例である。FIG. 10 is another embodiment of the circuit shown in FIG.
【図11】タイミング制御回路を共有化した場合の回路
図である。FIG. 11 is a circuit diagram when a timing control circuit is shared.
【図12】従来のデータ制御の概略を示す回路図であ
る。FIG. 12 is a circuit diagram showing an outline of conventional data control.
3・・・・・第一の初期アドレス発生回路 6・・・・・タイミング制御回路 8・・・・・設定レジスタ 10・・・・制御信号発生装置 17・・・・第二の初期アドレス発生回路 27・・・・第三の初期アドレス発生回路 77・・・・モード切り換えレジスタ 79・・・・モードアドレス設定レジスタ D9・・・・比較器 3 ... First initial address generation circuit 6 ... Timing control circuit 8 ... Setting register 10 ... Control signal generator 17 ... Second generation of initial address Circuit 27 ...- Third initial address generation circuit 77-Mode switching register 79-Mode address setting register D9-Comparator
───────────────────────────────────────────────────── フロントページの続き (72)発明者 山田 伸吾 京都府京都市右京区花園土堂町10番地 オ ムロン株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shingo Yamada 10 Ouron Co., Ltd., Hanazono Dodo-cho, Ukyo-ku, Kyoto City, Kyoto Prefecture
Claims (3)
レス選択信号およびタイミング信号を出力する制御信号
発生装置において、 書き換え可能なアドレス設定値を記憶するアドレス設定
値記憶手段、 書き換え可能なタイミング設定値を記憶するタイミング
設定値記憶手段、 ハードウエア的に固定された初期アドレス値を記憶する
初期アドレス値記憶手段、 アドレス信号、およびアドレス設定値もしくは初期アド
レス値に基づいてアドレス一致信号を出力するアドレス
一致信号出力手段、 動作信号、アドレス一致信号、およびタイミング設定値
に基づいてアドレス選択信号およびタイミング信号を出
力するタイミング制御手段、 を備えたことを特徴とする制御信号発生装置。1. A control signal generator which outputs an address selection signal and a timing signal in response to an address signal and an operation signal, an address set value storage means for storing a rewritable address set value, and a rewritable timing setting. A timing setting value storage means for storing a value, an initial address value storage means for storing a hardware-fixed initial address value, an address signal, and an address for outputting an address match signal based on the address setting value or the initial address value. A control signal generation device comprising: a coincidence signal output means, an operation signal, an address coincidence signal, and timing control means for outputting an address selection signal and a timing signal based on a timing set value.
致信号出力手段は、初期アドレス値に基づくアドレス一
致信号を出力しない、 ことを特徴とする制御信号発生装置。2. The control signal generator according to claim 1, wherein when the initial mode signal is not given, the address match signal output means does not output the address match signal based on the initial address value. Control signal generator.
スタ書き換え可能なモード切り換えレジスタアドレス値
を記憶するモード切り換えレジスタアドレス値記憶手
段、 を備えており、 モード切り換えレジスタのアドレスを前記モード切り換
えレジスタアドレス値によって決定する、 ことを特徴とする制御信号発生装置。3. The control signal generator according to claim 2, further comprising a mode switching register address value storage means for storing a mode switching register rewritable mode switching register address value for outputting the mode switching signal. A control signal generator, wherein the address of the switching register is determined by the mode switching register address value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14417192A JPH05334181A (en) | 1992-06-04 | 1992-06-04 | Control signal generator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14417192A JPH05334181A (en) | 1992-06-04 | 1992-06-04 | Control signal generator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05334181A true JPH05334181A (en) | 1993-12-17 |
Family
ID=15355861
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14417192A Pending JPH05334181A (en) | 1992-06-04 | 1992-06-04 | Control signal generator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05334181A (en) |
-
1992
- 1992-06-04 JP JP14417192A patent/JPH05334181A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3032747B2 (en) | Microcomputer with embedded flash memory having on-chip programming capability and method of programming data in embedded flash memory | |
| EP0797152B1 (en) | Single-chip microcomputer with memory controller | |
| US5600807A (en) | Programmable controller capable of updating a user program during operation by switching between user program memories | |
| US6629165B1 (en) | Programmable controller including intelligent module | |
| US5696957A (en) | Integrated circuit comprising a central processing unit for executing a plurality of programs | |
| JPH01120660A (en) | Microcomputer device | |
| JP2003044303A (en) | Computer system | |
| EP0461631B1 (en) | Data storing device having a plurality of registers allotted for one address | |
| JPH076078A (en) | Control signal generator | |
| US5163135A (en) | Computer system and method for setting recovery time upon execution of an I/O command | |
| US6766448B2 (en) | Microcomputer for transferring program data to an internal memory from an external memory connected via a bus and a method therefor | |
| US7181564B2 (en) | Data processing apparatus and data processing method | |
| JP2526703B2 (en) | Programmable controller | |
| US20030226081A1 (en) | On chip debugging method of microcontrollers | |
| JP3442972B2 (en) | Information processing apparatus and rewritable nonvolatile memory rewriting method | |
| JPH11272642A (en) | 1-chip microcomputer and start address setting method | |
| JPH05241853A (en) | Programmable controller | |
| JPH11353170A (en) | Flash memory control device and memory access method of flash memory control device | |
| JPH05282232A (en) | Device control mechanism | |
| JPH0423147A (en) | Bank switching system | |
| JPS5938827A (en) | Microprocessor ipl system | |
| JPS6246024B2 (en) | ||
| JPS6348698A (en) | Memory storage control device | |
| JPS6148746B2 (en) | ||
| JP2003076559A (en) | Information processing equipment |