JPH03263921A - Counter with preset - Google Patents

Counter with preset

Info

Publication number
JPH03263921A
JPH03263921A JP6317690A JP6317690A JPH03263921A JP H03263921 A JPH03263921 A JP H03263921A JP 6317690 A JP6317690 A JP 6317690A JP 6317690 A JP6317690 A JP 6317690A JP H03263921 A JPH03263921 A JP H03263921A
Authority
JP
Japan
Prior art keywords
preset
input terminal
counter
input
bit
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
JP6317690A
Other languages
Japanese (ja)
Inventor
Masao Ikushima
正雄 生嶋
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6317690A priority Critical patent/JPH03263921A/en
Publication of JPH03263921A publication Critical patent/JPH03263921A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To realize an n-bit counter with preset in which the number of input terminals are reduced to a minimum by detecting the rise or fall of a signal inputted to the input terminal, and outputting a loading signal to the n-bit counter after the lapse of bits >=(n). CONSTITUTION:When the preset data of (n) bits converted to serial data is inputted to the input terminal 11 in a state where a shift register 1 is enabled, the preset data is stored in the shift register 1, and the preset data is inputted to the preset data input terminal 4 of the counter 2 with preset. Meanwhile, a loading signal delay circuit 13, in the case of detecting the rise of the input terminal 11, the loading signal is outputted to the counter 2 with preset after the lapse of time of the bits >=(n) after the rise is detected. A preset operation can be performed since the preset data inputted from the input terminal 11 is inputted to the preset input terminal of the counter 2 with preset.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はプリセット付きカウンタに関するものである。[Detailed description of the invention] Industrial applications The present invention relates to a counter with presets.

従来の技術 近年、集積回路の大規模が進み、それにともない集積回
路の入出力端子数が増加し、決められた端子数のパッケ
ージに納めるための工夫が多くなされるようになってき
ている。
BACKGROUND OF THE INVENTION In recent years, the scale of integrated circuits has increased, and the number of input/output terminals of integrated circuits has increased, and many efforts have been made to fit the integrated circuits into a package with a predetermined number of terminals.

まず、最初に従来例で入力端子数を減らすための工夫と
してプリセットデータの入力にシフトレジスタを用い、
入力端子数を減らしたプリセット付きカウンタについて
、以下図面を参照しながら説明する。
First, in order to reduce the number of input terminals in the conventional example, a shift register was used to input the preset data.
A preset counter with a reduced number of input terminals will be described below with reference to the drawings.

第3図は、従来の入力端子数を減らすための工夫として
プリセットデータの入力にシフトレジスタを用いたプリ
セット付きカウンタのブロック図である。第3図におい
て、1はプリセット付きカウンタのプリセットデータを
記憶するnビットのシフトレジスタ、2はプリセット付
きnビットカウンタ、3はシフトレジスタ1の出力端子
、4はプリセット付きカウンタ2のプリセットデータの
入力端子、5はプリセット付きカウンタ2の出力端子、
6はクロック入力端子、7はシフトレジスタ1のプリセ
ットデータ入力端子、8はシフトレジスタ1のイネーブ
ル信号入力端子、9はプリセット付きカウンタのロード
信号入力端子である。
FIG. 3 is a block diagram of a conventional counter with preset that uses a shift register to input preset data as a measure to reduce the number of input terminals. In Fig. 3, 1 is an n-bit shift register that stores preset data of a counter with preset, 2 is an n-bit counter with preset, 3 is an output terminal of shift register 1, and 4 is an input of preset data of counter 2 with preset. Terminal 5 is the output terminal of counter 2 with preset,
6 is a clock input terminal, 7 is a preset data input terminal of the shift register 1, 8 is an enable signal input terminal of the shift register 1, and 9 is a load signal input terminal of the counter with preset.

第4図は第3図に示された従来例のプリセット付きカウ
ンタのタイミング図である。
FIG. 4 is a timing diagram of the conventional preset counter shown in FIG.

