JPH07319736A - Controller - Google Patents

Controller

Info

Publication number
JPH07319736A
JPH07319736A JP6111105A JP11110594A JPH07319736A JP H07319736 A JPH07319736 A JP H07319736A JP 6111105 A JP6111105 A JP 6111105A JP 11110594 A JP11110594 A JP 11110594A JP H07319736 A JPH07319736 A JP H07319736A
Authority
JP
Japan
Prior art keywords
signal
counter
mask
control signal
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6111105A
Other languages
Japanese (ja)
Inventor
Hiroyuki Kono
河野裕之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP6111105A priority Critical patent/JPH07319736A/en
Publication of JPH07319736A publication Critical patent/JPH07319736A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To suppress the production of a control signal even if the producing conditions of this signal are satisfied in a rewrite mode and to prevent the malfunctions of a controller by asserting a mask signal when the value is set to one of plural registers and counters containing a loading function. CONSTITUTION:A signal LE1 is asserted and then negated when '0000h' is set at a counter 1. At the same time, a mask signal generating circuit 3 asserts a signal MASK, and a signal LE2 is asserted and then negated when '0100h' is set at a counter 2. At the same time, the circuit 3 negates the signal MASK. Therefore, a control signal generating circuit 4 can assert a signal CTRL. Under such conditions, the value of a 32-bit counter consisting of both counters 1 and 2 is equal to '0000h' and '0100h', and the signal CTRL is not asserted. As a result, the control signal that is wrongly produced while the value is set at each of plural counters containing the loading functions, is prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は制御装置に関し、特に複
数個のレジスタまたは1つ以上のレジスタおよび1つ以
上のロード機能付カウンタまたは複数個のロード機能付
カウンタを含み、前記複数個のレジスタまたは1つ以上
のレジスタおよび1つ以上のロード機能付カウンタまた
は複数個のロード機能付カウンタの値があらかじめ設定
した値になったときに制御信号を発生する制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control device, and more particularly, to a plurality of registers or one or more registers and one or more load function counters or a plurality of load function counters, and the plurality of registers. Alternatively, the present invention relates to a control device that generates a control signal when the values of one or more registers and one or more load function counters or a plurality of load function counters reach preset values.

【0002】[0002]

【従来の技術】従来の制御装置は、レジスタまたはカウ
ンタの出力する値を制御信号出力回路に入力し、制御信
号出力回路は入力された値があらかじめ設定された条件
を満たすときに制御信号を発生するものであった。例え
ば、特開平3−3041号公報に示された制御装置は、
カウンタの計数値と、前記カウンタの値または初期設定
値を記憶しておくレジスタの値とを比較して両方の値が
一致すると、制御信号を発生するものである。
2. Description of the Related Art A conventional control device inputs a value output from a register or a counter to a control signal output circuit, and the control signal output circuit generates a control signal when the input value satisfies a preset condition. It was something to do. For example, the control device disclosed in Japanese Patent Laid-Open No. 3-3041 is
The control signal is generated when the count value of the counter is compared with the value of the counter or the value of the register for storing the initial setting value and both values match.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記公報に開
示されたものでは、レジスタのビット数がレジスタデー
タバスのバス幅より大きい場合、例えばレジスタが16
ビットレジスタでありレジスタデータバスが8ビットで
ある場合に、カウンタが動作している時にレジスタの値
を書き換えようとすると、レジスタに記憶されている値
と書き換えようとする値とによって、書換えの途中でレ
ジスタの値とカウンタの値とが一時的に等しくなってし
まうことが生ずる。このとき、上記制御装置は制御信号
を発生すべきでないにも拘わらず、制御信号を発生して
しまい、誤動作を引き起こしてしまう。
However, in the one disclosed in the above publication, when the number of bits of the register is larger than the bus width of the register data bus, for example, the number of registers is 16
If the register value is a bit register and the register data bus is 8 bits, and the value of the register is rewritten while the counter is operating, the value stored in the register and the value to be rewritten are in the process of rewriting. Therefore, the register value and the counter value may temporarily become equal to each other. At this time, although the control device should not generate the control signal, the control device generates the control signal and causes a malfunction.

