JPH0467374B2 - - Google Patents
Info
- Publication number
- JPH0467374B2 JPH0467374B2 JP59016844A JP1684484A JPH0467374B2 JP H0467374 B2 JPH0467374 B2 JP H0467374B2 JP 59016844 A JP59016844 A JP 59016844A JP 1684484 A JP1684484 A JP 1684484A JP H0467374 B2 JPH0467374 B2 JP H0467374B2
- Authority
- JP
- Japan
- Prior art keywords
- counting
- counting means
- programmable
- stage
- counter
- 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.)
- Expired - Lifetime
Links
Landscapes
- Manipulation Of Pulses (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、入力クロツクパルスを外部から与え
られたデータに従つて分周するプログラマブル分
周器に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a programmable frequency divider that divides an input clock pulse according to externally applied data.
従来例の構成とその問題点
近年、プログラマブル分周器は、各種の電子機
器に使用され、機器の機能の多様化に伴い、機器
1台当りに使用される分周器の個数も次第に増加
する傾向がある。Conventional configurations and their problems In recent years, programmable frequency dividers have been used in a variety of electronic devices, and as the functions of devices have diversified, the number of frequency dividers used per device has gradually increased. Tend.
第1図は従来のプログラマブル分周器の構成の
一例を示すものである。図において、1はクロツ
クパルス(以下単にクロツクという)をカウント
するN段プリセツタブルカウンタ、2はN入力ナ
ンドゲート、3は上記N段プリセツタブルカウン
タ1に任意のデータを与えるデータ設定器であ
る。 FIG. 1 shows an example of the configuration of a conventional programmable frequency divider. In the figure, 1 is an N-stage presettable counter that counts clock pulses (hereinafter simply referred to as a clock), 2 is an N-input NAND gate, and 3 is a data setter that supplies arbitrary data to the N-stage presettable counter 1.
N段プリセツタブルカウンタ1の出力Q1〜QN
はN入力ナンドゲート2の入力に接続それ、N入
力ナンドゲート2の出力は、分周出力となると共
に、N段プリセツタブルカウンタ1のLOAD端
子に接続されている。データ設定器3のD1〜DN
により設定されるデータは、N段プリセツタブル
カウンタ1のデータ入力D1〜DNに入力される。 Output Q 1 ~ Q N of N-stage presettable counter 1
is connected to the input of the N-input NAND gate 2, and the output of the N-input NAND gate 2 becomes a frequency-divided output and is also connected to the LOAD terminal of the N-stage presettable counter 1. D 1 to D N of data setter 3
The data set by is input to data inputs D 1 to D N of the N-stage presettable counter 1.
以上のように構成された従来のプログラマブル
分周器の動作を次に第2図のタイミングチヤート
を参照して説明する。N段プリセツタブルカウン
タ1は、そのCK端子に入力されるクロツクを順
次カウントし、出力Q1〜QNに出力する。出力Q1
〜QNはN入力ナンドゲート2の入力に接続され、
従つてN段プリセツタブルカウンタ1の出力Q1
〜QNがすべて“1”となつたときのみN入力ナ
ンドゲート2はアクテイブとなり“1”を出力す
る。N入力ナンドゲート2の出力はN段プリセツ
タブルカウンタ1のLOAD端子に接続されてい
るため、クロツクの次のタイミングでN段プリセ
ツタブルカウンタ1の出力Q1〜QNは、データ設
定器3に設定されたデータに従いプリセツトさ
れ、データ入力D1〜DNと一致したデータがQ1〜
QNに出力される。同時に、N入力ナンドゲート
2の出力は”0”となり、N段プリセツタブルカ
ウンタ1は設定データから入力クロツクを順次カ
ウントする。以下上記動作を繰り返し、分周出力
にはデータ設定器3により設定されたデータに従
つた分周波形が現われ、設定データDと分周数
CNの関係は次のようになる。 The operation of the conventional programmable frequency divider configured as described above will now be described with reference to the timing chart of FIG. The N-stage presettable counter 1 sequentially counts the clocks input to its CK terminal and outputs them to outputs Q 1 to Q N . Output Q 1
~Q N is connected to the input of N-input NAND gate 2,
Therefore, the output Q 1 of N-stage presettable counter 1
~Q Only when all N become "1", the N-input NAND gate 2 becomes active and outputs "1". Since the output of the N-input NAND gate 2 is connected to the LOAD terminal of the N-stage presettable counter 1, the outputs Q 1 to Q N of the N-stage presettable counter 1 are connected to the data setter 3 at the next clock timing. The data that matches the data input D 1 to D N is preset according to the data set in Q 1 to D N.
Q Output to N. At the same time, the output of the N-input NAND gate 2 becomes "0", and the N-stage presettable counter 1 sequentially counts the input clocks from the setting data. Thereafter, the above operation is repeated, and a frequency divided waveform according to the data set by the data setter 3 appears in the frequency division output, and the set data D and the frequency division number
The relationship between C and N is as follows.
分周数CN=設定データ+1
複数のクロツク列をそれぞれ任意の分周数で分
周する場合、従来は第1図に示されるようなプロ
グラマブルカウンタを単純に所要数だけ複数個設
けて目的を達成している。しかしながら一般にN
段プリセツタブルカウンタは複雑な構成となつて
おり、段数の増加と共に構成素子数も増え、この
ような分周器を複数個使用する時は、素子数が莫
大なものとなるなどの問題を有している。 Frequency division number C N = Setting data + 1 When dividing multiple clock trains by an arbitrary frequency division number, conventionally, the required number of programmable counters as shown in Figure 1 were simply provided to achieve the purpose. Achieved. However, in general N
The stage presettable counter has a complex configuration, and as the number of stages increases, the number of constituent elements also increases, and when multiple such frequency dividers are used, problems such as an enormous number of elements arise. have.
発明の目的
本発明は上述のように従来のプログラマブル分
周器では段数及び個数が増加するのに伴つて素子
数が莫大となるのを、比較的小数の素子数で同等
の機能を有するプログラマブル分周器を実現する
ことを目的とするものである。Purpose of the Invention As mentioned above, the present invention provides a programmable frequency divider that has the same function with a relatively small number of elements, to replace the conventional programmable frequency divider, which requires an enormous number of elements as the number of stages and components increases. The purpose is to realize a frequency converter.
発明の構成
本発明の構成を説明する前に本発明の基本原理
について説明する。Configuration of the Invention Before explaining the configuration of the present invention, the basic principle of the present invention will be explained.
一般に、分周されるクロツクの周期をTi、分周
数をCN、分周された出力の周期をT0とすると、
T0=Ti×CN ……(1)
の関係がある。今、
CN=x1+x2
=2M×x1/2M+x2
=2M×X1+x2 ……(2)
(但し、X1=x1/2M)
とすると、
T0=Ti×(2M×X1+x2)
={Ti×2M)×X1}+(Ti×x2)
=TiM×X1+Ti×x2 ……(3)
(但し、TiM=Ti×2M)
となる。上記式(3)は、Tiの周期を持つクロツクを
CN回カウント(分周)する代わりに、Tiの周期
を持つクロツクを2M回カウントして得られたTiM
の周期を持つクロツクをX1回カウントし、これ
にTiの周期のクロツクをx2回カウントしたものを
加えてもよいことを示している。 Generally, if the period of the divided clock is T i , the division number is C N , and the period of the divided output is T 0 , then T 0 = T i ×C N ...(1). . Now, assuming that C N =x 1 +x 2 =2 M ×x 1 /2 M +x 2 =2 M ×X 1 +x 2 ...(2) (however, X 1 =x 1 /2 M ), then T 0 = T i × (2 M × X 1 + x 2 ) = {T i × 2 M ) × X 1 } + ( T i × x 2 ) = T i M × However, T iM = T i ×2 M ). Equation (3) above describes a clock with a period of T i .
Instead of counting (dividing) C N times, T iM is obtained by counting a clock with a period of T i 2 M times.
This shows that it is possible to count a clock with a period of T i x 1 times and add a clock with a period of T i x 2 times.
この関係を第3図に示す。同図のクロツク1は
周期Tiのクロツクを示し、クロツク2は周期TiM
のクロツク、クロツク3は、周期がTiのクロツク
をx2回カウントして得られるクロツクであり、出
力としてT0=Ti×CN=TiM×X1+Ti×x2の周期
の分周出力が得られることを示している。 This relationship is shown in FIG. Clock 1 in the figure shows a clock with a period T i , and clock 2 shows a clock with a period T iM.
Clock 3 is a clock obtained by counting the clock with a period of T i x 2 times, and the output is a clock with a period of T 0 = T i ×C N = T iM ×X 1 + T i ×x 2 . This shows that a divided output can be obtained.
第4図は上述の考え方を実現する回路の一例で
あり、本発明のプログラマブル分周器の構成の基
礎となる回路である。第4図は周期Tiのクロツク
を2M回カウントし、TiMの周期をもつクロツクを
作成するM段カウンタ4(第1のカウント手段)、
M段カウンタ4の出力を所定回数(X1回)カウ
ントするN−M段プリセツタブルカウンタ5(第
2のカウント手段)、上記M段カウンタ4とN−
M段プリセツタブルカウンタ5によつて周期Tiの
クロツクを2M×X1回カウントを終了すると同時
にカウントを開始し、所定回数(x2回)のカウン
トをするM段プリセツタブルカウンタ6(第3の
カウント手段)及びN−M手段プリセツタブルカ
ウンタ5とM段プリセツタブルカウンタ6に所定
のカウント数を設定するデータ設定器3より構成
され、M段カウンタ4とN−M段プリセツタブル
カウンタ5がカウント動作をしているときは、M
段プリセツタブルカウンタ6はカウント動作を停
止しており、反対にM段プリセツタブルカウンタ
6がカウント動作をしているときは、M段カウン
タ4とN−M段プリセツタブルカウンタ5はカウ
ント動作を停止するように構成されている。 FIG. 4 is an example of a circuit that realizes the above-mentioned idea, and is a circuit that is the basis of the configuration of the programmable frequency divider of the present invention. FIG. 4 shows an M-stage counter 4 (first counting means) that counts a clock with a period T i 2 M times to create a clock with a period T iM ;
An N-M stage presettable counter 5 (second counting means) that counts the output of the M-stage counter 4 a predetermined number of times (X 1 time), the M-stage counter 4 and the N-
An M-stage presettable counter 6 starts counting a predetermined number of times (x 2 times) at the same time as the M - stage presettable counter 5 finishes counting 2 M x X 1 times. (third counting means) and an N-M presettable counter 5 and a data setter 3 for setting a predetermined count number to an M-stage presettable counter 6, and an M-stage counter 4 and an N-M stage counter. When the presettable counter 5 is in counting operation, M
The stage presettable counter 6 is not counting, and conversely, when the M stage presettable counter 6 is counting, the M stage counter 4 and the N-M stage presettable counter 5 are not counting. Configured to stop working.
第5図は第4図と同じ動作を実現する他の回路
で、第4図におけるM段カウンタ4とM段プリセ
ツタブルカウンタ6の動作を共通のM段プリセツ
タブルカウンタ7で行なうようにしたもので、プ
リセツタブルカウンタ7はクロツクの2M回のカウ
ントとx2回のカウントを切り換えて行なえるもの
であり、切換用のフラグ8の出力を参照してその
動作を切換える。このフラグ8は上記のようにM
段プリセツタブルカウンタ7の動作を切り換える
と共に、M段プリセツタブルカウンタ7のカウン
ト出力を、N−M段プリセツタブルカウンタ5に
供給するか、最終分周出力として使用するかの切
換を行なうデマルチプレクサ9のコントロール信
号として使用されるもので、N−M段プリセツタ
ブルカウンタ5が所定回数X1回カウントしたと
きセツトされ、最終分周出力が出力されたときリ
セツトされる。 FIG. 5 shows another circuit that realizes the same operation as FIG. 4, in which the operations of the M-stage counter 4 and the M-stage presettable counter 6 in FIG. The presettable counter 7 can switch between counting 2M clocks and counting x 2 times, and switches its operation with reference to the output of a switching flag 8. This flag 8 is M as described above.
In addition to switching the operation of the stage presettable counter 7, it also switches whether the count output of the M stage presettable counter 7 is supplied to the N-M stage presettable counter 5 or used as the final frequency division output. This signal is used as a control signal for the demultiplexer 9, and is set when the N-M stage presettable counter 5 counts a predetermined number of times x 1 , and is reset when the final divided output is output.
第4図及び第5図の回路において注目すべき点
は、N−M段プリセツタブルカウンタ5に入力さ
れるクロツクの周基TiMは、M段カウンタ4或は
M段プリセツタブルカウンタ7を段数Mを選択す
ることによつて自由に選べることである。即ち、
複数個のプログラマブルカウンタを構成する場
合、第4図或は第5図におけるM段カウンタ4と
M段プリセツタブルカウンタ6或はM段プリセツ
タブルカウンタ7を複数個並べ、これにN−M段
プリセツタブルカウンタ5を複数個使用する代わ
りに、複数個のカウント動作を1つのカウンタで
時分割で行なつても十分余裕のあるような段数M
を設定することにより、回路素子を大幅に削減で
きることである。 What should be noted in the circuits of FIGS. 4 and 5 is that the frequency T iM of the clock input to the N-M stage presettable counter 5 is the same as that of the M stage counter 4 or the M stage presettable counter 7. can be freely selected by selecting the number of stages M. That is,
When configuring a plurality of programmable counters, a plurality of M-stage counters 4 and M-stage presettable counters 6 or M-stage presettable counters 7 shown in FIG. The number of stages M is such that, instead of using a plurality of stage presettable counters 5, there is sufficient margin even if multiple counting operations are performed in a time-sharing manner using one counter.
By setting , the number of circuit elements can be significantly reduced.
本発明は、上述の原理に基づき、複数個のクロ
ツクをプログラマブルに分周する場合に、前記第
2のカウント手段を時分割により共用することに
より、より少ない素子数でこれを実現できるよう
にしたものである。 Based on the above-mentioned principle, the present invention makes it possible to implement programmable frequency division of a plurality of clocks with a smaller number of elements by sharing the second counting means by time division. It is something.
実施例の説明
第6図と第7図は、上述の原理にもとづき、複
数個のプログラマブル分周器を構成した本発明の
実施例であり、第8図はその動作を説明するため
のタイミングチヤートである。DESCRIPTION OF THE EMBODIMENT FIGS. 6 and 7 show an embodiment of the present invention in which a plurality of programmable frequency dividers are configured based on the above-mentioned principle, and FIG. 8 is a timing chart for explaining its operation. It is.
第6図において、4はM段カウンタ、6はM段
プリセツタブルカウンタで、それぞれL個設けら
れて、それぞれにクロツクCK1、CK2……CKLが
供給される。10は同期回路、11はアンドゲー
ト、12はフラグ、18はアンドゲート13とオ
アゲート14により構成されるマルチプレクサ、
15はラツチ、16は加算器、17はRAMであ
り、19は、同期回路10、アンドゲート11、
フラグ12、マルチプレクサ18、ラツチ15、
加算器16、RAM17で構成される時分割プロ
グラマブルカウンタである。 In FIG. 6, 4 is an M-stage counter, and 6 is an M-stage presettable counter, L of each are provided, and clocks CK 1 , CK 2 . . . CK L are supplied to each of them. 10 is a synchronous circuit, 11 is an AND gate, 12 is a flag, 18 is a multiplexer composed of an AND gate 13 and an OR gate 14;
15 is a latch, 16 is an adder, 17 is a RAM, 19 is a synchronous circuit 10, an AND gate 11,
flag 12, multiplexer 18, latch 15,
This is a time division programmable counter consisting of an adder 16 and a RAM 17.
以上のように構成された本発明のプログラマブ
ル分周器の動作を次に説明する。 The operation of the programmable frequency divider of the present invention configured as above will be described next.
M段カウンタ4は、入力クロツクを2Mカウント
するごとにパルスを出力し、そのパルスは、フラ
グ12をセツトする。L個のプラグ12の出力は
マルチプレクサ18の入力に接続されており、第
8図に示すようなRD1〜RDLのタイミングパル
スによつてL個のプラグ12の出力は時分割にて
マルチプレクサ18の出力に伝達される。伝達さ
れた信号は、ラツチ15によつてWRAの信号で
ラツチされる。又RD1〜RDLのRAM読み出し
信号によつて読み出されたRAM17に保持され
ているL個のデータの内容の1つがWRAの書き
込み信号によつて加算器16にラツチされる。加
算器16は、ラツチ15によつてラツチされた信
号と、RAM17より読み出され加算器16にラ
ツチされた信号との加算を行ない、結果をRDA
のタイミングでバス20に出力する。バス20に
出力する。バス20に出力された加算結果はWR
1〜WRLの書き込み信号によりRAM17と1
〜Lに対応した所に書き込まれる。 The M-stage counter 4 outputs a pulse every time it counts the input clock by 2M , and the pulse sets the flag 12. The outputs of the L plugs 12 are connected to the inputs of the multiplexer 18, and the outputs of the L plugs 12 are connected to the outputs of the multiplexer 18 in a time-division manner by timing pulses RD1 to RDL as shown in FIG. transmitted to. The transmitted signal is latched by the latch 15 at the WRA signal. Also, one of the L data contents read out by the RAM read signals RD1 to RDL and held in the RAM 17 is latched into the adder 16 by the write signal WRA. The adder 16 adds the signal latched by the latch 15 and the signal read from the RAM 17 and latched in the adder 16, and sends the result to the RDA.
It is output to the bus 20 at the timing of . Output to bus 20. The addition result output to bus 20 is WR
RAM17 and 1 are written by the write signal from 1 to WRL.
It is written to the location corresponding to ~L.
以上のように時分割プログラマブルカウンタ1
9の動作は、L個の入力を時分割にてそれぞれカ
ウントし、その結果RAM17にて保持している
こととなる。 As shown above, time division programmable counter 1
In the operation 9, L inputs are counted in a time-division manner, and the result is held in the RAM 17.
又、ラツチ15の出力は、アンドゲート11の
入力に接続されており、ラツチ15の出力がアク
テイブでしかもWR1〜WRLで表わされるRAM
17への書き込みのタイミングでフラグ12をリ
セツトすることとなる。 Also, the output of latch 15 is connected to the input of AND gate 11, and when the output of latch 15 is active, it is connected to the RAM represented by WR1 to WRL.
The flag 12 is reset at the timing of writing to the flag 17.
今、L個のフラグ12のうちの1つのがフラグ
がセツトされるタイミングの周期(即ち、L個の
入力クロツクのうちで一番短い周期の2M倍)より
もL個の分周結果を保持するRAM17をひとま
わりアクセスする周期(即ち、RD1の周期)の
方を短くしておけば、L個のフラグ12にセツト
された信号をカウント(分周)した結果が次にフ
ラグ12がセツトされるまでの間の必ずRAM1
7に書き込まれる。それと同時にフラグ12はリ
セツトされることとなるので、フラグ12がセツ
トされることによる加算器16とRAM17によ
るカウントアツプは一度だけであり、従つてカウ
ントミスは生じない。又、フラグ12がセツトさ
れていない(リセツトされている)場合は、加算
器16に入力されたRAM17のデータは、その
ままRAM17に書き込まれることとなり、この
動作はRAMをリフレツシユしているのと等価で
ある。 Now, one of the L flags 12 has a frequency division result of L times longer than the period of the timing at which the flag is set (that is, 2 M times the shortest period among the L input clocks). If the cycle of accessing the held RAM 17 (that is, the cycle of RD1) is made shorter, the result of counting (dividing) the signals set in L flags 12 will be used when flag 12 is set next. Be sure to use RAM1 until
7 is written. At the same time, the flag 12 is reset, so that the adder 16 and RAM 17 count up only once due to the setting of the flag 12, and therefore no counting error occurs. Furthermore, if the flag 12 is not set (reset), the data in the RAM 17 input to the adder 16 will be written to the RAM 17 as is, and this operation is equivalent to refreshing the RAM. It is.
RAM17に書き込まれたカウント結果は、計
算が時分割にて行なわれているため、CK1〜
CKLに同期していないこととなるが、時分割に
て計算され得られたそれぞれのカウント終了信号
がRAM17から出力された後、M段カウンタ4
が2Mカウント終了パルスを出力したタイミングを
検出し出力するように動作する同期回路10を用
いて、同期回路10の出力がアクテイブとなつた
タイミングを時分割プログラマブルカウンタ19
によるカウント終了とすれば、CK1〜CKLで表
わされるそれぞれの入力クロツクに同期した時分
割プログラマ分周期19によるカウント終了信号
が得られることとなる。 The count results written to RAM17 are calculated by time division, so CK1~
Although it is not synchronized with CKL, after each count end signal obtained by time-division calculation is output from the RAM 17, the M-stage counter 4
Using the synchronization circuit 10 that operates to detect and output the timing when the 2M count end pulse is output, the time division programmable counter 19 detects the timing when the output of the synchronization circuit 10 becomes active.
If the count is ended by CK1 to CKL, then a count end signal will be obtained based on the time-division programmer division period 19 synchronized with each input clock represented by CK1 to CKL.
M段カウンタ4と時分割プログラマブルカウン
タ19によるカウント動作終了のあと、M段プリ
セツタブルカンタ6はカウントを開始し、設定さ
れたカウント数のカウント動作を行なう。M段プ
リセツタブルカウンタ6がカウントを終了したあ
とM段カウンタ4はリセツトされカウントを開始
し、M段プリセツタブルカウンタ6はデータ設定
が行なわれ、M段カウンタ4と時分割プログラマ
ブムカウンタ19によるカウント動作終了時より
カウントが開始される。 After the M-stage counter 4 and the time-division programmable counter 19 finish counting, the M-stage presettable counter 6 starts counting and performs the counting operation for the set count number. After the M-stage presettable counter 6 finishes counting, the M-stage counter 4 is reset and starts counting, data is set in the M-stage presettable counter 6, and the M-stage counter 4 and the time-sharing programmable counter 19 are set. Counting starts from the end of the counting operation.
又、RAM17への初期値の設定はM段プリセ
ツタブルカウンタ6がカウントを終了し次にフラ
グ12がセツトされるまでに行なえば良く、以下
に一実施例の動作を示す。 Further, the setting of the initial value to the RAM 17 may be performed after the M-stage presettable counter 6 finishes counting and before the flag 12 is set next.The operation of one embodiment will be described below.
M段プリセツタブルカウンタ6のカウント終了
後、最初の対応したRD1〜RDLの読み出しタイ
ミングRAM17のデータを読み出すかわりに初
期設定値を読み出し、バス20を通じ加算器16
に初期設定値がラツチされ、ラツチ15にラツチ
された信号との加算を行なうが、フラグ12はま
だセツトされておらず、従つて、同じ値がRDA
のタイミングでバス20を通じ対応したWR1〜
WRLの書き込みパルスでRAM17へ書き込ま
れ、初期設定を終了する。この動作はフラグ12
がセツトされるまでの間に一度行なえばよく、
又、M段カウンタ4が2Mカウントしフラグ12が
設定されるまでに必ず一度は行なわれる。 After the M-stage presettable counter 6 finishes counting, the first corresponding RD1 to RDL read timing Instead of reading the data in the RAM 17, the initial setting value is read out and the adder 16 is read out through the bus 20.
The initial setting value is latched at , and addition is performed with the signal latched at latch 15, but flag 12 has not been set yet, so the same value is set at RDA.
WR1~ responded through bus 20 at the timing of
The data is written to the RAM 17 by the WRL write pulse, and the initial setting is completed. This action is flag 12
It only needs to be done once before the
Further, this is always performed once until the M-stage counter 4 counts 2M and the flag 12 is set.
第7図は本発明の第2の実施例で、第6図のM
段カウンタ4とM段プリセツタブルカウンタ6の
代りに、M段プリセツタブルカウンタ7を使用
し、その動作モードを切り換えて第6図のM段カ
ウンタ4とM段プリセツタブルカウンタ6と同様
の動作を行なうもので、デマルチプレクサ9はM
段プリセツタブルカウンタ7の出力をその動作モ
ードによつて振り分けるように動作するもので、
時分割プログラマブルカウンタ19の動作は、第
6図について説明したのと同様であるので重複し
た説明は省略する。 FIG. 7 shows a second embodiment of the present invention, in which M in FIG.
Instead of the M-stage counter 4 and the M-stage presettable counter 6, an M-stage presettable counter 7 is used, and its operation mode is changed to make it similar to the M-stage counter 4 and the M-stage presettable counter 6 in FIG. The demultiplexer 9 performs the operation of M
It operates to distribute the output of the stage presettable counter 7 according to its operation mode,
The operation of the time-division programmable counter 19 is the same as that described with reference to FIG. 6, so a redundant explanation will be omitted.
発明の効果
本発明によれば、従来、N段のプリセツタブル
カウンタをL個使用し、L種のクロツクを所定数
カウントしていたものが、M段のプリセツタブル
カウンタL個と、時分割プログラマブルカウンタ
及びL個のデマルチプレクサで構成することがで
き、大幅に素子数を削減することができる。又、
従来のN段プリセツタブルカウンタは、後段程周
期が長くなるのでスタチツク構成による必要があ
つたが、本発明における時分割プログラマブルカ
ウンタのRAMは、常時リフレツシユされている
と考えられるので、ダイナミツク構成にすること
ができ、更に素子数の削減に効果がある。Effects of the Invention According to the present invention, L presettable counters with N stages are used to count a predetermined number of L types of clocks, but L presettable counters with M stages are used. It can be configured with a divided programmable counter and L demultiplexers, and the number of elements can be significantly reduced. or,
Conventional N-stage presettable counters require a static configuration because the cycle becomes longer in later stages, but the RAM of the time-division programmable counter in the present invention is considered to be constantly refreshed, so a dynamic configuration is required. This is also effective in reducing the number of elements.
又、実施例における時分割プログラマブルカウ
ンタ19にマイコンを応用してもよいことは言う
までもない。 Furthermore, it goes without saying that a microcomputer may be applied to the time division programmable counter 19 in the embodiment.
本発明は、所定のカウント数が大きく、又カウ
ントされるクロツクの種類が多い程、素子数の削
減の効果が大きく、LSI内部に複数個のプログラ
マブルカウンタを構成する場合などには特にその
効果が大である。 According to the present invention, the larger the predetermined count number and the more types of clocks to be counted, the greater the effect of reducing the number of elements. It's large.
第1図は従来のプログラマブル分周器の構成を
示す図、第2図は第1図の動作を説明するための
タイミングチヤート、第3図は本発明の基本的な
考え方を示す図、第4図と第5図はそれぞれ本発
明の基礎となる回路を示す図、第6図は本発明の
第1の実施例、第7図は本発明の第2の実施例、
第8図は第6図と第7図の動作を説明するタイミ
ングチヤートである。
1……N段プリセツタブルカウンタ、2……N
入力ナンドゲート、3……データ設定器、4……
M段カウンタ、5……N−M段プリセツタブルカ
ウンタ、6,7……M段プリセツタブルカウン
タ、8,12……フラグ、9……デマルチプレク
サ、10……同期回路、11,13……アンドゲ
ート、14……オアゲート、15……ラツチ、1
6……加算器、17……RAM、18……マルチ
プレクサ、19……時分割プログラマブルカウン
タ、20……バス。
FIG. 1 is a diagram showing the configuration of a conventional programmable frequency divider, FIG. 2 is a timing chart for explaining the operation of FIG. 1, FIG. 3 is a diagram showing the basic idea of the present invention, and FIG. 5 and 5 are diagrams showing the circuits that are the basis of the present invention, respectively, FIG. 6 is a first embodiment of the present invention, FIG. 7 is a second embodiment of the present invention,
FIG. 8 is a timing chart explaining the operations of FIGS. 6 and 7. 1...N stage presettable counter, 2...N
Input NAND gate, 3...Data setter, 4...
M stage counter, 5... N-M stage presettable counter, 6, 7... M stage presettable counter, 8, 12... Flag, 9... Demultiplexer, 10... Synchronous circuit, 11, 13 ...And gate, 14...Or gate, 15...Ratsuchi, 1
6... Adder, 17... RAM, 18... Multiplexer, 19... Time division programmable counter, 20... Bus.
Claims (1)
する複数個の第1のカウント手段と、前記第1の
カウント手段から得られた複数の出力を時分割に
よつてそれぞれ所定回数をカウントするプログラ
マブルな第2のカウント手段と、前記複数のクロ
ツクパルス列を所定回数カウントするプログラマ
ブルな複数個の第3のカウント手段と、第2のカ
ウント手段が入力クロツクと同期するようタイミ
ングをとる同期回路とを具え、前記第1のカウン
ト手段でプリカウントを行なうことにより、前記
第2のカウント手段に入力されるクロツク周期を
前記第2のカウント手段が時分割によつてそれぞ
れの入力をカウント終了するのに要する時間より
も長くすることにより、カウントの時分割使用を
可能とし、前記第1のカウント手段と第2のカウ
ント手段によるカウント動作のあと、第3のカウ
ント手段が動作することにより、複数のクロツク
パルス列をそれぞれプログラマブルにカウントす
ることを特徴とするプログラマブル分周器。 2 前記第1のカウント手段の動作をクロツクパ
ルスを所定回数カウントするプログラマブルな動
作に切り換え制御する制御回路を設けて、第1の
カウント手段を前記第3のカウント手段に兼用
し、前記第1のカウント手段と第2のカウント手
段によるカウント動作のあと、第1のカウント手
段の動作をプログラマブルなカウント動作に切り
換えてカウント動作することにより、複数のクロ
ツクパルス列をそれぞれプログラマブルにカウン
トすることを特徴とする特許請求の範囲第1項記
載のプログラマブル分周器。 3 前記第2のカウント手段が複数のアドレスを
有する読み書き可能な記憶手段と、前記記憶手段
に記憶される値から一定値を加減算する演算手段
と、前記演算手段を時分割使用するためのタイミ
ングを制御する同期手段とを具備し、これによつ
て複数のカウント動作の時分割多重を可能とする
ことを特徴とする特許請求の範囲第1項記載のプ
ログラマブル分周器。[Scope of Claims] 1. A plurality of first counting means each counting a plurality of clock pulse trains, and a plurality of outputs obtained from the first counting means each counted a predetermined number of times by time division. a programmable second counting means for counting the plurality of clock pulse trains a predetermined number of times, a plurality of programmable third counting means for counting the plurality of clock pulse trains a predetermined number of times, and a synchronization circuit that takes timing so that the second counting means is synchronized with the input clock. By performing pre-counting with the first counting means, the second counting means completes counting each input by time sharing the clock cycle input to the second counting means. By making the time longer than the time required for counting, it is possible to use the counting in a time-sharing manner, and after the counting operation by the first counting means and the second counting means, the third counting means operates. A programmable frequency divider that programmably counts each clock pulse train. 2. A control circuit is provided for switching and controlling the operation of the first counting means to a programmable operation of counting clock pulses a predetermined number of times, so that the first counting means is also used as the third counting means, and the first counting means is also used as the third counting means. After the counting operation by the means and the second counting means, the operation of the first counting means is switched to a programmable counting operation and the counting operation is performed, thereby programmably counting each of the plurality of clock pulse trains. A programmable frequency divider according to claim 1. 3. The second counting means includes a readable and writable storage means having a plurality of addresses, an arithmetic means for adding or subtracting a constant value from a value stored in the memory means, and a timing for using the arithmetic means in a time-sharing manner. 2. A programmable frequency divider according to claim 1, further comprising synchronization means for controlling the frequency divider, thereby enabling time division multiplexing of a plurality of counting operations.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59016844A JPS60160218A (en) | 1984-01-30 | 1984-01-30 | Programmable frequency divider |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59016844A JPS60160218A (en) | 1984-01-30 | 1984-01-30 | Programmable frequency divider |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60160218A JPS60160218A (en) | 1985-08-21 |
| JPH0467374B2 true JPH0467374B2 (en) | 1992-10-28 |
Family
ID=11927513
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59016844A Granted JPS60160218A (en) | 1984-01-30 | 1984-01-30 | Programmable frequency divider |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60160218A (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6013526B2 (en) * | 1977-06-30 | 1985-04-08 | 日本電気株式会社 | Pulse generation method |
| JPS5738030A (en) * | 1980-08-18 | 1982-03-02 | Toshiba Corp | Counter circuit |
| JPS639143Y2 (en) * | 1981-03-13 | 1988-03-18 |
-
1984
- 1984-01-30 JP JP59016844A patent/JPS60160218A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60160218A (en) | 1985-08-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4392129A (en) | Multiplexed liquid crystal display | |
| JPH0467374B2 (en) | ||
| US6725245B2 (en) | High speed programmable counter architecture | |
| JPS6279379A (en) | Timing signal generator | |
| JP3949995B2 (en) | Counter circuit | |
| JP2574871B2 (en) | Display device | |
| JPH0587619U (en) | Clock signal generation circuit | |
| KR100214557B1 (en) | Frequency divider | |
| JPS6260195A (en) | Refresh control circuit | |
| JPH0411388Y2 (en) | ||
| JPS5934939Y2 (en) | Memory addressing circuit | |
| SU1188886A1 (en) | Pulse repetition frequency divider with variable countdown | |
| JPS62191910A (en) | Clock control system | |
| JPS63269620A (en) | variable frequency divider | |
| JPH0419894A (en) | Elastic store circuit | |
| JPS63310298A (en) | Time slot replacing device | |
| JP2915912B2 (en) | Pattern sequence control circuit for semiconductor test equipment | |
| SU441642A1 (en) | Delay line | |
| SU1674221A1 (en) | Data display unit | |
| JPH0474799B2 (en) | ||
| SU1405058A1 (en) | Test code generator | |
| JP2634425B2 (en) | Pitch modulation circuit | |
| SU1278862A1 (en) | Device for controlling information input | |
| JPH056214B2 (en) | ||
| JPH0710042B2 (en) | Timing signal generator |