以上のように構成されたプリセット付きカウンタについ
て、以下その動作を説明する。まず最初にシフトレジス
タ1をイネーブル状態にしてシリアルデータに変換され
たプリセットするデータをシフトレジスタ1のプリセッ
トデータ入力端子7に入力する。入力されたシリアルデ
ータは、クロックに同期して順次シフトレジスタに取り
込まれ、プリセットするnビットのデータが揃った時点
でシフトレジスタをディスエーブル状態にすれば、シフ
トレジスタ1の出力端子3とプリセット付きカウンタの
入力端子は接続されているため以降プリセット付きカウ
ンタ2のプリセットデータの入力端子4にはプリセット
データが入力されていることとなる。この状態でプリセ
ット付きカウンタ2にロード信号を入力すれば、プリセ
、ソト付きカウンタの出力はプリセットされたデータに
なる。この従来例では、プリセットデータの入力にシフ
トレジスタを用いることによりプリセット付きカウンタ
2のプリセットデータ入力端子数をn本からシフトレジ
スタのプリセットデータ入力端子とシフトレジスタのイ
ネーブル信号入力端子の2端子に減らすことが可能とな
っている。
The operation of the preset counter configured as described above will be described below. First, the shift register 1 is enabled and preset data converted into serial data is input to the preset data input terminal 7 of the shift register 1. The input serial data is sequentially fetched into the shift register in synchronization with the clock, and if the shift register is disabled when the n-bit data to be preset is complete, the output terminal 3 of shift register 1 and the preset Since the input terminals of the counter are connected, preset data will be input to the preset data input terminal 4 of the counter 2 with preset. If a load signal is input to the preset counter 2 in this state, the output of the preset and sort counter will become the preset data. In this conventional example, by using a shift register to input preset data, the number of preset data input terminals of the counter 2 with preset is reduced from n to two terminals: the preset data input terminal of the shift register and the enable signal input terminal of the shift register. It is now possible.

発明が解決しようとする課題 しかしながら上記のような構成では、プリセット付きカ
ウンタのロード信号入力端子およびクロック入力端子以
外にシフトレジストのプリセットデータ入力端子とシフ
トレジスタのイネーブル信号入力端子の2本の入力端子
が必要となっている。
Problems to be Solved by the Invention However, in the above configuration, in addition to the load signal input terminal and clock input terminal of the counter with preset, there are two input terminals: the preset data input terminal of the shift register and the enable signal input terminal of the shift register. is needed.

本発明は上記課題に鑑み、プリセット付きカウンタのロ
ード信号入力端子がプリセットデータの入力端子を兼ね
る工夫をして入力端子数を最小限にしたプリセット付き
カウンタを提供するものである。
In view of the above problems, the present invention provides a counter with a preset in which the load signal input terminal of the counter with a preset also serves as an input terminal of preset data, thereby minimizing the number of input terminals.

課題を解決するための手段 上記課題を解決するために本発明は、n本のプリセット
データ入力端子を持ったプリセット付きnビットカウン
タと、シリアルデータに変換された前記プリセット付き
nビットカウンタのプリセットデータの入力と前記プリ
セット付きnビットカウンタのロード信号の入力を兼ね
る入力端子と、前記入力端子から入力されるnビットの
プリセットデータを記憶するnビットシフトレジスタと
、前記入力端子に入力された信号の立ち上がり、または
立ち下がりを検出して前記nビットシフトレジスタのイ
ネーブル信号を発生するシフトイネーブル信号発生回路
と、前記入力端子に入力された信号の立ち上がり、また
は立ち下がりを検出し、nビット以上経過した後、前記
プリセット付きnビットカウンタにロード信号を出力す
るロード信号遅延回路とを備えたものである。
Means for Solving the Problems In order to solve the above problems, the present invention provides an n-bit counter with presets having n preset data input terminals, and preset data of the n-bit counter with presets converted into serial data. an input terminal that also serves as an input for the input of the n-bit counter with a preset and a load signal for the n-bit counter with a preset; an n-bit shift register that stores the n-bit preset data input from the input terminal; a shift enable signal generation circuit that detects a rising edge or a falling edge and generates an enable signal for the n-bit shift register; and a shift enable signal generation circuit that detects a rising edge or a falling edge of a signal input to the input terminal, and detects a rising edge or a falling edge of the signal input to the input terminal, and detects a rising edge or a falling edge of the signal input to the input terminal, and a shift enable signal generating circuit that detects a rising edge or a falling edge of the signal and generates an enable signal for the n-bit shift register. and a load signal delay circuit for outputting a load signal to the n-bit counter with preset.

