JPS58178633A - Programmable counter - Google Patents

Programmable counter

Info

Publication number
JPS58178633A
JPS58178633A JP6087582A JP6087582A JPS58178633A JP S58178633 A JPS58178633 A JP S58178633A JP 6087582 A JP6087582 A JP 6087582A JP 6087582 A JP6087582 A JP 6087582A JP S58178633 A JPS58178633 A JP S58178633A
Authority
JP
Japan
Prior art keywords
signal
preset
counter
output
input
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
JP6087582A
Other languages
Japanese (ja)
Inventor
Yasuhiro Shin
真 康博
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP6087582A priority Critical patent/JPS58178633A/en
Publication of JPS58178633A publication Critical patent/JPS58178633A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K23/00Pulse counters comprising counting chains; Frequency dividers comprising counting chains
    • H03K23/64Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two
    • H03K23/66Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses
    • H03K23/665Pulse counters comprising counting chains; Frequency dividers comprising counting chains with a base or radix other than a power of two with a variable counting base, e.g. by presetting or by adding or suppressing pulses by presetting
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/43Speed, acceleration, deceleration control ADC
    • G05B2219/43008Deceleration and stopping

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To prevent malfunction by suppressing the operation of a means to generate a preset signal obtained by decoding an output from a counter during the presetting of the counter. CONSTITUTION:A ripple carrier type programmable counter consisting of FF f1-f8 executes its counting operation by an input signal fIN, and when the counted value reaches a prescribed value, sends a signal X2 to a shift register F9. The shift register F9 delays the signal X2 by a prescribed time, sends a signal Y2 to a Prn among the Pr terminals of the FF f1-f8 and sets up the data of terminals D1-D8. Since the signal X2 is obtained by connecting OR circuits G6, G7, G8 and an NOR circuit G9 as shown in the figure in this invention, the signal X2 is not outputted during the output of the signal Y2, preventing the malfunction.

Description

【発明の詳細な説明】 この発明は、分周比を外部のプログラムにより任意に設
定しうるプログラマゾルカウンタに関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a programmer counter whose frequency division ratio can be arbitrarily set by an external program.

プログラマゾルカウンタとしては、カウンタを構成する
すべてのフリップフロップを同一のクロックパルスで動
作させる同期方式のものと、前段の出力をクロックとし
て受けて、後段が動作するリツプルキャ針i式のものと
がおる。
There are two types of programmer counters: one is a synchronous type in which all flip-flops that make up the counter operate with the same clock pulse, and the other is a ripple-type counter in which the latter stage operates using the output of the previous stage as a clock. .

両者を比較した場合、後者の方が素子数が少なく、壕九
、前者ではすべてのフリラグフロップが入力周波数で動
作する必要があるのに対し、後者は第1段目のみ最高周
波数で動作し、以降の段の動作周波数は低減するため素
子の必要性能を考慮して、有効な設計を行うためには、
後者がLSI(大規模集積回路)K使用される。
When comparing the two, the latter has a smaller number of elements, and the former requires all free-lag flops to operate at the input frequency, whereas the latter requires only the first stage to operate at the highest frequency. , the operating frequency of subsequent stages will be reduced, so in order to carry out an effective design, taking into account the required performance of the element,
The latter is used in LSI (large scale integrated circuit).

第1図は、現在一般に使用されているリップルキャ1斤
型プログラマ!ルカウ/りのブロック図である。この第
1図において、fl−f8はバイナリカウンタを構成す
るフリップフロラ!(以下、FFと’4略fる)で、D
I 〜D8は”Ffl−rBをプリセットするデータ入
力端子であfi、FF(l〜f8のPr端子に「H」レ
ベルが与えられたと暑に’F fl −f 8 o出力
端子01−08はそれぞれ、データ入力端子D1〜D8
に与えられてぃゐデータにし九がってプリセットされる
4のとする。
Figure 1 shows the Ripple Car one-loaf type programmer that is currently commonly used! It is a block diagram of Lucau/R. In this FIG. 1, fl-f8 is a flip flora which constitutes a binary counter! (hereinafter referred to as FF), D
I to D8 are data input terminals for presetting Ffl-rB. Data input terminals D1 to D8, respectively.
4, which is preset according to the given data.

次に1この回路の動作の概略を説明する。入力信号IN
をカウントダウン(分周)して行き、FPの出力がO1
=「O」、02−r OJ、03−rlJ、04=05
=06−08−rOJ、すなわち110進数の〔4〕と
なったとき、ff−)G4の出力はrHJレベルとなる
Next, an outline of the operation of this circuit will be explained. Input signal IN
is counted down (divided), and the output of FP becomes O1.
= “O”, 02-r OJ, 03-rlJ, 04=05
=06-08-rOJ, that is, [4] in decimal, the output of ff-)G4 becomes rHJ level.

この検出信号を入力信号と同期して動作する7フトレノ
スタF9で、3ビット遅らせて#’Ffl〜f8のh端
子にプリセット信号を与える。この瞬間ffck?F 
El −f 8祉データ入カ端子D I −D Bに入
力されているデータ信号をプリセットする。
This detection signal is delayed by 3 bits by a 7-ftreno star F9 that operates in synchronization with the input signal, and is applied to the h terminals of #'Ffl to f8 as preset signals. This moment ffck? F
El-f 8 Presets the data signal input to the data input terminal DI-DB.

