Electronic circuit for detecting fault of an oscillator and controlling oscillator operation
An electronic circuit includes a reference clock signal generator block and functional blocks. In response to a detected failure on a signal originating from a reference frequency generator of the reference clock signal generator block, only the reference frequency generator of the reference clock signal generator block, but not the functional blocks, is reset.
1 . An electronic circuit, comprising:
a reference clock signal generator circuit including a reference frequency generator and a detection circuit connected to an output of the reference frequency generator and configured to detect a failure on a signal generated at the output of the reference frequency generator;
functional circuits; and
a control circuit configured to generate, in response to the detected failure on the signal originating from the reference frequency generator, a first reset signal applied to the reference frequency generator that causes a resetting of the reference frequency generator and a second reset signal applied to the functional circuits that causes a resetting that is common to said functional circuits and to said reference clock signal generator circuit; wherein the control circuit generates the first and second reset signals dependent on whether said failure is transient or permanent.
2 . The circuit according to claim 1 , further comprising:
a flip-flop clocked by a signal derived from the detected failure on the signal originating from the reference frequency generator;
a first logic circuit configured to logically combine the first and second reset signals;
said flip-flop having a reset input coupled to an output of the first logic circuit;
a second logic circuit configured to logically combine an output of the flip-flop with the second reset signal to generate a clock status signal; and
the control circuit configured to control the reference frequency generator in response to the clock status signal.
3 . The circuit according to claim 1 , wherein the detection circuit is configured to generate a failure status signal according to a result of detecting the failure.
4 . The circuit according to claim 3 , wherein the reference clock signal generator circuit further comprises a flip-flop having:
a clock input configured to receive a signal dependent on the output of the detection circuit; and
a reset input coupled to a first logic block that is configured to logically AND an inverse of the first reset signal and the second reset signal.
5 . The circuit according to claim 4 , wherein said reference clock signal generator circuit further comprises a start-up control circuit having a reset input coupled to a second logic block configured to logically AND a signal present on an inverted output of said flip-flop and said second reset signal.
6 . The circuit according to claim 5 , wherein the inverted output of the flip-flop is configured to be reset when the reset input is activated.
7 . The circuit according to claim 5 , wherein the reset input of the flip-flop is activated when it receives a signal at logic 0.
8 . The circuit according to claim 5 , wherein said start-up control circuit comprises an output configured to deliver a signal for controlling the reference frequency generator.
9 . The circuit according to claim 8 , wherein the signal for controlling the reference frequency generator is configured to stop the reference frequency generator when the reset input of the control circuit is enabled.
10 . The circuit according to claim 5 , wherein said start-up control circuit comprises:
a clock output configured to deliver a reference clock signal having the reference frequency; and
a clock input configured to receive said signal originating from the reference frequency generator;
wherein the start-up control circuit is configured to deliver the reference clock signal at the clock output based on the signal originating from the reference frequency generator after a given number of periods have been verified.
11 . The circuit according to claim 4 , wherein the flip-flop is coupled to the output of the detection circuit via a third logic block configured to logically AND the failure status signal and a signal for enabling the detection circuit.
12 . The circuit according to claim 4 , wherein the flip-flop comprises a data input set to a logic 1 state.
13 . The circuit according to claim 4 , wherein the flip-flop is a D-type flip-flop.
14 . A circuit, comprising:
an oscillator circuit having an input and clock output;
a detection circuit coupled to the clock output and configured to detect a failure of the oscillator circuit;
a flip-flop circuit having a clock input configured to receive a signal dependent on a clock failure signal output by the detection circuit;
a first logic circuit configured to logically combine a first reset signal indicating a circuit block reset and a second reset signal indicating a reset of only the oscillator circuit;
wherein a reset input of the flip-flop is coupled to an output of the first logic circuit;
a second logic circuit configured to logically combine an output of the flip-flop and the first reset signal to generate a clock status signal; and
a controlling circuit configured to receive the clock status signal and control a logic state of a signal applied to the input of the oscillator circuit.
15 . The circuit of claim 14 , wherein the detection circuit further includes an enable input configured to receive a detector enable signal, and further comprising a third logic circuit controlled by the detector enable signal to pass the clock failure signal output by the detection circuit the clock input of the flip-flop.
16 . The circuit of claim 14 , further comprising a fourth logic circuit configured to logically combine an oscillator enable signal and an oscillator control signal generated by the controlling circuit to generate the enable signal applied to the enable input of the oscillator circuit.
17 . The circuit of claim 14 , wherein the oscillator circuit, the detection circuit, the flip-flop circuit, the first logic circuit, the second logic circuit, and the controlling circuit are circuit components of a reference clock signal generator circuit block, said circuit further including one or more functional circuit blocks, wherein each functional circuit block is reset in response to said first reset signal, and wherein the reference clock signal generator circuit block and said one or more functional circuit blocks are coupled by a circuit bus.