作用 本発明は上記した構成によって、プリセット付きカウン
タのロード信号入力端子がプリセットデータの入力端子
を兼ねることが可能となり入力端子数を最小限にしたプ
リセット付きnビットカウンタを実現できる。
Function: With the above-described configuration, the present invention enables the load signal input terminal of the preset counter to also serve as the preset data input terminal, thereby realizing an n-bit counter with preset with a minimum number of input terminals.

実施例 以下、本発明を一実施例により、図面を参照しながら説
明する。
EXAMPLE Hereinafter, the present invention will be explained by way of an example with reference to the drawings.

第1図は本実施例のブロック図である。第1図において
、1はプリセット付きカウンタのプリセットデータを記
憶するnビットのシフトレジスタ、2はプリセット付き
nビットカウンタ、3はシフトレジスタ1の出力端子、
4はプリセット付きnビットカウンタ2のプリセットデ
ータ入力端子、5はプリセット付きnビットカウンタ2
の出力端子、6はクロック入力端子、8はシフトレジス
タ1のイネーブル信号入力端子、9はプリセット付きカ
ウンタのロード信号入力端子で以上は従来例と同じ構成
のものである。10はシリアルデータに変換されたプリ
セット付きnビットカウンタ2のプリセットデータの入
力とプリセット付きnビットカウンタ2のロード信号の
入力を兼ねる入力端子、11は入力端子11に入力され
た信号の立ち上がり、または立ち下がりを検出してシフ
トレジスタ1のイネーブル信号を発生するシフトイネー
ブル信号発生回路、12はシフトイネーブル信号発生回
路の出力端子、13は入力端子11に入力された信号の
立ち上がり、または立ち下がりを検出してnビット以上
経過した後、プリセット付きnビットカウンタ2にロー
ド信号を出力するロード信号遅延回路、14はロード信
号遅延回路の出力端子である。
FIG. 1 is a block diagram of this embodiment. In FIG. 1, 1 is an n-bit shift register that stores preset data of a counter with preset, 2 is an n-bit counter with preset, 3 is an output terminal of shift register 1,
4 is a preset data input terminal of n-bit counter 2 with preset, 5 is n-bit counter 2 with preset
, 6 is a clock input terminal, 8 is an enable signal input terminal for the shift register 1, and 9 is a load signal input terminal for a preset counter, which has the same structure as the conventional example. 10 is an input terminal which also serves as an input of preset data of the n-bit counter 2 with preset converted into serial data and a load signal of the n-bit counter 2 with preset, and 11 is a rising edge of the signal input to the input terminal 11, or A shift enable signal generation circuit detects a falling edge and generates an enable signal for the shift register 1. 12 is an output terminal of the shift enable signal generation circuit. 13 detects a rising edge or a falling edge of a signal input to the input terminal 11. 14 is an output terminal of the load signal delay circuit which outputs a load signal to the n-bit counter 2 with preset after n bits or more have elapsed.

第2図は第1図の従来例のプリセット付きカウンタのタ
イミング図である。
FIG. 2 is a timing diagram of the conventional preset counter shown in FIG.