【0004】本発明は上記課題を解決するためのもの
で、書換えの途中で制御信号を発生する条件が満たされ
ることがあっても制御信号が発生しないようにして誤動
作を防止するようにした制御装置を提供することを目的
とする。
The present invention has been made to solve the above-mentioned problems and is a control for preventing malfunction by preventing the control signal from being generated even if a condition for generating the control signal is satisfied during rewriting. The purpose is to provide a device.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に本発明は、マスク信号発生回路により、複数個のレジ
スタまたは1つ以上のレジスタおよび1つ以上のロード
機能付カウンタまたは複数個のロード機能付カウンタの
うちのいずれか1つへの値の設定が開始されるとマスク
信号をアサートして制御信号が発生するのを禁止し、複
数個のレジスタまたは1つ以上のレジスタおよび1つ以
上のロード機能付カウンタまたは複数個のロード機能付
カウンタのすべての値の設定が終了するとマスク信号を
ネゲートして条件が満たされたときに制御信号発生可能
にしたことを特徴とする。
In order to solve the above problems, the present invention provides a mask signal generating circuit for a plurality of registers or one or more registers and one or more counters with a load function or a plurality of loads. When the setting of the value to any one of the functional counters is started, the mask signal is asserted to prohibit the generation of the control signal, and a plurality of registers or one or more registers and one or more registers are provided. When the setting of all values of the load function counter or the plurality of load function counters is completed, the mask signal is negated so that the control signal can be generated when the condition is satisfied.

【0006】[0006]

【作用】本発明は、複数個のレジスタまたは1つ以上の
レジスタおよび1つ以上のロード機能付カウンタまたは
複数個のロード機能付カウンタのすべてへの値の設定が
終了するまでマスク信号をアサートして制御信号をマス
クしているため、上記複数個のレジスタまたは1つ以上
のレジスタおよび1つ以上のロード機能付カウンタまた
は複数個のロード機能付カウンタに値を設定する途中で
一時的に誤って制御信号が発生することが防止される。
According to the present invention, the mask signal is asserted until the setting of the values to all of the plurality of registers or one or more registers and the one or more load function counters or the plurality of load function counters is completed. Since the control signals are masked by the above, the values are temporarily mistaken while setting the values in the above-mentioned plurality of registers or one or more registers and one or more load function counters or plural load function counters. The generation of control signals is prevented.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面を参照して詳
細に説明する。図1は本発明の制御装置の一実施例の構
成を示す図である。図1において、カウンタ1およびカ
ウンタ2はnビット(nは自然数)のロード機能付カウ
ンタであり、カウンタ1は信号LE1、カウンタ2は信
号LE2がアサートされるとデータバスLD上のデータ
をロードする。また、カウンタ1とカウンタ2とによっ
て1つの2nビットのカウンタを構成しており、カウン
タ1は信号CE、カウンタ2はカウンタ1からのキャリ
ー信号CRYがアサートされるとクロック信号CLKに
同期してカウント動作を行う。制御信号発生回路4は信
号MASKがアサートされていない時には、カウンタ1
とカウンタ2によって構成される2nビットのカウンタ
の値が所定の値に等しい間制御信号CTRLをアクティ
ブとし、信号MASKがアサートされると、カウンタ1
とカウンタ2とによって構成される2nビットのカウン
タの値に拘わらず信号CTRLをインアクティブとする
回路である。マスク信号発生回路3は、カウンタ1また
はカウンタ2のいずれか一方へのライトアクセスが開始
されてから残りの一方へのライトアクセスが終了するま
で、つまり信号LE1または信号LE2のいずれか一方
がアサートされてから残りの一方がネゲートされるまで
信号MASKをアサートする回路である。また、データ
バスLDは本制御装置外部からカウンタ1またはカウン
タ2に値を設定するための入力データバス、信号LE1
および信号LE2は排他的にアクティブとなる、カウン
タ1およびカウンタ2のロードイネーブル信号、信号C
Eはカウンタ1とカウンタ2によって構成される2nビ
ットのカウンタのカウントイネーブル信号、信号CLK
はクロック信号、信号CTRLは本制御装置が制御すべ
き装置への制御信号である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a diagram showing a configuration of an embodiment of a control device of the present invention. In FIG. 1, a counter 1 and a counter 2 are n-bit (n is a natural number) counter with a load function, and the counter 1 loads data on the data bus LD when a signal LE1 and a signal LE2 are asserted. . Further, the counter 1 and the counter 2 constitute one 2n-bit counter. The counter 1 counts in synchronization with the clock signal CLK when the signal CE and the counter 2 when the carry signal CRY from the counter 1 is asserted. Take action. When the signal MASK is not asserted, the control signal generation circuit 4 uses the counter 1
When the control signal CTRL is activated while the value of the 2n-bit counter constituted by the counter 2 and the counter 2 is equal to a predetermined value and the signal MASK is asserted, the counter 1
Is a circuit that makes the signal CTRL inactive regardless of the value of the 2n-bit counter configured by the counter 2 and the counter 2. The mask signal generation circuit 3 asserts either the signal LE1 or the signal LE2 from the start of the write access to either the counter 1 or the counter 2 until the end of the write access to the other one. It is a circuit that asserts the signal MASK after the other one is negated. Further, the data bus LD is an input data bus for setting a value in the counter 1 or the counter 2 from outside the control device, and a signal LE1.
And signal LE2 are exclusively active, load enable signals for counter 1 and counter 2, signal C
E is a count enable signal of the 2n-bit counter composed of the counter 1 and the counter 2, and the signal CLK.
Is a clock signal, and the signal CTRL is a control signal to a device to be controlled by this control device.

