Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6254247B2 - - Google Patents
[go: Go Back, main page]

JPS6254247B2 - - Google Patents

Info

Publication number
JPS6254247B2
JPS6254247B2 JP57214440A JP21444082A JPS6254247B2 JP S6254247 B2 JPS6254247 B2 JP S6254247B2 JP 57214440 A JP57214440 A JP 57214440A JP 21444082 A JP21444082 A JP 21444082A JP S6254247 B2 JPS6254247 B2 JP S6254247B2
Authority
JP
Japan
Prior art keywords
value
counter circuit
preset
correction
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP57214440A
Other languages
Japanese (ja)
Other versions
JPS59104591A (en
Inventor
Masahiro Yanagi
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 JP57214440A priority Critical patent/JPS59104591A/en
Publication of JPS59104591A publication Critical patent/JPS59104591A/en
Publication of JPS6254247B2 publication Critical patent/JPS6254247B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F1/00Apparatus which can be set and started to measure-off predetermined or adjustably-fixed time intervals without driving mechanisms, e.g. egg timers
    • G04F1/005Apparatus which can be set and started to measure-off predetermined or adjustably-fixed time intervals without driving mechanisms, e.g. egg timers using electronic timing, e.g. counting means

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)
  • Electronic Switches (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明はある必要とされる時間データを任意に
発生させることができるプログラマブルタイマー
に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a programmable timer that can arbitrarily generate certain required time data.

従来例の構成とその問題点 従来、プリセツト可能なタイマーとしては、そ
の計時(計数)部分にフリツプフロツプ回路〔以
下、F―Fと称す〕が少なくとも2ケ以上集積さ
されたプリセツタブルカウンタ集積回路を1ケま
たは複数個縦列(カスケード)接続する構成であ
る。そして入力としてのクロツクが初段のF―F
のみに加えられ、次段以降のクロツクはその前段
のF―Fの出力が用いられ、各F―Fの応答が将
棋倒し的に行われるリプルキヤリイ非同期方式
と、全段のF―Fのクロツク入力を共通にして全
F―Fの出力が同時期に得られる同期方式とがあ
る。前記非同期方式の欠点は、各段のF―Fが前
述のように将棋倒し的に応答するのでクロツク入
力時期と最終段F―Fの出力確定時期に時間差が
生じ、この時間差の分だけプリセツト値に対して
の誤差となる。そして、この誤差は全F―Fの数
に比列して大きくなることは云うまでもない。一
方、前記同期方式は、クロツク入力時期に対して
全F―Fの出力がほぼ同時に確定するのでプリセ
ツト値に対して誤差は生じないが、各段における
出力状態を決定するF―Fの入力データは各段の
出力とそれらの論理回路によつてクロツク入力と
次のクロツク入力との間で生成されるので、入力
クロツクの時間間隔、即ち、最高周波数が前記非
同期方式に比べて低いという欠点がある。これ
は、例えばバイポーラ形ICで同期方式の場合に
40MHz程度が限度であるのに対し、非同期方式で
は100MHz程度までカウントが可能である。従つ
て、必要とされる時間データが高確度でかつ非常
に高分解能である場合(例えば、10nsであるな
らば入力されるクロツク周波数は100MHzとな
る)、前記同期式でも非同期式のみでもこれを実
現することは困難であると云うのが現状である。
Conventional configuration and its problems Conventionally, a presettable timer is a presettable counter integrated circuit in which at least two flip-flop circuits (hereinafter referred to as FF) are integrated in its timekeeping (counting) part. The configuration is such that one or more of these are connected in cascade. And the clock as input is the first stage F-F
The clocks of the next and subsequent stages use the output of the F-F of the previous stage, and the ripple carry asynchronous method in which the response of each F-F is performed like a game of chess, and the clock input of the F-F of all stages is used. In common, there is a synchronization method in which the outputs of all FFs are obtained at the same time. The disadvantage of the above-mentioned asynchronous method is that the F-F of each stage responds in a chess-like manner as described above, so there is a time difference between the clock input timing and the output determination time of the final stage F-F, and the preset value is changed by this time difference. This is the error for It goes without saying that this error increases in proportion to the total number of FFs. On the other hand, in the synchronization method, the outputs of all F-Fs are determined almost simultaneously with respect to the clock input timing, so there is no error with respect to the preset value, but the input data of F-Fs that determines the output state at each stage is is generated between a clock input and the next clock input by the outputs of each stage and their logic circuits, so the disadvantage is that the time interval of the input clock, that is, the maximum frequency, is lower than that of the asynchronous method. be. This is true, for example, in the case of a synchronous type bipolar IC.
While the limit is about 40MHz, the asynchronous method can count up to about 100MHz. Therefore, if the required time data is highly accurate and has very high resolution (for example, if the time data is 10 ns, the input clock frequency will be 100 MHz), it will be necessary to use the above-mentioned synchronous method or asynchronous method only. The current situation is that it is difficult to realize this.

発明の目的 本発明はある必要とされる時間データの発生回
路に関して、特にこの回路を構成するカウンタ
ICの応答速度が問題となるクロツク周波数領域
においても任意の時間データを高確度に発生でき
るプログラマブルタイマーを提供することを目的
とするものである。
OBJECTS OF THE INVENTION The present invention relates to a necessary time data generation circuit, and particularly relates to a counter constituting this circuit.
The object of the present invention is to provide a programmable timer that can generate arbitrary time data with high accuracy even in the clock frequency domain where the response speed of an IC is a problem.

発明の構成 本発明のプログラマブルタイマーは、タイムデ
イレーの値を任意に設定可能な非同期式のプリセ
ツトカウンタ回路と、このプリセツトカウンタ回
路の出力としての時間幅を計数する非同期式の補
正カウンタ回路と、この補正カウンタ回路の計数
値が目的のタイムデイレー値と一致するように前
記プリセツトカウンタ回路のプリセツト値を補正
する補正手段を備え、この補正手段は上記プリセ
ツトカウンタ回路の初期出力から上記補正カウン
タ回路の計数データを減じた値を補正値としても
ち、この補正値を減じたタイムデータをプリセツ
ト値とするよう構成し、これによつて前記プリセ
ツトカウンタ回路の応答遅れ要因による時間幅の
誤差を補正し、目的とする高確度のタイムデイレ
ー値を得ることを特徴とする。
Structure of the Invention The programmable timer of the present invention includes an asynchronous preset counter circuit that can arbitrarily set a time delay value, and an asynchronous correction counter circuit that counts the time width as an output of the preset counter circuit. and a correction means for correcting the preset value of the preset counter circuit so that the count value of the correction counter circuit matches the target time delay value, and the correction means is configured to correct the preset value of the preset counter circuit from the initial output of the preset counter circuit. It is configured to have a value obtained by subtracting the count data of the correction counter circuit as a correction value, and to use time data obtained by subtracting this correction value as a preset value, thereby reducing the time width due to the response delay factor of the preset counter circuit. It is characterized by correcting the error of and obtaining the desired time delay value with high accuracy.

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

図面は本発明のプログラマブルタイマーのブロ
ツク図を示す。1はタイムデータの分解能(タイ
ムデータの最小ステツプ時間単位)と時間精度を
決定するクロツク発生回路で、ここでは100MHz
の水晶発振子を内蔵している。2,3はそれぞれ
前記クロツク信号発生回路1出力のクロツク信号
CKの通過を制御するゲート回路、5は前記ゲー
ト回路3を通過したクロツクによつて予めプリセ
ツトされている計数値が終了するまで計数を更新
するプリセツトカウンタ回路で、非同期式のもの
である。4はプリセツトカウンタ回路5の出力と
しての時間幅を計数する非同期式の補正カウンタ
回路で、ゲート回路2を通過したクロツク数を計
数する。6はタイマースタート信号10によつて
セツトされプリセツトカウンタ回路5の計数終了
信号13によつてリセツトされるフリツプフロツ
プ、7はタイムデータの入出力および演算処理機
能を有するマイクロコンピユータ〔以下、μcと
称す〕である。14はμc7から補正カウンタ回
路4に出力されるカウンタリセツト信号、15は
補正カウンタ回路4の計数値をμc7に出力する
計数データバス、16はμc7からプリセツトカ
ウンタ回路(5)にプリセツト値を与えるためのプリ
セツトデータバスである。
The drawing shows a block diagram of the programmable timer of the present invention. 1 is a clock generation circuit that determines the resolution of time data (minimum step time unit of time data) and time accuracy, and here it is 100MHz.
It has a built-in crystal oscillator. 2 and 3 are clock signals output from the clock signal generation circuit 1, respectively.
The gate circuit 5 for controlling the passage of CK is an asynchronous preset counter circuit that updates the count value preset by the clock passed through the gate circuit 3 until the count value is completed. Reference numeral 4 denotes an asynchronous correction counter circuit for counting the time width as the output of the preset counter circuit 5, and counts the number of clocks passing through the gate circuit 2. 6 is a flip-flop which is set by the timer start signal 10 and reset by the counting end signal 13 of the preset counter circuit 5; 7 is a microcomputer (hereinafter referred to as μc) having time data input/output and arithmetic processing functions; ]. 14 is a counter reset signal outputted from μc7 to the correction counter circuit 4; 15 is a count data bus for outputting the count value of the correction counter circuit 4 to μc7; and 16 is a preset value given from μc7 to the preset counter circuit (5). This is a preset data bus for

