JPH0712140B2 - Signal switching circuit - Google Patents
Signal switching circuitInfo
- Publication number
- JPH0712140B2 JPH0712140B2 JP59280096A JP28009684A JPH0712140B2 JP H0712140 B2 JPH0712140 B2 JP H0712140B2 JP 59280096 A JP59280096 A JP 59280096A JP 28009684 A JP28009684 A JP 28009684A JP H0712140 B2 JPH0712140 B2 JP H0712140B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- timing
- output
- latch
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000010586 diagram Methods 0.000 description 5
- 230000003111 delayed effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Electronic Switches (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は信号切替回路に関し、特に周波数の高いシステ
ムクロックからタイミング信号を選択的に取り出す信号
切替回路に関する。The present invention relates to a signal switching circuit, and more particularly to a signal switching circuit that selectively extracts a timing signal from a system clock having a high frequency.
従来のこの種の信号切替回路を第3図に示す。分周回路
9はシステムクロックCKを分周し、タイミングデコーダ
10の入力としている。タイミングデコーダ10は分周回路
9の出力を判定して所定の切替タイミングになると切替
要求信号101を出力しSRラッチ11をセットして記憶させ
る。一方、AND−OR回路を用いた選択回路13は、SRラン
チ11の出力12にロウレベルが生じるまではシステムク
ロックCKを出力OUTに出力するが、SRラッチ11がタイミ
ングデコーダ10によりセットされてその出力12がロウ
レベルとなると入力端子14に加えられている直流信号
(あるいはシステムクロックを分周した信号を出力する
ように分周回路9と入力端子14を接続してもよい)に切
替えて出力OUTとする。A conventional signal switching circuit of this type is shown in FIG. The frequency divider circuit 9 divides the system clock CK to generate a timing decoder.
It has 10 inputs. The timing decoder 10 judges the output of the frequency dividing circuit 9 and outputs a switching request signal 101 and sets and stores the SR latch 11 at a predetermined switching timing. On the other hand, the selection circuit 13 using the AND-OR circuit outputs the system clock CK to the output OUT until the output 12 of the SR launch 11 becomes low level, but the SR latch 11 is set by the timing decoder 10 and its output is output. When 12 becomes low level, it is switched to the DC signal applied to the input terminal 14 (or the frequency dividing circuit 9 and the input terminal 14 may be connected so as to output a signal obtained by dividing the system clock), and the output OUT is output. To do.
RSTは回路のリセット信号を入力するリセット端子であ
る。RST is a reset terminal for inputting the reset signal of the circuit.
第4図はその動作を表わすタイミングチャートである。
すなわち、図中t1を切替タイミングとすると同タイミン
グに対応するクロックCKの入力により切替要求信号101
が発生され、SRラッチ11がセットされて出力端子OUTか
らの信号が切り替わる。FIG. 4 is a timing chart showing the operation.
That is, when t 1 is the switching timing in the figure, the switching request signal 101 is input by inputting the clock CK corresponding to the same timing.
Is generated, the SR latch 11 is set, and the signal from the output terminal OUT switches.
原理的に各素子や配線による遅延がないとすると、切替
タイミングt1で信号は切り替わる。しかしながら、かか
る遅延は避けることのできないものである。すなわち、
分周回路9は、当業者にとって周知のとおり第6図に示
すように、縦属接続されたN段のフリップフロップFF1
〜FFNでなり、また、タイミングデコーダ10は各段のフ
リップフロップFF1〜FFNの出力を受けるゲート回路(図
ではANDゲート)を用いて切替タイミングを検出してい
る。図では、フリップフロップFF1〜FFNが“1011・・・
01"となったときを切替タイミングt1としている。しか
しながら、各フリップフロップFFの出力は、第7図のタ
イミングチャートに示すように、前段のフリップフロッ
プの出力の変化から遅れて変化する。このため、図示の
ように、切替要求信号101は遅れて発生されることにな
る。SRラッチ11の出力は切替要求信号101の発生からさ
らに遅れる。この遅れが第4図のようにシステムクロッ
クCKの半周期以上になると、401として示すように、切
替タイミングであるにもかかわらず余分なパルスが発生
する。しかも、そのデューティ比は悪いものとなる。If there is no delay due to each element or wiring in principle, the signal switches at the switching timing t 1 . However, such a delay is inevitable. That is,
As is well known to those skilled in the art, the frequency dividing circuit 9 is a cascade-connected N-stage flip-flop FF1 as shown in FIG.
~ FFN, and the timing decoder 10 detects the switching timing using a gate circuit (AND gate in the figure) that receives the outputs of the flip-flops FF1 to FFN in each stage. In the figure, the flip-flops FF1 to FFN are "1011 ...
The switch timing is t 1 when it becomes 01 ". However, the output of each flip-flop FF changes after a change in the output of the preceding flip-flop, as shown in the timing chart of FIG. Therefore, as shown in the figure, the switching request signal 101 is generated with a delay.The output of the SR latch 11 is further delayed from the generation of the switching request signal 101. This delay is the system clock CK as shown in FIG. When the cycle is longer than half, an extra pulse is generated despite the switching timing, as indicated by 401. In addition, the duty ratio becomes bad.
そこで、第5図に示すように、上述の遅延をみこし切替
タイミングt1よりも1クロック分早いタイミングt0を検
出し同タイミングで切替要求信号101を発生することが
考えられる。そのためのタイミングデコーダ10の構成
は、第8図に示すように、第6図のフリップフロップFF
1〜FFNの出力が“0011・・・01"となったことを検出す
ればよい。しかしながら、この場合、切替要求信号101
の発生の遅れおよびSRラッチ11の出力の変化の遅れにと
もない、第5図に402として示すように、タイミングt0
に対応する出力端子OUTからのパルスが途中でとぎれて
しまう。このため、出力端子OUTからのパルスのデュー
ティ比が変化し、やはりタイミング信号制御が正常に動
作しなくなる。Therefore, as shown in FIG. 5, it is conceivable to detect the timing t 0 which is earlier than the switching timing t 1 by one clock and to generate the switching request signal 101 at the same timing by incorporating the above delay. The structure of the timing decoder 10 for that purpose is as shown in FIG.
It suffices to detect that the output of 1 to FFN is "0011 ... 01". However, in this case, the switching request signal 101
With the occurrence of delayed and SR delay of change in the output of the latch 11, as shown in FIG. 5 as 402, the timing t 0
The pulse from the output terminal OUT corresponding to is interrupted on the way. Therefore, the duty ratio of the pulse from the output terminal OUT changes, and the timing signal control also does not operate normally.
このような余分なパルスが発生したり途中でとぎれたパ
ルスが発生したりすることを防止するためには、クロッ
クCKの周波数を低下するしかなく、その分信号処理の高
速実行が阻外される。In order to prevent such extra pulses and interrupted pulses from occurring in the middle, the frequency of the clock CK must be lowered, and high-speed execution of signal processing is blocked accordingly. .
本発明は、余分なパルスやデューティ比が変化したパル
スを発生することなく所定のタイミングでクロック信号
と他の信号とを切替える信号切替回路を提供することを
目的とし、そのために、上記クロック信号を入力とする
分周回路と、この分周回路の出力にもとづき上記所定の
タイミングの1クロック前の状態を判定して切替要求信
号を発生するタイミングデコーダと、上記クロック信号
の一方の論理レベル及び上記切替要求信号によりセット
される第1のSRラッチと、前記クロック信号の他方の論
理レベル及び上記第1のSRラッチのセット出力によりセ
ットされる第2のSRラッチと、この第2のSRラッチのセ
ット出力により上記クロック信号と上記他の信号とを切
替えて出力する出力選択回路とを備えてなることを特徴
とする。An object of the present invention is to provide a signal switching circuit that switches a clock signal and another signal at a predetermined timing without generating an extra pulse or a pulse with a changed duty ratio. A frequency divider circuit as an input, a timing decoder that determines a state one clock before the predetermined timing based on an output of the frequency divider circuit, and generates a switching request signal, one logic level of the clock signal, and the above A first SR latch set by a switching request signal, a second SR latch set by the other logic level of the clock signal and a set output of the first SR latch, and a second SR latch of the second SR latch. An output selection circuit for switching and outputting the clock signal and the other signal by set output is provided.
次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示す回路図である。その構
成を第2図のタイミングチャートとともに説明する。本
実施例においてもt1を切替タイミングとしている。FIG. 1 is a circuit diagram showing an embodiment of the present invention. The configuration will be described with reference to the timing chart of FIG. Also in this embodiment, t 1 is the switching timing.
従来例と同様に、システムクロックCKを分周回路1に供
給し、タイミングデコーダ2は分周回路1の内容により
タイミングをモニタしている。そして、切替えようとす
るタイミングt1の1クロック手前のタイミング、すなわ
ちタイミングt0となると切替要求信号201を出力する。
かかる分周回路1およびタイミングデコーダ2について
は第6図乃至第8図を参照して説明した構成と同一であ
るので、それらの説明を省略し重複を避ける。Similar to the conventional example, the system clock CK is supplied to the frequency dividing circuit 1, and the timing decoder 2 monitors the timing based on the contents of the frequency dividing circuit 1. Then, the switching request signal 201 is output at the timing one clock before the timing t 1 when the switching is performed, that is, at the timing t 0 .
The frequency dividing circuit 1 and the timing decoder 2 have the same configurations as those described with reference to FIGS. 6 to 8, and therefore their description will be omitted to avoid duplication.
タイミングデコーダ2はタイミングt0で切替要求信号20
1を発生するわけであるが、前述のとおり遅れて発生す
る。この信号201はANDゲート3に供給され、その出力で
SRラッチ4はセットされる。本実施例では、第2図に示
すように、信号201にはシステムクロックCKの半周期に
相当する時間よりも大きな遅延が生じているので、信号
201が発生したときはANDゲート3はその一方の入力にす
でにハイレベルのクロックを受けており、この結果、SR
ラッチ4は信号201に同期してセットされ、その出力
は低レベルになる。The timing decoder 2 outputs the switching request signal 20 at the timing t 0.
Although 1 is generated, it occurs later as described above. This signal 201 is supplied to the AND gate 3 and at its output
SR latch 4 is set. In the present embodiment, as shown in FIG. 2, the signal 201 has a delay larger than the time corresponding to a half cycle of the system clock CK.
When 201 occurs, AND gate 3 has already received a high level clock at one of its inputs, and as a result, SR
The latch 4 is set in synchronization with the signal 201, and its output becomes low level.
一方、信号201がクロックCKの半周期に相当する時間よ
りも小さい遅延をもって発生されるときは、信号201の
高レベルによりANDゲート3は開き、そしてクロックCK
の高レベルへの立上りエッジによりSRラッチ4はセット
されその出力は低レベルとなる。On the other hand, when the signal 201 is generated with a delay smaller than the time corresponding to a half cycle of the clock CK, the high level of the signal 201 causes the AND gate 3 to open, and the clock CK
The SR latch 4 is set by the rising edge of the high level, and its output becomes the low level.
ゲート5は、その二つの入力が低レベルのときその出力
は低レベルとなり、二つの入力のいずれか一方でも高レ
ベルのときはその出力は高レベルであるので、ORゲート
を構成している。かかるORゲート5の一方の入力は第2
図のようにタイミングt0の期間内にSRラッチ4から低レ
ベルの出力を受けているので、クロックCKの低レベルへ
の立下りに同期してその出力は低レベルとなり、SRラッ
チ6をセットする。すなわち、SRラッチ6はタイミング
t1に移行するときのクロックCKの立下りに同期してセッ
トされ、そのQ出力は高レベルになる。The gate 5 constitutes an OR gate because its output is low when its two inputs are low and its output is high when either of the two inputs is high. One input of such OR gate 5 is the second
As shown in the figure, since the low level output is received from the SR latch 4 within the period of timing t 0 , the output becomes low level in synchronization with the falling of the clock CK to the low level, and the SR latch 6 is set. To do. That is, the SR latch 6 is timing
It is set in synchronism with the falling edge of the clock CK when shifting to t 1 , and its Q output becomes high level.
SRラッチ6のQ出力はAND−OR回路7に入力されてお
り、その結果、出力端子OUTからの出力信号は、タイミ
ングt1でシステムクロックCKから入力端子8に与えられ
る信号に切り替えられる。余分なパルスや途中でとぎれ
たパスルは発生しない。The Q output of the SR latch 6 is input to the AND-OR circuit 7, and as a result, the output signal from the output terminal OUT is switched to the signal supplied to the input terminal 8 from the system clock CK at the timing t 1 . No extra pulse or interrupted pulse is generated.
入力端子8の信号はシステムクロックCKを分周した信号
であってもよい。また、リセット信号RSTは信号選択動
作の前に分周回路1とラッチ4,6をリセットする。The signal at the input terminal 8 may be a signal obtained by dividing the system clock CK. Further, the reset signal RST resets the frequency dividing circuit 1 and the latches 4 and 6 before the signal selection operation.
以上説明したように、分周回路、タイミングデコーダお
よび第1SRラッチにより信号を切替えるべきタイミング
の1クロック前のタイミングを検出してその状態を記憶
し、かかる記憶内容と上記切替えるべきタイミングへの
移行とに応答して第2のSRラッチをセットし、このセッ
ト出力によりクロック信号から他の信号へ切り替えてい
る。したがって、余分なパルスや途中でとぎれたパルス
の発生をともなうことなく所望のタイミングで信号切替
えが実行され、出力されたパルスのデューティ比は悪化
しない。よって、システムクロックの周波数を高くで
き、高速の信号処理の実行ができる。As described above, the frequency divider circuit, the timing decoder, and the first SR latch detect the timing one clock before the timing at which the signal should be switched, and store the state, and the stored contents and the transition to the timing to be switched. In response to, the second SR latch is set, and the set signal switches the clock signal to another signal. Therefore, signal switching is executed at a desired timing without generation of extra pulses or interrupted pulses, and the duty ratio of the output pulse does not deteriorate. Therefore, the frequency of the system clock can be increased, and high-speed signal processing can be executed.
第1図は本発明の一実施例を示すブロック図、第2図は
第1図の動作を示すタイミングチャート、第3図は従来
例のブロック図、第4図は第3図の動作を示すタイミン
グチャート、第5図は第3図の切替えタイミングを変更
した場合のタイミングチャート、第6図は第3図の分周
回路およびタイミングデコーダを示すブロック図、第7
図は第6図のタイミングチャート、第8図は第3図のタ
イミングデコーダの他の例を示す回路図である。 1……分周回路、2……タイミングデコーダ、4,6……S
Rラッチ、3……ANDゲート、5……ORゲート、7……AN
D−OR選択回路、CK……システムクロック、8……他の
信号の入力端子。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a timing chart showing the operation of FIG. 1, FIG. 3 is a block diagram of a conventional example, and FIG. 4 shows the operation of FIG. 5 is a timing chart when the switching timing of FIG. 3 is changed, FIG. 6 is a block diagram showing the frequency dividing circuit and timing decoder of FIG. 3, and FIG.
6 is a timing chart of FIG. 6, and FIG. 8 is a circuit diagram showing another example of the timing decoder of FIG. 1 ... divider circuit, 2 ... timing decoder, 4,6 ... S
R latch, 3 …… AND gate, 5 …… OR gate, 7 …… AN
D-OR selection circuit, CK ... System clock, 8 ... Input terminal for other signals.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭50−29274(JP,A) 特開 昭51−44861(JP,A) 特開 昭58−80723(JP,A) 実開 昭56−167642(JP,U) ─────────────────────────────────────────────────── --Continued from the front page (56) References JP-A-50-29274 (JP, A) JP-A-51-44861 (JP, A) JP-A-58-80723 (JP, A) Actual development Sho-56- 167642 (JP, U)
Claims (1)
タイミングで前記クロック信号と前記他の信号を切り替
えて出力する信号切替回路において、前記クロック信号
を入力とする分周回路と、この分周回路の出力にもとづ
き前記所定のタイミングの1クロック前の状態を判定し
て切替要求信号を発生するタイミングデコーダと、前記
クロック信号の一方の論理レベル及び前記タイミングデ
コーダからの前記切替要求信号によりセットされる第1
のSRラッチと、前記クロック信号の他方の論理レベル及
び前記第1のSRラッチのセット出力によりセットされる
第2のSRラッチと、この第2のSRラッチのセット出力に
より前記クロック信号と前記他の信号とを切り替えて出
力する出力選択回路とを備えたことを特徴とする信号切
替回路。1. A signal switching circuit which receives a clock signal and another signal and switches between the clock signal and the other signal at a predetermined timing to output the same, and a frequency dividing circuit having the clock signal as an input and the frequency dividing circuit. It is set by a timing decoder that determines a state one clock before the predetermined timing based on the output of the circuit and generates a switching request signal, and one logic level of the clock signal and the switching request signal from the timing decoder. First
And a second SR latch set by the other logic level of the clock signal and the set output of the first SR latch, and the clock signal and the other by the set output of the second SR latch. And an output selection circuit for switching and outputting the signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59280096A JPH0712140B2 (en) | 1984-12-26 | 1984-12-26 | Signal switching circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59280096A JPH0712140B2 (en) | 1984-12-26 | 1984-12-26 | Signal switching circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61154219A JPS61154219A (en) | 1986-07-12 |
| JPH0712140B2 true JPH0712140B2 (en) | 1995-02-08 |
Family
ID=17620262
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59280096A Expired - Lifetime JPH0712140B2 (en) | 1984-12-26 | 1984-12-26 | Signal switching circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0712140B2 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5880723A (en) * | 1981-11-09 | 1983-05-14 | Hitachi Ltd | Clock signal generator |
-
1984
- 1984-12-26 JP JP59280096A patent/JPH0712140B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61154219A (en) | 1986-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4970405A (en) | Clock selection circuit for selecting one of a plurality of clock pulse signals | |
| JP2909740B2 (en) | Phase matching circuit | |
| US5623223A (en) | Glitchless clock switching circuit | |
| US4855615A (en) | Switching circuit avoiding glitches at the instant of switch-over between two clock signals | |
| US4740891A (en) | Asynchronous state machine | |
| US5319369A (en) | Parallel-to-serial converter | |
| JPH0220173B2 (en) | ||
| JP2576366B2 (en) | Variable delay buffer circuit | |
| US5502409A (en) | Clock switcher circuit | |
| US6049236A (en) | Divide-by-one or divide-by-two qualified clock driver with glitch-free transitions between operating frequencies | |
| JPH0712140B2 (en) | Signal switching circuit | |
| US4741005A (en) | Counter circuit having flip-flops for synchronizing carry signals between stages | |
| KR100223026B1 (en) | Synchronizing circuit | |
| KR950015047B1 (en) | Cluck converter circuit | |
| JPH08330915A (en) | Clock signal switching circuit | |
| JP2586712B2 (en) | Asynchronous signal selection circuit | |
| JP2679471B2 (en) | Clock switching circuit | |
| KR100278271B1 (en) | A clock frequency divider | |
| US5642060A (en) | Clock generator | |
| JPH01290013A (en) | Asynchronous clock selecting/synchronizing circuit | |
| JP2666479B2 (en) | Clock switching circuit and clock switching method | |
| JPH0738398A (en) | Clock switching circuit | |
| JP2550999B2 (en) | Sync pulse generator | |
| JP3382329B2 (en) | Odd counter circuit | |
| JP3084856B2 (en) | Bidirectional buffer circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |