JPH0368213A - timing generation circuit - Google Patents

timing generation circuit

Info

Publication number
JPH0368213A
JPH0368213A JP20436389A JP20436389A JPH0368213A JP H0368213 A JPH0368213 A JP H0368213A JP 20436389 A JP20436389 A JP 20436389A JP 20436389 A JP20436389 A JP 20436389A JP H0368213 A JPH0368213 A JP H0368213A
Authority
JP
Japan
Prior art keywords
signal
circuit
main
sub
gate
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
JP20436389A
Other languages
Japanese (ja)
Inventor
Yoshie Masui
増井 芳枝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP20436389A priority Critical patent/JPH0368213A/en
Publication of JPH0368213A publication Critical patent/JPH0368213A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PURPOSE:To obtain a timing generating circuit which takes a parameter input of a small number of bits and has a small circuit scale by providing an auxiliary operation execution period signal generating circuit started with a main counted value and a circuit which generates a main operation execution period signal by the output of a main counter circuit. CONSTITUTION:A synchronizing signal A connects a NOR circuit 52 and a NOT circuit 54 of an auxiliary operation execution period signal generating circuit 5. When the synchronizing signal A goes to the high level, the Q output of a JKFF 51, namely a gate signal H indicating the auxiliary operation execution period is initialized to the low level. When a carry signal G of a 4-bit counter 41 of an auxiliary counter circuit 4 first goes to the high level after the synchronizing signal A goes to the high level, the gate signal H indicating the auxiliary operation execution period is changed to the high level. When the carry signal G goes to the high level again then, this gate signal H is returned to the low level. Differences of operation start and end times between the main operation and the auxiliary operation are varied by a third parameter.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は動作の基準になる信号に対して周期的に実行
され、動作する時間の等しい複数の動作が存在し、それ
らは動作の基準となる信号からの動作を開始する時刻の
みが異なるような装置に対するタイミング発生回路に関
するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention is performed periodically on a signal that serves as a reference for an operation, and there are a plurality of operations that take the same amount of time, and these operations are performed as a reference for the operation. This invention relates to a timing generation circuit for a device that differs only in the time at which it starts an operation based on a signal.

〔従来の技術〕[Conventional technology]

第3図は従来のタイミング発生回路の構成を示すもので
ある。この従来例においては、同期信号から主動作及び
副動作を開始する時刻はそれぞれ10ビツトのパラメー
タで表わされ、主動作を実行する時間と副動作を実行す
る時間とは等しく、その時間も10ビツトのパラメータ
で表わされる場合とする。そこで、同期信号から主動作
を開始する時刻を設定するパラメータをPlo、Pt+
・・・・・・、Pl、(Ploが最下位ビットでP1%
が最上位ビ・ント)とし、同期信号から副動作を開始す
る時刻を設定するパラメータを第4のパラメータと名付
け、P4゜、P4□、・・・・・・、P4?  (P4
゜が最下位ビットでP4.が最上位ビット)とし、主動
作と副動作を実行する時間を設定するパラメータをP2
゜、P2.、 ・・・・・・、P29  (P2・が最
下位ビットでP2qが最上位ビット)とする。
FIG. 3 shows the configuration of a conventional timing generation circuit. In this conventional example, the times at which the main operation and the sub-operation are started from the synchronization signal are each expressed by 10-bit parameters, and the time to execute the main operation and the time to execute the sub-operation are equal, and the time is also 10 bits. Assume that it is expressed as a bit parameter. Therefore, the parameters that set the time to start the main operation from the synchronization signal are Plo, Pt+
......, Pl, (Plo is the least significant bit and P1%
The parameter that sets the time to start the sub-operation from the synchronization signal is named the fourth parameter, P4゜, P4□, ......, P4? (P4
゜ is the least significant bit and P4. is the most significant bit), and the parameter that sets the time to execute the main operation and sub operation is P2.
゜, P2. , ..., P29 (P2. is the least significant bit and P2q is the most significant bit).

第3図において、lは主カウンタ回路、3は主動作実行
期間信号発生回路、1′は副カウンタ回路、3′は副動
作実行期間信号発生回路であり、主カウンタ回路1と副
カウンタ回路1′とは同一の構成をとり、主動作実行期
間信号発生回路3と副動作実行期間信号発生回路3′と
は同一の構成をとる。従って、ここでは主カウンタ回路
1と主動作実行期間信号発生回路3について述べる。副
カウンタ回路1′に関しては、主カウンタ回路1の説明
において符号にダッシュ(′)を付け、「第1のパラメ
ータ」を「第4のパラメータ」と読み直すことにより説
明される。同様に、副動作実行期間信号発生回路3′に
関しては主動作実行期間信号発生回路3の説明において
符号にダッシュ(′)を付けて「主動作」を「副動作」
と読み直すことにより説明される。
In FIG. 3, l is a main counter circuit, 3 is a main operation execution period signal generation circuit, 1' is a sub counter circuit, and 3' is a sub operation execution period signal generation circuit. ' have the same configuration, and the main operation execution period signal generation circuit 3 and the sub operation execution period signal generation circuit 3' have the same configuration. Therefore, the main counter circuit 1 and the main operation execution period signal generation circuit 3 will be described here. The sub counter circuit 1' will be explained by adding a dash (') to the reference numeral in the description of the main counter circuit 1 and rereading the "first parameter" as the "fourth parameter." Similarly, regarding the sub-operation execution period signal generation circuit 3', in the explanation of the main operation execution period signal generation circuit 3, a dash (') is added to the symbol and "main operation" is replaced with "sub-operation".
This can be explained by rereading.