【0008】以下、例として、上記カウンタ1およびカ
ウンタ2が16ビットのカウンタであり、上記制御信号
発生回路4がカウンタ1の値0000hかつカウンタ2
の値がFFFFhとなる、つまりカウンタ1とカウンタ
2とによって構成さる32ビットカウンタの値が000
0,FFFFhとなると制御信号CTRLをアクティブ
とする構成であり、カウンタ1およびカウンタ2の値が
ともにFFFFhである時に、カウンタ1を0000
h、カウンタ2を0100hにカウンタ1、カウンタ2
の順で再設定しようとする場合の本発明の制御装置の動
作について説明する。
In the following, as an example, the counter 1 and the counter 2 are 16-bit counters, and the control signal generation circuit 4 has a value of the counter 1 of 0000h and a counter 2 of 2.
Is FFFFh, that is, the value of the 32-bit counter configured by the counter 1 and the counter 2 is 000.
The control signal CTRL is activated when 0 and FFFFh are set. When both the values of the counter 1 and the counter 2 are FFFFh, the counter 1 is set to 0000.
h, counter 2 to 0100h counter 1, counter 2
The operation of the control device of the present invention when resetting is performed in the order of.

【0009】上記の場合、まず、信号LE1がアサート
され、カウンタ1に0000hが設定され、設定が終了
すると信号LE1はネゲートされる。このとき、マスク
信号発生回路3は信号LE1がアサートされたので、信
号MASKをアサートする。カウンタ1に0000hが
設定されると、カウンタ2が再設定されるまで、カウン
タ1とカウンタ2とによって構成される32ビットカウ
ンタの値は0000,FFFFhとなるが、信号MAS
Kがアサートされているため、制御信号発生回路4は信
号CTRLをアサートしない。次に、信号LE2がアサ
ートされ、カウンタ2に0100hが設定され、設定が
終了すると信号LE2はネゲートされる。このとき、マ
スク信号発生回路3は信号LE1がアサートされネゲー
トされた後に、信号LE2がアサートされネゲートされ
たので、信号MASKをネゲートする。信号MASKが
ネゲートされたため、制御信号発生回路4は信号CTR
Lをアサートできる状態となるが、このときのカウンタ
1とカウンタ2とによって構成される32ビットカウン
タの値は0000,0100hであるので、信号CTR
Lはアサートされない。つまり、以上により複数個のロ
ード機能付カウンタに値を設定する途中で一時的に誤っ
て制御信号が発生することが防止される。
In the above case, first, the signal LE1 is asserted, the counter 1 is set to 0000h, and when the setting is completed, the signal LE1 is negated. At this time, the mask signal generation circuit 3 asserts the signal MASK because the signal LE1 is asserted. When the counter 1 is set to 0000h, the value of the 32-bit counter configured by the counter 1 and the counter 2 becomes 0000 and FFFFh until the counter 2 is reset.
Since K is asserted, the control signal generation circuit 4 does not assert the signal CTRL. Next, the signal LE2 is asserted, the counter 2 is set to 0100h, and when the setting is completed, the signal LE2 is negated. At this time, the mask signal generation circuit 3 negates the signal MASK because the signal LE2 is asserted and negated after the signal LE1 is asserted and negated. Since the signal MASK is negated, the control signal generation circuit 4 outputs the signal CTR.
Although the L can be asserted, the value of the 32-bit counter constituted by the counter 1 and the counter 2 at this time is 0000,0100h, so that the signal CTR is used.
L is not asserted. That is, as described above, it is possible to prevent a control signal from being erroneously generated temporarily while setting values in the plurality of load function counters.

