JPS58222621A - Counter - Google Patents

Counter

Info

Publication number
JPS58222621A
JPS58222621A JP57105375A JP10537582A JPS58222621A JP S58222621 A JPS58222621 A JP S58222621A JP 57105375 A JP57105375 A JP 57105375A JP 10537582 A JP10537582 A JP 10537582A JP S58222621 A JPS58222621 A JP S58222621A
Authority
JP
Japan
Prior art keywords
waveform
counter
reference clock
output
input
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
JP57105375A
Other languages
Japanese (ja)
Inventor
Katsumi Sera
世良 克己
Hideo Nishijima
英男 西島
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 Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP57105375A priority Critical patent/JPS58222621A/en
Publication of JPS58222621A publication Critical patent/JPS58222621A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K21/00Details of pulse counters or frequency dividers
    • H03K21/02Input circuits

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To attain measurement with good accuracy even for a short measuring period, by changing the polarity of a clock inputted to a counter depending on the polarity of a reference clock at the start of count. CONSTITUTION:A count starting signal is inputted to a terminal 7 to reset T FFs 14, 15 constituting the counter, and inputted to a T input of a D FF9 to latch the state of a reference clock input terminal 8 in this state. As a result, either of NAND gates 11, 12 is activated. For example, when the state of the terminal 8 is ''H'', the NAND gate 11 is activated. Thus, the reference clock is inverted finally via an inverter 10, the NAND gate 11 and an NAND gate 13 from the input terminal 8 and inputted to the counter. Inversely, when the input terminal 8 is ''L'' at the start of count, the clock is inputted finally to the counter with the original polarity via the NAND gates 12 and 13. Thus, the error of measuring period is suppressed within a half period of the reference clock.

Description

【発明の詳細な説明】 本発明はカウンターに係シ、特に短周期間内に入力り四
ツク波形を精度よくカウントするのに好適なカウンター
に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a counter, and more particularly to a counter suitable for accurately counting four waveforms input within a short cycle period.

従来のカウンタでは、特に計測期間が短い場合計測開始
と基準クロックの位相関係いかんでは、計測時間に大き
な誤差を生じる。従来のカウンターの構成を第1図に示
す。また計測開始タイミングと基準り四ツクの位相関係
が異なった場合のタイムチャートを第2図に示す。第1
図で1,2はクロックの立ちあかシで働くTフリップ・
フロップ(以下IFFと略す)である。また第2図で5
1f1基準クロツク、4けTFFlのQ出力波形、5 
fdrFF2のQ出力波形、6はTFFl、2のリセッ
トパルスである。
In conventional counters, especially when the measurement period is short, a large error occurs in the measurement time depending on the phase relationship between the measurement start and the reference clock. The configuration of a conventional counter is shown in FIG. Further, FIG. 2 shows a time chart when the measurement start timing and the phase relationship between the four reference points are different. 1st
In the figure, 1 and 2 are T-flips that operate based on the timing of the clock.
This is a flop (hereinafter abbreviated as IFF). Also, in Figure 2, 5
1f1 reference clock, Q output waveform of 4 TFF1, 5
The Q output waveform of fdrFF2, 6 is the reset pulse of TFF1, 2.

動作説明を行なう。初期状態(to)では、TFFl2
けリセットパルス(波形6)によシ%Llに固定してい
る。従って基準り四ツク3が入力しても、TFFl、2
の状態は変わらない。次にリセットパルス<rs、形6
)を解除する(#x)。カウンターは動作を始める。T
FFlは基準クロック3の立ちあがシエッジで出力を反
転し、Q出力は%illに変わる(tl)。次に基準ク
ロック5の立ちあがシでTFFlのQ出力は%(、I即
ちQは%filに変わる。
Let's explain the operation. In the initial state (to), TFFl2
It is fixed at %Ll by the reset pulse (waveform 6). Therefore, even if the reference standard 4-3 is input, TFFl, 2
status remains unchanged. Next, reset pulse <rs, form 6
) (#x). The counter starts working. T
FFl inverts its output at the rising edge of the reference clock 3, and the Q output changes to %ill (tl). Next, when the reference clock 5 rises, the Q output of TFF1 changes to %(, I, that is, Q changes to %fil.

(t3)そしてTFF2を−Blに反転させる。(t3) Then, TFF2 is inverted to -Bl.

さらにt4でTFFl、2にリセット入力が入J) %
LIに落ちる。以後t7〜t8は同様の動作をする。、
ここで計測期間を波形6の立ち下がシからTFF2Q出
力の立ちあがシまでとする。すると計測期間は第2図の
状態Aで基準クロック5の約1周期分(1K)で、これ
が計測期間の最小値となる。また状態Bでは基準クロッ
ク3′v)約2周期分(Tりで、これが計測期間の最大
直となる。その誤差約1周期となり問題で必りた。この
問題解決のために、基準クロック50周波数を上げる事
も考えられるが、このことは多くの場合に価格が高くな
るという欠点が生じる。
Furthermore, at t4, reset input is input to TFF1 and 2) %
Fall to LI. Thereafter, similar operations are performed from t7 to t8. ,
Here, the measurement period is from the falling edge of waveform 6 to the rising edge of the TFF2Q output. Then, the measurement period is approximately one cycle (1K) of the reference clock 5 in state A of FIG. 2, which is the minimum value of the measurement period. In state B, the reference clock 3'v) is about 2 cycles (T), which is the maximum accuracy of the measurement period.The error is about 1 cycle, which is caused by the problem.In order to solve this problem, the reference clock 5'v) Increasing the frequency can also be considered, but this often has the disadvantage of increasing the price.

