JPS6348993Y2 - - Google Patents

Info

Publication number
JPS6348993Y2
JPS6348993Y2 JP13786382U JP13786382U JPS6348993Y2 JP S6348993 Y2 JPS6348993 Y2 JP S6348993Y2 JP 13786382 U JP13786382 U JP 13786382U JP 13786382 U JP13786382 U JP 13786382U JP S6348993 Y2 JPS6348993 Y2 JP S6348993Y2
Authority
JP
Japan
Prior art keywords
gate
output
stage
flip
counter
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
Application number
JP13786382U
Other languages
Japanese (ja)
Other versions
JPS5942649U (en
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 filed Critical
Priority to JP13786382U priority Critical patent/JPS5942649U/en
Publication of JPS5942649U publication Critical patent/JPS5942649U/en
Application granted granted Critical
Publication of JPS6348993Y2 publication Critical patent/JPS6348993Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】 (イ) 技術分野 本考案は、Dフリツプフロツプを用いたカウン
タ及びシフトレジスタに係り、特にDA変換器に
好適なカウンタに関する。
[Detailed Description of the Invention] (A) Technical Field The present invention relates to a counter and a shift register using a D flip-flop, and particularly to a counter suitable for a DA converter.

(ロ) 従来技術 一般に、AD変換器は、第1図に示すように、
コンパレータ1、RSフリツプフロツプ2、クロ
ツク発振器3、カウンタ4、DA変換器5、ゲー
ト回路6、シフトレジスタ7、制御回路8とより
構成され、変換すべきアナログ電圧Vi及びDA変
換器5の出力電圧V0が各々コンパレータ1の反
転入力端子及び非反転入力端子に入力される。そ
して、先ず、変換開始信号STが制御回路8から
発生すると、カウンタ4及びRSフリツプフロツ
プ2がリセツトされ、クロツク発振器3が発振を
開始して、カウンタ4はカウンタクロツクCLを
カウントしてその内容が上昇する。カウンタ4の
内容はDA変換器5でアナログ電圧V0に変換さ
れ、この電圧V0が入力アナログ電圧Viをわずか
に越えると、コンパレータ1の出力Cが「H」と
なり、RSフリツプフロツプ2をセツトする。こ
のため、Q出力が「H」となつてクロツク発振器
3の発振が停止し、カウンタ4の内容は、DA変
換器5の出力電圧V0と入力アナログ電圧Viがほ
ぼ等しくなつた時点で停止する。即ち、入力アナ
ログ電圧Viに対応するデイジタル信号がカウン
タ4に得られる。そして、RSフリツプフロツプ
2の「H」のQ出力が変換終了信号ENDとして
制御回路8に与えられる。そこで、制御回路8
は、ゲート回路6に信号Gを与えることにより、
カウンタ4の内容をシフトレジスタ7に転送す
る。さらに、制御回路8はシフトレジスタ7にシ
フトクロツクCKを印加し、シフトレジスタ7は、
カウンタ4から転送された内容をシリアルデータ
SDとして出力する。
(b) Prior art In general, AD converters, as shown in Figure 1,
It is composed of a comparator 1, an RS flip-flop 2, a clock oscillator 3, a counter 4, a DA converter 5, a gate circuit 6, a shift register 7, and a control circuit 8, and includes an analog voltage Vi to be converted and an output voltage V of the DA converter 5. 0 is input to the inverting input terminal and non-inverting input terminal of comparator 1, respectively. First, when the conversion start signal ST is generated from the control circuit 8, the counter 4 and the RS flip-flop 2 are reset, the clock oscillator 3 starts oscillating, and the counter 4 counts the counter clock CL and its contents are Rise. The contents of the counter 4 are converted into an analog voltage V0 by the DA converter 5, and when this voltage V0 slightly exceeds the input analog voltage Vi, the output C of the comparator 1 becomes "H" and the RS flip-flop 2 is set. . Therefore, the Q output becomes "H" and the oscillation of the clock oscillator 3 stops, and the contents of the counter 4 stop when the output voltage V0 of the DA converter 5 and the input analog voltage Vi become almost equal. . That is, the counter 4 obtains a digital signal corresponding to the input analog voltage Vi. Then, the "H" Q output of the RS flip-flop 2 is given to the control circuit 8 as a conversion end signal END. Therefore, the control circuit 8
By applying the signal G to the gate circuit 6,
Transfer the contents of counter 4 to shift register 7. Furthermore, the control circuit 8 applies a shift clock CK to the shift register 7, and the shift register 7
The contents transferred from counter 4 are serial data.
Output as SD.

(ハ) 従来技術の欠点 従来のAD変換器においては、構成が非常に類
似しているにもかかわらず、カウンタとシフトレ
ジスタが別個に設けられていたため、素子数が多
くなり不経済であると共に、カウンタのデータを
シフトレジスタに転送するための転送時間が必要
であり、従つて、変換したデイジタルデータの読
出しに要する時間が長くなつてしまうという欠点
があつた。
(c) Disadvantages of conventional technology In conventional AD converters, although the configurations are very similar, the counter and shift register are provided separately, which increases the number of elements and is uneconomical. However, there is a drawback that a transfer time is required to transfer the counter data to the shift register, and therefore, the time required to read the converted digital data becomes longer.

(ニ) 考案の目的 本考案は、上述の欠点を解消するため、Dフリ
ツプフロツプと論理ゲートとを組み合わせること
により、切替信号に応じてシフトレジスタとして
も動作する新規なカウンタを提供するものであ
る。
(d) Purpose of the invention In order to eliminate the above-mentioned drawbacks, the present invention provides a novel counter that also operates as a shift register in response to a switching signal by combining a D flip-flop and a logic gate.

(ホ) 実施例 第2図は、本考案によるカウンタの実施例を示
す回路図であり、AD変換器に適用した場合を示
す。尚、第1図と同一構成には同一番号を付して
いる。
(E) Embodiment FIG. 2 is a circuit diagram showing an embodiment of the counter according to the present invention, and shows a case where the counter is applied to an AD converter. Note that the same components as in FIG. 1 are given the same numbers.

第2図において、が本考案による4ビツトの
シフトレジスタ兼用のカウンタであり、4個のD
フリツプフロツプ10a,10b,10c,10
dを有している。そして、初段を除く各段のDフ
リツプフロツプ10b,10c,10dには、前
段のQ出力と制御回路8からの切替信号C/Sの
反転信号とを入力する第1ANDゲート11b,1
1c,11d、当該段の出力と切替信号C/S
とを入力する第2ANDゲート12b,12c,1
2d、前段の出力と切替信号C/Sとを入力す
る第3ANDゲート13b,13c,13d、第
1ANDゲートと第2ANDゲートの出力を入力し、
出力端子が当該段のデータ入力端子Dに接続され
た第1ORゲート14b,14c,14d、第
3ANDゲートの出力と制御回路8からのシフトク
ロツクCKとを入力する第2ORゲート15b,1
5c,15dとが設けられている。又、初段のD
フリツプフロツプ10aの第1ANDゲート11a
には、前段の出力の代わりに接地入力が、そし
て、第3ANDゲート13aには前段の出力の代
わりにクロツク発振器3からのカウンタクロツク
CLが入力されており、他の論理ゲート12a,
14a,15aは各段の論理ゲートと同一であ
る。
In Fig. 2, 9 is a 4-bit shift register counter according to the present invention, and 4 D
Flip-flop 10a, 10b, 10c, 10
It has d. The D flip-flops 10b, 10c, and 10d of each stage except the first stage are first AND gates 11b, 1, which receive the Q output of the previous stage and the inverted signal of the switching signal C/S from the control circuit 8.
1c, 11d, output of the relevant stage and switching signal C/S
The second AND gates 12b, 12c, 1 input
2d, the third AND gate 13b, 13c, 13d, which inputs the output of the previous stage and the switching signal C/S;
Input the output of 1AND gate and 2nd AND gate,
The first OR gates 14b, 14c, 14d whose output terminals are connected to the data input terminal D of the stage concerned,
A second OR gate 15b, 1 inputs the output of the 3AND gate and the shift clock CK from the control circuit 8.
5c and 15d are provided. Also, first stage D
First AND gate 11a of flip-flop 10a
The third AND gate 13a receives the ground input instead of the output of the previous stage, and the counter clock from the clock oscillator 3 instead of the output of the previous stage.
CL is input, and other logic gates 12a,
14a and 15a are the same as the logic gates of each stage.

そこで、変換開始信号STが発生すると、カウ
ンタの全てのDフリツプフロツプ10a,10
b,10c,10d及びRSフリツプフロツプ2
がリセツトされるため、RSフリツブフロツプ2
のQ出力が「L」となり、制御回路8に「L」の
変換終了信号ENDが入力され、切替信号C/S
が「H」に設定される。このため、インバータ1
6の出力は「L」となり、各段のDフリツプフロ
ツプ10a,10b,10c,10dのデータ入
力端子Dには、各々、第2ANDゲート12a,1
2b,12c,12d及び第1ORゲート14a,
14b,14c,14dを介して、当該段の出
力が入力される。即ち、各段のDフリツプフロツ
プはTフリツプフロツプとして動作するようにな
る。又、初段を除く各段のクロツク入力端子φに
は、各々、第3ANDゲート13b,13c,13
d及び第2ORゲート15b,15c,15dを
介して、前段の出力が入力される。さらに、
RSフリツプフロツプ2がリセツトされると、ク
ロツク発振器3が発振を開始し、カウンタクロツ
クCLが、初段のDフリツプフロツプ10aのク
ロツク入力端子φに、第3ANDゲート13a及び
第2ORゲート15aを介して入力される。つま
り、Dフリツプフロツプで構成されたTフリツプ
フロツプが縦続接続され、その初段のTフリツプ
フロツプにカウンタクロツクCLが入力されるこ
ととなり、カウンタとして動作する。
Therefore, when the conversion start signal ST is generated, all the D flip-flops 10a and 10 of the counter 9 are activated.
b, 10c, 10d and RS flip-flop 2
is reset, the RS flipflop 2
The Q output of becomes "L", the conversion end signal END of "L" is input to the control circuit 8, and the switching signal C/S
is set to "H". Therefore, inverter 1
6 becomes "L", and the data input terminals D of the D flip-flops 10a, 10b, 10c, 10d of each stage are connected to the second AND gates 12a, 1, respectively.
2b, 12c, 12d and the first OR gate 14a,
The output of the relevant stage is input via 14b, 14c, and 14d. That is, the D flip-flops in each stage operate as T flip-flops. Further, the clock input terminals φ of each stage except the first stage are connected to third AND gates 13b, 13c, and 13, respectively.
The output of the previous stage is inputted via d and second OR gates 15b, 15c, and 15d. moreover,
When the RS flip-flop 2 is reset, the clock oscillator 3 starts oscillating, and the counter clock CL is input to the clock input terminal φ of the first-stage D flip-flop 10a via the third AND gate 13a and the second OR gate 15a. Ru. That is, T flip-flops made up of D flip-flops are connected in cascade, and the counter clock CL is input to the T flip-flop at the first stage, so that it operates as a counter.

カウンタとして動作している各Dフリツプフロ
ツプ10a,10b,10c,10dのQ出力は
DA変換器5でアナログ電圧V0に変換され、入力
アナログ電圧Viと比較される。そして、出力電
圧V0が入力アナログ電圧Viをわずかに越えると、
コンパレータ1の出力Cが「H」となり、RSフ
リツプフロツプ2をセツトする。このため、カウ
ンタクロツクCLが停止すると共に、「H」の変換
終了信号ENDが制御回路8に入力されるため、
制御回路8は切替信号C/Sを「H」から「L」
に反転させ、これと共に、シフトクロツクCKを
発生する。
The Q output of each D flip-flop 10a, 10b, 10c, 10d operating as a counter is
It is converted into an analog voltage V 0 by the DA converter 5 and compared with the input analog voltage Vi. And when the output voltage V 0 slightly exceeds the input analog voltage Vi,
Output C of comparator 1 becomes "H" and RS flip-flop 2 is set. Therefore, the counter clock CL stops and the conversion end signal END of "H" is input to the control circuit 8.
The control circuit 8 changes the switching signal C/S from "H" to "L"
At the same time, the shift clock CK is generated.

切替信号C/Sが「L」になると、インバータ
16の出力は「H」となり、各段のDフリツプフ
ロツプ10a,10b,10c,10dのクロツ
ク入力端子φには、各々、第2ORゲート15a,
15b,15c,15dを介してシフトクロツク
CKが入力され、初段のデータ入力端子Dには第
1ANDゲート11a及び第1ORゲート14aを介
して接地入力が、そして、初段を除く各段のデー
タ入力端子Dには、各々、第1ANDゲート11
b,11c,11d及び第1ORゲート14b,
14c,14dを介して、前段のQ出力が入力さ
れる。つまり、各段のDフリツプフロツプは縦続
接続され、各段のクロツク入力端子φには共通に
シフトクロツクCKが入力されることとなり、シ
フトレジスタとして動作する。そして、最終段の
Dフリツプフロツプ10dのQ出力端子から、入
力アナログ電圧Viに対応するデイジタルデータ
が、シフトクロツクCKに従つて、シリアルデー
タSDとして出力される。
When the switching signal C/S becomes "L", the output of the inverter 16 becomes "H", and the clock input terminals φ of the D flip-flops 10a, 10b, 10c, and 10d of each stage are connected to the second OR gates 15a, 15a, and 15b, respectively.
Shift clock via 15b, 15c, 15d
CK is input, and the first stage data input terminal D is
The ground input is connected via the 1AND gate 11a and the first OR gate 14a, and the data input terminal D of each stage except the first stage is connected to the first AND gate 11.
b, 11c, 11d and the first OR gate 14b,
The Q output of the previous stage is inputted via 14c and 14d. That is, the D flip-flops in each stage are connected in cascade, and the shift clock CK is commonly input to the clock input terminal φ of each stage, so that the D flip-flops operate as a shift register. Then, digital data corresponding to the input analog voltage Vi is outputted as serial data SD from the Q output terminal of the final stage D flip-flop 10d in accordance with the shift clock CK.

(ヘ) 効果 本考案によるカウンタは、上述の如く、Dフリ
ツプフロツプに論理ゲートを組み合わせるだけ
で、切替信号に応じてシフトレジスタとして動作
させることができるので、カウンタとシフトレジ
スタを別々に設けた場合に比べ、素子数を減少さ
せることができ、又、同一のDフリツプフロツプ
をカウンタとシフトレジスタに兼用しているの
で、カウンタからシフトレジスタへの転送時間が
必要なく、従つて、変換されたデータの読出し時
間を短縮することができ、AD変換器には最適で
ある。
(f) Effects As mentioned above, the counter according to the present invention can be operated as a shift register in response to a switching signal by simply combining a D flip-flop with a logic gate. In comparison, the number of elements can be reduced, and since the same D flip-flop is used as both a counter and a shift register, there is no need for transfer time from the counter to the shift register, and therefore reading of converted data is It saves time and is ideal for AD converters.

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

第1図は一般的なAD変換器を示すブロツク
図、第2図は本考案の実施例を示す回路図であ
る。 主な図番の説明、1……コンパレータ、2……
RSフリツプフロツプ、3……クロツク発振器、
4……カウンタ、5……DA変換器、6……ゲー
ト回路、7……シフトレジスタ、8……制御回
路、……カウンタ、10a,10b,10c,
10d……Dフリツプフロツプ、11a,11
b,11c,11d……第1ANDゲート、12
a,12b,12c,12d……第2ANDゲー
ト、13a,13b,13c,13d……第
3ANDゲート、14a,14b,14c,14d
……第1ORゲート、15a,15b,15c,
15d……第2ORゲート、16……インバータ。
FIG. 1 is a block diagram showing a general AD converter, and FIG. 2 is a circuit diagram showing an embodiment of the present invention. Explanation of main drawing numbers, 1... Comparator, 2...
RS flip-flop, 3...clock oscillator,
4... Counter, 5... DA converter, 6... Gate circuit, 7... Shift register, 8... Control circuit, 9 ... Counter, 10a, 10b, 10c,
10d...D flip-flop, 11a, 11
b, 11c, 11d... 1st AND gate, 12
a, 12b, 12c, 12d...second AND gate, 13a, 13b, 13c, 13d...second
3AND gate, 14a, 14b, 14c, 14d
... 1st OR gate, 15a, 15b, 15c,
15d...second OR gate, 16...inverter.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 複数段のDフリツプフロツプと、該Dフリツプ
フロツプの各段の前段のQ出力又は入力信号と切
替信号の反転信号とを入力する第1の論理積ゲー
トと、当該段の出力と前記切替信号とを入力す
る第2の論理積ゲートと、前段の出力又はカウ
ンタクロツクと前記切替信号とを入力する第3の
論理積ゲートと、前記第1及び第2の論理積ゲー
トの出力を入力し出力端子が当該段のデータ入力
端子に接続された第1の論理和ゲートと、前記第
3の論理積ゲートの出力とシフトクロツクとを入
力し出力端子が当該段のクロツク入力端子に接続
された第2の論理和ゲートとを有し、前記切替信
号に応じてシフトレジスタとして動作可能なこと
を特徴とするカウンタ。
A plurality of stages of D flip-flops, a first AND gate that receives the Q output or input signal of the previous stage of each stage of the D flip-flop and an inverted signal of the switching signal, and inputs the output of the relevant stage and the switching signal. a second AND gate that inputs the output of the previous stage or the counter clock and the switching signal, and a third AND gate that inputs the outputs of the first and second AND gates and has an output terminal. a first OR gate connected to the data input terminal of the relevant stage; and a second logic circuit which inputs the output of the third AND gate and the shift clock, and whose output terminal is connected to the clock input terminal of the relevant stage. a sum gate, and is operable as a shift register in response to the switching signal.
JP13786382U 1982-09-10 1982-09-10 counter Granted JPS5942649U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13786382U JPS5942649U (en) 1982-09-10 1982-09-10 counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13786382U JPS5942649U (en) 1982-09-10 1982-09-10 counter

Publications (2)

Publication Number Publication Date
JPS5942649U JPS5942649U (en) 1984-03-19
JPS6348993Y2 true JPS6348993Y2 (en) 1988-12-16

Family

ID=30309521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13786382U Granted JPS5942649U (en) 1982-09-10 1982-09-10 counter

Country Status (1)

Country Link
JP (1) JPS5942649U (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6216417U (en) * 1985-07-12 1987-01-31

Also Published As

Publication number Publication date
JPS5942649U (en) 1984-03-19

Similar Documents

Publication Publication Date Title
JPS6348993Y2 (en)
JP2619448B2 (en) Digital phase comparator
JPH09331258A (en) Microcomputer
JPS6179318A (en) Flip flop circuit
JPS5828786B2 (en) A device that converts a digital video signal into a pulse width modulated or pulse number modulated brightness control signal
JPS58161420A (en) Monolithic analog-digital converter
JPH052016B2 (en)
JP3036869B2 (en) AD conversion circuit
JPS60190029A (en) Digital pulse width modulation circuit
JPH0319727B2 (en)
JP2604740B2 (en) Analog-to-digital converter
JPH05243978A (en) Timing signal generation circuit
JPS6181221U (en)
JPS6339938B2 (en)
JP2994882B2 (en) Divider circuit
JPS6117636Y2 (en)
JPS62164315A (en) Da converter
JPH04335709A (en) Latch circuit and a/d converter using same
JPH05175837A (en) A/d converter
JPS61179671A (en) Magnifying and reducing circuit for image information
JPS5831620A (en) Ternary ring counter
JPS6165625A (en) Sharing ic for a/d conversion and d/a conversion
JPS637028A (en) Integration type digital/analog conversing circuit
JPS5877322A (en) Digital frequency modulator
JPH0466818U (en)