Switching circuit and clock supply circuit
AssigneeNuvoton Technology Corporation
InventorYung-Chi LAN
Life of this patent
Estimating the term…
Abstract
A switching circuit coupled to a first oscillator circuit and a second oscillator is provided. The first oscillator circuit generates a first clock signal according to a first enable signal. The second oscillator generates a second clock signal according to a second enable signal. The switching circuit uses the first or second clock signal as an output clock according to a detection signal. The switching circuit includes a first D-type flip-flop and a second D-type flip-flop. The first D-type flip-flop includes a first reset terminal receiving the first enable signal. The second D-type flip-flop includes a second reset terminal receiving the second enable signal.
Claims20
A switching circuit coupled to a first oscillator circuit, which generates a first clock signal according to a first enable signal, and a second oscillator, which generates a second clock signal according to a second enable signal, comprising:
- a detection circuit detecting a third enable signal and a fourth enable signal to generate a detection signal;
- a first inverter inverting a selection signal to generate a first inverted signal;
- a first determination circuit outputting the first inverted signal in response to the detection signal being at a specific level;
- a first D-type flip-flop receiving the first inverted signal and using the first inverted signal as the third enable signal according to the first clock signal;
- a second determination circuit outputting the selection signal in response to the detection signal being at the specific level;
- a second D-type flip-flop receiving the selection signal and using the selection signal as the fourth enable signal according to the second clock signal;
- and
- a clock gating circuit using the first or second clock signal as an output clock according to the third and fourth enable signals,
- wherein:
- the first D-type flip-flop comprises a first reset terminal receiving the first enable signal, and
- the second D-type flip-flop comprises a second reset terminal receiving the second enable signal.
A clock supply circuit providing an output clock according to a selection signal and comprising:
- a first oscillator circuit generating a first clock signal according to a first enable signal;
- a second oscillator circuit generating a second clock signal according to a second enable signal;
- and
- a switching circuit using the first or second clock signal as the output clock according to the selection signal and comprising:
- a detection circuit detecting a third enable signal and a fourth enable signal to generate a detection signal;
- an inverter inverting the selection signal to generate a first inverted signal;
- a first determination circuit outputting the first inverted signal in response to the detection signal being at a specific level;
- a first D-type flip-flop receiving the first inverted signal and using the first inverted signal as the third enable signal according to the first clock signal;
- a second determination circuit outputting the selection signal in response to the detection signal being at the specific level;
- a second D-type flip-flop receiving the selection signal and using the selection signal as the fourth enable signal according to the second clock signal;
- and
- a clock gating circuit using the first or second clock signal as the output clock according to the third and fourth enable signals,
- wherein:
- the first D-type flip-flop comprises a first reset terminal receiving the first enable signal, and
- the second D-type flip-flop comprises a second reset terminal receiving the second enable signal.
Dependencies are inferred from the claim text.