本発明の目的は、短い計測期間でも精度よく計測できる
カウンターを提、供する事にある。
An object of the present invention is to provide and provide a counter that can measure accurately even during a short measurement period.

本発明は上記目的を達成するために、カウント開始時に
於ける基準クロックの極性にょシ、カウンターに、入力
するクロックの極性をかえる。
In order to achieve the above object, the present invention changes the polarity of the clock input to the counter depending on the polarity of the reference clock at the start of counting.

以下1本発明の一実施例を第5図及び第4図によシ説明
する。第3図は具体的な回路図、第4図は計測開始タイ
ミングと基準クロックの位相関係が異なった場合の動作
説明図である。第5図で7Viリセツト入力端子、8は
基準クロックの入力端子、9はDフリップフロップ(以
下DFFと略す)、10はインバータである。11,1
2゜13はナントゲート、14.15はTFFである。
An embodiment of the present invention will be explained below with reference to FIGS. 5 and 4. FIG. 3 is a specific circuit diagram, and FIG. 4 is an explanatory diagram of the operation when the phase relationship between the measurement start timing and the reference clock is different. In FIG. 5, 7 is a Vi reset input terminal, 8 is a reference clock input terminal, 9 is a D flip-flop (hereinafter abbreviated as DFF), and 10 is an inverter. 11,1
2°13 is a Nant gate, and 14.15 is a TFF.

第4図で16は基準クロック、17はTFF 14.1
5のリセットパルスであシかつDFF 9のトリガパル
ス、18はDFF qのQ出力である。19ijTFF
14のクロック入力、20はTF7”14のQ出力、2
1はTF7”15のQ出力である。
In Figure 4, 16 is the reference clock, 17 is the TFF 14.1
5 is the reset pulse and the trigger pulse of DFF 9, and 18 is the Q output of DFF q. 19ijTFF
14 clock inputs, 20 TF7”14 Q outputs, 2
1 is the Q output of TF7''15.

動作説明を行なう。本カウンターは波形17の立ち下が
!0 (tl)で計測を開始する。同・時にこのパルス
(波形17)はDFF 9を動作させ、D入力の情報(
波形16)即ちこの時(tl)は%B〃をQ出力に出し
、波形18を得る。DFF 9のQ出力は%LI  ・
である。従ってQに接続するナントゲート11側が生き
、基準クロック19は入力端子8からインバータ10、
ナンドゲー) 11.15を経由して、TFFl4のT
入力に伝わる。故に’I’FF1aの入力は波形22と
なる。TFFl4,15けこの波形22を前述の通シ分
周し、波形20.21を得る。ここで計測期間を波形1
7の立ち下がりからTFFl5のQ出力の、立ちあが#
)fで(41〜2g)とすると、基準クロック16の1
.5周期分でこれが最大値である。以上状態Aにつき説
明した。次に波形17け%filになシ(i3)TFF
 14,15はリセッA卜されそのQ出力は%L#にな
る(波形20.21 )。さらに波形17カいLlに変
わる(t4)ので、カウンターはカウントを開始する。
Let's explain the operation. This counter shows the fall of waveform 17! Measurement starts at 0 (tl). At the same time, this pulse (waveform 17) operates DFF 9, and the information on D input (
Waveform 16) That is, at this time (tl), %B is outputted to the Q output, and waveform 18 is obtained. The Q output of DFF 9 is %LI・
It is. Therefore, the Nant gate 11 side connected to Q is active, and the reference clock 19 is connected from the input terminal 8 to the inverter 10,
Nando Game) 11.15 via TFFl4 T
transmitted to the input. Therefore, the input to 'I'FF1a becomes waveform 22. The waveform 22 of TFF14,15 is subjected to the above-mentioned frequency division to obtain waveform 20.21. Here, the measurement period is waveform 1
The rising of the Q output of TFFl5 from the falling of 7 is #
) f and (41 to 2g), then 1 of the reference clock 16
.. This is the maximum value for 5 cycles. State A has been explained above. Next, waveform 17 %fil (i3) TFF
14 and 15 are reset and their Q outputs become %L# (waveforms 20 and 21). Furthermore, the waveform changes to 17Ll (t4), so the counter starts counting.

この時前述の様に波形17けDFF 9 ”k動作させ
、D入力の情報<e、形16)即ち%LlをQに出力さ
せる。従って基準クロック16は、端子11よシナンド
ゲート12.15を経由し、TFllaのT入力波形は
波形19となる。これをTFFl7.18が分周し、波
形20 、21を得る。この時計測期間はt4〜tsで
あシ、基準クロック16の約1周期分である。これが計
測期間の最小値である。以上状態Bにつき述べた。
At this time, the waveform 17 DFF 9''k is operated as described above, and the information on the D input <e, form 16), that is, %Ll, is output to Q. Therefore, the reference clock 16 is transmitted from the terminal 11 via the synand gate 12.15. The T input waveform of TFlla becomes waveform 19. This is frequency-divided by TFFl7.18 to obtain waveforms 20 and 21. At this time, the measurement period is from t4 to ts, and is approximately one cycle of the reference clock 16. This is the minimum value of the measurement period. State B has been described above.

以上の説明より本実施例によれば計測期間誤差を基準ク
ロック16の半周期間以内におさえる事ができ、等測的
に基準クロック周波数を倍に上げた時と同時の効果が得
られる。なお、上記実施例においては、カウンターの構
成を第1図に示すカウンターを例示して説明したが、本
発明は他の構成のカウンターにも適用できることはいう
までもない。
As explained above, according to this embodiment, the measurement period error can be suppressed to within a half period of the reference clock 16, and the same effect as when the reference clock frequency is doubled isometrically can be obtained. In the above embodiments, the configuration of the counter has been explained by exemplifying the counter shown in FIG. 1, but it goes without saying that the present invention can be applied to counters with other configurations.