最終的に必要とされるタイムデータはμc7に
入力されμc7は初回において、その値をそのま
まプリセツトカウンタ回路5の入力としてプリセ
ツトデータバス16を介して連続的に与えると同
時に補正カウンタ回路4をカウンタリセツト信号
14によつてリセツトする。フリツプフロツプ回
路6〔以下、F―F6と称す〕は、初期状態にお
いてリセツトされており、その出力の論理はプ
リセツトカウンタ回路5をプリセツト状態にし、
既にμc7からのタイムデータが内部に取り入れ
られている。即ち、このF―F8のリセツト状態
においては、常時タイムデータをプリセツトカウ
ンタ回路5に入力することが出来る状態にある。
又、同じくこのF―F6がリセツト状態にあると
きは、ゲート回路2,3が閉じており、この時の
タイマー出力としてのF―F6の出力Qの論理は
ノンアクテイブ(出力状態でない)である。
The finally required time data is input to the μc7, and the μc7 initially continuously supplies the value as it is to the preset counter circuit 5 via the preset data bus 16. It is reset by the counter reset signal 14. The flip-flop circuit 6 (hereinafter referred to as F-F6) is reset in the initial state, and the logic of its output puts the preset counter circuit 5 in the preset state,
Time data from μc7 has already been taken in internally. That is, in this reset state of F-F8, time data can always be input to the preset counter circuit 5.
Similarly, when this F-F6 is in a reset state, gate circuits 2 and 3 are closed, and the logic of the output Q of F-F6 as a timer output at this time is non-active (not in an output state). .

