JPH10145226A - Counter output value determining circuit - Google Patents
Counter output value determining circuitInfo
- Publication number
- JPH10145226A JPH10145226A JP29855296A JP29855296A JPH10145226A JP H10145226 A JPH10145226 A JP H10145226A JP 29855296 A JP29855296 A JP 29855296A JP 29855296 A JP29855296 A JP 29855296A JP H10145226 A JPH10145226 A JP H10145226A
- Authority
- JP
- Japan
- Prior art keywords
- value
- signal
- terminal
- circuit
- output
- 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
- Manipulation Of Pulses (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、デジタル回路で構
成されるカウンタの出力値に関して、予め指定する出力
値の範囲を判断するための回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a circuit for judging a range of an output value designated in advance with respect to an output value of a counter constituted by a digital circuit.
【0002】[0002]
【従来の技術】デジタル回路によるカウンタの出力値
の、ある値(先頭の値)から別のある値(最後の値)ま
での間を指定するような信号を出力するためには、従来
は図4に示すような方法を採用していた。2. Description of the Related Art Conventionally, in order to output a signal which designates an output value of a counter by a digital circuit from a certain value (the first value) to another certain value (the last value), a conventional method is used. The method shown in FIG.
【0003】図4はページャー等の無線端末装置の周波
数シンセサイザー回路に供給する制御信号を作り出す場
合の例を示すカウンタ出力値判断回路である。回路は8
ビットカウンタ1と8入力ANDゲート2(同じ物が全
部で97素子存在)と97入力ORゲート3で構成され
ている。FIG. 4 shows a counter output value judging circuit showing an example of generating a control signal to be supplied to a frequency synthesizer circuit of a radio terminal device such as a pager. The circuit is 8
It comprises a bit counter 1, an 8-input AND gate 2 (the same thing has a total of 97 elements), and a 97-input OR gate 3.
【0004】Tはカウンタ1のためのクロック信号、Q
0〜Q7はカウンタ1の出力で、B0〜B7はカウンタ
1の各段の正相の出力、C0〜C7はカウンタ1の各段
の反転の出力、A8〜A104はカウンタ1の出力値の
論理をもとに作り出したそれぞれ8クロック目から10
4クロック目であることを指示する信号、Qは信号A8
〜A104の論理ORを取って8クロック目から104
クロック目である間に論理Hを出力する信号である。[0004] T is a clock signal for the counter 1, Q
0 to Q7 are the outputs of the counter 1, B0 to B7 are the positive phase outputs of the respective stages of the counter 1, C0 to C7 are the inverted outputs of the respective stages of the counter 1, and A8 to A104 are the logical values of the output values of the counter 1. From 8th clock to 10
A signal indicating that it is the fourth clock, Q is a signal A8
論理 Take the logical OR of A104 to 104 from the 8th clock
This is a signal that outputs a logic H during the clock.
【0005】この例では、8ビットカウンタ1がクロッ
クTにて動作する過程で、8クロック目の時間から10
4クロック目の時間だけ連続して出力されるような出力
Qを必要とするものとする。In this example, during the operation of the 8-bit counter 1 at the clock T, 10-
It is assumed that an output Q that is output continuously for the time of the fourth clock is required.
【0006】8クロック目であることを指示する信号A
8は、以下の論理式にて作成される。 A8=(C0*C1*C2*B3*C4*C5*C6*
C7) 尚、記号*は論理ANDを意味している。A signal A indicating the eighth clock
8 is created by the following logical expression. A8 = (C0 * C1 * C2 * B3 * C4 * C5 * C6 *
C7) The symbol * indicates a logical AND.
【0007】この様な論理式を97通り組むことによっ
て、信号A8から信号A104を得ることができ、そし
て、97入力ORゲート3によってこれらの信号A8〜
A104の論理ORを取ることによって、目的とする所
定の出力信号Qを得ていた。By combining 97 such logical expressions, a signal A104 can be obtained from the signal A8, and these signals A8 to A8 are output by the 97-input OR gate 3.
By taking the logical OR of A104, the intended predetermined output signal Q has been obtained.
【0008】図5は以上の一連の動作をタイミングチャ
ートとして示したもので、先頭の一つ前の値を指示する
信号A7及び最後の次の値を指示する信号A105も合
せて示している。FIG. 5 is a timing chart showing the above-described series of operations, and also shows a signal A7 indicating the value immediately before the head and a signal A105 indicating the next value after the end.
【0009】[0009]
【発明が解決しようとする課題】以上説明した従来技術
においては、8クロック目から104クロック目である
ことを指示する信号A8〜A104をそれぞれ別個に作
成して、さらにこれらの信号の論理ORを取って、最終
希望信号Qを得るようにしたので、回路規模が膨大にな
るといった欠点があった。In the prior art described above, the signals A8 to A104 indicating the 8th clock to the 104th clock are separately generated, and the logical OR of these signals is determined. In addition, since the final desired signal Q is obtained, there is a disadvantage that the circuit scale becomes enormous.
【0010】ここで、回路規模を具体的数値にて示して
おくと、2入力ANDゲートを1ゲートとする基本ゲー
ト換算では、8入力ANDゲート2は5ゲートに相当す
る。また、97入力ORゲート3は60ゲートに相当す
る。これらの条件より、従来例で表される8ビットカウ
ンタ1を除くゲート数は、(5×97)+60=545
ゲートとなっていた。Here, when the circuit scale is shown by specific numerical values, an 8-input AND gate 2 corresponds to 5 gates in terms of a basic gate in which one 2-input AND gate is used. The 97-input OR gate 3 corresponds to 60 gates. From these conditions, the number of gates excluding the 8-bit counter 1 represented in the conventional example is (5 × 97) + 60 = 545.
Had become a gate.
【0011】[0011]
【課題を解決するための手段】請求項1の発明において
は、先頭の値を指示する信号と最後の次の値を指示する
信号とを作成し、前記信号をそれぞれRSタイプフリッ
プフロップ回路のS(セット)端子とR(リセット)端
子に入力させて所定の出力信号を得ている。According to the first aspect of the present invention, a signal designating a first value and a signal designating a last next value are created, and the signals are respectively sent to the RS type flip-flop circuit in the S type. A predetermined output signal is obtained by inputting to a (set) terminal and an R (reset) terminal.
【0012】請求項2の発明においては、先頭の1つ前
の値を指示する信号と最後の次の値を指示する信号とを
作成し、前記信号をそれぞれDタイプフリップフロップ
回路のD端子とR(リセット)端子に入力させて所定の
出力信号を得ている。According to the second aspect of the present invention, a signal designating a value immediately before the head and a signal designating the next value at the end are created, and the signals are respectively connected to a D terminal of a D-type flip-flop circuit. A predetermined output signal is obtained by inputting the signal to an R (reset) terminal.
【0013】[0013]
【発明の実施の形態】図1は本発明の第1の実施形態を
示す回路図で、図4と同一の働きをする構成要素、信号
には同一の符号を付与してある。FIG. 1 is a circuit diagram showing a first embodiment of the present invention. Components and signals having the same functions as those in FIG. 4 are denoted by the same reference numerals.
【0014】図1の回路では、ある値(先頭の値)から
別のある値(最後の値)までの間を指定する信号を出力
するために、先頭の値を指示する信号A8と最後の次の
値を指示する信号A105を2個の8入力ANDゲート
2で作成し、信号A8をRSフリップフロップ回路4の
S端子に入力し、信号A105をR端子に入力してい
る。In the circuit shown in FIG. 1, in order to output a signal designating a range from a certain value (the first value) to another certain value (the last value), a signal A8 indicating the first value and a last signal A8 indicating the last value are output. A signal A105 indicating the next value is generated by two 8-input AND gates 2, the signal A8 is input to the S terminal of the RS flip-flop circuit 4, and the signal A105 is input to the R terminal.
【0015】RSフリップフロップ回路4は、セット端
子Sとリセット端子Rとを持つフリップフロップ素子で
あり、S端子に論理Hの信号が加わると、以後出力Qは
論理Hの状態を保持し、またR端子に論理Hの信号が加
わると、以後出力Qは論理Lの状態を保持する。S端子
とR端子とが同時に論理Hとなった場合は、R端子への
入力が優先される。ここでこのRSフリップフロップ回
路4の初期値が論理Lであるとして動作の説明をする。
従来技術で説明した論理式によって8クロック目を指示
する信号A8を得る。The RS flip-flop circuit 4 is a flip-flop element having a set terminal S and a reset terminal R. When a logic H signal is applied to the S terminal, the output Q keeps a logic H state thereafter. When a signal of logic H is applied to the R terminal, the output Q thereafter maintains the state of logic L. When the S terminal and the R terminal are simultaneously set to logic H, the input to the R terminal has priority. Here, the operation will be described assuming that the initial value of the RS flip-flop circuit 4 is logic L.
The signal A8 indicating the eighth clock is obtained by the logical expression described in the related art.
【0016】この信号A8をRSフリップフロップ回路
4のS端子に入力すると、RSフリップフロップ回路4
の出力Qは論理Hに替わる。このRSフリップフロップ
回路4は、次に信号が入力されるまでの間は出力の状態
を保持するので、出力Qは論理Hのままである。When this signal A8 is input to the S terminal of the RS flip-flop circuit 4,
Output Q changes to logic H. Since the RS flip-flop circuit 4 keeps the output state until the next signal is input, the output Q remains at logic H.
【0017】ここで次に示す論理式により105クロッ
ク目を指示する信号A105を作成する。 A105=(B0*C1*C2*B3*C4*B5*B
6*C7) この信号A105をRSフリップフロップ回路4のR端
子に入力すると、RSフリップフロップ回路4の出力Q
は論理Hから論理Lに替わる。Here, a signal A105 indicating the 105th clock is generated by the following logical expression. A105 = (B0 * C1 * C2 * B3 * C4 * B5 * B
6 * C7) When this signal A105 is input to the R terminal of the RS flip-flop circuit 4, the output Q of the RS flip-flop circuit 4
Changes from logic H to logic L.
【0018】このようにして従来技術で説明したものと
完全に等しい図5に示した所定の出力信号Qを得ること
ができる。In this way, a predetermined output signal Q shown in FIG. 5 which is completely equal to that described in the prior art can be obtained.
【0019】図2は本発明の第2の実施形態を示す回路
図で、図1と同じものには同一符号を付してあり、図1
のRSタイプフリップフロップ回路4の代りにDタイプ
フリップフロップ回路5を用いている。FIG. 2 is a circuit diagram showing a second embodiment of the present invention. In FIG. 2, the same components as those in FIG.
The D type flip-flop circuit 5 is used in place of the RS type flip-flop circuit 4 described above.
【0020】図2の回路では、先頭の1つ前の値を指示
する信号A7と最後の次の値を指示する信号A105を
2個の8入力ANDゲート2で作成し、信号A7をDフ
リップフロップ回路5のD端子に入力し、信号105を
R端子に入力し、クロック信号Tをクロック端子CKに
入力している。In the circuit shown in FIG. 2, a signal A7 designating the value immediately before the head and a signal A105 designating the next value at the end are generated by two 8-input AND gates 2, and the signal A7 is D flip-flop. The signal 105 is input to the R terminal, and the clock signal T is input to the clock terminal CK.
【0021】以下動作について、図5及びその詳細図で
ある図を参照して説明する。まず、次に示す論理式によ
り7クロック目を指示する信号A7を作成する。 A7=(B0*B1*B2*C3*C4*C5*C6*
C7) この信号A7をDフリップフロップ回路5のD端子に入
力すると、次の8クロック目にこれが出力Qとして現れ
る。The operation will be described below with reference to FIG. 5 and its detailed diagram. First, a signal A7 indicating the seventh clock is generated by the following logical expression. A7 = (B0 * B1 * B2 * C3 * C4 * C5 * C6 *
C7) When this signal A7 is input to the D terminal of the D flip-flop circuit 5, it appears as an output Q at the next eighth clock.
【0022】Dフリップフロップ回路5は、D端子の入
力に変化が無ければRSフリップフロップ回路4と同様
にその出力状態を保持するので、出力Qは論理Hのまま
となる。If there is no change in the input of the D terminal, the D flip-flop circuit 5 holds its output state similarly to the RS flip-flop circuit 4, so that the output Q remains at logic H.
【0023】次にDフリップフロップ回路5のR端子に
図1の場合と同じく105クロック目であることを指示
する信号A105が入力されると、瞬時に出力Qが論理
Lに戻る。Next, when a signal A105 indicating the 105th clock is input to the R terminal of the D flip-flop circuit 5 as in the case of FIG. 1, the output Q immediately returns to logic L.
【0024】以上説明した過程にて、従来技術で説明し
たものと完全に等しい所定の出力信号Qを得ることがで
きる。In the process described above, a predetermined output signal Q completely equal to that described in the prior art can be obtained.
【0025】図3はこれらの様子を8ビットカウンタ1
の素子遅延及びDフリップフロップ5の素子遅延を加え
て詳細に示したものである。FIG. 3 shows these states in an 8-bit counter 1
2 and the element delay of the D flip-flop 5 are shown in detail.
【0026】尚、上記の実施形態では8ビットカウンタ
と8入力ANDゲートで説明したが、8に限定したもの
ではないことは勿論である。Although the above embodiment has been described with reference to an 8-bit counter and an 8-input AND gate, it is needless to say that the present invention is not limited to eight.
【0027】ちなみに、8入力ANDゲートの場合に、
従来例では545ゲート必要としていた回路が、本発明
では2個の8入力ANDゲートで実現できるので、第1
の実施形態ではRSフリップフロップ回路を5ゲート換
算すると15ゲートで構成できる。By the way, in the case of an 8-input AND gate,
The circuit which required 545 gates in the conventional example can be realized by two 8-input AND gates in the present invention.
In the embodiment, when the RS flip-flop circuit is converted into 5 gates, it can be configured with 15 gates.
【0028】第2の実施形態では、Dフリップフロップ
回路を8ゲート換算すると18ゲートで構成することが
できる。In the second embodiment, the D flip-flop circuit can be constituted by 18 gates in terms of 8 gates.
【0029】[0029]
【発明の効果】以上詳細に説明したように、本発明によ
れば、デジタル回路によるカウンタの出力値のある値
(先頭の値)から別のある値(最後の値)までの間を指
定するような信号を出力するために、2個のANDゲー
トで先頭又は先頭の1つ前の値を指示する信号と最後の
次の値を指示する信号をフリップフロップ回路に入力す
るようにしたので、全体の回路を構成する回路規模を著
しく削減することが可能となった。As described above in detail, according to the present invention, a range from a certain value (the leading value) of the output value of the counter by the digital circuit to another certain value (the last value) is designated. In order to output such a signal, two AND gates are used to input a signal indicating the first value or the value immediately before the first and a signal indicating the next next value to the flip-flop circuit. It has become possible to remarkably reduce the circuit scale constituting the entire circuit.
【図1】本発明の第1の実施形態を示す回路図FIG. 1 is a circuit diagram showing a first embodiment of the present invention.
【図2】本発明の第2の実施形態を示す回路図FIG. 2 is a circuit diagram showing a second embodiment of the present invention.
【図3】本発明の第2の実施形態のタイミング説明図FIG. 3 is a timing explanatory diagram of the second embodiment of the present invention.
【図4】従来のカウンタ出力値判断回路を示す図FIG. 4 is a diagram showing a conventional counter output value determination circuit.
【図5】カウンタ出力値判断回路のタイミングチャートFIG. 5 is a timing chart of a counter output value determination circuit.
1 8ビットカウンタ 2 8入力ANDゲート 4 RSタイプフリップフロップ回路 5 Dタイプフリップフロップ回路 A7〜A105 7クロック目から105クロック目
を指示する信号 Q 出力信号 S セット端子 RS リセット端子 D Dタイプフリップフロップ回路のD端子Reference Signs List 1 8-bit counter 2 8-input AND gate 4 RS-type flip-flop circuit 5 D-type flip-flop circuit A7 to A105 Signal indicating the 7th to 105th clocks Q Output signal S Set terminal RS Reset terminal DD D-type flip-flop circuit D terminal
Claims (3)
ある値から別のある値までの間を指定するような信号を
出力するための回路において、 先頭の値を指示する信号と最後の次の値を指示する信号
とを前記カウンタ出力値をもとに作成し、 前記先頭の値を指示する信号をRSタイプフリップフロ
ップ回路のS端子に入力し、前記最後の次の値を指示す
る信号を前記RSタイプフリップフロップ回路のR端子
に入力することによって、 所定の出力信号を得ることを特徴とするカウンタ出力値
判断回路。1. A circuit for outputting a signal that designates a range from one value of a counter output value to another value by a digital circuit, wherein a signal indicating a leading value and a last next value are provided. And a signal indicating the first value is input to the S terminal of the RS type flip-flop circuit, and the signal indicating the last next value is input to the S terminal of the RS type flip-flop circuit. A counter output value judging circuit, wherein a predetermined output signal is obtained by inputting to an R terminal of an RS type flip-flop circuit.
ある値から別のある値までの間を指定するような信号を
出力するための回路において、 先頭の1つ前の値を指示する信号と最後の次の値を指示
する信号とを前記カウンタ出力値をもとに作成し、 前記先頭の1つ前の値を指示する信号をDタイプフリッ
プフロップ回路のD端子に入力し、前記最後の次の値を
指示する信号をDタイプフリップフロップ回路のR端子
に入力することによって、 所定の出力信号を得ることを特徴とするカウンタ出力値
判断回路。2. A circuit for outputting a signal which designates a range from one value of a counter output value to another value by a digital circuit. And a signal indicating the next value of the counter is created based on the output value of the counter. A signal indicating the value immediately before the head is input to the D terminal of the D-type flip-flop circuit, A predetermined output signal is obtained by inputting a signal instructing the value of R to the R terminal of the D-type flip-flop circuit.
示する信号と前記最後の次の値を指示する信号を2個の
ANDゲートで作成することを特徴とする請求項1又は
請求項2に記載のカウンタ出力値判断回路。3. A signal for designating the first value or a value immediately before the first value and a signal for designating the last next value by two AND gates. A counter output value judging circuit according to claim 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29855296A JPH10145226A (en) | 1996-11-11 | 1996-11-11 | Counter output value determining circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29855296A JPH10145226A (en) | 1996-11-11 | 1996-11-11 | Counter output value determining circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH10145226A true JPH10145226A (en) | 1998-05-29 |
Family
ID=17861220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29855296A Pending JPH10145226A (en) | 1996-11-11 | 1996-11-11 | Counter output value determining circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH10145226A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006191530A (en) * | 2004-12-30 | 2006-07-20 | Hynix Semiconductor Inc | Counter circuit for controlling off-chip driver, and output current value changing method for the off-chip driver using the same |
-
1996
- 1996-11-11 JP JP29855296A patent/JPH10145226A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006191530A (en) * | 2004-12-30 | 2006-07-20 | Hynix Semiconductor Inc | Counter circuit for controlling off-chip driver, and output current value changing method for the off-chip driver using the same |
JP4632920B2 (en) * | 2004-12-30 | 2011-02-16 | 株式会社ハイニックスセミコンダクター | Off-chip driver control counter circuit and off-chip driver output current value changing method using the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5247656A (en) | Method and apparatus for controlling a clock signal | |
US5490182A (en) | Phase-locked loop circuit having ring oscillator | |
JP2576366B2 (en) | Variable delay buffer circuit | |
JPH1117526A (en) | Up/down conversion counter | |
US3988597A (en) | Time correction circuits for electronic timepieces | |
KR940005006B1 (en) | Frequency division circuits where the division ratio can be changed | |
JPH0556085A (en) | Interface circuit | |
JPH10145226A (en) | Counter output value determining circuit | |
US5656958A (en) | Frequency synthesizing device | |
KR100249019B1 (en) | Frequency dividing circuit | |
JPH11112296A (en) | Double edge d-flip flop circuit | |
US5642060A (en) | Clock generator | |
US20060109948A1 (en) | High frequency counter circuit | |
SU1437994A1 (en) | Synchronous counter | |
JPH1168555A (en) | Clock frequency dividing changeover circuit | |
US5565797A (en) | Clock signal generating device | |
JPH0691425B2 (en) | Frequency divider using D-type flip-flop | |
JP3069329U (en) | Up / down conversion counter | |
KR910008726Y1 (en) | Frequency vehicle circuit by mode switching of pcm voice signal | |
JPH0529924A (en) | 1/9 frequency divider circuit | |
JPH01116815A (en) | Clock switching circuit | |
JPH0425912A (en) | Timing generation circuit | |
JPH1197988A (en) | Clock switching circuit | |
JPH04105415A (en) | Signal selection circuit | |
JPH0756651A (en) | Clock generating circuit |