次に本発明を磁気記録再生装置でのキャプスタン間欠駆
動によるノイズレススロー再生に適用した応用・列につ
き説明する。第5図に適用例のブロック図、第6図にそ
の動作の説明図を示す。第5図で22はキャプスタンモ
ータ、23は周波数発生器(Frequ、en、cy 
Generator ) コイル(FGコイルと略す)
、24はFG増巾器である。25は周波数−電圧変換器
、26は直流増中器、27け基1準磁圧源、28はモー
タ駆動増巾器、29は間欠駆動信号発生器、50は本発
明のカウンタを用いた加速パルス発生器、51はダイオ
ード、52は抵抗0.55はスイッチである。次に第6
図で34は間欠駆動信号発生器の出力波形、35は加速
パルス発生器、36けキャプスタンの速度波形、57は
モータ駆動増巾器28の入力波形である。初めに22〜
28によシ構成する速度制御系につき説明する。FGコ
イル25に発生する信号(以下FGと称す)はキャプス
タン速度に比例した周波数を有し、これをFG増巾器2
4で増巾後、周波数−電圧変換器25に印加する。この
周波数−電圧変換器25の出力は、キャプスタン速度と
比例関係にある。
Next, an application/column in which the present invention is applied to noiseless slow reproduction using intermittent capstan driving in a magnetic recording/reproducing device will be explained. FIG. 5 shows a block diagram of an application example, and FIG. 6 shows an explanatory diagram of its operation. In Fig. 5, 22 is a capstan motor, and 23 is a frequency generator (Frequency generator).
Generator) Coil (abbreviated as FG coil)
, 24 is an FG amplifier. 25 is a frequency-voltage converter, 26 is a DC multiplier, 27-digit quasi-magnetic pressure source, 28 is a motor drive amplifier, 29 is an intermittent drive signal generator, and 50 is an acceleration device using the counter of the present invention. A pulse generator, 51 is a diode, 52 is a resistor, and 0.55 is a switch. Next, the sixth
In the figure, 34 is the output waveform of the intermittent drive signal generator, 35 is the speed waveform of the acceleration pulse generator and the 36-digit capstan, and 57 is the input waveform of the motor drive amplifier 28. At the beginning 22~
The speed control system constituted by 28 will be explained. A signal generated in the FG coil 25 (hereinafter referred to as FG) has a frequency proportional to the capstan speed, and is transmitted to the FG amplifier 2.
After being amplified in step 4, it is applied to the frequency-voltage converter 25. The output of this frequency-to-voltage converter 25 is proportional to the capstan speed.

この出力電圧を基準電圧源27を有する直流増中器26
に印加する。ここで得られる出力電圧はキャプスタン速
度とは逆比例の関係にある。さらにこの出力電圧なモー
タ駆動増巾器2Bに印加する。モータ駆動増巾028は
その入力電圧に比例した電流なモータに流す。従って以
上の述べた系全体では1周波数電圧変換器25の出力電
圧が、基準電圧源27の電圧と一致す・・る様に作動し
、速度制御系を構成する。
This output voltage is converted into a DC multiplier 26 having a reference voltage source 27.
to be applied. The output voltage obtained here is inversely proportional to the capstan speed. Furthermore, this output voltage is applied to the motor drive amplifier 2B. The motor drive amplifier 028 causes a current proportional to its input voltage to flow through the motor. Therefore, the entire system described above operates so that the output voltage of the one-frequency voltage converter 25 matches the voltage of the reference voltage source 27, thereby forming a speed control system.

次に間欠駆動につき説明する。第6図のto−t、tで
は間欠駆動発生器29の出力は−LI(波形54)従っ
てスイッチ56はONシている。モータ駆動増巾器28
の入力は%L#で、キャプスタンモータ22には電流が
流れず停止状態にある。
Next, intermittent drive will be explained. At to-t and t in FIG. 6, the output of the intermittent drive generator 29 is -LI (waveform 54), so the switch 56 is turned on. Motor-driven amplifier 28
The input is %L#, and the capstan motor 22 is in a stopped state with no current flowing through it.

tlで波形57は’Elに変わり、スイッチ33はOF
Fし速度制御系の働きでモータは回転を始める。
At tl, the waveform 57 changes to 'El, and the switch 33 turns OFF.
F and the motor starts rotating due to the action of the speed control system.

