JPH0456492B2 - - Google Patents

Info

Publication number
JPH0456492B2
JPH0456492B2 JP58219859A JP21985983A JPH0456492B2 JP H0456492 B2 JPH0456492 B2 JP H0456492B2 JP 58219859 A JP58219859 A JP 58219859A JP 21985983 A JP21985983 A JP 21985983A JP H0456492 B2 JPH0456492 B2 JP H0456492B2
Authority
JP
Japan
Prior art keywords
address
counter
section
memory section
data
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
Application number
JP58219859A
Other languages
Japanese (ja)
Other versions
JPS60112322A (en
Inventor
Tadashi Kunihira
Hiroshi Mizuguchi
Yutaka Oota
Shinji Okada
Minoru Nakamura
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 JP58219859A priority Critical patent/JPS60112322A/en
Publication of JPS60112322A publication Critical patent/JPS60112322A/en
Publication of JPH0456492B2 publication Critical patent/JPH0456492B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、データが存在しないアドレスを選択
したとき、メモリ部がカウンタへプリセツトデー
タとして「0」を出力するプログラマブルカウン
タに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a programmable counter in which a memory section outputs "0" as preset data to a counter when an address where no data exists is selected.

従来例の構成とその問題点 メモリ部がカウンタへプリセツトデータとして
「0」を出力する従来のプログラマブルカウンタ
について、第1図および第2図を用いて説明す
る。第1図において、1はカウンタ2にクロツク
を供給するクロツク端子、3はカウンタ2にプリ
セツト信号を供給するプリセツト端子、4〜6は
アドレスデコード部7のアドレス設定端子であ
り、このアドレス設定端子4〜6はアドレスデコ
ード部7のA,B,C端子にそれぞれ接続されて
いる。前記カウンタ2は、プリセツト機能を有す
るフリツプフロツプ8〜13から構成されてお
り、この例では6ビツトのバイナリーダウンカウ
ンタとなつている。フリツプフロツプ8〜13の
C1〜C6はクロツク入力端子、D1〜D6はプリセツ
トデータ端子、Q1〜Q5は非反転出力端子、PR1
〜PR6はプリセツト信号端子である。前記アドレ
スデコード部7はアドレス設定端子4〜6の入力
に応じてメモリ部14のアドレスを決定する。前
記メモリ部14はカウンタ2のプリセツトデータ
を記憶している。前記メモリ部14の出力端子
PD1〜PD6はカウンタ2のフリツプフロツプ8〜
13のプリセツトデータ端子D1〜D6に接続され
ている。前記アドレスデコード部7のアドレス出
力端子AD1〜AD7はメモリ部14のアドレス入力
端子BD1〜BD7に接続されている。
Configuration of Conventional Example and Its Problems A conventional programmable counter in which a memory section outputs "0" to the counter as preset data will be described with reference to FIGS. 1 and 2. In FIG. 1, 1 is a clock terminal that supplies a clock to the counter 2, 3 is a preset terminal that supplies a preset signal to the counter 2, and 4 to 6 are address setting terminals of the address decoding section 7. .about.6 are connected to the A, B, and C terminals of the address decoding section 7, respectively. The counter 2 is composed of flip-flops 8 to 13 having a preset function, and in this example is a 6-bit binary down counter. flipflop 8-13
C1 to C6 are clock input terminals, D1 to D6 are preset data terminals, Q1 to Q5 are non-inverting output terminals, PR1
~ PR6 is a preset signal terminal. The address decoding section 7 determines the address of the memory section 14 according to inputs from the address setting terminals 4 to 6. The memory section 14 stores preset data for the counter 2. Output terminal of the memory section 14
PD 1 ~ PD 6 are flip-flops 8 ~ of counter 2
It is connected to 13 preset data terminals D1 to D6 . Address output terminals AD 1 to AD 7 of the address decoding section 7 are connected to address input terminals BD 1 to BD 7 of the memory section 14 .

第2図はアドレスデコード部7およびメモリ部
14の具体的構成図である。アドレスデコード部
7は7アドレスL1〜L7から成り、各格子の「○」
印箇所はそのビツトがローレベルになつたときに
ライン出力をハイレベルにする。無印のビツトは
フローテイング状態になつていて、それぞれのラ
インL1〜L7はいずれもプルアツプされている。
メモリ部14の各格子の「○」印の箇所は、それ
ぞれのラインに挿入されているインバータ15a
〜15gの出力レベルがローレベルになつたとき
にローレベルとなり、「○」印の箇所を有してい
るビツトのインバータ16a〜16fの入力側が
ローレベルとなる。そして、それぞれのインバー
タ16a〜16fの入力側はプルアツプされてい
る。従つて、メモリ部14のビツトの各格子の
「○」の箇所のどれか1つでもローレベルとなる
と、そのビツトのインバータの出力はハイレベル
となる。なお17a〜17cはインバータであ
る。
FIG. 2 is a specific configuration diagram of the address decoding section 7 and the memory section 14. The address decoding unit 7 consists of 7 addresses L 1 to L 7 , and the “○” in each grid
The line output becomes high level when the marked bit goes low level. The unmarked bits are in a floating state, and the respective lines L1 to L7 are all pulled up.
The locations marked with "○" in each grid of the memory section 14 correspond to the inverters 15a inserted in the respective lines.
-15g becomes low level, and the input sides of the inverters 16a-16f of the bits marked with "O" become low level. The input sides of each of the inverters 16a to 16f are pulled up. Therefore, if any one of the "○" locations in each grid of bits in the memory section 14 becomes low level, the output of the inverter for that bit becomes high level. Note that 17a to 17c are inverters.

上記のように構成された従来のプログラマブル
カウンタにおいて、例えばアドレスデコード部7
のアドレス設定端子4〜6が2進表示で〔000〕
とすると、ラインL1において、ラインインバー
タ15aの出力がローレベルとなり、出力端子
PD1,PD3の出力がハイレベルとなり、カウンタ
2のプリセツトデータとしてメモリ部14からカ
ウンタ2へMSB側からLSB側に向かつて
〔000101〕のプリセツトデータが出力されたこと
になる。ここではローレベルを「0」、ハイレベ
ルを「1」とする正論理で取扱つている。プリセ
ツトデータが出力された後に、カウンタ2のプリ
セツト端子3にプリセツト信号が入力されると、
カウンタ2はプリセツトデータに従つて、MSB
側からLSB側に向かつて〔000101〕とセツトさ
れる。カウンタ2はプリセツトされたカウント値
からクロツク入力に従つてカウント動作を行う。
また、アドレスデコード部7のアドレス設定端子
4〜6が〔010〕のときには、ラインL3は選択さ
れ、メモリ部14からプリセツトデータとして
MSB側からLSB側に向かつて〔000000〕をカウ
ンタ2に出力する。さらにアドレスデコード部7
のアドレス設定端子4〜6が〔111〕のときには、
すべてのアドレスラインL1〜L7が選択されない
ので、各アドレスラインL1〜L7のインバータ1
5a〜15gの出力はハイレベルとなり、プリセ
ツトデータとしてメモリ部14はMSB側から
LSB側に向かつて〔000000〕を出力する。
In the conventional programmable counter configured as described above, for example, the address decoding section 7
Address setting terminals 4 to 6 are displayed in binary as [000]
Then, on line L1 , the output of line inverter 15a becomes low level, and the output terminal
The outputs of PD 1 and PD 3 become high level, and the preset data [000101] is output from the memory section 14 to the counter 2 from the MSB side to the LSB side as the preset data of the counter 2. Here, positive logic is used in which the low level is "0" and the high level is "1". After the preset data is output, when a preset signal is input to the preset terminal 3 of the counter 2,
Counter 2 selects the MSB according to the preset data.
From the side to the LSB side, it is set as [000101]. The counter 2 performs a counting operation from a preset count value in accordance with a clock input.
Furthermore, when the address setting terminals 4 to 6 of the address decoding section 7 are set to [010], the line L3 is selected and is read from the memory section 14 as preset data.
Outputs [000000] to counter 2 from the MSB side to the LSB side. Furthermore, address decoding section 7
When address setting terminals 4 to 6 are [111],
Since all address lines L1 ~ L7 are not selected, inverter 1 of each address line L1 ~ L7
The outputs of 5a to 15g become high level, and the memory section 14 is stored from the MSB side as preset data.
Outputs [000000] toward the LSB side.

しかしながら、上記のような従来の構成におい
ては、メモリ上のデータが「0」であるアドレス
〔010〕を選択したときも、メモリ上にデータが存
在しないアドレス〔111〕を選択したときも、メ
モリ部14は「0」を出力する。従つて、アドレ
ス〔010〕はROMデータの存在しないアドレス
と同じになる。デイジタル集積回路においては、
アドレスデコード部7およびメモリ部14の占有
する面積が大きいため、必要最小限にしなければ
ならない。また、必要以上のアドレスが存在する
場合、アドレスをドライブする素子も大きな容量
が必要となり、ひいてはチツプ面積の拡大という
ことになる。
However, in the conventional configuration as described above, the memory is The unit 14 outputs "0". Therefore, address [010] is the same as an address where no ROM data exists. In digital integrated circuits,
Since the area occupied by the address decoding section 7 and the memory section 14 is large, the area must be kept to the minimum necessary. Furthermore, if there are more addresses than necessary, the element for driving the addresses will also need a large capacity, which will lead to an increase in chip area.

発明の目的 本発明は上記従来の欠点を解消するもので、カ
ウンタにプリセツトデータを与えるメモリ部のア
ドレス数をより少なくすることにより、アドレス
デコード部の面積とメモリ部の面積を小さくする
ことができるプログラマブルカウンタを提供する
ことを目的とする。
Purpose of the Invention The present invention solves the above-mentioned conventional drawbacks, and by reducing the number of addresses in the memory section that provides preset data to the counter, it is possible to reduce the area of the address decoding section and the area of the memory section. The purpose is to provide a programmable counter that can be used.

発明の構成 上記目的を達成するため、本発明のプログラマ
ブルカウンタは、プリセツト機能を有するカウン
タと、このカウンタにプリセツトデータを供給す
るメモリ部と、このメモリ部のアドレスを選択す
るアドレスデコード部と、前記アドレスデコード
部からアドレス信号が出力されないときは前記メ
モリ部のデータラインをプルアツプするプルアツ
プ手段と、前記アドレスデコード部からアドレス
信号が出力されたときには前記メモリ部の“1”
を出力する前記データラインだけをプルダウンす
るプルダウン手段と、前記データラインの出力を
インバートするインバート手段とを備え、前記イ
ンバート手段の出力信号をプリセツトデータとし
て前記カウンタに出力することにより、前記メモ
リ部の設定データが「0」である前記メモリ部の
データ部分と前記アドレスデコード部のアドレス
部分を削除したものである。
Structure of the Invention In order to achieve the above object, the programmable counter of the present invention includes: a counter having a preset function; a memory section that supplies preset data to this counter; and an address decoder section that selects an address of this memory section. a pull-up means for pulling up the data line of the memory section when the address signal is not output from the address decoding section; and a pull-up means for pulling up the data line of the memory section when the address signal is output from the address decoding section;
and an inverting means for inverting the output of the data line, and by outputting the output signal of the inverting means to the counter as preset data, The data part of the memory section whose setting data is "0" and the address part of the address decode section are deleted.

かかる構成によれば、アドレスデコード部のア
ドレス部分とメモリ部のデータ部分を減少させる
ことができ、アドレスデコード部とメモリ部の集
積回路での占有面積を小さくでき、その結果、集
積回路のチツプ面積を小さくできるのである。
According to this configuration, the address part of the address decoding part and the data part of the memory part can be reduced, the area occupied by the address decoding part and the memory part in the integrated circuit can be reduced, and as a result, the chip area of the integrated circuit can be reduced. can be made smaller.

実施例の説明 以下、本発明の一実施例について、図面に基づ
いて説明する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

第3図は本発明の一実施例におけるプログラマ
ブルカウンタの要部の回路ブロツク図、第4図は
同プログラマブルカウンタのアドレスデコード部
およびメモリ部の具体的構成図であり、第1図お
よび第2図に示す構成要素と同一の構成要素には
同一の符号を付してその説明を省略する。
FIG. 3 is a circuit block diagram of the main part of a programmable counter according to an embodiment of the present invention, FIG. 4 is a specific configuration diagram of an address decoding section and a memory section of the programmable counter, and FIGS. Components that are the same as those shown in are given the same reference numerals and their explanations will be omitted.

第3図において、第1図との相違点は、アドレ
スデコード部7のアドレス出力端子AD3とメモリ
部14のアドレス入力端子BD3とを接続するライ
ンが削除されていることである。
The difference between FIG. 3 and FIG. 1 is that the line connecting address output terminal AD 3 of address decoding section 7 and address input terminal BD 3 of memory section 14 has been deleted.

第4図において、第2図により「0」のデータ
を表すアドレスデコード部7のアドレスAD3をデ
コードするラインL3およびインバータ15cと
アドレス入力端子BD3によりデータを選択するデ
ータ選択ラインが削除されている。
In FIG. 4, the line L 3 for decoding the address AD 3 of the address decoding unit 7 representing data "0" and the data selection line for selecting data by the inverter 15c and the address input terminal BD 3 are deleted according to FIG. ing.

以上のように構成された本実施例のプログラマ
ブルカウンタについて以下その動作を説明する。
例えばアドレスデコード部7のアドレス設定端子
4〜6(第4図ではA,B,Cで表されている)
の入力が2進表示で〔000〕とするとラインL1
選択される。ラインL1が選択されると、データ
ラインのプルダウン手段であるインバータ15a
の出力がローレベルになるので、メモリ部の
「○」印のデータラインがローレベルになり、そ
れ以外のデータラインはプルアツプ手段(図示せ
ず)によりプルアツプされているのでハイレベル
になる。したがつて、カウンタ2にはMSB側か
らLSB側に向かつて〔000101〕のプリセツトデ
ータが出力される。そして、プリセツト信号がプ
リセツト端子3に加えられると、カウンタ2は
MSB側からLSB側に向かつて〔000101〕にセツ
トされる。
The operation of the programmable counter of this embodiment configured as described above will be explained below.
For example, address setting terminals 4 to 6 of the address decoding section 7 (represented by A, B, and C in FIG. 4)
If the input is [000] in binary representation, line L1 will be selected. When line L1 is selected, inverter 15a, which is the data line pull-down means,
Since the output of the memory section becomes low level, the data lines marked with "O" in the memory section become low level, and the other data lines become high level because they are pulled up by pull-up means (not shown). Therefore, preset data [000101] is output to the counter 2 from the MSB side to the LSB side. Then, when the preset signal is applied to the preset terminal 3, the counter 2
It is set to [000101] from the MSB side to the LSB side.

次に、アドレス設定端子4〜6に2進表示で
〔010〕あるいは〔111〕が入力された場合、アド
レスデコード部7には〔010〕と〔111〕のアドレ
スは存在しないので、インバータ15a〜15g
は全てハイレベルになる。したがつて、メモリ部
14のデータラインはプルアツプ手段によりプル
アツプされているので、アドレスデコード部7の
出力が全てハイレベルの時にはインバータ16a
〜16fの入力レベルは全てハイレベルになる。
インバータ16a〜16fの入力レベルは全てハ
イレベルになると、メモリ部14の出力端子PD1
〜PD6の出力レベルは全てローレベルすなわち
〔000000〕となる。その結果、メモリ部14は
〔000000〕のプリセツトデータをカウンタ2に出
力する。アドレスが〔010〕のときは、設定デー
タは〔000000〕であるので、アドレスデコード部
7にアドレスが存在しなくても設定されたプリセ
ツトデータがカウンタ2に出力されたことにな
る。従つてメモリ部14の設定データが「0」の
アドレスを削除しても、プリセツトデータが得ら
れる。アドレス〔111〕のときも、ROMは「0」
を出力するが、〔111〕となるようなアドレスは指
定されないので何らさしつかえない。
Next, when [010] or [111] is input in binary representation to the address setting terminals 4 to 6, the addresses [010] and [111] do not exist in the address decoding section 7, so the inverters 15a to 15a 15g
are all at a high level. Therefore, since the data line of the memory section 14 is pulled up by the pull-up means, when all the outputs of the address decoding section 7 are at high level, the inverter 16a
All input levels of ~16f become high level.
When the input levels of the inverters 16a to 16f all become high level, the output terminal PD 1 of the memory section 14
~The output level of PD 6 is all low level, that is, [000000]. As a result, the memory section 14 outputs preset data [000000] to the counter 2. When the address is [010], the setting data is [000000], so even if the address does not exist in the address decoding section 7, the set preset data is output to the counter 2. Therefore, even if the address whose setting data is "0" in the memory section 14 is deleted, the preset data can be obtained. Even at address [111], ROM is “0”
is output, but since no address such as [111] is specified, there is no problem.

発明の効果 以上説明したように、本発明によれば、メモリ
部の設定データが「0」であるアドレスをアドレ
スデコード部から削除したので、カウンタにプリ
セツトデータを供給するメモリ部のアドレス数を
少なくでき、したがつてアドレスデコード部の占
有する面積を小さくすることができる。また、メ
モリ部の「0」を格納する部分も削除することが
できるのでメモリ部の占有する面積も小さくする
ことができる。以上のようにアドレスデコード部
およびメモリ部とも占有面積を小さくすることが
できるので、その結果、集積回路のチツプ面積を
小さくできる。
Effects of the Invention As explained above, according to the present invention, since addresses whose setting data in the memory section is "0" are deleted from the address decoding section, the number of addresses in the memory section that supplies preset data to the counter can be reduced. Therefore, the area occupied by the address decoding section can be reduced. Furthermore, since the portion of the memory section that stores "0" can also be deleted, the area occupied by the memory section can also be reduced. As described above, since the area occupied by both the address decode section and the memory section can be reduced, the chip area of the integrated circuit can be reduced as a result.

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

第1図は従来のプログラマブルカウンタの要部
の回路ブロツク図、第2図は同プログラマブルカ
ウンタのアドレスデコード部およびメモリ部の具
体的構成図、第3図は本発明の一実施例における
プログラマブルカウンタの要部の回路ブロツク
図、第4図は同プログラマブルカウンタのアドレ
スデコード部およびメモリ部の具体的構成図であ
る。 2……カウンタ、7……アドレスデコード部、
14……メモリ部。
FIG. 1 is a circuit block diagram of the main part of a conventional programmable counter, FIG. 2 is a specific configuration diagram of an address decoding section and a memory section of the same programmable counter, and FIG. 3 is a diagram of a programmable counter according to an embodiment of the present invention. FIG. 4, which is a circuit block diagram of the main part, is a specific configuration diagram of an address decoding section and a memory section of the same programmable counter. 2...Counter, 7...Address decoding section,
14...Memory section.

Claims (1)

【特許請求の範囲】[Claims] 1 プリセツト機能を有するカウンタと、このカ
ウンタにプリセツトデータを供給するメモリ部
と、このメモリ部のアドレスを選択するアドレス
デコード部と、前記アドレスデコード部からアド
レス信号が出力されないときは前記メモリ部のデ
ータラインをプルアツプするプルアツプ手段と、
前記アドレスデコード部からアドレス信号が出力
されたときには前記メモリ部の“1”を出力する
データラインだけをプルダウンするプルダウン手
段と、前記メモリ部のデータラインの出力を反転
する反転手段とを備え、前記メモリ部の設定デー
タが全て「0」である前記メモリ部のデータ部分
と前記アドレスデコード部のアドレス部分を削除
し前記反転手段の出力信号をプリセツトデータと
して前記カウンタに出力することを特徴とするプ
ログラマブルカウンタ。
1 A counter having a preset function, a memory section that supplies preset data to this counter, an address decoding section that selects the address of this memory section, and when an address signal is not output from the address decoding section, the address decoding section of the memory section a pull-up means for pulling up the data line;
and an inverting means for inverting the output of the data line of the memory section; The data part of the memory part and the address part of the address decoding part in which setting data of the memory part are all "0" are deleted, and the output signal of the inverting means is outputted to the counter as preset data. programmable counter.
JP58219859A 1983-11-22 1983-11-22 Programmable counter Granted JPS60112322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58219859A JPS60112322A (en) 1983-11-22 1983-11-22 Programmable counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58219859A JPS60112322A (en) 1983-11-22 1983-11-22 Programmable counter

Publications (2)

Publication Number Publication Date
JPS60112322A JPS60112322A (en) 1985-06-18
JPH0456492B2 true JPH0456492B2 (en) 1992-09-08

Family

ID=16742172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58219859A Granted JPS60112322A (en) 1983-11-22 1983-11-22 Programmable counter

Country Status (1)

Country Link
JP (1) JPS60112322A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2513179B2 (en) * 1985-12-25 1996-07-03 日本電気株式会社 Series-parallel conversion circuit with counter
KR100429554B1 (en) * 2002-04-19 2004-05-03 주식회사 하이닉스반도체 Programmable counter circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5798038A (en) * 1980-12-12 1982-06-18 Toshiba Corp Decoding system for code

Also Published As

Publication number Publication date
JPS60112322A (en) 1985-06-18

Similar Documents

Publication Publication Date Title
JP2549601B2 (en) Register control circuit
JPH0456492B2 (en)
JPS61200719A (en) Programmable logic array circuit
EP0186866B1 (en) Majority circuit
US20030108142A1 (en) Up/down gray code counter and solid-state image sensor provided with such a counter
JP3459330B2 (en) High-speed barrel shifter
US6891771B2 (en) Circuit and method for selecting an operational voltage mode in a semiconductor memory device
JPS5892054A (en) Programmable chip enable circuit
US20050256996A1 (en) Register read circuit using the remainders of modulo of a register number by the number of register sub-banks
JPS59207743A (en) General purpose logic circuit
JPS6180341A (en) Static random access memory device
KR960012850B1 (en) User code assignment circuit
JPH10171846A (en) Logic synthesis system
JP3389292B2 (en) Divider circuit
JPS62104152A (en) Semiconductor device
JPS62272367A (en) Logic circuit diagram having multibit expression structure
JPH0133849B2 (en)
JPS59161761A (en) State setting circuit of data processor
JPH05189304A (en) Semiconductor memory device
JPH02243975A (en) Integrated circuit
JPH08180668A (en) Memory system
JPH0522411B2 (en)
JPS63151223A (en) Decoding circuit
JPH05128327A (en) IC card
JPH0564361B2 (en)