そして、タイマースタート信号10が入力され
ると、F―F6がセツト状態にされタイマー出力
11をアクテイブ(出力状態)にすると同時にプ
リセツトカウンタ回路5を計数モードにし、また
ゲート回路2,3を開にする。ここでクロツク発
生回路1のクロツク周波数は前述のように100M
Hzであり、従つて、補正カウンタ回路4およびプ
リセツトカウンタ回路5は10nsのクロツク信号
CKの周期で計数値が更新される。プリセツトカ
ウンタ回路5はプリセツト入力データを全て更新
し尽した時点において計数終了信号13を出力し
F―F6をリセツトする。従つて、タイマー出力
11もノンアクテイブとなり、さらにゲート回路
2,3も閉となる。この時補正カウンタ回路4の
計数値はプリセツトカウンタ回路5に入力された
クロツク数に一致する。しかしながら、ここで重
要なことはこの計数値が先にプリセツトカウンタ
回路5に入力されたタイムデータの値に一致せず
に、若干多い値になつているということである。
その理由は、既に非同期式の欠点で述べたよう
に、補正カウンタ回路4の入力対出力に内部F―
Fの応答遅れ分だけ誤差が生じているためであ
る。即ち、このプリセツトカウンタ回路5を構成
する内部F―Fの数が例えば8ケであり、1ケ当
りの入出力遅延時間が例えば10nsとすれば、最
初のクロツク信号CKが入力されてから最終段の
内部F―F出力が確実するまで80nsの時間を要
することになる。つまり、プリセツトデータの値
を“1”としてもその“1”の更新出力が得られ
るまでに10nsのクロツクが8ケ入力されること
になり、従つてこの例では80nsが全てのプリセ
ツト値にプラスされることになる。又、逆に云え
ば80ns以下のタイマー出力を得ることは出来な
い。さらにこの誤差値は使用される集積回路によ
つてもばらつきがあり温度変化等の環境条件にも
左右される。かくして補正カウンタ回路4に保持
されているタイマー出力値は、計数終了信号13
を確認したμc7によつて、μc7の内部に取り
込まれて、その誤差分を演算によつて算出し、そ
の補正値、即ちタイムデータ入力値からその誤差
分を差し引いた値をプリセツトカウンタ回路5に
出力する。従つて2回目以降のタイマー出力値は
タイムデータ入力値に完全に一致していることに
なる。
When the timer start signal 10 is input, the F-F6 is set to the set state, the timer output 11 is activated (output state), the preset counter circuit 5 is set to the counting mode, and the gate circuits 2 and 3 are opened. Make it. Here, the clock frequency of clock generation circuit 1 is 100M as described above.
Hz, therefore, the correction counter circuit 4 and the preset counter circuit 5 use a 10 ns clock signal.
The count value is updated at the CK cycle. When the preset counter circuit 5 has updated all the preset input data, it outputs a counting end signal 13 and resets F-F6. Therefore, the timer output 11 also becomes inactive, and the gate circuits 2 and 3 are also closed. At this time, the count value of the correction counter circuit 4 matches the number of clocks input to the preset counter circuit 5. However, what is important here is that this count value does not match the value of the time data previously input to the preset counter circuit 5, but is a slightly larger value.
The reason for this is that, as already mentioned in the disadvantages of the asynchronous type, the internal F--
This is because an error occurs corresponding to the response delay of F. That is, if the number of internal FFs constituting this preset counter circuit 5 is, for example, eight, and the input/output delay time per one is, for example, 10 ns, then the clock signal CK is inputted until the final clock signal is input. It will take 80 ns to ensure the internal FF output of the stage. In other words, even if the preset data value is "1", eight 10ns clocks will be input before the updated output of "1" is obtained.Therefore, in this example, 80ns will be applied to all preset values. It will be added. Conversely, it is not possible to obtain a timer output of 80 ns or less. Furthermore, this error value varies depending on the integrated circuit used and is also influenced by environmental conditions such as temperature changes. Thus, the timer output value held in the correction counter circuit 4 is determined by the counting end signal 13.
When the μc7 confirms the error, the error is taken into the μc7, the error is calculated, and the correction value, that is, the value obtained by subtracting the error from the time data input value, is sent to the preset counter circuit 5. Output to. Therefore, the timer output value from the second time onwards completely matches the time data input value.