ここで、キャプスタン22が停止から標準速へ移行する
期間に再生画面上におけるノイズの発生なさけるには、
速やかに標準速へ移行させる必要かある。そこでモータ
立ちあがり期間(t1〜t。
Here, in order to avoid noise on the playback screen during the period when the capstan 22 shifts from stop to standard speed,
Is there a need to quickly shift to standard speed? Therefore, the motor start-up period (t1 to t).

のみ、モータ駆動増rjJ器2Bに加速パルス(波形5
5)なるsBz@圧を印加する。この加速パルス(波形
35)は加速パルス発生器5Dでつくる。この加速パル
ス発生器は本発明によるカウンタを内蔵し、波形34の
立ちあがり以後FGをカウントし適当なパルスをつくる
。この加速パルス波形35)をダ・イオード31を介し
モータ駆動増巾器28に印加する。従ってモータ駆動増
巾器28の入力波形は波形57の様になる。以後速度制
御期間(tl−ts)を経て、減速(t8〜toしてい
く。なお実際は減速時にはモータ駆動電流の方向を反転
しモータに逆向きのトルクを発生させる。これをブレー
キとし急峻に停止せしめるが、本発明と直接関係しない
ので詳細な説明は省略する。
Only, the acceleration pulse (waveform 5
5) Apply a pressure of sBz@. This acceleration pulse (waveform 35) is generated by an acceleration pulse generator 5D. This acceleration pulse generator has a built-in counter according to the present invention, and counts FG after the rise of the waveform 34 to generate an appropriate pulse. This acceleration pulse waveform 35) is applied to the motor drive amplifier 28 via the diode 31. Therefore, the input waveform of the motor-driven amplifier 28 becomes a waveform 57. Thereafter, after a speed control period (tl-ts), the motor decelerates (from t8 to to).Actually, during deceleration, the direction of the motor drive current is reversed and torque is generated in the opposite direction to the motor.This is used as a brake and the motor suddenly stops. However, since it is not directly related to the present invention, detailed explanation will be omitted.

以上の説明よシ本発明を加速パルス(波形39)巾を決
める手段に採用する事で適切な加速期間を設ける事がで
きる。これによシ加速期間が長すぎて加速しすぎたシ、
逆に短かすぎてキャプスタンモータ25の立ちあがシ時
間が長すぎたシという事がなくなる。
As explained above, by employing the present invention as a means for determining the width of the acceleration pulse (waveform 39), an appropriate acceleration period can be provided. This causes the acceleration period to be too long and the vehicle to accelerate too much.
On the other hand, the situation where the start-up time of the capstan motor 25 is too long due to being too short is eliminated.

本発明によれば、たとえ短い計測期間であっても精度良
くカウントできる。従って計測精度をあげるためあえて
基準クロック周波数を上げる必要もなく、経済的効果は
大である。
According to the present invention, even a short measurement period can be counted with high accuracy. Therefore, there is no need to intentionally increase the reference clock frequency in order to improve measurement accuracy, and the economical effect is great.

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