【0010】なお、上記実施例においては、2つのカウ
ンタを1つのカウンタとして動作させる構成例である
が、3つ以上のカウンタを1つのカウンタとして動作さ
せる場合でも、上記と同様にしてカウンタに値を設定す
る途中で一時的に誤って制御信号が発生することが防止
されることは容易に類推される。また、複数個のカウン
タのうち一部または全部をレジスタに置き換えても同様
であることは言うまでもない。
In the above embodiment, two counters are operated as one counter. However, even when three or more counters are operated as one counter, the counters are set in the same manner as above. It is easily inferred that it is possible to prevent a control signal from being erroneously generated temporarily while setting the. Needless to say, the same is true even if some or all of the plurality of counters are replaced with registers.

【0011】[0011]

【発明の効果】以上に述べたように、本発明によれば、
複数個のレジスタまたはロード機能付カウンタの値を再
設定する際に、前記複数個のレジスタもしくはロード機
能付カウンタのうちのいずれか1つへの値の設定が開始
されるとマスク信号をアサートし、前記複数個のレジス
タもしくはロード機能付カウンタのすべてへの値の設定
が終了するとマスク信号をネゲートしているため、再設
定の途中で前記複数個のレジスタもしくはロード機能付
カウンタの値が制御信号を発生すべき値となっても制御
信号は発生されない。従って、本制御装置が制御すべき
装置の誤動作を防ぐことができる。
As described above, according to the present invention,
When resetting the values of the plurality of registers or the counter with the load function, the mask signal is asserted when the setting of the value in any one of the plurality of registers or the counter with the load function is started. , The mask signal is negated when the values of all the registers or the counters with the load function have been set. The control signal is not generated even when the value becomes a value that should be generated. Therefore, it is possible to prevent the malfunction of the device to be controlled by the present control device.

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