主カウンタ回路1は第1のパラメータと第2のパラメー
タとを切り換えて出力する1()ビットのセレクタ11
と、このセレクタ11の出力をロード値とする10ビツ
トのカウンタ12と、セレクタ11の制御信号を生成す
るためのNORゲート13と、カウンタ12のロード制
御信号を生成するためのNORゲート】4と、カウンタ
12のイネーブル制御信号を生成するためのNANDA
−ト15とにより構成される。
The main counter circuit 1 has a 1()-bit selector 11 that switches and outputs the first parameter and the second parameter.
, a 10-bit counter 12 that uses the output of this selector 11 as a load value, a NOR gate 13 for generating a control signal for the selector 11, and a NOR gate for generating a load control signal for the counter 12]4. , NANDA for generating the enable control signal of the counter 12
- and 15.

主動作実行期間信号発生回路3は、同期信号Aが“Ho
の状態から主動作を開始する時刻までを示す信号IQ(
正論理)とIQ(負論理)とを出力するJ−にフリップ
フロップ(以後、JKFFと略す)31と、主動作を実
行する時間を示す信号2Q(正論理)と2Q(負論理)
とを出力するJKFF32と、JKFF31のに端子に
接続されるNORゲート33と、JKFF32のJ端子
に接続されるNORゲート34と、NORゲート34に
接続されるNANDA−ト35と、JKFF32のに端
子とNORゲート34とに接続されるNANDA−ト3
6と、NANDA−ト36に接続されるNANDA−ト
37と、10ビツトのカウンタ12のキャリ信号Cを反
転してNORゲート33に入力するNOTゲート38と
、同期信号Aを反転してNANDA−ト36に入力する
NOTゲート39とにより構成される。
The main operation execution period signal generation circuit 3 is configured so that the synchronization signal A is “Ho”.
The signal IQ (
A flip-flop (hereinafter abbreviated as JKFF) 31 is connected to J-, which outputs (positive logic) and IQ (negative logic), and signals 2Q (positive logic) and 2Q (negative logic) that indicate the time to execute the main operation.
a NOR gate 33 connected to the terminal of JKFF31, a NOR gate 34 connected to the J terminal of JKFF32, a NAND gate 35 connected to the NOR gate 34, and a terminal of JKFF32. and NOR gate 34
6, a NAND gate 37 connected to the NAND gate 36, a NOT gate 38 that inverts the carry signal C of the 10-bit counter 12 and inputs it to the NOR gate 33, and a NAND gate 38 that inverts the synchronization signal A and inputs it to the NOR gate 33. NOT gate 39 which inputs to gate 36.

続いて、動作について説明する。Next, the operation will be explained.

第4図は第3図に示す従来例の動作について示したもの
である。
FIG. 4 shows the operation of the conventional example shown in FIG.

まず、主カウンタ回路1の動作について述べる。First, the operation of the main counter circuit 1 will be described.

同期信号へが第3図のNORゲート13と14とに入力
されることにより、同期信号Aが“Ho”状態になると
、第1のパラメータがセレクタ11を介して反転されて
カウンタ12にロードされて初期カウンタされる。NA
NDA−ト15には1Qと2Qとが入力されることから
、カウンタ12は同期信号Aが“H11状態になってか
ら主動作が実行終了するまでの間、カウントを続けるこ
とになる。第1のパラメータに対応する値をロードされ
た後、カウントを続けるカウンタ12は、その後キャリ
信号Cを“H++状態にする。キャリ信号CはNORゲ
ー)14に入力され、再びカウンタ12をロード状態に
するが、その時セレクタ11はNORゲート13にIQ
が入力されていることにより、第2のパラメータの反転
したものをカウンタ12に出力する。そして、第2のパ
ラメータに対応する値をロードされた後、カウンタ12
はカウントを続け、再びキャリ信号Cを“H”状態にし
てカウントを終了する。
When the synchronization signal A is input to the NOR gates 13 and 14 in FIG. is initially counted. NA
Since 1Q and 2Q are input to the NDA-to 15, the counter 12 continues counting from the time when the synchronizing signal A becomes "H11" until the execution of the main operation is completed. After being loaded with the value corresponding to the parameter, the counter 12, which continues counting, then puts the carry signal C in the "H++" state. The carry signal C is input to the NOR gate (14) and loads the counter 12 again, but at that time the selector 11 inputs the IQ
is input, an inverted version of the second parameter is output to the counter 12. Then, after being loaded with the value corresponding to the second parameter, the counter 12
continues counting and sets the carry signal C to "H" again to end the counting.