以上のように本実施例によれば、タイムデイレ
ー値を得るためのプリセツトカウンタ回路5と、
これに入力されたクロツク数を計数する他の一つ
のカウンターを用意し、これに計数された値と目
的とするタイムデータ値とが一致するように前記
プリセツトカウンターのプリセツト値を補正する
ことにより誤差のない高確度タイマーを実現して
いる。
As described above, according to this embodiment, the preset counter circuit 5 for obtaining the time delay value,
By preparing another counter that counts the number of clocks input to this, and correcting the preset value of the preset counter so that the value counted by this counter matches the target time data value. A highly accurate timer with no errors is realized.

なお、上記実施例ではプリセツトカウンタ回路
5の初期出力から補正カウンタ回路4の計数デー
タを減じた値を補正値としてもち、この補正値を
減じたタイムデータをプリセツト値とする補正手
段としてμc7を使用しているが、これらはμc
7に限定されるものではなく、コンパレータや加
減算集積回路を用いたハードロジツク回路によつ
ても容易に実現することができる。また、タイマ
ー出力値の確認と補正処置は必ずしも毎回行なう
必要はなく、例えば電源投入時のイニシヤルリセ
ツト時のみか、あるいはタイマー出力の要求が発
生する直前に行なう等、使用条件に応じたやり方
を決定すればよい。
In the above embodiment, the value obtained by subtracting the count data of the correction counter circuit 4 from the initial output of the preset counter circuit 5 is used as a correction value, and the μc7 is used as a correction means that uses time data obtained by subtracting this correction value as a preset value. I am using it, but these are μc
7, and can be easily realized by a hard logic circuit using a comparator or an addition/subtraction integrated circuit. Also, it is not necessary to check and correct the timer output value every time; for example, it may be done only at the initial reset when the power is turned on, or just before a timer output request occurs, depending on the usage conditions. All you have to do is decide.

発明の効果 以上説明のように本発明のプログラムタイマー
によると、本来のタイムデイレー値を得るための
プリセツトカウンター回路に加え、そのプリセツ
トカウンタ回路のプリセツト値を補正してタイマ
ー出力値をチエツクするための補正カウンタ回路
を用意し、その補正カウンタ回路をプリセツトカ
ウンタ回路に同じ非同期式のもので構成したの
で、プリセツトカウンタ回路を構成する素子の段
数に関係なく、かつこれらの素子の応答限界周波
数まで高確度なタイムデイレー値を保障すること
ができるものである。
Effects of the Invention As explained above, according to the program timer of the present invention, in addition to the preset counter circuit for obtaining the original time delay value, the preset value of the preset counter circuit is corrected to check the timer output value. We prepared a correction counter circuit for It is possible to guarantee highly accurate time delay values up to the limit frequency.

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