プリセットがかかつ死後、シフトレジスタF9の09出
力は「o」レベルに反転して、再び、入力信号fINに
ょ)カウンタ計数動作を続ける。
After the preset is completed, the 09 output of the shift register F9 is inverted to the "o" level, and the counter continues counting again with the input signal fIN.

g l 図OF’F f1〜f8の〔4〕の検出回路に
おいて、f−)Gl〜G404つを使用しているのは、
以下の理由による。多段入力f−)は入力から出力への
伝達遅延時間が増加するため、入力信号fINの周波数
の低下を招くため、使用できない。
g l Figure OF'F In the [4] detection circuit of f1 to f8, the four f-) Gl to G40 are used.
This is due to the following reasons. Multistage input f-) cannot be used because it increases the propagation delay time from the input to the output, resulting in a decrease in the frequency of the input signal fIN.

ま九、〆ウンヵクンタの出カ;−ドは、上位ピッ)(O
S)より順次「o」レベルに変化して行く丸め、〔4〕
の検出の遅れはFF f8の08信号ではなく、下位ピ
ッ)(1’f’flの01信号)Kよってのみ決定され
るように構成する必要がある。
9, the output of Unkakunta;-do is the top pick) (O
S) Rounding that changes sequentially to "o" level, [4]
It is necessary to configure the circuit so that the detection delay of FF is determined not by the 08 signal of FF f8, but only by the lower pitch (01 signal of 1'f'fl) K.

このため、〔4〕の検出回路は上位ピッ) (08)は
f−)G2 、G3 、G4を経てくるが、下位ピッ)
(01)はr−)G4のみを経て構成するとととなる。
For this reason, the detection circuit [4] passes through G2, G3, and G4, but the upper pitch (08) passes through G2, G3, and G4, but the lower pitch)
When (01) is configured through only r-)G4, it becomes .

なお、第1図のVlはr−トG2の出力信号、Wlはグ
ー)G3の出力信号である。
Note that Vl in FIG. 1 is the output signal of r-G2, and Wl is the output signal of R-G3.

第2図は、このプログラムカウンタの動作を、プログラ
ム値[132]の場合について示したタイミングチャー
トである。第2図(−は入力信号flNを示し、第2図
(b)〜第2図(i)はそれぞれFF fl〜f8の出
力端子01〜08の出力信号を示し、第2図(j)はr
−トG4の出力信号Xi、第2図■はシフトレジスタF
9の出力信号Y1を示している。
FIG. 2 is a timing chart showing the operation of this program counter in the case of the program value [132]. Fig. 2 (- indicates the input signal flN, Fig. 2(b) to Fig. 2(i) show the output signals of the output terminals 01 to 08 of FF fl to f8, respectively, and Fig. 2(j) r
- Output signal Xi of gate G4, ■ in Figure 2 is shift register F
9 shows the output signal Y1.

なお、第2図(転)のPrはグリセット区間である。Note that Pr in FIG. 2 (roll) is a grisset section.

リップルキャリ一方式のプログラマブルカウンタにおい
ては、前段OFF出力を受けて後段のi?Fが動作する
ため、入力信号flNの入力周波数が高い場合には、各
11’Fの入出力伝達遅延時間の影響を受け、第2図の
タイミングチャートは第3図に示すようになる。第3図
(亀)は入力信号fINであシ、第3図伽)〜第3図(
1)はそれぞれi?Ffl−f8の出力端子01〜08
の出力信号である。第3図0)はf−) G 2の出力
信号V1.第3図(財)は?−)G3の出力信号Wlで
あシ、第3図(1)はr−IO2の出力信号X11第3
図(ハ)はシフトレジスタF9の出力信号Y1である。
In a ripple carry one-way programmable counter, the i? Since F operates, when the input frequency of the input signal flN is high, it is affected by the input/output transmission delay time of each 11'F, and the timing chart of FIG. 2 becomes as shown in FIG. 3. Figure 3 (tortoise) is input signal fIN.
1) is each i? Output terminals 01 to 08 of Ffl-f8
is the output signal of 30) is the output signal V1. of f-) G2. What about figure 3 (goods)? -) G3 output signal Wl, Figure 3 (1) shows r-IO2 output signal X11.
Figure (c) shows the output signal Y1 of the shift register F9.

〔4〕を検出する場合に、データ入力端子Di〜D8の
データ信号が[:132](01=rOJ、02=rO
J、03=rl J、04=05=06−07−rOJ
、os−rxJ)では出力信号Y1(グリセット信号)
がrHJレベルとなつ九直後、f−)G2.G3および
上位ビットよシの配線容量による遅れなどによ〕、第3
図Aの出力信号XI(4検出信号)上の、2で示す信号
が発生してしまうこととなる。
When detecting [4], the data signals of data input terminals Di to D8 are [:132] (01=rOJ, 02=rO
J, 03=rl J, 04=05=06-07-rOJ
, os-rxJ), output signal Y1 (grisset signal)
Immediately after the rHJ level and Natsu9, f-)G2. Due to delays due to wiring capacitance between G3 and upper bits], the third
A signal indicated by 2 on the output signal XI (4 detection signals) in FIG. A will be generated.