第1図は従来カウンターの回路図、第2図は上記カウン
ターの動作説明図、第5図は本発明の具体的回路図、第
4図は同具体的回路動作の説明図、第5図は本発明の一
実施例を示すブロック図、第6図は一実施例の動作説明
図である。 9・・・Dフリ゛ツブ・フロップ。 10・・・インバー°夕。 11.12.15・・・ナントゲート。 14.15・・・Tクリップ・フロック。 55・・・加速パルス。 オ 1 図 才20 状焉A  仄厄す 才3図 才4 図 に尾A 仄旭B オ S 図 ′1−6  図 へ浬人升埋士 簿 1)料亭 手続補正書(自発) 事件の表示 昭和57  年特許願第 10s575  号発明の名
称 カ ウンタ − 補正をする者 2  ’Ic5I”4k 式67+  日 立 製 イ
乍 所代 表 名  三   11]    勝   
茂代   理   人 補正の対象  1. 本願明細書全文 2、同上書・添付図面 補正の内容 1 本願明細書全文を別紙のとおり補正する。 全文訂正明細書 1、発明の名称  カウンター 2、特許請求の範囲 1 計数開始時におけるクロ、り信号の極性に応じ、ト
リガエツジの正負を切り換える手段を有することを特徴
とするカウンター。 2、上記切り換え手段が、D入力に上記クロック信号が
接続され、T入力に計測開始信号が接続されたDクリッ
プ・フロップと該Dフリ、グ・フロ、プQ出力と上記ク
ロック信号の反転信号とが接続された第1のナントゲー
トと、上記Dフリ、プ・フロップQ出力と上記クロック
信号とが接続された第2のナントゲートと、上記第1.
第2のナントゲートの出力が接続された第3のナントゲ
ートとからなることを特徴とする特許請求?範囲第1項
記載のカウンター。 6 発明の詳細な説明 本発明はカウンターに係り、特に短周期間内に入力クロ
ック波形を精度よくカウントするのに好適なカウンター
に関する。 従来のカウンタでは、特に計測期間が短い場合針側開始
と基準クロックの位相関係いか°んでは、計測時間に大
きな誤差を生じる。従来のカウンターの構成を第1図に
示す。また計測開始タイミングと基準クロックの位相関
係が異なった場合のタイムチャートを第2図に示す。第
1図で1,2はクロックの立ちあがりで働くTフリ、プ
・フロップ(以下TFFと略す、)である。また第2図
で3は基準クロック、4は’l”FF1のQ出力波形、
5はTFF 2のQ出力波形、6は計測開始信号であり
、かつTFFl、2のリセットパルスである。 動作説明を行なう。初期状態(to)では、TFFl、
2にリセットパルス(波形6)が入力している。従って
基準クロック3が入力しても、TFFl、2の状態は変
わらず、出力は“L“に固定している。次にリセットパ
ルス(波形6)を解除する(tl)。カウンターは動作
を始める。TFFlは基準クロ、り3の立ちあがりエツ
ジで出力を反転し、Q出力はH“に変わる(tl)。次
の基準クロ、り3の立ちあがりでTFFlのq出力は”
L”即ちQは”B”に変わる。(t5)モして1’FF
2を”H’f’(反転させる(波形5)。 次にt4でTFFl、2にリセット入力が入りTFFl
、2のQ出力は”L″に落ちる。以後t5〜t6  は
同様の動作をする。ここで計測期間を波形6の立ち下が
りからTFF2Q出力の立ちあがりまでとする。すると
計測期間は第2図の状態Aで基準クロ、り3の約1周期
分(Tつで、これが計測期間の最小値となる。また状態
Bでは基準り四、り3のIfi2周期分(T2)で、こ
れが計測期間の最大値となる。その誤差約1周期となり
問題であった。この問題解決のために、基準クロ、り3
の周波数を上げる事も考えられるが、このことは多くの
場合に価格が高くなるという欠点が生じる。 本発明の目的は、短い計測期間でも精度よく計測できる
カウンターを提供する事にある。 本発明は上記目的を達成するために、カウント開始時に
於ける基準クロックの極性により、カウンターに入力す
るクロ、りの極性をかえる。 以下、本発明の一実施例を第3図及び第4図により説明
する。第6図は具体的な回路図、第4図は計測開始タイ
ミングと基準クロックの位相関係が異なった場合の動作
説明図である。第3図で7は計測開始信号の入力端子、
8は基準クロックの入力端子、9はDフリップフロップ
(以下DFFと略す)、10はインバータである。 11.12.13はナントゲート、14,15はTFF
である。 第4図で16は基準クロック、17は計測開始信号、で
ありかつTFFl4,15のリセットパルス、18はD
FF 9のQ出力である。19はTFFl4のクロック
入力、20はFF7”14のQ出力、21はTFF 1
5のQ出力である。 動作説明を行なう。本カウンターは波形17の立ち下が
り(tl)で計測を開始する。同時にこのパルス(波形
17)はDFF9を動作させ、D入力の情報(波形16
)即ちこの時(tl)は”H″をQ出力に出し、波形1
8を得る。DFF 9のQ出力は”L”である。従って
DFF 9のQに接続するナントゲート11側が生き、
基準クロック16は入力端子8からインバータ10、ナ
ンドゲー) 11.13を経由して、TFF 14のT
入力に伝わる。故にTFF14の入力は波形19となる
。TFF14.15はこの波形22を前述の通り分周し
、波形20.21を得る。ここで計測期間を波形17の
立ち下がりからrpp i sのQ出力の立ちあがりま
で(1+〜t2)とすると、基準クロック16の1.5
周期分でこれが最大値である。以上状態Aにつき説明し
た。次に波形17は1H″になり(ts ) TFF 
14,15はリセットされそのQ出力はL”になる(波
形20.21 )。 次に波形17は”L”に変わる(t4)ので、カウンタ
ーはカウントを開始する。この時前述の様に波形17は
DFF9を動作させ、D入力の情報(波形16)即ち“
L”をQに出力させる。従って基準クロック16は、端
子8よりナンドゲー) 12.13を経由し、TFF 
14のT入力波形は波形19となる。 これをTE101,18が分周し、波形20.21を得
る。 この時計測期間はt4〜t5であり、基準クロック16
の約1周期分である。これが計測期間の最小値である。 以上状態Bにつき述べた。 以上の説明より本笑施例によれば計測期間誤差を基準ク
ロツク160半周期間以内におさえる事ができ、等制約
に基準クロック周波数を倍に上げた時と同時の効果が得
られる。なお、上記、実施例においては、カウンターの
構成を第1図に示すカウンターを例示して説明したが、
本発明は他の構成のカウンターにも適用できることはい
うまでもない。 次に本発明を磁気記録再生装置でのキャプスタン間欠駆
動によるノイズレススロー再生に適用した応用例につき
説明する。第5図に適用例のブロック図、第6図にその
動作の説明図を示す。第5図で22はキャプスタンモー
タ、23は周波数発生器(Frequency Gen
erator ) コイル(FGコイルと略す)、24
はFG増幅器である。 25は周波数−電圧変換器、26は直流増巾器、27は
基準電圧源、28はモータ駆動増巾器、29は間欠駆動
信号発生器、30は本発明のカウンタを用いた加速パル
ス発生器、61はダイオード、62は抵抗、33はスイ
ッチである。次に第6図で34は間欠駆動信号発生器2
9の出力波形、35は加速パルス発生器の出力波形、6
6はキャプスタンの速度波形、67はモータ駆動増巾器
28の入力波形である。初めに22〜281Cより構成
する速度制御系につき説明する。FGコイル23 K発
生する信号(以下FGと称す)はキャプスタン速度に比
例した周波数を有し、これをFG増巾器24で増巾後、
周波数−電圧変換器25に印加する。 この周波数−電圧変換器25の出力は、キャプスタン速
度と比例関係にある。 この出力電圧を基準電圧源27を有する直流増巾器26
に印加する。ここで得られる出力電圧はキャプスタン速
度とは逆比例の関係にある。さらにこの出力電圧なモー
タ駆動増巾器28に印加する。モータ駆動増巾器28は
その入力電圧に比例した電流をモータに流す。従って以
上の述べた系全体では、周波数電圧変換器25の出力電
圧が、基準電圧源27の電圧と一致する様に作動し速度
制御系を構成する。 次に間欠駆動につき説明する。第6図のtO〜t1では
間欠駆動発生器29の出力は“L’(波形34)、従っ
てスイッチ33はON している。モータ駆動増巾器2
8の入力は“L”で、キャプスタンモータ22には電流
が流れず停止状態にある。 tlで波形37は”H−に変わり、スイッチ33はOF
Fシ速度制御系の働きでモータは回転を始める。ここで
、キャプスタン22が停止から標準速へ移行する期間に
再生画面上におけるノイズの発生をさけるには、速やか
に標準速へ移行させる必要がある。そこでモータ立ちあ
がり期間(t1〜t2)のみ、モータ駆動増巾器28に
加速パルス(波形35)なる“R°電圧を印加する。こ
の加速パルス(波形35)は加速パルス発生器30でつ
くる。この加速パルス発生器は本発明によるカウンタを
内蔵し、波形54の立ちあがり以後FGをカウントし適
当なパルスをつくる。この加速パルス(波形35)をダ
イオード31を介しモータ駆動増巾器28に印加する。 従ってモータ駆動増巾器28の入力波形は波形37の様
になる。以後速度制御期間(t2〜ts )を経て、減
速(ts〜t4)シていく。なお実際は減速時にはモー
タ駆動電流の方向を反転しモータに逆向きのトルクを発
生させる。これをブレーキとし急峻に停止せしめるが、
本発明と直接関係しないので詳細な説明は省略する。 以上の説明より本発明を加速パルス(波形69)巾を決
める手段に採用する事で適切な加速期間を設ける事がで
きる。これにより加速期間が長すぎて加速しすぎたり、
逆に短かすぎてキャプスタンモータ25の立ちあがり時
間が長すぎたりという事がなくなる。 本発明によれば、たとえ短い計測期間であっても精度良
くカウントできる。従って計測精度をあげるためあえて
基準クロック周波数を上げる必要もなく、経済的効果は
大である。 4、図面の簡単な説明 第1図は従来カウンターの回路図、第2図は上記カウン
ターの動作説明図、第6図は本発明の具体的回路図、第
4図は同具体的回路動作の説明図、第5図は本発明の一
実施例を示すブロック図、第6図は一実施例の動作説明
図である。 9・・・・・・・・・・・・・・・・・・・・・Dフリ
ップ・フロップ10・・・・・・・・・・・・・・・・
・・インバータ11.12,13・・・・・・ナントゲ
ート14.15・・・・・・・曲・Tフリップ・フロッ
プ35・・・・・・・・・・・・・・・・・・加速パル
スヶオ人、P□士薄。利門、’)’(2+7’、!篤 
1 図 嶌 2 田 3−一−\ to   lLz ts、t4.ts    九−−ど
/   −〜−′ 咽°旭A   成鶏B 塞 3  圓 Z 嶌41 1し い 状°ガ爲A     I* 我も B
FIG. 1 is a circuit diagram of a conventional counter, FIG. 2 is an explanatory diagram of the operation of the counter, FIG. 5 is a specific circuit diagram of the present invention, FIG. 4 is an explanatory diagram of the specific circuit operation, and FIG. FIG. 6 is a block diagram showing an embodiment of the present invention, and is an explanatory diagram of the operation of the embodiment. 9...D flip flop. 10... Inver ° Evening. 11.12.15... Nantes Gate. 14.15...T clip flock. 55... Acceleration pulse. E 1 Figure 20 Status A 3 Figure 4 Figure ni tail A 滄旭B O S Figure '1-6 Figure 1 illustrator book 1) Restaurant procedure amendment (voluntary) Indication of the incident Patent Application No. 10s575 of 1988 Title of the invention Counter - Person making the amendment 2 'Ic5I'4k Formula 67 + Manufactured by Hitachi Representative Name 3 11] Win
Shigeyo Osamu Target of human correction 1. Full text of the specification of the present application 2, content of amendments to the same above and attached drawings 1 The entire text of the specification of the present application is amended as shown in the attached sheet. Full Text Corrected Description 1, Title of the Invention Counter 2, Claim 1 A counter characterized by having means for switching a trigger edge between positive and negative depending on the polarity of a black signal at the time of starting counting. 2. The switching means comprises a D clip-flop whose D input is connected to the clock signal and whose T input is connected to the measurement start signal, and the D clip-flop, the D-flip-flop, the G-flo, and the P-Q outputs, and an inverted signal of the clock signal. A first Nant's gate to which the D-flip and P-flop Q outputs are connected, a second Nant's gate to which the clock signal is connected;
and a third Nantes gate connected to the output of the second Nantes gate? Counters listed in range 1. 6 DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a counter, and particularly to a counter suitable for accurately counting input clock waveforms within a short cycle period. In conventional counters, especially when the measurement period is short, a large error occurs in the measurement time depending on the phase relationship between the hand side start and the reference clock. The configuration of a conventional counter is shown in FIG. Further, FIG. 2 shows a time chart when the phase relationship between the measurement start timing and the reference clock is different. In FIG. 1, numerals 1 and 2 are T flip-flops (hereinafter abbreviated as TFF) that operate at the rising edge of the clock. Also, in Figure 2, 3 is the reference clock, 4 is the Q output waveform of 'l'FF1,
5 is the Q output waveform of TFF 2, 6 is a measurement start signal, and is a reset pulse of TFF1, 2. Let's explain the operation. In the initial state (to), TFFl,
A reset pulse (waveform 6) is input to 2. Therefore, even if the reference clock 3 is input, the states of TFF1 and TFF2 do not change, and the output is fixed at "L". Next, the reset pulse (waveform 6) is released (tl). The counter starts working. TFFl inverts its output at the rising edge of the reference clock, Ri3, and the Q output changes to H" (tl). At the rising edge of the next reference clock, Ri3, the q output of TFFl changes to "H".
L", that is, Q changes to "B". (t5) Mo and 1'FF
2 is inverted to "H'f" (waveform 5). Next, at t4, reset input is applied to TFFl and 2, TFFl
, 2's Q outputs fall to "L". Thereafter, similar operations are performed from t5 to t6. Here, the measurement period is from the falling edge of waveform 6 to the rising edge of TFF2Q output. Then, in state A of Fig. 2, the measurement period is approximately 1 cycle of reference black and 3 (T, which is the minimum value of the measurement period. Also, in state B, 4 cycles of reference 4 and 2 cycles of ifi of 3) ( T2), this is the maximum value of the measurement period.The error was approximately one cycle, which was a problem.In order to solve this problem, the standard clock
It is also possible to raise the frequency of An object of the present invention is to provide a counter that can measure accurately even during a short measurement period. In order to achieve the above object, the present invention changes the polarity of the clock input to the counter depending on the polarity of the reference clock at the time of starting counting. An embodiment of the present invention will be described below with reference to FIGS. 3 and 4. FIG. 6 is a specific circuit diagram, and FIG. 4 is an explanatory diagram of the operation when the phase relationship between the measurement start timing and the reference clock is different. In Fig. 3, 7 is the input terminal for the measurement start signal;
8 is a reference clock input terminal, 9 is a D flip-flop (hereinafter abbreviated as DFF), and 10 is an inverter. 11.12.13 is Nantes Gate, 14 and 15 are TFF
It is. In FIG. 4, 16 is a reference clock, 17 is a measurement start signal, and reset pulses for TFFl4 and 15, and 18 is a D
This is the Q output of FF9. 19 is the clock input of TFF14, 20 is the Q output of FF7''14, 21 is TFF1
This is the Q output of 5. Let's explain the operation. This counter starts measuring at the falling edge (tl) of waveform 17. At the same time, this pulse (waveform 17) operates DFF9, and the information on the D input (waveform 16)
) That is, at this time (tl) outputs "H" to the Q output, and the waveform 1
Get 8. The Q output of DFF 9 is "L". Therefore, the Nantes gate 11 side connected to Q of DFF 9 is alive,
The reference clock 16 is input from the input terminal 8 via the inverter 10 and the NAND game) 11.13 to the T of TFF 14.
transmitted to the input. Therefore, the input to TFF 14 becomes waveform 19. TFF 14.15 divides this waveform 22 as described above to obtain waveform 20.21. Here, if the measurement period is from the falling edge of the waveform 17 to the rising edge of the Q output of rpp i s (1+ to t2), then 1.5 of the reference clock 16
This is the maximum value for the period. State A has been explained above. Next, waveform 17 becomes 1H'' (ts) TFF
14 and 15 are reset and their Q outputs become "L" (waveforms 20 and 21). Next, waveform 17 changes to "L" (t4), so the counter starts counting. At this time, the waveforms change as described above. 17 operates the DFF9, and the information of the D input (waveform 16), that is, “
L" is output to Q. Therefore, the reference clock 16 is output from terminal 8 via NAND game) 12.13 to TFF.
The T input waveform of 14 becomes waveform 19. This is frequency-divided by TEs 101 and 18 to obtain waveforms 20 and 21. At this time, the measurement period is from t4 to t5, and the reference clock 16
This is approximately one period of the period. This is the minimum value of the measurement period. State B has been described above. From the above explanation, according to this embodiment, the measurement period error can be suppressed to within a half period of the reference clock 160, and the same effect as when the reference clock frequency is doubled under the same constraints can be obtained. In addition, in the above embodiment, the configuration of the counter was explained by exemplifying the counter shown in FIG.
It goes without saying that the present invention can be applied to counters with other configurations. Next, an application example in which the present invention is applied to noiseless slow reproduction using intermittent capstan driving in a magnetic recording/reproducing device will be described. FIG. 5 shows a block diagram of an application example, and FIG. 6 shows an explanatory diagram of its operation. In Fig. 5, 22 is a capstan motor, and 23 is a frequency generator.
erator ) coil (abbreviated as FG coil), 24
is the FG amplifier. 25 is a frequency-voltage converter, 26 is a DC amplifier, 27 is a reference voltage source, 28 is a motor drive amplifier, 29 is an intermittent drive signal generator, and 30 is an acceleration pulse generator using the counter of the present invention. , 61 is a diode, 62 is a resistor, and 33 is a switch. Next, in FIG. 6, 34 is the intermittent drive signal generator 2.
9 is the output waveform, 35 is the output waveform of the acceleration pulse generator, and 6 is the output waveform of the acceleration pulse generator.
6 is the speed waveform of the capstan, and 67 is the input waveform of the motor drive amplifier 28. First, the speed control system composed of 22 to 281C will be explained. The signal generated by the FG coil 23K (hereinafter referred to as FG) has a frequency proportional to the capstan speed, and after amplifying it with the FG amplifier 24,
applied to the frequency-voltage converter 25. The output of this frequency-to-voltage converter 25 is proportional to the capstan speed. This output voltage is converted into a DC amplifier 26 having a reference voltage source 27.
to be applied. The output voltage obtained here is inversely proportional to the capstan speed. Furthermore, this output voltage is applied to the motor drive amplifier 28. Motor drive amplifier 28 causes a current to flow through the motor that is proportional to its input voltage. Therefore, the entire system described above operates so that the output voltage of the frequency-voltage converter 25 matches the voltage of the reference voltage source 27, forming a speed control system. Next, intermittent drive will be explained. From tO to t1 in FIG. 6, the output of the intermittent drive generator 29 is "L" (waveform 34), so the switch 33 is on. Motor drive amplifier 2
The input of No. 8 is "L", and no current flows to the capstan motor 22, so it is in a stopped state. At tl, the waveform 37 changes to "H-" and the switch 33 turns OFF.
The motor starts rotating due to the action of the F-speed control system. Here, in order to avoid generating noise on the playback screen during the period when the capstan 22 shifts from stop to standard speed, it is necessary to quickly shift to standard speed. Therefore, only during the motor start-up period (t1 to t2), an "R° voltage" which is an acceleration pulse (waveform 35) is applied to the motor drive amplifier 28. This acceleration pulse (waveform 35) is generated by the acceleration pulse generator 30. The acceleration pulse generator has a built-in counter according to the present invention, and counts FG after the rise of waveform 54 to generate an appropriate pulse.This acceleration pulse (waveform 35) is applied to motor drive amplifier 28 via diode 31. Therefore, the input waveform of the motor drive amplifier 28 becomes like the waveform 37. After that, the speed control period (t2 to ts) is followed by deceleration (ts to t4).In fact, during deceleration, the direction of the motor drive current is changed. It reverses and generates torque in the opposite direction to the motor.This acts as a brake and stops the motor abruptly.
Since it is not directly related to the present invention, detailed explanation will be omitted. From the above explanation, by employing the present invention as a means for determining the width of the acceleration pulse (waveform 69), an appropriate acceleration period can be provided. This may cause the acceleration period to be too long and accelerate too much,
On the other hand, the start-up time of the capstan motor 25 will not be too long due to being too short. According to the present invention, even a short measurement period can be counted with high accuracy. Therefore, there is no need to intentionally increase the reference clock frequency in order to improve measurement accuracy, and the economical effect is great. 4. Brief description of the drawings Fig. 1 is a circuit diagram of a conventional counter, Fig. 2 is an explanatory diagram of the operation of the counter, Fig. 6 is a specific circuit diagram of the present invention, and Fig. 4 is a diagram of the specific circuit operation. FIG. 5 is a block diagram showing an embodiment of the present invention, and FIG. 6 is an explanatory diagram of the operation of the embodiment. 9・・・・・・・・・・・・・・・・・・・・・D flip-flop 10・・・・・・・・・・・・・・・・・・
・・Inverter 11.12,13・・・・・・Nant Gate 14.15・・・・・・Song・T flip flop 35・・・・・・・・・・・・・・・・・・・Acceleration pulse person, P□shiho. Tomon, ')'(2+7',! Atsushi
1 Zushima 2 田3-1-\ to lLz ts, t4. ts 9-do/ -~-' Throat Asahi A Adult chicken B Block 3 EnZ 嶌41 1 Shiga shape A I* I too B

Claims (1)

【特許請求の範囲】 1、 計数開始時におけるクロック信号の極性に応じ、
トリガエツジの正負を切シ換える手段を有することを特
徴とするカウンター。 乳 上記切シ換え手段が、D入力に上記クロック信号が
接続され、T入力に計測開始信号が接続されたD7リツ
プ・フロップと該Dフリップ・70ツブQ出力と上記り
筒ツク信号の反転信号とが接続された第1のナントゲー
トと、上記Dフリップ・フロップQ出力と上記クロック
信号とが接続された第2のナントゲートと、上記第1.
第2のナントゲートの出力が接続された第5のナントゲ
ートとからなることを特徴とする特許請求の範囲第1項
記載のカウンター。
[Claims] 1. Depending on the polarity of the clock signal at the start of counting,
A counter characterized by having means for switching a trigger edge between positive and negative. The switching means comprises a D7 lip-flop whose D input is connected to the clock signal and whose T input is connected to the measurement start signal, and the D-flip 70-tub Q output and an inverted signal of the above-mentioned up-tub signal. a first Nant's gate to which the D flip-flop Q output and the clock signal are connected;
2. The counter according to claim 1, further comprising a fifth Nantes gate to which the output of the second Nantes gate is connected.
JP57105375A 1982-06-21 1982-06-21 Counter Pending JPS58222621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57105375A JPS58222621A (en) 1982-06-21 1982-06-21 Counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57105375A JPS58222621A (en) 1982-06-21 1982-06-21 Counter

Publications (1)

Publication Number Publication Date
JPS58222621A true JPS58222621A (en) 1983-12-24

Family

ID=14405938

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57105375A Pending JPS58222621A (en) 1982-06-21 1982-06-21 Counter

Country Status (1)

Country Link
JP (1) JPS58222621A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0246355A2 (en) * 1986-05-16 1987-11-25 Tektronix, Inc. Error and calibration pulse generator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0246355A2 (en) * 1986-05-16 1987-11-25 Tektronix, Inc. Error and calibration pulse generator

Similar Documents

Publication Publication Date Title
JPS5612577A (en) Electronic clock
JPS58222621A (en) Counter
JPH03183379A (en) Ultrasonic motor drive circuit
US4183278A (en) Driver circuit for tone generator
US4327985A (en) Battery-voltage indicator of camera
JPS6115382B2 (en)
US5428273A (en) Commutation circuit for a collectorless direct current motor
JPH0119453Y2 (en)
KR910013678A (en) Drive controller of stepping motor
JPS6347083Y2 (en)
JPS6334658B2 (en)
JPS5929876B2 (en) electronic chime
JPS6025397U (en) Step motor rotation control device
JPS63157692A (en) Driving gear for small-sized motor
JPS60213299A (en) Control circuit for stepping motor
JPH01227698A (en) Stepping motor controller
SU174837A1 (en)
SU734881A1 (en) Pulse repetition frequency divider with variable division coefficient
JPS6145749Y2 (en)
KR910000957Y1 (en) Frequency comparateing circuit
JPS58219625A (en) Clock signal generating circuit
JPS6224614B2 (en)
JPS6111833Y2 (en)
KR900000800A (en) Thermal printer drive method
JPS6210715Y2 (en)