図面は本発明のプログラマブルタイマーの一実
施例のブロツク図である。 1……クロツク発生回路、2,3……ゲート回
路、4……補正カウンタ回路、5……プリセツト
カウンタ回路、6……フリツプフロツプ回路、7
……マイクロコンピユータ、13……計数終了信
号、15……計数データバス、16……プリセツ
トデータバス。
The drawing is a block diagram of one embodiment of the programmable timer of the present invention. 1... Clock generation circuit, 2, 3... Gate circuit, 4... Correction counter circuit, 5... Preset counter circuit, 6... Flip-flop circuit, 7
...Microcomputer, 13...Counting end signal, 15...Counting data bus, 16...Preset data bus.

Claims (1)

【特許請求の範囲】[Claims] 1 タイムデイレーの値を任意に設定可能な非同
期式のプリセツトカウンタ回路と、このプリセツ
トカウンタ回路の出力としての時間幅を計数する
非同期式の補正カウンタ回路と、この補正カウン
タ回路の計数値が目的のタイムデイレー値と一致
するように前記プリセツトカウンタ回路のプリセ
ツト値を補正する補正手段を備え、この補正手段
は上記プリセツトカウンタ回路の初期出力から上
記補正カウンタ回路の計数データを減じた値を補
正値としてもち、この補正値を減じたタイムデー
タをプリセツト値とするよう構成したことを特徴
とするプログラマブルタイマー。
1. An asynchronous preset counter circuit that can arbitrarily set the time delay value, an asynchronous correction counter circuit that counts the time width as an output of this preset counter circuit, and a count value of this correction counter circuit. and a correction means for correcting the preset value of the preset counter circuit so that the time delay value coincides with the target time delay value, and the correction means subtracts the count data of the correction counter circuit from the initial output of the preset counter circuit. A programmable timer characterized in that it has a value as a correction value, and time data obtained by subtracting this correction value is used as a preset value.
JP57214440A 1982-12-07 1982-12-07 Programmable timer Granted JPS59104591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57214440A JPS59104591A (en) 1982-12-07 1982-12-07 Programmable timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57214440A JPS59104591A (en) 1982-12-07 1982-12-07 Programmable timer

Publications (2)

Publication Number Publication Date
JPS59104591A JPS59104591A (en) 1984-06-16
JPS6254247B2 true JPS6254247B2 (en) 1987-11-13

Family

ID=16655805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57214440A Granted JPS59104591A (en) 1982-12-07 1982-12-07 Programmable timer

Country Status (1)

Country Link
JP (1) JPS59104591A (en)

Also Published As

Publication number Publication date
JPS59104591A (en) 1984-06-16

Similar Documents

Publication Publication Date Title
CN114221659B (en) Method, system and electronic device for improving low frequency signal conversion accuracy
JP2001013179A (en) Ring oscillator clock frequency measuring method, ring oscillator clock frequency measuring circuit, and microcomputer
JP3523362B2 (en) Clock circuit and processor using the same
JPS6254247B2 (en)
JP5914718B2 (en) Time base with oscillator, frequency division circuit and clock pulse suppression circuit
JP2561644B2 (en) Timing signal generator
CN111641490A (en) High-precision phase calibration and time reference determination method for sampling clock
CN116300383A (en) Time calibration method, electronic device and computer-readable storage medium
JPH07301685A (en) Clock circuit
JP2000249747A (en) Timing signal generating circuit for semiconductor test device
JP3693930B2 (en) PLL circuit simulation method and simulation program
JP3243796B2 (en) Sampling synchronization circuit
CN120143582B (en) An injector time calibration method, apparatus, equipment and medium
JP3079808B2 (en) Phase comparison device
CN119536483A (en) Reset system for SOC chips
JP2554064B2 (en) Pulse counting method
SU1665491A2 (en) Digital multiplier of pulse sequence frequency
JPS61117653A (en) Data processor
JPH0731628Y2 (en) Pulse generator
JPH03155219A (en) Pulse output generating method
JPS6227911Y2 (en)
JPH0323009B2 (en)
JP2006121178A (en) Clock signal output circuit
JPH0767288B2 (en) Gate pulse controller for thyristor inverter
JPH0557696U (en) Zero-zero switch mechanism