この2信号が、「H」レベルとなっているときに、入力
信号flNが立ち上がると、シフトレジスタF9の出力
信号Yl、すなわち、プリセット信号Ylは正常なプリ
セラトノ臂シスh以外にもプリセット・母シスPr’を
発生することとなる。このため、カウント値も(132
)で嬬なく3カウント多くカウントして(135)カウ
ントとなシミスカウントしてしまう。
When the input signal flN rises while these two signals are at the "H" level, the output signal Yl of the shift register F9, that is, the preset signal Yl, is output to the preset/mother system in addition to the normal preseraton system h. Pr' will be generated. Therefore, the count value is also (132
), I ended up counting 3 counts too many times and ended up with a miscount (135).

この現象はプログラマブルカウンタのビット数がさらに
多くなった場合や、第1図の場合には(132)以外で
も(36)、(68)でも発生することとなる。
This phenomenon occurs when the number of bits of the programmable counter increases, or in the case of FIG. 1, it occurs at (36) and (68) as well as at (132).

この発明はリツプルキャ呂式の上記欠点をなくシ、どの
ようなプログ2ム値においても同期式のものとほぼ同等
の最高動作周波数を4見られるグログラマ!ルカウンタ
を得ることを目的とする。
This invention eliminates the above-mentioned drawbacks of the Ripple Charging type, and provides a Glogrammer that can achieve a maximum operating frequency that is almost the same as that of the synchronous type at any program value! The purpose is to obtain a counter.

以下、この発明のプログラマプルカウンタの実施例につ
いて図面に基づ禽説明する。この発明は、プリセット信
号が発生している区間、4検出回路に禁止をかけるとい
う手法を採っている。
Hereinafter, embodiments of the programmable counter of the present invention will be explained based on the drawings. This invention employs a method of prohibiting the four detection circuits during the period in which the preset signal is generated.

この発明は、プログラマグルカウンタがダウンカウント
動作を行う場合でも、アップカウント動作を行う場合で
も同様に使用することが可能であるが、ここではダウン
カウント動作の場合についてのみ述ペーることにする(
アップカウント動作の場合における検出値は最下位ビッ
トからの3ビツトを(110)にすればよい)。
Although this invention can be used in the same way whether the programmable counter performs a down-count operation or an up-count operation, only the case of a down-count operation will be described here.
For the detection value in the case of up-counting operation, the three bits from the least significant bit should be (110)).

第4図に1この発明の第1の実施例のブロック図を示す
。この第4図において、信号入力端子fINijFF 
flのCP1入力端子とシフトレジスタF9のCP入力
端子に接続されている。P’Fflの01出力端子はE
f’に’f2のCP2入力端子と3人力N0Rr−)G
9の第2入力端子に接続され、F’F f2の02出力
端子はFF f3のCP3入力端子と、3人力0Rf−
)G8の第1入力端子に接続され、FFf3の03出力
端子はFFf4のCP4人力喝子と、インバータG5を
通してORゲート08の第2入力端子に接続されている
FIG. 4 shows a block diagram of a first embodiment of the present invention. In this FIG. 4, the signal input terminal fINijFF
It is connected to the CP1 input terminal of fl and the CP input terminal of shift register F9. The 01 output terminal of P'Ffl is E
f' to 'f2's CP2 input terminal and 3-man power N0Rr-)G
The 02 output terminal of F'F f2 is connected to the CP3 input terminal of FF f3, and the 0Rf-
) is connected to the first input terminal of G8, and the 03 output terminal of FFf3 is connected to the second input terminal of OR gate 08 through the CP4 input terminal of FFf4 and the inverter G5.

)”Ff4の04出力層子はFFf5のCP5入力端子
と3人力0Rf−)G7の第1入力端子に接続サレ、F
F’fl)05出力端子FiM’P’ f6(DCP6
入力端子と0Rr−トG7の第2入力端子に接続されて
いる。
)"The 04 output layer of Ff4 is connected to the CP5 input terminal of FFf5 and the first input terminal of 0Rf-)G7.
F'fl)05 output terminal FiM'P' f6(DCP6
It is connected to the input terminal and the second input terminal of 0Rr-toG7.

FFf6の06出力端子iiE’Ff7のCP7入力端
子と3人力ORゲートG6の第1入力端子に接続され、
FFf7の07出力端子はかFf8のCP8入力端子と
ORゲートG6の第2入力端子に接続され、FFf8の
08出力端子は0Re−トG6の第3入力端子に接続さ
れている。
06 output terminal of FFf6 iiE' is connected to the CP7 input terminal of Ff7 and the first input terminal of the three-man OR gate G6,
The 07 output terminal of FFf7 is connected to the CP8 input terminal of FF8 and the second input terminal of OR gate G6, and the 08 output terminal of FFf8 is connected to the third input terminal of 0Re-to G6.

また、!リセットデータ信号を入力するデータ入力端子
DI−D8は、それぞれ、FFfl〜FFf8のプリセ
ットデータ入力端子KIi!I絖されている。
Also,! The data input terminal DI-D8 that inputs the reset data signal is the preset data input terminal KIi! of FFfl to FFf8, respectively. I have been threaded.