次に、主動作実行期間信号発生回路3の動作について述
べる。
Next, the operation of the main operation execution period signal generation circuit 3 will be described.

同期信号Aの゛°H゛°状態を初期化信号としてjKF
F31.(7)J端子とNORゲート33とNOTゲー
ト39とに入力し、同期信号AがI Hl“状態になる
と1Qが°“H”状態になり、2Qが°“L”状態にな
る。カウンタ12のキャリ信号CがNANDA−ト35
と37及びNOTゲート3日に接続されており、1Qが
NANI)ゲート35に、そして2QがNANDA−ト
37に接続されていることにより、IQが“H”状態で
2Qが“L I+状態の下でキャリ信号Cが“)4゛状
態になると、IQはL”状態に、2Qは“H11状態に
変化する。
jKF using the ゛°H゛° state of the synchronization signal A as the initialization signal.
F31. (7) Input to the J terminal, NOR gate 33, and NOT gate 39, and when the synchronizing signal A becomes IHl" state, 1Q becomes "H" state and 2Q becomes "L" state. Counter 12 The carry signal C of NANDA-to 35
37 and NOT gate 3, 1Q is connected to NANI) gate 35, and 2Q is connected to NAND gate 37, so that IQ is in the "H" state and 2Q is in the "L I+" state. When the carry signal C changes to the ")4" state below, IQ changes to the "L" state and 2Q changes to the "H11" state.

そして、その後にキャリ信号Cが“°H°゛状態になる
と、1QはL°”状態を続け、2Qは“′L1状態に変
化する0以上の動作により、2Qは主動作を実行する期
間を示すゲート信号りとなる。
Then, when the carry signal C goes into the "°H°" state, the 1Q continues in the "L°" state and the 2Q changes to the "'L1" state due to an operation of 0 or more. The gate signal will be as shown below.

以上の説明から判明するように、第1のパラメータと第
4パラメータとを異なる値に設定することにより、主動
作を開始する時刻と副動作を開始する時刻とが異なり、
主動作を実行する時間と副動作を実行する時間とは等し
くすることができる。
As is clear from the above explanation, by setting the first parameter and the fourth parameter to different values, the time to start the main operation and the time to start the sub-operation are different,
The time to perform the main operation and the time to perform the sub-operation can be made equal.

なお、第3図中のA、B、C,D及びA’、B’C’、
D’は第4図中のA、B、C,D及びA′B’、C’、
D’にそれぞれ対応する。また第3図中のTはクロック
、Rはリセント信号を表わす。
In addition, A, B, C, D and A', B'C' in Fig. 3,
D' is A, B, C, D and A'B', C' in Figure 4.
Each corresponds to D'. Further, T in FIG. 3 represents a clock, and R represents a recent signal.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のタイミング発生回路は以上のように構成されてい
るので、多くのビット数のパラメータの入力が必要であ
り、副動作に対するカウンタ等の回路規模が大きくなる
という問題点があった。
Since the conventional timing generation circuit is configured as described above, it is necessary to input parameters with a large number of bits, and there is a problem that the circuit size of counters and the like for sub-operations becomes large.

この発明は上記のような問題点を解決するためになされ
たもので、少ないビット数のパラメータ入力で、かつ小
さい回路規模で従来と同し機能を果たすことのできるタ
イミング発生回路を得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and the purpose is to obtain a timing generation circuit that can perform the same functions as conventional ones with a small number of parameter inputs and a small circuit scale. shall be.

〔課題を解決するための手段〕[Means to solve the problem]

この発明にかかるタイミング発生回路は、主カウンタ回
路と、主カウンタ回路のカウント値をデコードするデコ
ード回路と、デコード回路の出力を起動信号として入力
する副カウンタ回路と、副カウンタ回路の出力により副
動作が実行される期間を示すゲート信号を出力する副動
作実行期間信号発生回路と、主カウンタ回路の出力によ
り主動作が実行される期間を示すゲート信号を出力する
主動作実行期間信号発生回路とを備えたものである。
The timing generation circuit according to the present invention includes a main counter circuit, a decoding circuit that decodes the count value of the main counter circuit, a sub-counter circuit that inputs the output of the decoding circuit as a start signal, and a sub-operation based on the output of the sub-counter circuit. a sub-operation execution period signal generation circuit that outputs a gate signal indicating a period in which the main operation is executed; and a main operation execution period signal generation circuit that outputs a gate signal indicating the period in which the main operation is executed based on the output of the main counter circuit. It is prepared.

