JPH05129936A - Programmable counter - Google Patents
Programmable counterInfo
- Publication number
- JPH05129936A JPH05129936A JP3291160A JP29116091A JPH05129936A JP H05129936 A JPH05129936 A JP H05129936A JP 3291160 A JP3291160 A JP 3291160A JP 29116091 A JP29116091 A JP 29116091A JP H05129936 A JPH05129936 A JP H05129936A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- data
- output
- data register
- programmable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、一つのカウンタと複数
のデータレジスタから成る、プログラマブルなパルスカ
ウンタを主として構成された、プログラマブルカウンタ
に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable counter mainly composed of a programmable pulse counter composed of one counter and a plurality of data registers.
【0002】[0002]
【従来の技術】以下、従来のプログラマブルカウンタと
呼ばれる集積回路装置について説明する。2. Description of the Related Art A conventional integrated circuit device called a programmable counter will be described below.
【0003】図5は、従来の集積回路装置のブロック図
である。図5において、1はクロック入力を分周するた
めの分周回路、2はカウンタ、3はカウンタ2にデータ
を設定するためのプログラム可能なデータレジスタであ
る。11はクロック入力、12はカウンタクロック、1
3はオーバーフロー出力、14はカウンタ出力であり、
15はデータ伝送路である。FIG. 5 is a block diagram of a conventional integrated circuit device. In FIG. 5, 1 is a frequency dividing circuit for dividing the clock input, 2 is a counter, and 3 is a programmable data register for setting data in the counter 2. 11 is a clock input, 12 is a counter clock, 1
3 is an overflow output, 14 is a counter output,
Reference numeral 15 is a data transmission path.
【0004】以上のように構成されたプログラマブルカ
ウンタに関して、以下その動作について説明する。The operation of the programmable counter configured as described above will be described below.
【0005】まず、クロック入力11は、分周回路1に
よって分周され、カウンタクロック12として、カウン
タ2へ入力される。このカウンタ2は、専用のデータレ
ジスタ3を持っており、データレジスタ3のデータは、
スタート時及びオーバーフロー出力13を受けて、上記
カウンタ2へ、データ伝送路15を通じて転送される。First, the clock input 11 is frequency-divided by the frequency dividing circuit 1 and input to the counter 2 as the counter clock 12. This counter 2 has a dedicated data register 3, and the data in the data register 3 is
Upon reception of the start time and the overflow output 13, the data is transferred to the counter 2 through the data transmission line 15.
【0006】図6はカウンタ出力14のタイミング図で
ある。図6の(a)がオーバーフロー出力13であり
(b)がカウンタ出力14である。図6(a)に示した
上記カウンタ2のオーバーフロー周期Tは、データレジ
スタ3の値によって決まり、カウンタ出力14は、同図
(b)に示したように、デューティー比50%のパルス
波形となる。FIG. 6 is a timing diagram of the counter output 14. 6A shows the overflow output 13 and FIG. 6B shows the counter output 14. The overflow cycle T of the counter 2 shown in FIG. 6A is determined by the value of the data register 3, and the counter output 14 has a pulse waveform with a duty ratio of 50% as shown in FIG. ..
【0007】[0007]
【発明が解決しようとする課題】上記の従来の構成で
は、カウンタ出力のデューティー比は必ず50%とな
り、オーバーフロー周期と共にデューティー比も変化さ
せる為には、上記プログラマブルカウンタが2組必要と
なる。In the above conventional configuration, the duty ratio of the counter output is always 50%, and two sets of programmable counters are required to change the duty ratio with the overflow cycle.
【0008】本発明は、周期と共にデューティー比をも
変化させるという要求をも、一組のプログラマブルカウ
ンタで実現し、極めて自由度の高い集積回路装置を提供
することを目的とする。It is an object of the present invention to provide an integrated circuit device having a very high degree of freedom by realizing the requirement of changing the duty ratio as well as the cycle with a set of programmable counters.
【0009】[0009]
【課題を解決するための手段】この目的を達成するため
に本発明のプログラマブルカウンタは、一個のカウンタ
に対し、複数個のデータレジスタを持ち、各々のデータ
レジスタからのデータの転送を制御する、制御回路によ
り構成されている。In order to achieve this object, a programmable counter of the present invention has a plurality of data registers for one counter and controls the transfer of data from each data register. It is composed of a control circuit.
【0010】[0010]
【作用】この構成によって、一つのカウンタのオーバー
フロー周期は、レジスタの数だけの自由度を持つことに
なり、例えば先に述べた、周期とデューティー比の両方
を変化させるという要求は、2つのデータレジスタを制
御することにより実現することができる。With this configuration, the overflow cycle of one counter has a degree of freedom corresponding to the number of registers. For example, the above-mentioned request to change both the cycle and the duty ratio requires two data. It can be realized by controlling a register.
【0011】[0011]
【実施例】以下本発明の一実施例について図面を参照し
ながら説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.
【0012】図1は本発明の第一の実施例におけるプロ
グラマブルカウンタのブロック図である。図1において
1は分周回路、2はカウンタ、4はデータレジスタA、
5はデータレジスタB、6は制御回路である。FIG. 1 is a block diagram of a programmable counter in the first embodiment of the present invention. In FIG. 1, 1 is a frequency dividing circuit, 2 is a counter, 4 is a data register A,
Reference numeral 5 is a data register B, and 6 is a control circuit.
【0013】以上のように構成されたプログラマブルカ
ウンタについて、以下その動作を説明する。The operation of the programmable counter configured as described above will be described below.
【0014】まずクロック入力11は、従来と同じよう
に分周回路1によって分周され、カウンタクロック12
として、カウンタ2に入力される。スタート時、データ
レジスタ4のデータは、データ転送路16を介して制御
回路6へ送られ、さらにデータ伝送路18を経て、カウ
ンタ2へと送られる。カウントアップが進み、上記カウ
ンタ2がオーバーフローすると、制御回路6は、オーバ
ーフロー出力13を受けて、今度はデータレジスタ5の
データを、データ伝送路17及びデータ転送路18を介
して、カウンタ2へと送り込む。再び上記カウンタ2が
オーバーフローした時、次はデータレジスタ4のデータ
が、上記カウンタ2へと送られる。以上のように、上記
カウンタ2に送られるデータが、データレジスタ4のデ
ータ、データレジスタ5のデータと交互に変わることに
より、カウンタ出力14は、データレジスタ4とデータ
レジスタ5の両方のデータによって決まるところの、任
意の繰り返し周期及びデューティー比を持った、パルス
波形となる。First, the clock input 11 is frequency-divided by the frequency dividing circuit 1 as in the conventional case, and the counter clock 12
Is input to the counter 2. At the start, the data in the data register 4 is sent to the control circuit 6 via the data transfer path 16 and further to the counter 2 via the data transfer path 18. When the count-up progresses and the counter 2 overflows, the control circuit 6 receives the overflow output 13 and transfers the data of the data register 5 to the counter 2 via the data transmission path 17 and the data transfer path 18 this time. Send in. When the counter 2 overflows again, the next data in the data register 4 is sent to the counter 2. As described above, the data sent to the counter 2 alternates with the data in the data register 4 and the data in the data register 5, so that the counter output 14 is determined by the data in both the data register 4 and the data register 5. However, the pulse waveform has an arbitrary repetition period and duty ratio.
【0015】図2(a)は本実施例における13のオー
バーフロー出力13を示し、同図(b)は本実施例にお
ける14のカウンタ出力14の波形を示している。FIG. 2A shows the overflow output 13 of 13 in this embodiment, and FIG. 2B shows the waveform of the counter output 14 of 14 in this embodiment.
【0016】図2において、T1はデータレジスタ4の
設定データによって、T2はデータレジスタ5の設定デ
ータによってそれぞれ得られる、カウンタ2のオーバー
フロー周期である。カウンタ出力14の繰り返し周期が
(T1+T2)で決まることは言うまでもない。In FIG. 2, T1 is an overflow cycle of the counter 2 obtained by the setting data of the data register 4 and T2 is obtained by the setting data of the data register 5, respectively. It goes without saying that the repetition cycle of the counter output 14 is determined by (T1 + T2).
【0017】以上のように、本実施例によれば、一つの
カウンタに対して、2つのデータレジスタを設けること
により出力波形の、繰り返し周期とデューティー比とい
う、2つの要素を任意に変えることができる。As described above, according to this embodiment, by providing two data registers for one counter, it is possible to arbitrarily change the two factors of the output waveform, that is, the repetition period and the duty ratio. it can.
【0018】以下本発明の第2の実施例について図3を
参照しながら説明する。1は分周回路、2はカウンタ、
6は制御回路であり、以上は図1の構成と同様のもので
ある。図1の構成と異なるのは、データレジスタ4及び
データレジスタ5のほかに、さらにデータレジスタ7を
設けた点である。A second embodiment of the present invention will be described below with reference to FIG. 1 is a frequency divider circuit, 2 is a counter,
Reference numeral 6 denotes a control circuit, which has the same configuration as that of FIG. The difference from the configuration of FIG. 1 is that a data register 7 is further provided in addition to the data register 4 and the data register 5.
【0019】以上のように構成されたプログラマブルカ
ウンタについて、その動作を説明する。The operation of the programmable counter configured as above will be described.
【0020】第1の実施例の場合と全く同様にして、デ
ータレジスタ5のデータが、制御回路6によって、デー
タ伝送路17及びデータ伝送路18を経て、カウンタ2
に送り込まれた後、上記カウンタ2のオーバーフロー出
力13を受けて、制御回路6は、今度はデータレジスタ
7のデータを、データ伝送路19及びデータ伝送路18
を介して、カウンタ2へと転送する。In exactly the same manner as in the first embodiment, the data in the data register 5 is transferred by the control circuit 6 through the data transmission line 17 and the data transmission line 18 to the counter 2.
Then, the control circuit 6 receives the overflow output 13 of the counter 2 and transfers the data in the data register 7 to the data transmission path 19 and the data transmission path 18 this time.
To the counter 2 via.
【0021】図4(a)は第2の実施例におけるオーバ
ーフロー出力13のタイミング図であり、同図(b)は
カウンタ出力14の波形図である。FIG. 4A is a timing chart of the overflow output 13 in the second embodiment, and FIG. 4B is a waveform chart of the counter output 14.
【0022】以上のように、第2の実施例におけるデー
タレジスタCを設けることにより、さらに自由度の高い
出力波形を得ることが可能となる。As described above, by providing the data register C in the second embodiment, it becomes possible to obtain an output waveform with a higher degree of freedom.
【0023】なお、本発明のプログラマブルカウンタを
構成するデータレジスタの数を、第1の実施例では2
つ、第2の実施例では3つとしたが、これをさらに増設
することにより、より一層複雑な出力波形を実現できる
ようになることは言うまでもない。The number of data registers forming the programmable counter of the present invention is set to 2 in the first embodiment.
In the second embodiment, the number is three, but it is needless to say that a more complicated output waveform can be realized by further adding the number.
【0024】[0024]
【発明の効果】以上のように本発明は、一つのカウンタ
に対して、複数のデータレジスタを設けることにより、
一つのカウンタで、従来の方式では実現困難であったよ
うな、複雑な出力波形を容易に作り出すことができると
いう、極めて自由度の高い、プログラマブルカウンタを
実現するものである。As described above, according to the present invention, by providing a plurality of data registers for one counter,
The present invention realizes a programmable counter with a very high degree of freedom, which can easily generate a complicated output waveform with one counter, which is difficult to realize with the conventional method.
【図1】本発明の第1の実施例におけるプログラマブル
カウンタのブロック図FIG. 1 is a block diagram of a programmable counter according to a first embodiment of the present invention.
【図2】本発明の第1の実施例におけるプログラマブル
カウンタのオーバーフロー出力及びカウンタ出力のタイ
ミング図FIG. 2 is a timing chart of overflow output and counter output of the programmable counter according to the first embodiment of the present invention.
【図3】本発明の第2の実施例におけるプログラマブル
カウンタのブロック図FIG. 3 is a block diagram of a programmable counter according to a second embodiment of the present invention.
【図4】第2の実施例におけるオーバーフロー出力及び
カウンタ出力のタイミング図FIG. 4 is a timing chart of overflow output and counter output in the second embodiment.
【図5】従来のプログラマブルカウンタのブロック図FIG. 5 is a block diagram of a conventional programmable counter.
【図6】従来のプログラマブルカウンタのオーバーフロ
ー出力及びカウンタ出力のタイミング図FIG. 6 is a timing diagram of overflow output and counter output of a conventional programmable counter.
1 分周回路 2 カウンタ 3 データレジスタ 4 データレジスタA 5 データレジスタB 6 制御回路 7 データレジスタC 11 クロック入力 12 カウンタクロック 13 オーバーフロー出力 14 カウンタ出力 15〜19 データ伝送路 1 Frequency Divider 2 Counter 3 Data Register 4 Data Register A 5 Data Register B 6 Control Circuit 7 Data Register C 11 Clock Input 12 Counter Clock 13 Overflow Output 14 Counter Output 15-19 Data Transmission Line
Claims (1)
をロードするための、複数個のデータ・レジスタと、そ
れぞれのデータ・レジスタのデータの転送を制御する制
御回路とを有することを特徴とする、プログラマブルカ
ウンタ。1. A counter comprising: a counter; a plurality of data registers for loading data into the counter; and a control circuit for controlling data transfer of the respective data registers. , Programmable counter.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3291160A JPH05129936A (en) | 1991-11-07 | 1991-11-07 | Programmable counter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3291160A JPH05129936A (en) | 1991-11-07 | 1991-11-07 | Programmable counter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH05129936A true JPH05129936A (en) | 1993-05-25 |
Family
ID=17765226
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3291160A Pending JPH05129936A (en) | 1991-11-07 | 1991-11-07 | Programmable counter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH05129936A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS551703A (en) * | 1978-06-20 | 1980-01-08 | Hitachi Denshi Ltd | Programmable pulse generator |
| JPS57147333A (en) * | 1981-03-05 | 1982-09-11 | Nec Corp | Impulse generator |
| JPS586626A (en) * | 1981-07-02 | 1983-01-14 | Mitsubishi Electric Corp | counter circuit |
| JPH02284520A (en) * | 1989-04-26 | 1990-11-21 | Mitsubishi Electric Corp | semiconductor integrated circuit |
-
1991
- 1991-11-07 JP JP3291160A patent/JPH05129936A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS551703A (en) * | 1978-06-20 | 1980-01-08 | Hitachi Denshi Ltd | Programmable pulse generator |
| JPS57147333A (en) * | 1981-03-05 | 1982-09-11 | Nec Corp | Impulse generator |
| JPS586626A (en) * | 1981-07-02 | 1983-01-14 | Mitsubishi Electric Corp | counter circuit |
| JPH02284520A (en) * | 1989-04-26 | 1990-11-21 | Mitsubishi Electric Corp | semiconductor integrated circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US2953694A (en) | Pulse distributing arrangements | |
| US5854755A (en) | Clock frequency multiplication device | |
| JPH05129936A (en) | Programmable counter | |
| JPH01117411A (en) | Sequence controller | |
| JPH11110346A (en) | Data transfer circuit | |
| KR100238208B1 (en) | Synchronous serial input and output circuit | |
| US6885714B1 (en) | Independently roving range control | |
| JPS6157144A (en) | Data transfer rate controller | |
| JPS62191910A (en) | Clock control system | |
| JPH08221151A (en) | Clock supply device | |
| JPWO2004031926A1 (en) | Synchronization control device and synchronization control method | |
| SU767747A1 (en) | Device for forming clock pulses | |
| SU1183949A1 (en) | Polyphase pulse stabilizer | |
| JPH02180424A (en) | Pulse width modulation circuit | |
| JP2590838B2 (en) | Pulse oscillation circuit | |
| JPH0786889A (en) | Pulse signal generating circuit | |
| JP2841360B2 (en) | Timing generator | |
| JPH0691425B2 (en) | Frequency divider using D-type flip-flop | |
| JP2002330121A (en) | Control unit and network servo control method | |
| JPH08228158A (en) | Serial/parallel converting circuit | |
| JP2000111623A (en) | Timing generating circuit | |
| JPS6260195A (en) | Refresh control circuit | |
| JPH04365219A (en) | Clock pulse shaping circuit | |
| JPH05100767A (en) | Clock signal circuit | |
| JPS62250580A (en) | Memory controller |