上記ORグー)G6の出力端子はORグー) G7の第
3入力端子に接続され、ORグー)G7の出力端子はO
Rグー)G8の第3入力端子に接続され、0Rff−ト
G8O出力端子はN0In”−)G9の第3入力端子に
接続され、N0Rr−)G9の出力端子は3ビツトシフ
トレジスタF9の入力端子INにinされ、シフトレジ
スタF9の出力端子09はpFfl−FFf8のプリセ
ット入力端Prl 〜Pr8および、N0Rff−トG
9の第1入力端子に接続されている。なお、U2はOR
グー)G6の出力信号、■2は0Rr−)G7の出力信
号、X2はN0Rf−)G9の出力信号、Y2はシフト
レジスタF9の出力信号、W2は0Rr−)G8の出力
信号である。
The output terminal of the above OR goo) G6 is connected to the third input terminal of OR goo) G7, and the output terminal of OR goo) G7 is O
The output terminal of N0In''-)G9 is connected to the third input terminal of G9, and the output terminal of N0Rr-)G9 is the input terminal of 3-bit shift register F9. IN, and the output terminal 09 of the shift register F9 is connected to the preset input terminals Prl to Pr8 of pFfl-FFf8 and N0Rff-G.
9 is connected to the first input terminal. In addition, U2 is OR
2 is the output signal of 0Rr-)G7, X2 is the output signal of N0Rf-)G9, Y2 is the output signal of shift register F9, and W2 is the output signal of 0Rr-)G8.

また、第5図は第4図のブロック図各部の動作波形図を
示すタイミングチャートであシ、図中fINb01〜0
8は第4図中の記号と同じ部分を示している。第5図侃
)は入力信号fINs第5図(ト))〜第5図0)はそ
れぞれFFfl〜FF f8のO1出力端子〜08出力
端子の出力信号を示し、第5図0)は0Rr−トG6の
出力信号、第5固転)は0Rr−トG7の出力信号、第
5図(1)はORグー)G8の出力信号、第5図−はN
ORORゲートG9力gI号、第5図面はシフトレジス
タl’9の出力信号をそれぞれ示している。
In addition, FIG. 5 is a timing chart showing operation waveforms of each part of the block diagram in FIG.
8 indicates the same part as the symbol in FIG. Fig. 5(h)) shows the input signal fINs Fig. 5(g)) to 5(0) show the output signals of the O1 output terminal to 08 output terminal of FFfl to FF f8, respectively, and Fig. 5(0) shows the output signal of 0Rr- The output signal of G6 (5th fixed rotation) is 0Rr - the output signal of G7, Figure 5 (1) is the output signal of ORG8, Figure 5 - is N
The fifth drawing shows the output signals of the shift register l'9, respectively.

第5図のタイミングチャートは第4図のグログクムデー
タが(132)の場合である。
The timing chart in FIG. 5 is for the case where the Grogkum data in FIG. 4 is (132).

FF  fi〜FF f8が入力信号fINを入力する
入力端子に入力されるノ譬シス信号によシカラントダウ
ンして行き、インバータG5.ORゲート06〜G8、
NORORゲートG9J)FFfl〜f8の出力が〔4
〕になることが検出され九と*oRrORゲートG9d
rHJレベルとなる。
FF fi to FF f8 are sicated down by the error signal input to the input terminal to which the input signal fIN is input, and the inverter G5. OR gate 06~G8,
The output of NOROR gate G9J) FFfl~f8 is [4
] is detected and *oRrOR gate G9d
rHJ level.

この〔4〕の検出信号はシフトレジスタF9によシ3ビ
ット遅延され、その出力信号Y2はすなわち、!リセッ
ト信号Y2となJ) FF fl −FF f8にデー
タ入力端子D1〜D8に設定されているコード信号をプ
リセットすると同時KNORダートG90入力端入力端
子力されるため、強制的にNORダーグー9の出力信号
をrLJレベルとする。
This [4] detection signal is delayed by 3 bits by shift register F9, and its output signal Y2 is, ! Reset signal Y2 and J) When presetting the code signal set to the data input terminals D1 to D8 to FF fl - FF f8, the KNOR Dart G90 input terminal is input at the same time, so the output of the NOR Dart 9 is forced. The signal is set to rLJ level.

このため、グリセットデータが(132)の場合であっ
ても最上位ビットのrHJレベルの伝達遅延(ORグー
)G6〜G8による)による4の検出誤動作が起きず、
正常にプリセットデータ(132)がFFfl〜f8に
プリセントされ、プリセット信号解除後カウントダウン
動作に移る。
Therefore, even if the reset data is (132), the detection error of 4 due to the transmission delay (OR delay) of the rHJ level of the most significant bit (due to G6 to G8) will not occur.
The preset data (132) is normally preset to FFfl to f8, and after the preset signal is released, the countdown operation starts.

したがって、第4図、第5図から明らかなように、プリ
セットカウンタが多段接続され、また、どのようなプロ
グラム値が設定された場合でも、上位ビットからの4の
検出回路の伝達遅延による誤動作がなく、入力信号fI
Nの最高動作周波数が改善できる。
Therefore, as is clear from FIGS. 4 and 5, even if the preset counters are connected in multiple stages and whatever program value is set, malfunctions due to the transmission delay of the detection circuit 4 from the upper bits will not occur. without input signal fI
The maximum operating frequency of N can be improved.