〔作用〕 この発明においては、主カウンタ回路は同期信号から主
動作が開始される時刻に対応するパラメータと主動作が
実行される時間に対応するパラメータとを入力すること
により、主動作の動作開始時刻と動作終了時刻を示す信
号を主動作実行期間信号発生回路に出力することにより
、主動作実行期間信号発生回路は主動作が実行される期
間を示すゲート信号を出力するとともに、主カウンタ回
路の状態を表わす信号をデコード回路に出力する。
[Operation] In the present invention, the main counter circuit starts the main operation by inputting a parameter corresponding to the time when the main operation is started and a parameter corresponding to the time when the main operation is executed from the synchronization signal. By outputting a signal indicating the time and operation end time to the main operation execution period signal generation circuit, the main operation execution period signal generation circuit outputs a gate signal indicating the period during which the main operation is executed, and also outputs a gate signal indicating the period in which the main operation is executed. A signal representing the state is output to the decoding circuit.

副カウンタ回路は主動作が開始される時刻と副動作が開
始される時刻との相違分に対応するパラメータとデコー
ド回路からの出力を入力することにより、副動作の動作
開始時刻と動作終了時刻を示す信号を副動作実行期間信
号発生回路に出力することにより、副動作実行期間信号
発生回路は副動作が実行されている期間を示すゲート信
号を出力する。
The sub-counter circuit calculates the operation start time and operation end time of the sub-operation by inputting parameters corresponding to the difference between the main operation start time and the sub-operation start time and the output from the decoding circuit. By outputting a signal indicating to the sub-operation execution period signal generation circuit, the sub-operation execution period signal generation circuit outputs a gate signal indicating the period in which the sub-operation is being executed.

〔実施例〕〔Example〕

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

第1図はこの発明の一実施例によるタイ4ング発生回路
の構成を示す。本実施例においては同期信号から主動作
を開始する時刻及び主動作を実行する時間は、それぞれ
10ビツトのパラメータで表現され、副動作を開始する
時刻が主動作を開始する時刻に対して4ビツトのパラメ
ータで表わされる量だけ変化するものとする。そこで、
同期信号から主動作を開始する時刻を設定するパラメー
タをPl。、Pli、・・・・・・、PL、(Pi、が
最下位ビットでPl9が最上位ビット)とし、主動作を
実行する時間を設定するパラメータをP2゜P2.、・
・・・・・、P2.(P2゜が最下位ビットでP2.が
最上位ビット)とし、主動作と副動作との動作開始時刻
の相違分を設定する第3のパラメータをP3o 、P3
.、P3z 、P33  (P2Oが最下位ビットでP
31が最上位ビット)とする。
FIG. 1 shows the configuration of a tying generation circuit according to an embodiment of the present invention. In this embodiment, the time to start the main operation from the synchronization signal and the time to execute the main operation are each expressed by 10-bit parameters, and the time to start the sub-operation is 4 bits higher than the time to start the main operation. It is assumed that the amount changes by the amount expressed by the parameter. Therefore,
Pl is the parameter that sets the time to start the main operation from the synchronization signal. , Pli, . ,・
..., P2. (P2° is the least significant bit and P2. is the most significant bit), and the third parameter that sets the difference in operation start time between the main operation and the sub operation is P3o, P3
.. , P3z , P33 (P2O is the least significant bit and P
31 is the most significant bit).

第1図において、lは主カウンタ回路、2はデコード回
路、3は主動作実行期間信号発生回路、4は副カウンタ
回路、5は副動作実行期間信号発生回路である。
In FIG. 1, 1 is a main counter circuit, 2 is a decoding circuit, 3 is a main operation execution period signal generation circuit, 4 is a sub counter circuit, and 5 is a sub operation execution period signal generation circuit.

主カウンタ回路1は第1のパラメータと第2のパラメー
タとを切り換えて出力するlOビットのセレクタ11と
、このセレクタ11の出力をロード値とする10ビツト
カウンタ12と、セレクタ11の制御信号を生成するた
めのNORゲート13と、カウンタ12のロード制御信
号を生成するためのNORゲート14と、カウンタ12
のイネーブル制御信号を生成するためのNANDA−ト
15とにより構成される。
The main counter circuit 1 includes a 10-bit selector 11 that switches and outputs a first parameter and a second parameter, a 10-bit counter 12 that uses the output of this selector 11 as a load value, and generates a control signal for the selector 11. a NOR gate 13 for generating a load control signal for the counter 12; a NOR gate 14 for generating a load control signal for the counter 12;
and a NANDA gate 15 for generating an enable control signal.

デコード回路2は、IOビットのカウンタ12のカウン
ト値Bをデコードして、副カウンタ回路3におけるカウ
ントを開始させる信号Eを出力するデコーダ21により
構成される。
The decoding circuit 2 includes a decoder 21 that decodes the count value B of the IO bit counter 12 and outputs a signal E that causes the sub-counter circuit 3 to start counting.