次に、このように構成された本発明のプリセット付きカ
ウンタについて、第1図、および第2図を用いて、その
動作を説明する。今回の説明は、入力端子10がハイレ
ベルになったとき、すなわち、入力信号の立ち上がりで
ロード動作を開始するものとして説明する。まず、シフ
トイネーブル信号発生回路11は、入力端子10に入力
された信号の立ち上がりを検出すると、nビットシフト
レジスタがイネーブル状態になる信号をnビット間シフ
トレジスタ1に出力する。シフトレジスタ1がイネーブ
ル状態になっているときに入力端子11にシリアルデー
タに変換されたnビットのプリセットデータを入力すれ
ば、シフトレジスタ1にプリセットデータが記憶され、
プリセット付きカウンタ2のプリセットデータ入力端子
4にプリセットデータが入力されることとなる。一方、
ロード信号遅延回路13は、入力端子11の立ち上がり
を検出すると、以降nビットの間は立ち上がり検出を行
なわず、立ち上がり検出を行なってからnビット以上の
時間を経過してからプリセット付きカウンタ2に対して
ロード信号を出力する。立ち上がり検出を行なってから
nビット以上経過していれば、プリセット付きカウンタ
2のプリセット入力端子には、入力端子11から入力さ
れたプリセットデータが入力されているため・プリセッ
ト動作を行なうことができる。なお、本実施例のプリセ
ット付きnビットカウンタが正常に動作するためには、
プリセットする間隔がn+1ビット以上必要である。
Next, the operation of the preset counter of the present invention constructed as described above will be explained with reference to FIGS. 1 and 2. In the present explanation, it is assumed that the loading operation is started when the input terminal 10 becomes high level, that is, at the rising edge of the input signal. First, when the shift enable signal generation circuit 11 detects the rising edge of the signal input to the input terminal 10, it outputs a signal that enables the n-bit shift register to the n-bit shift register 1. If n-bit preset data converted to serial data is input to the input terminal 11 while the shift register 1 is in the enabled state, the preset data is stored in the shift register 1.
Preset data is input to the preset data input terminal 4 of the counter 2 with preset. on the other hand,
When the load signal delay circuit 13 detects the rising edge of the input terminal 11, the load signal delay circuit 13 does not detect the rising edge for n bits thereafter, and waits for a time of n bits or more after detecting the rising edge to detect the rising edge of the input terminal 11. outputs the load signal. If n bits or more have elapsed since the rising edge was detected, the preset data input from the input terminal 11 has been input to the preset input terminal of the counter 2 with preset, so that the preset operation can be performed. Note that in order for the n-bit counter with preset of this embodiment to operate normally,
The preset interval must be n+1 bits or more.

以上のように本実施例によれば、n本のプリセットデー
タ入力端子を持ったプリセット付きnビットカウンタと
、シリアルデータに変換された前=rI″fリセット付
きnビットカウンタのプリセットデータの入力と前記プ
リセット付きnビットカウンタのロード信号の入力を兼
ねる入力端子と、7i記入力端子から入力されるnビッ
トのプリセットデータを記憶するnビットシフトレジス
タと、前記入力端子に入力された信号の立ち上がり、ま
たは立ち下がりを検出して前記nビットシフトレジスタ
のイネーブル信号を発生するシフトイネーブル信号発生
回路と、前記入力端子に入力された信号の立も上がり、
または立ち下がりを検出し、nビット以上経過した後、
前記プリセット付きnビットカウンタにロード信号を出
力するロード信号遅延回路を備えることにより、プリセ
ット付きnビットカウンタの入力端子数を最小限、すな
わちクロック入力端子と、シリアルデータに変換された
プリセット付きnビットカウンタ2のプリセットデータ
の入力とプリセット付きnビットカウンタ2のロード信
号の入力を兼ねる入力端子の2端子にできる。
As described above, according to this embodiment, the n-bit counter with preset has n preset data input terminals, and the input of preset data of the n-bit counter with reset that has been converted into serial data. an input terminal that also serves as an input for the load signal of the n-bit counter with preset, an n-bit shift register that stores n-bit preset data input from the 7i input terminal, and a rising edge of the signal input to the input terminal; or a shift enable signal generation circuit that detects a falling edge and generates an enable signal for the n-bit shift register, and a rising edge of the signal input to the input terminal;
Or after detecting a falling edge and elapsed after n bits or more,
By providing a load signal delay circuit that outputs a load signal to the n-bit counter with preset, the number of input terminals of the n-bit counter with preset can be minimized, that is, the number of input terminals of the n-bit counter with preset is reduced to a clock input terminal and n-bit with preset converted into serial data. It can be made into two input terminals, which serve both as an input of preset data for the counter 2 and as an input of a load signal for the n-bit counter 2 with preset.