また、検出値として〔4〕以外にも(2)、(8)。In addition to [4], there are also (2) and (8) as detected values.

〔12〕、・・・・・・なども考えられるが前述と同様
にノリセット信号によシ検出回路に禁止をかければよい
[12], . . . etc. are also conceivable, but it is sufficient to prohibit the detection circuit by using a reset signal in the same way as described above.

以上の説明では、プリセット信号と〔4〕の検出回路部
の遅延に関して述べたが、さらに、グログラマプルカウ
ンタの段数が増加した場合には、以下の点も考慮する必
要がある。
In the above explanation, the delay between the preset signal and the detection circuit section [4] has been described, but when the number of stages of the grammatical pull counter increases, the following points also need to be taken into consideration.

総消費電流の低下、・中ターン面積の縮少化、さらに、
上位ビットの入力周波数が低いなどの理由によシ、実際
に第4図の回路をIC化した場合に下位ピッ)(FFf
l)から上位ビット(FF f8)へ行くにしたがいノ
臂ターンを小さくすることになる。
Reduction in total current consumption, reduction in middle turn area, and
Due to reasons such as the low input frequency of the upper bits, when the circuit shown in Figure 4 is actually integrated into an IC, the lower bits (FFf)
1) to the upper bit (FF f8), the arm turn becomes smaller.

このと!1人力信号fINの周波数が高い場合に、ブリ
セラ) ノ4シスが入力信号fINの1ノ中シス区間し
かないため上位ピッ)(FFf8)Kとって十分な!リ
セット時間がない。
Konoto! When the frequency of the human input signal fIN is high, the upper pitch (FFf8)K is sufficient because the input signal fIN has only the middle interval of the input signal fIN. There is no time to reset.

また、プリセットされても〔4〕の検出回路の一相の遅
延を招き、十分な〔4〕の検出回路の禁止がかからない
場合も出てくる。
Further, even if preset is performed, one phase of the detection circuit [4] will be delayed, and there may be cases where the detection circuit [4] is not inhibited sufficiently.

このため、プリセットパルスのrHJ区関を入力信号f
iN12)1/fルスシスではなくs 2i+ルス、さ
らに3/譬ルシス間と、増加することにょシ、消費電流
およびl C/4タ一ン面積とも減少させても最高動作
周波数が変わらない(IC化を行った場合には良品率が
改善される。)プログ2マプルカウンタが構成できる。
Therefore, the rHJ section of the preset pulse is changed to the input signal f.
iN12) The maximum operating frequency does not change even if the current consumption and lC/4 tandem area are reduced, as the current consumption increases and the current consumption and lC/4 tandem area decrease (IC (The rate of non-defective products will be improved if this is done.) A program 2 mapple counter can be configured.

これを第2の実施例として第6図に部分ブロック図を示
す。この第6図は前述のブリセットノヤシスを入力信号
fINの2ノ母シス区間分とした場合の回路図である。
FIG. 6 shows a partial block diagram of this as a second embodiment. This FIG. 6 is a circuit diagram in the case where the aforementioned brisset noisys is set for 2 geneross intervals of the input signal fIN.

第4図では、単なる3ビツトシフトレジスタF9を用い
たが、第6図は3ピツトシフトレジスタと2人力QRf
−)GIOによシ構成されることになる。すなわち、X
2は第4図N0Rf−トG9の出力信号ラインであシ、
これが、第1シフトレジスタ81のD1入力端子に接続
され、第1シフトレジスタS1のQl出力端子は次段の
第2シフトレジスタS2のD2入力端子に接続され、第
2シフトレジスタS2のQ2出力端子は次段の第3シフ
トレソスタS3のD3入力端子およびORグー)GIO
の第1入力端子に接続され、第3シフトレソスタS3の
Q3出力端子は0Rf−)GIOの第2入力端子に接続
されている。第1ないし第3のシフトレノスタ81〜S
3のクロック入力端CP9.CPIO,CPIIはすべ
て入力信号flNが入力され、ORグー)Gl Oの出
力端子はFFf1〜FFf8のPn〜Pnjlll子お
よび、NOI” −トG9の第1入力端子に接続される
(ORグー)GI Oの出力信号をY3とする。)。
In Fig. 4, a simple 3-bit shift register F9 is used, but in Fig. 6, a 3-bit shift register and a two-man QRf are used.
-) will be configured by GIO. That is, X
2 is the output signal line of N0Rf-G9 in FIG.
This is connected to the D1 input terminal of the first shift register 81, the Ql output terminal of the first shift register S1 is connected to the D2 input terminal of the second shift register S2 in the next stage, and the Q2 output terminal of the second shift register S2. is the D3 input terminal of the third shift resistor S3 in the next stage and the OR gate) GIO
The Q3 output terminal of the third shift resistor S3 is connected to the second input terminal of 0Rf-)GIO. First to third shift reno stars 81 to S
3 clock input terminal CP9. CPIO and CPII all receive the input signal flN, and the output terminal of GI (OR) is connected to the Pn to Pnjll children of FFf1 to FFf8 and the first input terminal of NOI''-G9. The output signal of O is assumed to be Y3.)