主動作実行期間信号発生回路3は同期信号Aが“H″°
の状態から主動作を開始する時刻までを示す信号IQ(
正論理)とIQ(負論理)とを出力するJ−にフリップ
フロップ(以後、JKFFと略す)31と、主動作を実
行する時間を示す信号2Q(正論理)と2Q(負論理)
とを出力するJKFF32と、JKFF31のに端子に
接続されるNORゲート33と、JKFF32のJ端子
に接続されるNORゲート34と、NORゲート34に
接続されるNANDA−ト35と、JKFF32のに端
子とNORゲート34とに接続されるNAN’Dゲート
36と、NANDA−ト36に接続されるNANDA−
ト37と、10ピントカウンタ12のキャリ信号Cを反
転して、NORゲート33に入力するNOTゲート38
と、同期信号Aを反転してNANDA−ト36に入力す
るNOTゲート37とにより構成される。
In the main operation execution period signal generation circuit 3, the synchronization signal A is “H”°
The signal IQ (
A flip-flop (hereinafter abbreviated as JKFF) 31 is connected to J-, which outputs (positive logic) and IQ (negative logic), and signals 2Q (positive logic) and 2Q (negative logic) that indicate the time to execute the main operation.
a NOR gate 33 connected to the terminal of JKFF31, a NOR gate 34 connected to the J terminal of JKFF32, a NAND gate 35 connected to the NOR gate 34, and a terminal of JKFF32. NAND gate 36 connected to NOR gate 34 and NAND gate 34;
37 and a NOT gate 38 which inverts the carry signal C of the 10-pin counter 12 and inputs it to the NOR gate 33.
and a NOT gate 37 which inverts the synchronizing signal A and inputs it to the NAND gate 36.

副カウンタ回路4は第3のパラメータをロード値とする
4ビツトのカウンタ41とカウンタ41のイネーブル制
御信号を生成するためのJKFF42と1.J K F
 F 42のJ端子に接続されるNORゲート43と、
JKFF42のに端子に接続されるNANDA−ト44
と、デコード回路2の出力信号Eを反転信号にするNO
Tゲート45と、同期信号Aを反転してNANDA−ト
44に入力するNOTゲート46と、カウンタ41のキ
ャリ信号Gを反転してNANDA−ト44に入力するN
OTゲート47とにより構成される。
The sub-counter circuit 4 includes a 4-bit counter 41 whose load value is the third parameter, a JKFF 42 for generating an enable control signal for the counter 41, and 1. JKF
A NOR gate 43 connected to the J terminal of F42,
NANDA-44 connected to the terminal of JKFF42
and NO to make the output signal E of the decoding circuit 2 an inverted signal.
T gate 45, NOT gate 46 which inverts the synchronizing signal A and inputs it to NANDA-to 44, and N which inverts the carry signal G of counter 41 and inputs it to NANDA-to 44.
OT gate 47.

副動作実行期間信号発生回路5は副動作を実行する時間
を示す信号Hを出力するJKFF51と、JKFF51
のJ端子に接続されるNORゲート52と、JKFF5
1のに端子に接続されるNANDA−ト53と、同期信
号Aを反転してNANDA−ト53に入力するNOTゲ
ート54と、4ビツトのカウンタ41のキャリ信号Gを
反転して続いて動作について説明する。第2図は第1図
に示す実施例の動作について示したものである。
The sub-operation execution period signal generation circuit 5 includes a JKFF51 that outputs a signal H indicating the time to execute the sub-operation;
NOR gate 52 connected to the J terminal of JKFF5
1, a NOT gate 54 that inverts the synchronizing signal A and inputs it to the NAND gate 53, and inverts the carry signal G of the 4-bit counter 41. explain. FIG. 2 shows the operation of the embodiment shown in FIG.

まず、主カウンタ回路1の動作について述べる。First, the operation of the main counter circuit 1 will be described.

同期信号Aが第1図のNORゲート13と14とに入力
されることにより、同期信号Aが°H″。
By inputting the synchronization signal A to the NOR gates 13 and 14 in FIG. 1, the synchronization signal A becomes °H''.

状態になると第1のパラメータがセレクタ11を介して
反転されてカウンタ12にロードされて初期化される。
When the state is reached, the first parameter is inverted via the selector 11, loaded into the counter 12, and initialized.

NANDA−ト15には1Qと2Qとが入力されること
から、カウンタ12は同期信号Aが“H“状態になって
から主動作が実行終了するまでの間、カウントを続ける
ことになる。第1のパラメータに対応する値をロードさ
れた後、カウントを続けるカウンタ12は、その後、キ
ャリ信号Cを“H”状態にする。キャリ信号CはNOR
ゲート14に入力され、再びカウンタ12をロード状態
にするが、その時セレクタ11はNORゲート13にI
Qが入力されていることにより、第2のパラメータの反
転したものをカウンタ12に出力する。そして第2のパ
ラメータに対応する値をロードされた後、カウンタ12
はカウントを続け、再びキャリ信号Cを“H”状態にし
てカウントを終了する。
Since 1Q and 2Q are input to the NAND gate 15, the counter 12 continues counting from the time when the synchronizing signal A becomes "H" until the execution of the main operation is completed. After being loaded with the value corresponding to the first parameter, the counter 12, which continues counting, then sets the carry signal C to the "H" state. Carry signal C is NOR
The input is input to the gate 14, and the counter 12 is loaded again, but at that time, the selector 11 inputs I to the NOR gate 13.
Since Q is input, an inverted version of the second parameter is output to the counter 12. Then, after being loaded with the value corresponding to the second parameter, the counter 12
continues counting and sets the carry signal C to "H" again to end the counting.

次に、主動作実行期間信号発生回路3の動作について述
べる。
Next, the operation of the main operation execution period signal generation circuit 3 will be described.

同期信号Aの’H”°状態を初期化信号とJKFF31
のJ端子とNORゲート33とNOTゲート39とに入
力し、同期信号Aが゛H1状態になるとIQが“H”°
状態になり、2Qが“′L″°状態になる。カウンタ1
2のキャリ信号CがNANDA−ト35と37及びNO
Tゲート38に接続されており、IQがNANDA−ト
35に、そして2QがNANDA−ト37に接続されて
いることにより、IQが′°H0状態で、2Qが“″L
″゛状態の下でキャリ信号Cが°°H゛状態になると、
IQはL 11状態に、2QはH”状態に変化する。
The 'H'° state of synchronization signal A is the initialization signal and JKFF31
input to the J terminal, NOR gate 33, and NOT gate 39, and when the synchronizing signal A becomes "H1", IQ becomes "H".
state, and 2Q becomes "'L"° state. counter 1
2 carry signal C is NANDA-to 35 and 37 and NO
Since IQ is connected to NANDA gate 35 and 2Q is connected to NANDA gate 37, IQ is in the '°H0 state and 2Q is ""L".
When the carry signal C becomes the °°H state under the "" state,
IQ changes to L11 state and 2Q changes to H'' state.

そして、その後にキャリ信号CがH”状態になると、I
Qは“L”状態を続け、2Qは°′L゛状態に変化する
。以上の動作により、2Qは主動作を実行する期間を示
すゲート信号りとなる。
Then, when the carry signal C becomes H'' state, I
Q continues in the "L" state, and 2Q changes to the °'L" state. Through the above operations, 2Q becomes a gate signal indicating the period during which the main operation is executed.

引き続き、副カウンタ回路4の動作について説明する。Subsequently, the operation of the sub-counter circuit 4 will be explained.

同期信号AがNORゲート43とNOTゲート46に接
続されていることから、同期信号Aが“′H”状態にな
ることによりJKFF42のQ出力は“1、゛°状態に
初期化され、NOTゲート45の出力がカウンタ41の
ロード制御信号となり、かつNORゲート43が接続さ
れることにより、デコード回路2の出力Eが°°H′”
状態になった時に、カウンタ41は第3のパラメータを
ロードし2、JKFF42のQ出力が°’ H”状態に
なることにより、カウンタ41はカウントを開始する。
Since the synchronization signal A is connected to the NOR gate 43 and the NOT gate 46, when the synchronization signal A becomes "'H" state, the Q output of JKFF42 is initialized to "1," state, and the NOT gate 45 becomes a load control signal for the counter 41, and by connecting the NOR gate 43, the output E of the decoding circuit 2 becomes °°H'"
When the state is reached, the counter 41 loads the third parameter 2, and when the Q output of the JKFF 42 becomes the °'H" state, the counter 41 starts counting.

そして、カウンタ41のカウント値Fが最大になった時
にカウンタ41のキャリ信号Gが゛Hパ状態になり、カ
ウンタ41はカウントを中止する。そして再び、デコー
ド回路2の出力Eが゛H“状態になれば、カウンタ41
は第3のパラメータを再びロードし、カウント値Fが最
大になるまでカウントを実行し、キャリ信号Gを“H1
1状態にしてカウントを中止する。
Then, when the count value F of the counter 41 reaches the maximum, the carry signal G of the counter 41 goes into the high state, and the counter 41 stops counting. Then, when the output E of the decoding circuit 2 becomes "H" state again, the counter 41
loads the third parameter again, executes counting until the count value F reaches the maximum, and sets the carry signal G to “H1”.
1 state and stop counting.

次に副動作実行期間信号発生回路5の説明を行う。同期
信号AはNOR回路52とNOT回路54に接続される
ことにより、同期信号Aが゛14パ状態になることによ
ってJKFF51のQ出力、即ち副動作を実行する期間
を示すゲート信号Hは“L°゛状態に初期化され、同期
信号Aが“H”状態になった後の最初に副カウンタ回路
4の4ビツトカウンタ41のキャリ信号Gが“H++状
態になると、副動作を実行する期間を示すゲート信号H
は°゛H°°H°°状態、同期信号Aが“H”状態にな
った後の2回目にキャリ信号Gが“14”°状態になる
と、副動作を実行する期間を示すゲート信号Hは″L 
”状態に戻る。
Next, the sub-operation execution period signal generation circuit 5 will be explained. Since the synchronization signal A is connected to the NOR circuit 52 and the NOT circuit 54, the Q output of the JKFF 51, that is, the gate signal H indicating the period during which the sub-operation is executed, becomes "L" when the synchronization signal A enters the 14 state. When the carry signal G of the 4-bit counter 41 of the sub-counter circuit 4 becomes the "H++" state for the first time after the synchronization signal A becomes the "H" state, the period for executing the sub-operation is set. gate signal H
is in the °゛H°°H°° state, and when the carry signal G becomes the “14” state for the second time after the synchronization signal A becomes the “H” state, the gate signal H indicating the period for executing the sub-operation is activated. is ″L
“Return to state.

以上の説明から判明するように、副動作を開始する時刻
及び副動作が終了する時刻は、デコー「回路2の出力E
が“H”状態になってから第3のパラメータに対応する
時刻分だけ後である。即ち、第2図にΔで示すように第
3のパラメータにより、主動作と副動作との動作開始時
刻の相違分及び動作終了時刻の相違分を可変にすること
ができ、かつ動作開始時刻の相違分と動作終了時刻の相
違分とは同一に保つことができる。
As is clear from the above explanation, the time when the sub-operation starts and the time when the sub-operation ends are determined by the decoder "output E of circuit 2".
This is a time corresponding to the third parameter after the current state becomes "H". That is, as shown by Δ in FIG. 2, by using the third parameter, the difference in the operation start time and the difference in the operation end time between the main operation and the sub-operation can be made variable, and the difference in the operation start time can be made variable. The difference and the difference in operation end time can be kept the same.

第1図中のA、B、C,・・・・・・、Hは第2図中の
A、B、C,・・・・・・、Hにそれぞれ対応する。ま
た、第1図中のTはクロック、Rはリセット信号を表わ
す。
A, B, C, . . . , H in FIG. 1 correspond to A, B, C, . . . , H in FIG. 2, respectively. Further, T in FIG. 1 represents a clock, and R represents a reset signal.

なお、上記実施例では副動作の数を1つとしたが、副動
作の数は複数でもよく、この場合は主カウンタ回路1内
のカウンタ12のカウント値Bを複数のデコード回路に
入力し、それぞれのデコード回路に対してそれぞれ副カ
ウンタ回路や副動作実行期間信号発生回路を有してもよ
く、また1つのデコード回路の出力を複数の副カウンタ
回路に入力し、複数の第3のパラメータを使用して、そ
れぞれの副カウンタ回路に副動作実行期間信号発生回路
を有する構成としてもよい。
In the above embodiment, the number of sub-operations is one, but the number of sub-operations may be plural. In this case, the count value B of the counter 12 in the main counter circuit 1 is input to a plurality of decoding circuits, and each Each of the decoding circuits may have a sub-counter circuit and a sub-operation execution period signal generation circuit, and the output of one decoding circuit may be input to a plurality of sub-counter circuits and a plurality of third parameters may be used. Thus, each sub-counter circuit may have a sub-operation execution period signal generation circuit.

(発明の効果〕 以上のように、この発明によれば、主カウンタ回路と、
主カウンタ回路のカウント値をデコードするデコード回
路と、デコード回路の出力を起動信号として入力する副
カウンタ回路と、副カウンタ回路の出力により副動作が
実りされる期間をホずゲート倍角を出力する副動作実行
期間信号発生回路と、主カウンタ回路の出力により主動
作か実行される期間を示すゲート信号を出力する主動作
実行期間信号発生回路とを備えた構成としたので、少な
いビット数のパラメータ入力で、かつ小さい回路規模で
動作実行期間が等しく、動作開始時刻のみが異なる複数
の動作を有するタイミング発生回路を得ることができる
(Effects of the Invention) As described above, according to the present invention, the main counter circuit and
A decoding circuit that decodes the count value of the main counter circuit, a sub-counter circuit that inputs the output of the decoding circuit as a start signal, and a sub-counter circuit that outputs the gate double angle without waiting for the period in which the sub-operation is realized by the output of the sub-counter circuit. The configuration includes an operation execution period signal generation circuit and a main operation execution period signal generation circuit that outputs a gate signal indicating the period during which the main operation is executed based on the output of the main counter circuit, allowing parameter input with a small number of bits. In addition, it is possible to obtain a timing generation circuit having a plurality of operations having the same operation execution period and differing only in operation start time with a small circuit scale.

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

第1図はこの発明の一実施例によるタイミング発生回路
を示す図、第2図はこの発明の一実施例によるタイミン
グ発生回路の動作を示す図、第3図は従来のタイミング
発生回路を示す図、第4図は第3図の従来のタイミング
発生回路の動作を示す図である。 1・・・主カウンタ回路、2・・・デコード回路、3・
・・主動作実行期間信号発生回路、4・・・副カウンタ
回路、5・・・副動作実行期間信号発生回路。 なお図中同一符号は同−又は相当部分を示す。
FIG. 1 is a diagram showing a timing generation circuit according to an embodiment of the present invention, FIG. 2 is a diagram illustrating the operation of a timing generation circuit according to an embodiment of the invention, and FIG. 3 is a diagram illustrating a conventional timing generation circuit. , FIG. 4 is a diagram showing the operation of the conventional timing generation circuit of FIG. 3. 1... Main counter circuit, 2... Decode circuit, 3...
. . . Main operation execution period signal generation circuit, 4 . . . Sub counter circuit, 5 . . . Sub operation execution period signal generation circuit. Note that the same reference numerals in the figures indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] (1)動作の基準となる信号(以後、同期信号と呼ぶ)
に対して周期的に実行される複数の動作が存在し、外部
から入力されるパラメータにより同期信号から動作を開
始する時刻と、動作を実行する時間とを設定できるタイ
ミング発生回路において、 同期信号を初期化信号として、一定周波数のクロックに
より、同期信号から主動作を開始する時刻を設定する第
1のパラメータと、主動作を実行する時間を設定する第
2のパラメータとに対応する値を計数する主カウンタ回
路と、 この主カウンタ回路の出力により主動作を実行する期間
を示すゲート信号を発生する主動作実行期間信号発生回
路と、 動作を実行する時間は主動作が動作する時間と同じで同
期信号から動作を開始する時刻のみが異なる副動作に対
して、上記主カウンタ回路のカウント値をデコードし、
このデコードした信号をカウント開始信号として主カウ
ンタ回路と同じクロックにより、主動作との動作開始時
刻の相違分を設定する第3のパラメータに対応する値を
計数する副カウンタ回路と、 この副カウンタ回路の出力により、副動作を実行する期
間を示すゲート信号を発生する副動作実行期間信号発生
回路とを備えたことを特徴とするタイミング発生回路。
(1) Signal that serves as a reference for operation (hereinafter referred to as synchronization signal)
In a timing generation circuit, there are multiple operations that are executed periodically, and the time to start the operation and the time to execute the operation can be set from the synchronization signal by parameters input from the outside. As an initialization signal, a clock with a constant frequency is used to count values corresponding to a first parameter that sets the time to start the main operation from the synchronization signal and a second parameter that sets the time to execute the main operation. The main counter circuit and the main operation execution period signal generation circuit, which generates a gate signal indicating the period during which the main operation is executed based on the output of this main counter circuit, are synchronized so that the operation execution time is the same as the main operation operation time. Decode the count value of the main counter circuit for sub-operations that differ only in the start time of the operation from the signal,
a sub-counter circuit that uses the decoded signal as a count start signal and counts a value corresponding to a third parameter that sets the difference in operation start time from the main operation using the same clock as the main counter circuit; 1. A timing generation circuit comprising: a sub-operation execution period signal generation circuit that generates a gate signal indicating a period in which the sub-operation is to be executed based on the output of the sub-operation execution period signal generation circuit.
JP20436389A 1989-08-07 1989-08-07 timing generation circuit Pending JPH0368213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20436389A JPH0368213A (en) 1989-08-07 1989-08-07 timing generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20436389A JPH0368213A (en) 1989-08-07 1989-08-07 timing generation circuit

Publications (1)

Publication Number Publication Date
JPH0368213A true JPH0368213A (en) 1991-03-25

Family

ID=16489276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20436389A Pending JPH0368213A (en) 1989-08-07 1989-08-07 timing generation circuit

Country Status (1)

Country Link
JP (1) JPH0368213A (en)

Similar Documents

Publication Publication Date Title
US5327019A (en) Double edge single data flip-flop circuitry
EP0017091B1 (en) Two-mode-shift register/counter device
JPH08307247A (en) N+1 frequency dividing counter and its method
JPH0795013A (en) Edge-triggered flip-flop
KR950012058B1 (en) Register control circuit
JPH0368213A (en) timing generation circuit
JP3148445B2 (en) Multiplexer circuit
US6091794A (en) Fast synchronous counter
US20030208513A1 (en) High speed programmable counter architecture
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
CN203813760U (en) Shift frequency divider circuit
JP2659186B2 (en) Digital variable frequency divider
JPH0352041Y2 (en)
JP2643470B2 (en) Synchronous counter
JPH0429248B2 (en)
JP2504190B2 (en) Chattering prevention circuit
JPH0815392A (en) Test mode setting circuit
SU1332328A1 (en) Processor
KR100437833B1 (en) clock signal switch circuit
JPH06101673B2 (en) Flip-flop circuit
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JPS62122324A (en) Programmable counter circuit
Mitchell Sequential Logic
JPH10290156A (en) Test circuit for multi-stage counter
JPH02110747A (en) Watch dog timer