発明の効果 本発明によればn本のプリセットデータ入力端子を持っ
たプリセット付きnビットカウンタと、シリアルデータ
に変換された前記プリセット付きnビットカウンタのプ
リセットデータの入力と前記プリセット付きnビットカ
ウンタのロード信号の入力を兼ねる入力端子と、前記入
力端子から入力されるnビットのプリセットデータを記
憶するnビットシフトレジスタと、前記入力端子に入力
された信号の立ち上がり、または立ち下がりを検出して
前記nビットシフトレジスタのイネーブル信号を発生す
るシフトイネーブル信号発生回路と、前記入力端子に入
力された信号の立ち上がリ、または立ち下がりを検出し
、nビット以上経過した後、前記プリセット付きnビッ
トカウンタにロード信号を出力するロード信号遅延回路
を備えることにより、プリセット付きカウンタのロード
信号入力端子がプリセットデータの入力端子を兼ねるこ
とが可能となり、入力端子数を最小限にしたプリセット
付きnビットカウンタを実現できる。
Effects of the Invention According to the present invention, there is provided an n-bit counter with a preset having n preset data input terminals, an input of preset data of the n-bit counter with a preset converted into serial data, and an input terminal of the n-bit counter with a preset that is converted into serial data. an input terminal that also serves as an input for a load signal; an n-bit shift register that stores n-bit preset data input from the input terminal; and an n-bit shift register that stores n-bit preset data input from the input terminal; a shift enable signal generating circuit that generates an enable signal for the n-bit shift register; and a shift enable signal generation circuit that detects the rising edge or falling edge of the signal input to the input terminal, and after n bits or more have elapsed, the n-bit with preset By providing a load signal delay circuit that outputs a load signal to the counter, the load signal input terminal of the counter with preset can also serve as the input terminal of preset data, making it possible to create an n-bit counter with preset that minimizes the number of input terminals. can be realized.

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

第1図は本発明の実施例プリセット付きカウンタのブロ
ック図、第2図は本実施例の動作を示すタイミング図、
第3図は従来例のプリセット付きカウンタのブロック図
、第4図は従来例のプリセット付きカウンタのタイミン
グ図である。 1・・・・・・nビットシフトレジスタ、2・・・・・
・プリセット付きnビットカウンタ、3・・・・・・n
ビットのプリセットデータの出力端子、4・・・・・・
プリセット付きnビットカウンタの入力端子、5・・・
・・・プリセット付きnビットカウンタの出力端子、6
・・・・・・クロック入力端子、8・・・・・・シフト
レジスタのイネーブル信号入力端子、9・・・・・・ロ
ード信号入力端子、10・・・・・・入力端子、11・
・・・・・シフトイネーブル信号発生回路、12・・・
・・・シフトイネーブル信号発生回路の出力端子、13
・・・・・・ロード信号遅延回路。
FIG. 1 is a block diagram of a preset counter according to an embodiment of the present invention, and FIG. 2 is a timing diagram showing the operation of this embodiment.
FIG. 3 is a block diagram of a conventional counter with preset, and FIG. 4 is a timing diagram of a conventional counter with preset. 1...n-bit shift register, 2...
・N-bit counter with preset, 3...n
Bit preset data output terminal, 4...
Input terminal of n-bit counter with preset, 5...
... Output terminal of n-bit counter with preset, 6
...... Clock input terminal, 8... Shift register enable signal input terminal, 9... Load signal input terminal, 10... Input terminal, 11.
...Shift enable signal generation circuit, 12...
...Output terminal of shift enable signal generation circuit, 13
...Load signal delay circuit.