このように構成されたプリセット信号発生回路を第4図
のシフトレゾスフF9の代わシに使用し九場合のプログ
ラマブルカラyりのタイミングチャートを第7図に示す
。第7図(1)は入力信号fINを示し、第7図(b)
〜第7図(L)はI?F fl−FF f8のO1出力
端子〜08出力端子の出力信号を示し、第7図O)はO
Rグー)G6の出力信号、第7図(k)はOFt?’−
トG7c)出力信号、第7図(1)は0Rff−トG8
の出力信号、第7図に)はORグ” −トG 7の出力
信号、第7図(ロ)は0Rf−)GIOの出力信号をそ
れぞれ示している。
FIG. 7 shows a timing chart of a programmable color system in which the preset signal generating circuit configured as described above is used in place of the shift resolution F9 shown in FIG. FIG. 7(1) shows the input signal fIN, and FIG. 7(b)
~Figure 7 (L) is I? The output signals from the O1 output terminal to the 08 output terminal of F fl-FF f8 are shown, and O) in Fig. 7 is O.
R) The output signal of G6, Fig. 7 (k) is OFt? '−
G7c) Output signal, Figure 7 (1) is 0Rff-G8
FIG. 7) shows the output signal of the OR gate G7, and FIG. 7 (b) shows the output signal of the OR gate GIO.

タイミングチャートの第7図(n)の出力信号Y3(グ
リセット信号)のrHJ区間が、出力信号Y2(ノリセ
ット信号)のrHJ区関に対して2倍となっておシ、こ
の分、上位ピッ)(FFf8)のプリセットが容易に行
え、また、上位ピッ)(FFf8)のプリセット・4ル
スに対するセットアツプ時間の遅れと、4の検出回路の
f7)遅延時間による有効時間tも2倍に改善されるこ
とがわかる。
The rHJ interval of the output signal Y3 (grid reset signal) in FIG. 7(n) of the timing chart is twice the rHJ interval of the output signal Y2 (the reset signal). It is easy to preset the FF f8), and the effective time t due to the set-up time delay for the preset and 4 pulses of the upper FF f8 and the f7) delay time of the detection circuit 4 is doubled. I can see that it will be improved.

これは、プリセラ) ノ4シスを入力信号fINの2パ
ルス分としたためであl)、3ノ4シス分とすれば、3
倍に改善されることは明らかである。
This is because the number of pulses of the input signal fIN is taken as 2 pulses of the input signal fIN.
It is clear that this is a two-fold improvement.

また、検出値としてダウンカウンタでは〔4〕以外にも
、(2〕、(8]、(12)、・・・などが考えられ、
プリセットパルス幅を広くした方が、上記説明から明ら
かなように検出回路中FFのグリセットアツプ時間によ
る有効時間tが改善されるのであるが、反面、遅延用シ
フトレジスタの段数が1段(2検出時)、7段(8検出
時)、11段(12検出時)と増加し、入力信号fIN
の周波数で動作しなければならないFFの増加による、
ICノぞターンテ積の増加、消費電流の増加、さらに最
小分周可能プログラム数が制限されるために検出値とし
ては〔4〕ないし〔2〕が適しておシ、〔4〕が最適と
なる。
In addition, in addition to [4], the detection value of the down counter may be (2], (8), (12), etc.
As is clear from the above explanation, widening the preset pulse width improves the effective time t due to the reset up time of the FF in the detection circuit. ), 7 stages (when detecting 8), and 11 stages (when detecting 12), the input signal fIN
Due to the increase in FFs that must operate at the frequency of
[4] or [2] is suitable as the detection value, and [4] is optimal because of the increase in the IC's rotational product, the increase in current consumption, and the limitation on the minimum number of programs that can be divided. .

以上説明したように1との発明のプログラマブルカウン
タによれば、入力信号を複数段のプリセットカウンタで
カウントし、このプリセットカウンタの出力の組合せコ
ードが所定のコードになっ九ときプリセット信号を発生
し、このプリセット信号を所定のビット数だけ遅延して
全プリセットカウンタをプリセットさせるとともに、プ
リセット信号が遅延手段から出力されている間プリセッ
トカウンタの出力の組合せコードの発生を禁止するよう
にし九ので、低消費電力化、■cノリーン面積の小型化
、高度品率化が可能となる高速カウンタが構成できるの
で、テレビ、ラノオなどのPLL回路に使用することが
できる。
As explained above, according to the programmable counter of the invention No. 1, an input signal is counted by a plurality of stages of preset counters, and when the combination code of the output of this preset counter becomes a predetermined code, a preset signal is generated, This preset signal is delayed by a predetermined number of bits to preset all preset counters, and the generation of a combination code of the output of the preset counter is prohibited while the preset signal is output from the delay means, thereby reducing power consumption. It is possible to construct a high-speed counter that enables electric power generation, miniaturization of the area, and high product yield, so it can be used in PLL circuits for televisions, laptops, etc.

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

