JPH0583124A - Programmable counter - Google Patents

Programmable counter

Info

Publication number
JPH0583124A
JPH0583124A JP24549091A JP24549091A JPH0583124A JP H0583124 A JPH0583124 A JP H0583124A JP 24549091 A JP24549091 A JP 24549091A JP 24549091 A JP24549091 A JP 24549091A JP H0583124 A JPH0583124 A JP H0583124A
Authority
JP
Japan
Prior art keywords
signal
flip
input
count
flop
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
JP24549091A
Other languages
Japanese (ja)
Inventor
Fumio Ikeuchi
史夫 池内
Toshiaki Ueno
俊明 上野
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP24549091A priority Critical patent/JPH0583124A/en
Publication of JPH0583124A publication Critical patent/JPH0583124A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

PURPOSE:To obtain the programmable counter with high function by selecting the operating mode in response to a signal from an input terminal and a carry signal and inputting a signal in response to the mode to a data input of a flip- flop. CONSTITUTION:An EOR3 and an AND/EOR4 are connected to an output of a D flip-flop 1 to generate a count-up signal of each flip-flop and the count-up signal or input data 10 are selected by a changeover device MUX1-5 and the selected signal is inputted to a D input of the flip-flop 1 to form a synchronization counter. Then a changeover device MUX2-6 is provided and switching signals 12, 13 are generated by using an operating mode switching signal 8, a start signal 9, a carry signal (count end signal) 11 and they are inputted to the MUX1-5. As a result, the changeover of the operating mode by the carry signal 11 and the input signals 8, 9 is attained and continuous frequency division by an optional setting value and only one count at a point of time when an external start signal 9 is inputted are attained.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はディジタル信号を任意の
計数値で計数して分周信号を得たり、その計数値に応じ
た遅延信号を得るための、特にICテスタ等のタイミン
グ発生器のカウンタ回路に適した、プログラマブル・カ
ウンタに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timing generator such as an IC tester for counting a digital signal with an arbitrary count value to obtain a frequency-divided signal or a delay signal according to the count value. The present invention relates to a programmable counter suitable for a counter circuit.

【0002】[0002]