Claims (1)

【特許請求の範囲】[Claims] n本のプリセットデータ入力端子を持ったプリセット付
きnビットカウンタと、シリアルデータに変換された前
記プリセット付きnビットカウンタのプリセットデータ
の入力と前記プリセット付きnビットカウンタのロード
信号の入力を兼ねる入力端子と、前記入力端子から入力
されるnビットのプリセットデータを記憶するnビット
シフトレジスタと、前記入力端子に入力された信号の立
ち上がり、または立ち下がりを検出して前記nビットシ
フトレジスタのイネーブル信号を発生するシフトイネー
ブル信号発生回路と、前記入力端子に入力された信号の
立ち上がり、または立ち下がりを検出し、nビット以上
経過した後、前記プリセット付きnビットカウンタにロ
ード信号を出力するロード信号遅延回路とを備えたプリ
セット付きカウンタ。
An n-bit counter with presets having n preset data input terminals, and an input terminal that also serves as an input of the preset data of the n-bit counter with presets converted into serial data and as an input of a load signal of the n-bit counter with presets. an n-bit shift register that stores n-bit preset data input from the input terminal; and an enable signal for the n-bit shift register by detecting the rising or falling edge of the signal input to the input terminal. a shift enable signal generation circuit that generates a shift enable signal, and a load signal delay circuit that detects the rise or fall of a signal input to the input terminal and outputs a load signal to the n-bit counter with a preset after n bits or more have elapsed. A counter with presets.
JP6317690A 1990-03-14 1990-03-14 Counter with preset Pending JPH03263921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6317690A JPH03263921A (en) 1990-03-14 1990-03-14 Counter with preset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6317690A JPH03263921A (en) 1990-03-14 1990-03-14 Counter with preset

Publications (1)

Publication Number Publication Date
JPH03263921A true JPH03263921A (en) 1991-11-25

Family

ID=13221683

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6317690A Pending JPH03263921A (en) 1990-03-14 1990-03-14 Counter with preset

Country Status (1)

Country Link
JP (1) JPH03263921A (en)

Similar Documents

Publication Publication Date Title
JP3220029B2 (en) Input signal reading circuit
JPH03263921A (en) Counter with preset
KR100291126B1 (en) Circuit device including a plurality of sub-circuits and clock signal regeneration circuits
US6397342B1 (en) Device with a clock output circuit
JP2964704B2 (en) Clock stop circuit
JPH06232699A (en) Pulse generator
JPH04132976A (en) Test mode generating circuit
JP2602404Y2 (en) Counter circuit
JPH05268020A (en) Clock switching circuit
JPS63276915A (en) Timing signal generating circuit
JPH01226212A (en) Circuit for phase adjustment between input data and input clock
JPH0749428Y2 (en) Photoelectric switch circuit
KR100266574B1 (en) Sinchronizing signal delay circuit
JPH0422220A (en) Synchronous output circuit
KR19980028923U (en) Input signal delay circuit
JPH0326976A (en) Test apparatus of semiconductor integrated circuit
KR19980014301A (en) General purpose serial input / output device
JPS647370A (en) Digital signal processor
JPH05315971A (en) Serial/parallel conversion circuit
JPS60211376A (en) Testing circuit for integrated circuit
JPS6428747A (en) Microprocessor
JPH07113660B2 (en) Mode setting circuit
JPH05119066A (en) Trigger circuit
JPS62291579A (en) Test circuit
JPS6276327A (en) Digital signal generating circuit