第1図は従来のプログラマブルカウンタを示すブロック
図、第2図(a)ないし第2図(財)および第3図(&
)ないし第3図(ロ)はそれぞれ第1図のプログラマブ
ルカウンタの各部の動作波形図、第4図はこの発明のプ
ログラマブルカウンタの一実施例を示すブロック図、第
5図(1)ないし第5図(6)はそれぞれ第4図のプロ
グラマブルカウンタの各部の動作波形図、第6図はこの
発明のプログラマブルカウンタの第2の実施例における
遅延手段゛の部分のノロツク図、第7図(a)ないし第
7図か)は第6図のブロックの各部の動作波形図である
。 D1〜D8・・・データ入力端子、f1〜f8・・・フ
リツノフロップ、F9・・・シフトレジスタ、G5・・
・インバータ、06〜G8.GIO・・・ORダート、
G 9−N ORf−ト、S 1−・・第1シフトレジ
スタ、S2・・・第2シフトレジスタ、S3・・・第3
シフトレジスタ。 特許出願人  沖電気工業株氏会社 第5図 P「 第7図 手続補正書 昭和57年9月−3日 特許庁長官着杉和夫 殿 ■、事件の表示 昭和57年 特 許 願第 608752発明の名称 プログラマツルカウンタ 3、補正をする者 事件との関係      特 許 出願人(02G)沖
電気工業株式会社 4代理人 5、補正命令の日付  昭和  年  月  日 (自
発)6、補正の対象 @細書の特許請求の範囲および発明の詳細な説明の−な
らびに脂肉の一部 7、補正の内容 別紙の通り l)明細書の12%許―求の範囲」を別紙の造り訂正す
る。 2)明111thI413貞15行fINJtffIN
Jと訂正する。 3)同3Jijl 7行および18行[o進数の」全削
除する。 4)同10頁12行rFFf−FFf8Jt”[FFf
l−FFf8J と訂正する。 5)同15頁12行1fす」全削除する86)同16a
13行1^に品」1c「高良品」と訂正する。 7)図面第3図、8g5図、第7図度別紙の通り訂正す
る。 2 特IF!F請求の範囲 (1)人力信号をカウントするための直列接続された第
1段から第n段のプリセットカウンタと、このプリセッ
トカウンタの出力の組合せコードが所定のコードになっ
たとき、プリセット信号を発生するノリセット信号発生
手段と、上記プリセットイb号を所定のピット数だけ遅
延させて上記プリセットカウンタの全段に入力し上記プ
リセットカウンタを所定のコードにプリセットするとと
もに、このプリセットカウンタをプリセットしている間
上記プリセット信号発生手段の動作全禁止する遅延回路
とを具備したプログラマツルカウンタ。 (2)プリセット信号発生手段は、Jiglないしjg
3段の上記グリセットカウンタの出力コードが[001
)または〔OIO〕になったとき、プリセット信号を発
生することt%徴とする特許請求の範囲第1項d己畝の
プログラマツルカウンタ。 (3)プリセット信号発生手段が第1ないし第3の上記
プリセットカウンタの出力コードが[001]または[
:110]t−検出すると、上記遅延回路が上記第1段
のグリセットカウンタで上記入力信号周期の1ないし3
倍のパルス巾を有するプリセット信号を出力することを
特徴とする特許請求の範囲ag1項記載のプログラマブ
ルカウンタ。 第5図 第7図
Figure 1 is a block diagram showing a conventional programmable counter, Figures 2 (a) to 2 (goods) and Figure 3 (&
) to 3(b) are operation waveform diagrams of each part of the programmable counter shown in FIG. 1, FIG. 4 is a block diagram showing an embodiment of the programmable counter of the present invention, and FIGS. Figure (6) is an operation waveform diagram of each part of the programmable counter of Figure 4, Figure 6 is a diagram of the delay means in the second embodiment of the programmable counter of the present invention, and Figure 7 (a). 7) are operation waveform diagrams of each part of the block in FIG. 6. D1-D8...Data input terminal, f1-f8...Flitno flop, F9...Shift register, G5...
・Inverter, 06~G8. GIO...OR dirt,
G9-N ORf-to, S1-...first shift register, S2...second shift register, S3...third
shift register. Patent Applicant Oki Electric Industry Co., Ltd. Figure 5 P "Figure 7 Procedural Amendment September-3, 1980 Mr. Kazuo Chikusugi, Commissioner of the Japan Patent Office, Indication of Case 1982 Patent Application No. 608752 Invention Name Programmer's Counter 3, Relationship with the case of the person making the amendment Patent Applicant (02G) Oki Electric Industry Co., Ltd. 4 Agent 5 Date of amendment order Showa Year Month Day (Spontaneous) 6 Subject of amendment @ Specifications As per the appendix for the scope of claims and detailed description of the invention, as well as part 7 of the content of the amendment, 1) 12% permitted scope of the specification is to be corrected in the appendix. 2) Ming 111thI413 Sada 15th line fINJtffIN
Correct it with J. 3) Delete all lines 7 and 18 of the same 3 Jijl [O-base number]. 4) Same page 10, line 12 rFFf-FFf8Jt” [FFf
Correct it to l-FFf8J. 5) Delete all of page 15, line 12, 1f. 86) Page 16a.
Correct line 13, 1^, to read ``Good quality'' 1c, ``High quality item.'' 7) Correct the drawings as shown in the attached sheets of Figures 3, 8g5, and 7. 2 Special IF! F Claims (1) Preset counters from the first stage to the nth stage connected in series for counting human input signals, and when the combination code of the output of this preset counter becomes a predetermined code, the preset signal is output. the preset signal generating means to generate, and the preset number b delayed by a predetermined number of pits and input to all stages of the preset counter to preset the preset counter to a predetermined code, and to preset the preset counter. and a delay circuit that completely inhibits the operation of the preset signal generating means during the preset signal generation means. (2) The preset signal generating means is Jigl or jg.
The output code of the 3-stage grisset counter is [001
) or [OIO], the programmable counter is characterized in that it generates a preset signal as a t% signal. (3) The output code of the first to third preset counters is [001] or [001] or [
:110] t- When detected, the delay circuit causes the first stage grise counter to detect 1 to 3 of the input signal period.
The programmable counter according to claim 1, wherein the programmable counter outputs a preset signal having twice the pulse width. Figure 5 Figure 7