【従来の技術】従来のプログラマブル・カウンタは、ア
イイイイー ジャーナルオブ ソリッドステート サー
キィッツ、ボル.23,ナンバ.2,エイプリル198
8ア 1.5−ギガエルツ プログラマブル ディバア
イド バイ エヌガリウム ヒ素 カウンタ(IEEE JOU
RNAL OF SOLID-STATE CIRCUITSVOL.23,NO.2,APRIL 1988
"A 1.5-GHz Programmable Divide-by-NGaAs Counte
r")がある。これに論じられているカウンタは、任意の
設定値での分周動作は可能であるが、設定値の計数が完
了したと同時にホールド状態にしたり、外部からの起動
信号を得た時からカウントを開始するなどの機能はな
い。これに対し、ICテスタなどのタイミング発生器に
使用されるカウンタ回路では、このような分周以外にも
多くのカウント機能が要求される。従来はこのような要
求に対し、従来方式のカウンタの周辺に、フリップ・フ
ロップ等の外付け回路を追加して対応していた。
2. Description of the Related Art A conventional programmable counter is an IJ Journal of Solid State Circuits, Vol. 23, number. 2, April 198
8A 1.5-Gigaertz Programmable Divide by Ng Arsenic Counter (IEEE JOU
RNAL OF SOLID-STATE CIRCUITS VOL.23, NO.2, APRIL 1988
"A 1.5-GHz Programmable Divide-by-NGaAs Counte
r "). Although the counter discussed in this section can perform frequency division operation at any set value, it will enter the hold state as soon as the count of the set value is completed, or the start signal from the outside. There is no function such as starting counting from the time when it is obtained, whereas a counter circuit used in a timing generator such as an IC tester requires many counting functions other than such frequency division. Conventionally, an external circuit such as a flip-flop has been added around the conventional counter to meet such a demand.

【0003】[0003]

【発明が解決しようとする課題】本発明の課題は、従来
技術に対し、任意の設定値で分周できるだけでなく、計
数完了と同時にホールドする機能や、外部からの起動信
号によってカウントを開始する機能をもつカウンタを構
成することである。
The object of the present invention is, in contrast to the prior art, that not only the frequency can be divided by an arbitrary set value, but also the function of holding at the same time as the completion of counting and the start of the counting by an activation signal from the outside. It is to configure a counter having a function.

【0004】[0004]

【課題を解決するための手段】前記目的を解決するた
め、本発明はフリップ・フロップと切り替え回路を複数
段従属接続した回路からなるカウンタの基本回路に、全
フリップ・フロップがセットされたことを示す信号(キ
ャリー)をフィードバックし、更に、外部からの起動信
号を入力する端子や、カウントモードを切り替える端子
を設ける。更に、キャリー信号と入力端子からの信号に
応じて、動作モードを切り替える切り替え回路を設け、
そのモードに応じた信号をフリップ・フロップのデータ
入力に入力してプログラマブル・カウンタを構成するこ
とにある。
In order to solve the above-mentioned problems, the present invention provides that all flip-flops are set in a basic circuit of a counter, which is composed of a circuit in which flip-flops and switching circuits are cascade-connected. A terminal for inputting a signal (carry) to be fed back and for inputting an activation signal from the outside, and a terminal for switching the count mode are provided. Further, a switching circuit for switching the operation mode is provided according to the carry signal and the signal from the input terminal,
A programmable counter is configured by inputting a signal corresponding to the mode to the data input of the flip-flop.

【0005】[0005]

【作用】カウントモードは、任意の設定値で分周を繰り
返すモード(1)と、外部からの起動信号でカウントを
開始し、設定値を計数し終えたらカウントをホールドす
るモード(2)の二つのモードを持つ。
The counting mode has two modes: a mode (1) in which frequency division is repeated at an arbitrary set value, and a mode (2) in which counting is started by an external start signal and the count is held when the set value is finished. Has two modes.

【0006】まず、モード(1)ではキャリー信号がで
たとき、カウンタの基本回路であるフリップ・フロップ
に設定値をプリセットするようにフリップ・フロップと
対の切り替え回路を切り替えるよう、動作モード切り替
え回路の状態を設定する。また、設定値のプリセットが
完了したら、再び、通常のカウント状態になるよう各々
の切り替え回路の状態を設定する。これによって、任意
の設定値での分周の繰り返しが可能となる。
First, in mode (1), when a carry signal is output, the operation mode switching circuit is switched so as to switch the switching circuit paired with the flip-flop so as to preset the set value in the flip-flop which is the basic circuit of the counter. Set the state of. When the presetting of the set value is completed, the state of each switching circuit is set again so that the normal count state is reached. This allows the frequency division to be repeated with an arbitrary set value.

【0007】次に、モード(2)では起動信号が入るま
では、フリップ・フロップと対の切り替え回路が設定値
をプリセットする状態となるように、動作モード切り替
え回路の状態を設定する。そして、起動信号が入るとカ
ウント状態となるように、各々の切り替え回路の状態を
設定する。その後、キャリー信号がでたとき、ホールド
状態となるよう各々の切り替え回路の状態を設定する。
これによって外部からの起動信号によるカウント開始
と、カウント終了時のホールドが可能となる。
Next, in the mode (2), the state of the operation mode switching circuit is set so that the switching circuit paired with the flip-flop is in the state of presetting the set value until the activation signal is input. Then, the states of the respective switching circuits are set so that the count state occurs when the activation signal is input. After that, when the carry signal is output, the state of each switching circuit is set so as to be in the hold state.
As a result, it becomes possible to start counting by an activation signal from the outside and hold at the end of counting.

【0008】[0008]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。
Embodiments of the present invention will be described below with reference to the drawings.

【0009】図1は本発明の一実施例として、三ビット
の同期式カウンタを構成した場合の回路図である。1は
D型フリップ・フロップ、2は3入力ANDゲート、3
はE0R、4はAND/EOR、5は切り替え器1(M
UX1)、6は切り替え器2(MUX2)、7はカウン
トクロック(CLK)、8は動作モード切り替え信号
(MODE)、9は起動信号(START)、10は計
数値の入力データ(PD0〜2)、11はカウント終了
信号(COUT)、12はセットモード信号(SE
T)、13はカウントモード信号(CNT)である。
FIG. 1 is a circuit diagram when a 3-bit synchronous counter is constructed as an embodiment of the present invention. 1 is a D-type flip-flop, 2 is a 3-input AND gate, 3
Is E0R, 4 is AND / EOR, 5 is switch 1 (M
UX1), 6 is a switch 2 (MUX2), 7 is a count clock (CLK), 8 is an operation mode switching signal (MODE), 9 is a start signal (START), and 10 is count value input data (PD0 to 2). , 11 is a count end signal (COUT), 12 is a set mode signal (SE
T) and 13 are count mode signals (CNT).

【0010】まず、カウンタの基本構成はD型フリップ
・フロップ1の出力にEOR3、AND/EOR4を接
続し各フリップ・フロップのカウントアップ信号を生成
する。次に、このカウントアップ信号と入力データ10
をMUX1−5で選択してフリップ・フロップ1のD入
力に入力して同期カウンタの基本回路を構成する。ここ
で、本発明の目的である、任意設定値で連続分周するモ
ード(1)と、起動信号によってカウント開始しカウン
ト終了時にホールドするモード(2)を実現するため、
MUX2−6を設け、MODE8、START9、CO
UT11の三信号で切り替え信号SET12、CNT1
3を生成し、MUX1−5に入力する。この、MUX2
−6の各入力信号と出力信号の関係は表1に示す通りと
なる。
First, in the basic configuration of the counter, EOR3 and AND / EOR4 are connected to the output of the D-type flip-flop 1 to generate a count-up signal for each flip-flop. Next, the count-up signal and the input data 10
Is selected by the MUX 1-5 and input to the D input of the flip-flop 1 to form the basic circuit of the synchronous counter. Here, in order to realize the mode (1) of continuous frequency division with an arbitrary set value and the mode (2) of starting counting by the start signal and holding at the end of counting, which are the objects of the present invention,
MUX2-6 is installed, MODE8, START9, CO
Switching signal SET12, CNT1 by three signals of UT11
3 is generated and is input to MUX1-5. This, MUX2
The relationship between each input signal and the output signal of −6 is as shown in Table 1.

【0011】[0011]

【表1】 [Table 1]

【0012】すなわちMODE8信号が”0”の時はモ
ード(1)で、”1”の時はモード(2)となる。
That is, when the MODE8 signal is "0", the mode (1) is set, and when it is "1", the mode (2) is set.

【0013】まず、モード(1)ではカウント終了信号
COUT11が”0”であればカウントアップを続
け、”1”になると入力データ10をプリセットして再
びカウントアップを開始する。
First, in the mode (1), if the count end signal COUT11 is "0", the count-up is continued, and when it becomes "1", the input data 10 is preset and the count-up is started again.

【0014】また、モード(2)ではSTART9信号
が”0”の時はホールド状態であると同時に入力データ
10をプリセットしている。次にこの信号が”1”にな
るとカウントを開始する。この後、START9信号
は”0”になってもカウント終了信号のCOUT11
が”1”になるまでカウントを続ける。そして、COU
T11が”1”になった時点でホールド状態になり、再
び、START9信号が”1”になるまでホールド状態
を維持する。
In mode (2), when the START9 signal is "0", the input data 10 is preset at the same time as the hold state. Next, when this signal becomes "1", counting is started. After this, even if the START9 signal becomes "0", the count end signal COUT11
Continues counting until becomes "1". And COU
When T11 becomes "1", the hold state is set, and the hold state is maintained until the START9 signal becomes "1" again.

【0015】なお、本実施例では、本発明の機能を説明
する都合上、カスケード接続を可能にするためのキャリ
ー入力や、マスターリセット、プリセット、ホールド等
の機能を実現する回路は省略している。また、本実施例
では三ビットの同期式アップカウンタの場合を示した
が、ビット数を増やすことや、非同期式、ダウンカウン
タなどに構成を変えることは本実施例から容易に推定可
能である。
In the present embodiment, for the convenience of explaining the function of the present invention, the circuits for realizing the carry input for enabling the cascade connection and the functions such as master reset, preset and hold are omitted. .. Further, in the present embodiment, the case of the 3-bit synchronous up counter has been shown, but it is possible to easily estimate from the present embodiment that the number of bits is increased or the configuration is changed to an asynchronous type, a down counter or the like.

【0016】[0016]

【発明の効果】本発明によれば、高機能なプログラマブ
ル・カウンタを実現できる。また、本カウンタをICテ
スタ等のタイミング発生回路に適用することで、レート
・カウンタやフェーズ・カウンタを容易に構成できる。
更に、波形ディジタイザや、ロジックアナライザなどの
トリガ回路の遅延ディレイカウンタとしても適用可能で
ある。また、IC化が容易な回路構成であるため、更に
小型化が実現できる。
According to the present invention, a highly functional programmable counter can be realized. Further, by applying this counter to a timing generation circuit such as an IC tester, a rate counter or a phase counter can be easily constructed.
Further, it can be applied as a delay / delay counter of a trigger circuit such as a waveform digitizer or a logic analyzer. Further, since the circuit configuration is easy to be integrated into an IC, further miniaturization can be realized.

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

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

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

1…D型フリップ・フロップ、 2…三入力AND、 3…EOR、 4…AND/EOR、 5…切り替え器、 6…切り替え器、 7…カウントクロック信号、 8…動作モード切り替え信号、 9…起動信号、 10…入力データ、 11…カウント終了信号、 12…セットモード信号、 13…カウントモード信号。 1 ... D-type flip-flop, 2 ... Three-input AND, 3 ... EOR, 4 ... AND / EOR, 5 ... Switcher, 6 ... Switcher, 7 ... Count clock signal, 8 ... Operation mode switching signal, 9 ... Start-up Signal, 10 ... Input data, 11 ... Count end signal, 12 ... Set mode signal, 13 ... Count mode signal.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】フリップ・フロップと、前記フリップ・フ
ロップのデータ入力の切り替え回路から成る基本回路
を、複数段従属接続して構成するカウンタ回路におい
て、全フリップ・フロップがセットされたことを示す信
号をフィードバックし、同時に外部からの起動信号と動
作モード切り替え信号を入力し、キャリー信号と各入力
信号によって動作モードの切り替えを可能として、任意
の設定値での連続分周と、外部からの起動信号が入力さ
れた時点から一回だけの計数を可能としたことを特徴と
するプログラマブル・カウンタ。
1. A signal indicating that all flip-flops have been set in a counter circuit configured by cascade-connecting a basic circuit consisting of flip-flops and a data input switching circuit of the flip-flops. The input of the start signal and the operation mode switching signal from the outside at the same time, the operation mode can be switched by the carry signal and each input signal, continuous division at any set value, and the start signal from the outside. A programmable counter characterized in that counting is possible only once when is input.
JP24549091A 1991-09-25 1991-09-25 Programmable counter Pending JPH0583124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24549091A JPH0583124A (en) 1991-09-25 1991-09-25 Programmable counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24549091A JPH0583124A (en) 1991-09-25 1991-09-25 Programmable counter

Publications (1)

Publication Number Publication Date
JPH0583124A true JPH0583124A (en) 1993-04-02

Family

ID=17134439

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24549091A Pending JPH0583124A (en) 1991-09-25 1991-09-25 Programmable counter

Country Status (1)

Country Link
JP (1) JPH0583124A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100613048B1 (en) * 1999-12-28 2006-08-17 주식회사 하이닉스반도체 Flexible counter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100613048B1 (en) * 1999-12-28 2006-08-17 주식회사 하이닉스반도체 Flexible counter

Similar Documents

Publication Publication Date Title
JPH0439690B2 (en)
US8633739B2 (en) Frequency divider circuit
JPH03136513A (en) Device for converting d-type flip-flop into b-type flip-flop able to sample data by both of front edge and rear edge of clock signal
JPH04288607A (en) Clock signal switching circuit
JPH0373176B2 (en)
JPH0583124A (en) Programmable counter
US5521952A (en) Pulse counter circuit and pulse signal changeover circuit therefor
JP3372858B2 (en) counter
JP2737607B2 (en) Clock switching circuit
JPH06311025A (en) Up-down counter circuit
JP2792759B2 (en) Synchronous clock generation circuit
JPH1013395A (en) Phase synchronization circuit
JP3562321B2 (en) Clock signal switching device
JPH05259895A (en) Frequency divider of odd number frequency division ratio
GB2233132A (en) Synchronous frequency-dividing circuit
JP2621205B2 (en) Divider circuit
JP3337088B2 (en) Counter circuit with pause input
JPH04186913A (en) Edge detecting circuit
JPH0786889A (en) Pulse signal generating circuit
JP2512229B2 (en) Asynchronous clock selection circuit
JP2002176343A (en) Semiconductor integrated circuit device
JP2000068820A (en) Integrated circuit
JPS6128422Y2 (en)
JP2994882B2 (en) Divider circuit
SU1529043A1 (en) Apparatus for compression of information