JPH03159310A - Timer - Google Patents

Timer

Info

Publication number
JPH03159310A
JPH03159310A JP29747989A JP29747989A JPH03159310A JP H03159310 A JPH03159310 A JP H03159310A JP 29747989 A JP29747989 A JP 29747989A JP 29747989 A JP29747989 A JP 29747989A JP H03159310 A JPH03159310 A JP H03159310A
Authority
JP
Japan
Prior art keywords
pulse
transfer pulse
read
transfer
clock
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
JP29747989A
Other languages
Japanese (ja)
Inventor
Kenji Onishi
賢治 大西
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP29747989A priority Critical patent/JPH03159310A/en
Publication of JPH03159310A publication Critical patent/JPH03159310A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PURPOSE:To reduce the readout of erroneous data by constituting a transfer pulse generation circuit with a read pulse/synchronous transfer pulse generating part and a clock synchronization transfer pulse generating part. CONSTITUTION:The transfer pulse generation circuit 2A is composed of the read pulse/synchronization transfer pulse generating part 7 and the clock synchronization transfer pulse generating part 8. When a read pulse is inputted while a clock is being changed from a high level to a low level, a transfer pulse by the clock synchronization transfer pulse generating part 8 is cancelled. At this time, the read pulse/synchronization transfer pulse generating part 7 generates the transfer pulse with prescribed pulse width at the fall of the read pulse, and data is transferred from a counter 1 to a register 4 with the transfer pulse TE. Thereby, it is possible to prevent erroneous data read out even when the read pulse is inputted with an arbitrary timing.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、データ読出し精度の高いタイマに関するも
のである. [従来の技術] 従来例の構成を第4図を参照しながら説明する.第4図
は、従来のタイマを示す回路図である.第4図において
、従来のタイマは、図示しないクロック発生手段に接続
されたカウンタ(1)と、クロック発生手段及び図示し
ないリードパルス発生手段に接続されたクロック同期転
送パルス発生回路(2)と、カウンタ(1)及びクロッ
ク同期転送パルス発生回路(2)に接続されたスイッチ
(3)と、このスイッチ(3)に接続された読出し用の
レジスタ(4)と,このレジスタ(4)及びリードパル
ス発生手段に接続されたスイッチ(5)と、このスイッ
チ(5)に接続されたデータパス(6)とから構成され
ている. つぎに、上述した従来例の動作を第5図、第6図,第7
図及び第8図を参照しながら説明する.第5図〜第8図
は、従来のタイマの動作を示す信号波形図である. 第5図は、リードパルス(READ)が入力されない場
合のタイマの動作を示している.クロック同期転送パル
ス発生回路(2)は、リードパルスが入力されない場合
、クロック(CLOCK)を反転したものを転送パルス
(TE)として出力する. 第6図は、転送パルス出力中にリードパルスが入力され
た場合のタイマの動作を示している.リードパルスのパ
ルス幅T1は、実際にカウンタ(1)からレジスタ(4
〉へのデータ転送にかかる時間に対し十分大きいので、
リードパルス入力中にデータ転送は完了するため誤った
データを読み出すことはない。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a timer with high data reading accuracy. [Prior Art] The configuration of a conventional example will be explained with reference to Fig. 4. Figure 4 is a circuit diagram showing a conventional timer. In FIG. 4, the conventional timer includes a counter (1) connected to clock generation means (not shown), a clock synchronous transfer pulse generation circuit (2) connected to clock generation means and read pulse generation means (not shown), A switch (3) connected to the counter (1) and the clock synchronous transfer pulse generation circuit (2), a read register (4) connected to this switch (3), this register (4), and a read pulse It consists of a switch (5) connected to the generating means and a data path (6) connected to this switch (5). Next, the operation of the conventional example described above is shown in FIGS. 5, 6, and 7.
This will be explained with reference to Fig. 8 and Fig. 8. 5 to 8 are signal waveform diagrams showing the operation of a conventional timer. FIG. 5 shows the operation of the timer when no read pulse (READ) is input. When a read pulse is not input, the clock synchronous transfer pulse generation circuit (2) outputs an inverted version of the clock (CLOCK) as a transfer pulse (TE). Figure 6 shows the operation of the timer when a read pulse is input while a transfer pulse is being output. The pulse width T1 of the read pulse is actually calculated from the counter (1) to the register (4).
> is sufficiently large compared to the time it takes to transfer data to
Data transfer is completed while the read pulse is being input, so erroneous data will not be read.

第7図及び第8図は、リードパルス入力中にクロックが
ローレベル“L”になった場合のタイマの動作を示して
いる。クロックが“L゜“に反転した場合、通常は転送
パルスが立ち上がり、転送が開始されるが、第7図に示
すように転送開始からリードパルスの立ち下がりまでの
時間T2がデータ転送に必要な時間に比べて短い場合、
データ転送によりレジスタ(4)のデータが確定する前
に読出しが終了し、誤ったデータを読出してしまう場合
がある.従って、実際には第8図に示すようにリードパ
ルス入力中にクロックが立ち下がった場合、そのサイク
ルの転送パルスはキャンセルされる. [発明が解決しようとする課!!!] 上述したような従来のタイマでは、第9図に示すように
、キャンセルされた転送パルス(TE.)の次の転送パ
ルス( T E 2 )が発生する前にリードバルスR
2が入力された場合、カウンタ(1)から読出し用のレ
ジスタ(4)へデータの転送が行われていないのでリー
ドパルスR2でクロックC2でのカウント値を読むべき
ところをクロックC1でのカウント値を読出してしまう
といった読出しエラーが発生するという問題点があった
FIGS. 7 and 8 show the operation of the timer when the clock becomes low level "L" while inputting the read pulse. When the clock is reversed to "L゜", the transfer pulse normally rises and transfer starts, but as shown in Figure 7, the time T2 from the start of transfer to the fall of the read pulse is necessary for data transfer. If it is short compared to the time,
Due to data transfer, reading may end before the data in register (4) is finalized, resulting in incorrect data being read. Therefore, in reality, as shown in FIG. 8, if the clock falls during read pulse input, the transfer pulse of that cycle is canceled. [The problem that the invention tries to solve! ! ! ] In the conventional timer as described above, as shown in FIG. 9, the read pulse R is generated before the next transfer pulse (TE2) after the canceled transfer pulse (TE.
If 2 is input, data is not transferred from the counter (1) to the read register (4), so the read pulse R2 reads the count value at clock C1 instead of the count value at clock C2. There is a problem in that a read error occurs when the data is read out.

この発明は、上述した問題点を解決するためになされた
もので、任意のタイミングでリードパルスが入力しても
間違ったデータを読出すことがないタイマを得ることを
目的とする. [課題を解決するための手段] この発明に係るタイマは、以下に述べるような手段を備
えたものである. (i〉.クロックに同期した第1の転送パルスを発生す
る第1の転送パルス発生手段。
This invention has been made to solve the above-mentioned problems, and aims to provide a timer that will not read incorrect data even if a read pulse is input at an arbitrary timing. [Means for Solving the Problems] A timer according to the present invention includes the following means. (i>. First transfer pulse generation means that generates a first transfer pulse synchronized with a clock.

( ii > .レジスタからデータを読み出すリード
パルスに同期した第2の転送パルスを発生する第2の転
送パルス発生手段. [作用] この発明においては、第1の転送パルス発生手段によっ
て、クロックに同期した第1の転送パルスが発生される
. また、第2の転送パルス発生手段によって、レジスタか
らデータを読み出すリードパルスに同期した第2の転送
パルスが発生される. そして、上記第1及び第2の転送パルスに基づいて、カ
ウンタから上記レジスタへ上記データが転送される. [実施例] この発明の実施例の横戒を第1図及び第2図を参照しな
がら説明する. 第1図は、この発明の一実施例を示す回路図であり、カ
ウンタ(1)、スイッチ〈3〉〜データバス(6)は上
記従来例のものと全く同一である。
(ii>.Second transfer pulse generation means that generates a second transfer pulse synchronized with a read pulse for reading data from a register. [Operation] In this invention, the first transfer pulse generation means synchronizes with a clock The second transfer pulse is generated by the second transfer pulse generating means, which is synchronized with the read pulse for reading data from the register. The above-mentioned data is transferred from the counter to the above-mentioned register based on the transfer pulse of . [Embodiment] The horizontal command of the embodiment of this invention will be explained with reference to FIGS. 1 and 2. FIG. , is a circuit diagram showing an embodiment of the present invention, and the counter (1), switch <3> to data bus (6) are completely the same as those of the above-mentioned conventional example.

第1図において、この発明の一実施例は、上述した従来
例のものと全く同一のものと、入力側が図示しないクロ
ック発生手段及びリードパルス発生手段に接続されかつ
出力側がスイッチ(3)に接続された転送パルス発生回
路(2^)とから構成されている. また、転送パルス発生回路(2^〉は、図示しないリー
ドパルス発生手段に接続されたリードパルス同期転送パ
ルス発生部(7)と、リードパルス発生手段及びクロッ
ク発生手段に接続されたクロック同期転送パルス発生部
〈8)とから構成されている. 第2図は、この発明の一実施例の転送パルス発生回路を
示す回路図である. 転送パルス発生回路(2^)は、リードパルス同期転送
パルス発生部(7)と、クロック同期転送パルス発生部
(8)と、これらの転送パルス発生部(7)及び(8)
に接続されたNANDゲート(21)と、このNAND
ゲート(21〉に接続された反転回路(22〉とから構
成されている。
In FIG. 1, one embodiment of the present invention has a device that is exactly the same as the conventional example described above, and the input side is connected to clock generation means and read pulse generation means (not shown), and the output side is connected to a switch (3). It consists of a transfer pulse generation circuit (2^). Further, the transfer pulse generation circuit (2^>) includes a read pulse synchronous transfer pulse generation section (7) connected to a read pulse generation means (not shown), and a clock synchronous transfer pulse generation section (7) connected to the read pulse generation means and the clock generation means. It consists of a generating part (8). FIG. 2 is a circuit diagram showing a transfer pulse generation circuit according to an embodiment of the present invention. The transfer pulse generation circuit (2^) includes a read pulse synchronous transfer pulse generation section (7), a clock synchronous transfer pulse generation section (8), and these transfer pulse generation sections (7) and (8).
A NAND gate (21) connected to
It consists of an inverting circuit (22>) connected to a gate (21>).

また、リードパルス同期転送パルス発生部(7)は、図
示しないリードパルス発生手段に接続された反転回路(
71〉と、同じくリードパルス発生手段に接続された反
転回路(72)と、反転回路(71〉に接続された反転
回路(73)と、反転回路(72)及び(73〉に接続
されたNANDゲート(74)とから構成されている. クロック同期転送パルス発生部(8)は、リードパルス
発生手段及びクロック発生手段に接続されたトランスミ
ッションゲート(81〉と、このトランスミッションゲ
ート(81)に接続された他のトランスミッションゲー
ト(82)と、トランスミッションゲート(81)に接
続された反転回路(83)と、入力側がこの反転回路(
83〉に接続されかつ出力側がトランスミッションゲー
ト(82)に接続された反転回路(84)と、入力側の
一方がトランスミッションゲート(81)に接続されか
つ入力側の他方がクロック発生手段に接続されたNOR
ゲート〈85)とから構成されている. ところで、この発明の第1の転送パルス発生手段は、上
述したこの発明の一実施例ではクロック同期転送パルス
発生部(84)であり、第2の転送パルス発生手段は、
リードパルス同期転送パルス発生部である. つぎに、上述した実施例の動作を第3図を参照しながら
説明する. 第3図は、この発明の一実施例の動作を示す信号波形図
である. リードパルスが入力されない場合はクロック同期転送パ
ルス発生部(8)からクロックを反転した転送パルス(
TE2)を発生する.リードパルスがクロックのハイレ
ベル“H”からローレベル“L”にかけて入力された場
き、トランスミッションゲート(8l)及び(82)と
反転回路(83)及び(84)からなるラッチ回路によ
り゛H”がラッチされリードパルスが入力されたサイク
ルのクロック反転による転送パルス(TEA)はキャン
セルされる.リードパルスの立ち下がりから反転回路(
71)、(72)及び(73)の遅延時間によって決定
されるパルス幅を持つ転送パルス(TE,)を、リード
パルス同期転送パルス発生部(7)が発生する.上記2
種類の転送パルスのアンド(AND)をとり転送パルス
(TE)が作成される.この転送パルスによってカウン
タ(1)からレジスタ(4)にデータが転送される. この発明の一実施例は、上述したようにリードパルスに
よりクロック同期の転送パルスがキャンセルされてもリ
ードパルスに同期した転送パルスによりカウンタ(1)
から読出し用のレジスタ(4)にデータの転送が行われ
るので、クロックの各サイクルのデータがレジスタ(4
)に転送され、データ読出しミスがなくなるという効果
を奏する. なお、上記実施例では入力された全てのリードパルスに
対してリードパルスに同期した転送パルス(TE,)を
発生する例を示したが、クロックに同期した転送パルス
(TE.)がキャンセルされた場合のみリードパルス同
期の転送パルス(TE ) )を発生するようにしても
所期の目的を達成し得ることはいうまでもない. [発明の効果] この発明は、以上説明したとおり、クロックに同期した
第1の転送パルスを発生する第1の転送パルス発生手段
と、レジスタからデータを読み出すリードパルスに同期
した第2の転送パルスを発生する第2の転送パルス発生
手段とを備えたので、上記第1及び第2の転送パルスに
基づいてカウンタから上記レジスタへ上記データを転送
する場合に、任意のタイミングでリードパルスが入力し
ても間違ったデータを読出すことがないという効果を奏
する.
Further, the read pulse synchronous transfer pulse generating section (7) includes an inverting circuit (not shown) connected to a read pulse generating means (not shown).
71>, an inverting circuit (72) also connected to the read pulse generating means, an inverting circuit (73) connected to the inverting circuit (71>), and a NAND connected to the inverting circuits (72) and (73>). The clock synchronous transfer pulse generating section (8) includes a transmission gate (81) connected to the read pulse generating means and the clock generating means, and a transmission gate (81) connected to the transmission gate (81). another transmission gate (82), an inverting circuit (83) connected to the transmission gate (81), and an input side connected to this inverting circuit (83).
83> and whose output side was connected to the transmission gate (82); one input side was connected to the transmission gate (81) and the other input side was connected to the clock generation means. NOR
It consists of a gate〈85). By the way, the first transfer pulse generating means of the present invention is the clock synchronous transfer pulse generating section (84) in the above-described embodiment of the present invention, and the second transfer pulse generating means is:
This is a read pulse synchronous transfer pulse generator. Next, the operation of the above embodiment will be explained with reference to FIG. FIG. 3 is a signal waveform diagram showing the operation of an embodiment of the present invention. If a read pulse is not input, a transfer pulse (with an inverted clock) is generated from the clock synchronous transfer pulse generator (8).
TE2) is generated. When a read pulse is input from the high level "H" of the clock to the low level "L", the latch circuit consisting of transmission gates (8l) and (82) and inverting circuits (83) and (84) causes the clock to go "H". is latched and the transfer pulse (TEA) is canceled due to the clock inversion of the cycle in which the read pulse was input.From the fall of the read pulse, the inversion circuit (
A read pulse synchronized transfer pulse generator (7) generates a transfer pulse (TE,) having a pulse width determined by the delay times of (71), (72), and (73). Above 2
A transfer pulse (TE) is created by ANDing the types of transfer pulses. This transfer pulse transfers data from the counter (1) to the register (4). In one embodiment of the present invention, even if the clock-synchronized transfer pulse is canceled by the read pulse, the counter (1) is reset by the transfer pulse synchronized with the read pulse.
Since the data is transferred from the register (4) to the read register (4), the data of each clock cycle is transferred to the register (4).
), which has the effect of eliminating data read errors. In addition, in the above embodiment, an example was shown in which a transfer pulse (TE.) synchronized with the read pulse is generated for all input read pulses, but the transfer pulse (TE.) synchronized with the clock is canceled. It goes without saying that the intended purpose can also be achieved by generating a transfer pulse (TE) in synchronization with the read pulse only in the case where the read pulse is synchronized. [Effects of the Invention] As described above, the present invention includes a first transfer pulse generating means for generating a first transfer pulse synchronized with a clock, and a second transfer pulse synchronized with a read pulse for reading data from a register. and a second transfer pulse generating means for generating a second transfer pulse, so that when the data is transferred from the counter to the register based on the first and second transfer pulses, a read pulse can be input at any timing. This has the effect that incorrect data will not be read even when the data is read out.

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

第1図はこの発明の一実施例を示す回路図、第2図はこ
の発明の一実施例の転送パルス発生回路を示す回路図、
第3図はこの発明の一実施例の動作を示す信号波形図、
第4図は従来のタイマを示す回路図、第5図、第6図、
第7図、第8図及び第9図は従来のタイマの動作を示す
信号波形図である. 図において、 (1) ・・・ カウンタ、 (2^) ・・・ 転送パルス発生回路、(3) ・・
・ スイッチ、 (4) (5) 〈6) (7) (8) る. なお、 を示す。 レジスタ、 スイッチ、 データパス、 リードパルス同期転送パルス発生部 クロック同期転送パルス発生部であ 各図中、 同一符号は同一、又は相当部分
FIG. 1 is a circuit diagram showing an embodiment of the present invention, FIG. 2 is a circuit diagram showing a transfer pulse generation circuit of an embodiment of the invention,
FIG. 3 is a signal waveform diagram showing the operation of an embodiment of the present invention;
Figure 4 is a circuit diagram showing a conventional timer, Figures 5 and 6,
7, 8, and 9 are signal waveform diagrams showing the operation of a conventional timer. In the figure, (1)... Counter, (2^)... Transfer pulse generation circuit, (3)...
・Switch, (4) (5) <6) (7) (8) In addition, is shown. Registers, switches, data paths, read pulse synchronous transfer pulse generator Clock synchronous transfer pulse generator In each figure, the same symbols indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] クロックに同期した第1の転送パルスを発生する第1の
転送パルス発生手段、及びレジスタからデータを読み出
すリードパルスに同期した第2の転送パルスを発生する
第2の転送パルス発生手段を備え、上記第1及び第2の
転送パルスに基づいてカウンタから上記レジスタへ上記
データを転送することを特徴とするタイマ。
A first transfer pulse generation means for generating a first transfer pulse synchronized with a clock; and a second transfer pulse generation means for generating a second transfer pulse synchronized with a read pulse for reading data from a register; A timer characterized in that the data is transferred from the counter to the register based on first and second transfer pulses.
JP29747989A 1989-11-17 1989-11-17 Timer Pending JPH03159310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29747989A JPH03159310A (en) 1989-11-17 1989-11-17 Timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29747989A JPH03159310A (en) 1989-11-17 1989-11-17 Timer

Publications (1)

Publication Number Publication Date
JPH03159310A true JPH03159310A (en) 1991-07-09

Family

ID=17847032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29747989A Pending JPH03159310A (en) 1989-11-17 1989-11-17 Timer

Country Status (1)

Country Link
JP (1) JPH03159310A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035544A (en) * 2007-09-13 2008-02-14 Mitsubishi Electric Corp Pulse generating circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01100700A (en) * 1987-10-14 1989-04-18 Mitsubishi Electric Corp Measuring device
JPH01208909A (en) * 1988-02-16 1989-08-22 Fuji Electric Co Ltd Timer device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01100700A (en) * 1987-10-14 1989-04-18 Mitsubishi Electric Corp Measuring device
JPH01208909A (en) * 1988-02-16 1989-08-22 Fuji Electric Co Ltd Timer device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008035544A (en) * 2007-09-13 2008-02-14 Mitsubishi Electric Corp Pulse generating circuit

Similar Documents

Publication Publication Date Title
JPH03159310A (en) Timer
JPH0342810B2 (en)
KR100366137B1 (en) Internal Clock Signal Generation Method and Device
JPS6316711A (en) Timing device
KR100236727B1 (en) Period generating device
JPH0133052B2 (en)
JP2646561B2 (en) Clock distribution circuit
JP2599759B2 (en) Flip-flop test method
JPH0219869Y2 (en)
JPS601644B2 (en) Timing pulse generation circuit
JP2788729B2 (en) Control signal generation circuit
JPH01183211A (en) Signal holding circuit
JPH04358397A (en) Semiconductor memory
JP2555628B2 (en) Data transfer circuit
JP2528965B2 (en) Clock phase control circuit
JPH0261569A (en) Serial shift register
SU1169017A1 (en) Device for synchronizing memory
JPH0784011A (en) Clock generation circuit for scan test
JPH01126572A (en) Test signal generation circuit for lsi
JPH03216898A (en) Integrated circuit
JPS581810B2 (en) latch circuit
JPH0342814B2 (en)
JPS6333803B2 (en)
JPH05327513A (en) Signal converter
JPH0434790A (en) Fifo type memory