【図1】 本発明の一実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1,2…カウンタ、3…マスク信号発生回路、4…制御
信号発生回路、LD…レジスタデータバス、LE1…カ
ウンタ1のロードイネーブル信号、LE2…カウンタ2
のロードイネーブル信号、CRY…カウンタ1およびカ
ウンタ2を1つのカウンタとして動作させるためのキャ
リー信号、CLK…クロック信号、CE…カウンタ1お
よびカウンタ2によって構成されるカウンタのカウント
イネーブル信号、CD1…カウンタ1の出力データバ
ス、CD2…カウンタ2の出力データバス、MASK…
マスク信号、CTRL…制御信号。
1, 2 ... Counter, 3 ... Mask signal generation circuit, 4 ... Control signal generation circuit, LD ... Register data bus, LE1 ... Load enable signal of counter 1, LE2 ... Counter 2
Load enable signal, CRY ... Carry signal for operating counter 1 and counter 2 as one counter, CLK ... Clock signal, CE ... Count enable signal of counter constituted by counter 1 and counter 2, CD1 ... Counter 1 Output data bus, CD2 ... Counter 2 output data bus, MASK ...
Mask signal, CTRL ... Control signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数個のレジスタまたは1つ以上のレジ
スタおよび1つ以上のロード機能付カウンタまたは複数
個のロード機能付カウンタの値が入力され、入力される
値があらかじめ設定された値のときに制御信号を発生す
る制御信号発生回路と、制御信号発生回路に対して制御
信号をマスクする信号を発生するマスク信号発生回路と
を備え、前記複数個のレジスタまたは1つ以上のレジス
タおよび1つ以上のロード機能付カウンタまたは複数個
のロード機能付カウンタのうちのいずれか1つへの値の
設定が開始されると、前記制御信号発生回路によりマス
ク信号をアサートして制御信号が発生するのを禁止し、
複数個のレジスタまたは1つ以上のレジスタおよび1つ
以上のロード機能付カウンタまたは複数個のロード機能
付カウンタのすべての値の設定が終了するとマスク信号
をネゲートすることを特徴とする制御装置。
1. When the values of a plurality of registers or one or more registers and one or more load function counters or a plurality of load function counters are input and the input values are preset values. A control signal generating circuit for generating a control signal, and a mask signal generating circuit for generating a signal for masking the control signal to the control signal generating circuit, and the plurality of registers or one or more registers and one When the setting of a value to any one of the above load function counter or a plurality of load function counters is started, the control signal generating circuit asserts a mask signal to generate a control signal. Ban,
A control device which negates a mask signal when setting of all values of a plurality of registers or one or more registers and one or more load function counters or a plurality of load function counters is completed.
JP6111105A 1994-05-25 1994-05-25 Controller Pending JPH07319736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6111105A JPH07319736A (en) 1994-05-25 1994-05-25 Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6111105A JPH07319736A (en) 1994-05-25 1994-05-25 Controller

Publications (1)

Publication Number Publication Date
JPH07319736A true JPH07319736A (en) 1995-12-08

Family

ID=14552533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6111105A Pending JPH07319736A (en) 1994-05-25 1994-05-25 Controller

Country Status (1)

Country Link
JP (1) JPH07319736A (en)

Similar Documents

Publication Publication Date Title
US7805650B2 (en) Semiconductor integrated circuit and debug mode determination method
US5652844A (en) Flexible pin configuration for use in a data processing system during a reset operation and method therefor
US5410721A (en) System and method for incrementing a program counter
US5535376A (en) Data processor having a timer circuit for performing a buffered pulse width modulation function and method therefor
JP3437802B2 (en) Clock control circuit and error correction circuit using the same
JPH07319736A (en) Controller
JP3350005B2 (en) Counter reading control device and control method thereof
JPH08235073A (en) Microcomputer
JPS6022774B2 (en) Input/output terminal control method
US5566322A (en) Method and apparatus for performing read accesses from a counter which avoid large rollover error when multiple read access cycles are used
JP3204575B2 (en) Reset circuit and integrated circuit including the same
JPS6167148A (en) Microcomputer
JP3338722B2 (en) Counter circuit
US6360295B1 (en) Serially loadable digital electronic memory and method of loading the same
KR100266627B1 (en) Power down circuit
JPH05266685A (en) Storage device
KR100207481B1 (en) Detecting time adjustment equipment to detect data during desire period
JP3335821B2 (en) Area designation circuit
JP2847741B2 (en) Microcomputer
JP2716284B2 (en) Semiconductor integrated circuit
JPH1069460A (en) Bus controller
JPH05324116A (en) Semiconductor circuit device
JPH09198367A (en) Microcomputer
JPH06342043A (en) Semiconductor integrated circuit device and its test method
JPH06318157A (en) Semiconductor integrated circuit