Claims (1)

【特許請求の範囲】 (1)入力信号をカウントする丸めの直列接続された第
1段から第n段のプリセットカウンタと、このプリセッ
トカウンタの出力の組合せコードが所定のコードになっ
たとき、プリセット信号を発生するプリセット信号発生
手段と、上記グリセット信号を所定のビット数だけ遅延
させて上記プリセットカウンタの全段に入力し上記プリ
セットカウンタを所定のコードにプリセットするととも
K。 このプリセットカウンタをプリセットしている間上記グ
リセット信号発生手段の動作を禁止する遅延回路とを具
備したプログラマノルカウンタ。 (21f IJ上セツト号発生手段は、第1ないし第3
段の上記ノリセットカウンタの出力コードが(0011
または(010)になったとき、動作が禁止状態になる
ことを特徴とする特許請求の範囲第1項記載のプログラ
マゾルカウンタ。 (3)7”!J上セツト号発生手段が第1ないしjlI
3の上記プリセットカウンタの出力コードが[001]
または(11G)を検出すると、上記遅延回路が上記第
1段のプリセットカウンタで上記入力信号周期の1ない
し3倍のパルス巾を有するグリセット信号を出力するこ
とを特徴とする特許請求の範囲第1項記載のプログラマ
ゾルカウンタ。
[Claims] (1) When the combination code of the first to nth stages of preset counters connected in series for rounding that counts input signals and the output of this preset counter becomes a predetermined code, the preset A preset signal generating means for generating a signal, and a preset signal generating means for delaying the reset signal by a predetermined number of bits and inputting the delayed signal to all stages of the preset counter to preset the preset counter to a predetermined code. A programmer no counter comprising a delay circuit for inhibiting the operation of the reset signal generating means while the preset counter is being preset. (21f IJ upper set number generation means are the first to third
The output code of the above-mentioned reset counter of the stage is (0011
2. The programmer sol counter according to claim 1, wherein the programmer sol counter enters a prohibited state when the value becomes 010 or (010). (3) 7"!J upper set number generation means is the first to jlI
The output code of the above preset counter in 3 is [001]
or (11G), the delay circuit outputs a grisset signal having a pulse width of 1 to 3 times the period of the input signal at the first stage preset counter. The programmer sol counter described in item 1.
JP6087582A 1982-04-14 1982-04-14 Programmable counter Pending JPS58178633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6087582A JPS58178633A (en) 1982-04-14 1982-04-14 Programmable counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6087582A JPS58178633A (en) 1982-04-14 1982-04-14 Programmable counter

Publications (1)

Publication Number Publication Date
JPS58178633A true JPS58178633A (en) 1983-10-19

Family

ID=13154986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6087582A Pending JPS58178633A (en) 1982-04-14 1982-04-14 Programmable counter

Country Status (1)

Country Link
JP (1) JPS58178633A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006317295A (en) * 2005-05-13 2006-11-24 Hitachi Ltd Thermal type flowmeter

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5686535A (en) * 1979-12-17 1981-07-14 Fujitsu Ltd Program counter circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5686535A (en) * 1979-12-17 1981-07-14 Fujitsu Ltd Program counter circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006317295A (en) * 2005-05-13 2006-11-24 Hitachi Ltd Thermal type flowmeter

Similar Documents

Publication Publication Date Title
US6157690A (en) Digital PLL circuit
JP3597782B2 (en) Clock signal correction circuit and semiconductor device
US5526391A (en) N+1 frequency divider counter and method therefor
US4667338A (en) Noise elimination circuit for eliminating noise signals from binary data
US4468797A (en) Swallow counters
JPS58178633A (en) Programmable counter
US5454018A (en) Counter circuit with automatic reset
GB2236924A (en) Pulse width modulation circuit
US6377081B1 (en) Phase detection circuit
US20030208513A1 (en) High speed programmable counter architecture
US20120033772A1 (en) Synchroniser circuit and method
US5600695A (en) Counter circuit having load function
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
JP2005210610A (en) If count system
US5990813A (en) Method and apparatus for synchronizing external data to an internal timing signal
US6670823B2 (en) Detecting counter contents for time-critical applications
JP3072494B2 (en) Monitor circuit for channel selection status of parallel frame synchronization circuit
JP2792759B2 (en) Synchronous clock generation circuit
KR100486236B1 (en) Apparatus for generating frequency-divided signal by except radix 2
WO1985004297A1 (en) Counting apparatus having independent subcounters
JP2973613B2 (en) Programmable counter
GB2243747A (en) Digital signal error detecting arrangements
JPH05268020A (en) Clock switching circuit
JPH0546105Y2 (en)
JPH01300649A (en) Pcm input interruption backward protection circuit