CLOCK FREQUENCY DEVIATION DETECTOR WITH CLOSED-LOOP CALIBRATION

Abstract

An apparatus, including: a switched capacitor configured to generate a switched capacitor voltage based on an input clock signal and a current; a current digital-to-analog converter (DAC) configured to generate the current based on a first digital signal; a first reference voltage generator configured to generate a first reference voltage; and a first voltage comparing device configured to generate a first frequency deviation detection signal based on a comparison of the switched capacitor voltage to the first reference voltage.

Claims

1. An apparatus, comprising: a switched capacitor configured to generate a switched capacitor voltage based on an input clock signal and a current; a current digital-to-analog converter (DAC) configured to generate the current based on a first digital signal; a first reference voltage generator configured to generate a first reference voltage; and a first voltage comparing device configured to generate a first frequency deviation detection signal based on a comparison of the switched capacitor voltage to the first reference voltage.

2. The apparatus of claim 1, wherein the first voltage comparing device comprises a comparator.

3. The apparatus of claim 2, wherein the comparator comprises a hysteresis comparator.

4. The apparatus of claim 1, wherein the first voltage comparing device comprises a differential amplifier.

5. The apparatus of claim 1, wherein the first reference voltage generator comprises a bandgap voltage generator.

6. The apparatus of claim 1, further comprising a successive approximation register (SAR) circuit configured to generate the first digital signal based on the first frequency deviation detection signal.

7. The apparatus of claim 6, further comprising: a first switching device coupled between the first voltage comparing device and the SAR circuit, wherein an on/off state of the first switching device is responsive to a mode signal; and a second switching device coupled between the first voltage comparing device and an output, wherein an on/off state of the second switching device is responsive to the mode signal.

8. The apparatus of claim 7, wherein the first switching device is on and the second switching device is off in response to the mode signal indicating a calibration mode of operation.

9. The apparatus of claim 8, wherein, in the calibration mode of operation while the input clock signal comprises a calibration clock signal, the SAR circuit is configured to perform a successive approximation of the first digital signal until the switched capacitor voltage is substantially equal to the first reference voltage.

10. The apparatus of claim 9, wherein the first switching device is off and the second switching device is on in response to the mode signal indicating a detection mode of operation, wherein the input clock signal comprises a monitored clock signal during the detection mode of operation, and wherein the first frequency deviation detection signal indicates a frequency deviation status or amount between a frequency of the calibration clock signal and a frequency of the monitored clock signal.

11. The apparatus of claim 10, wherein the first frequency deviation detection signal indicates: a no frequency deviation status when the switched capacitor voltage is less than the first reference voltage; and a frequency deviation status when the switched capacitor voltage is greater than the first reference voltage.

12. The apparatus of claim 10, wherein the first frequency deviation detection signal indicates: a no frequency deviation status when the switched capacitor voltage is greater than the first reference voltage; and a frequency deviation status when the switched capacitor voltage is less than the first reference voltage.

13. The apparatus of claim 1, further comprising: a second reference voltage generator configured to generate a second reference voltage; and a second voltage comparing device configured to generate a second frequency deviation detection signal based on a comparison of the switched capacitor voltage to the second reference voltage.

14. The apparatus of claim 13, wherein: the first frequency deviation detection signal indicates a low-side frequency deviation status when the switched capacitor voltage is greater than the first reference voltage; and the second frequency deviation detection signal indicates a high-side frequency deviation status when the switched capacitor voltage is less than the second reference voltage.

15. The apparatus of claim 14, further comprising a concatenation device configured to generate a third frequency deviation detection signal including a concatenation of the first frequency deviation detection signal and the second frequency deviation detection signal.

16. The apparatus of claim 1, further comprising a multiplexer including a set of inputs configured to receive a set of monitored clock signals and a calibration clock signal, and an output configured to generate the input clock signal based on a clock signal select signal.

17. The apparatus of claim 16, wherein the current DAC is configured to generate the current based on the clock signal select signal.

18. The apparatus of claim 17, further comprising a memory configured to store a set of digital signals including the first digital signal, wherein the memory is configured to provide the first digital signal to the current DAC based on the clock signal select signal.

19. The apparatus of claim 18, further comprising a successive approximation register (SAR) circuit configured to generate the set of digital signals based on a set of calibration clock signals including a set of target frequencies for the set of monitored clock signals, respectively.

20. A method, comprising: generating a current based on a digital signal; generating a first voltage based on an input clock signal and the current; generating a second voltage; and generating a first frequency deviation detection signal based on a comparison of the first and second voltages.

21. The method of claim 20, further comprising performing a successive approximation of the digital signal until the first voltage is substantially equal to the second voltage.

22. The method of claim 20, wherein generating the first frequency deviation detection signal comprises generating the first frequency deviation detection signal with a first logic value in response to the first voltage being less than the second voltage, and with a second logic value complementary to the first logic value in response to the first voltage being greater than the second voltage.

23. The method of claim 20, wherein generating the first frequency deviation detection signal comprises generating the first frequency deviation detection signal based on a difference between the first voltage and the second voltage.

24. The method of claim 20, further comprising: generating a set of one or more voltages based on a set of one or more input clock signals and a set of one or more currents, respectively; and generating a set of one or more frequency deviation detection signals based on a comparison of the set of one or more voltages to the second voltage, respectively.

25. An apparatus, comprising: means for generating a current based on a digital signal; means for generating a first voltage based on an input clock signal and the current; means for generating a second voltage; and means for generating a first frequency deviation detection signal based on a comparison of the first and second voltages.

26. The apparatus of claim 25, further comprising means for performing a successive approximation of the digital signal until the first voltage is substantially equal to the second voltage.

27. The apparatus of claim 25, wherein the means for generating the first frequency deviation detection signal comprises means for generating the first frequency deviation detection signal with a first logic value in response to the first voltage being less than the second voltage, and with a second logic value complementary to the first logic value in response to the first voltage being greater than the second voltage.

28. The apparatus of claim 25, wherein the means for generating the first frequency deviation detection signal comprises means for generating the first frequency deviation detection signal based on a difference between the first voltage and the second voltage.

29. The apparatus of claim 25, further comprising: means for generating a set of one or more voltages based on a set of one or more input clock signals and a set of one or more currents, respectively; and means for generating a set of one or more frequency deviation detection signals based on a comparison of the set of one or more voltages to the second voltage, respectively.

30. A wireless communication device, comprising: at least one antenna; a transceiver coupled to the at least one antenna; a set of one or more signal processing cores coupled to the transceiver; a clock source coupled to the set of one or more signal processing cores; and a frequency deviation detector coupled to the clock source, wherein the frequency deviation detector comprises: a switched capacitor configured to generate a switched capacitor voltage based on an input clock signal and a current; a current digital-to-analog converter (DAC) configured to generate the current based on a digital signal; a reference voltage generator configured to generate a reference voltage; and a voltage comparing device configured to generate a frequency deviation detection signal based on a comparison of the switched capacitor voltage to the reference voltage.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0009] FIG. 1 illustrates a block diagram of an example low-side clock frequency deviation detector in accordance with an aspect of the disclosure.

[0010] FIG. 2 illustrates a block diagram of an example high-side clock frequency deviation detector in accordance with another aspect of the disclosure.

[0011] FIG. 3 illustrates a block diagram of an example high-side and low-side clock frequency deviation detector in accordance with another aspect of the disclosure.

[0012] FIG. 4 illustrates a block diagram of another example high-side and low-side clock frequency deviation detector in accordance with another aspect of the disclosure.

[0013] FIG. 5 illustrates a block diagram of an example multi-clock frequency deviation detector in accordance with another aspect of the disclosure.

[0014] FIG. 6 illustrates a block diagram of an example clock frequency deviation detector in accordance with another aspect of the disclosure.

[0015] FIG. 7 illustrates a flow diagram of another example method of generating a frequency deviation detection signal in accordance with another aspect of the disclosure.

[0016] FIG. 8 illustrates a block diagram of an example wireless communication device in accordance with another aspect of the disclosure.

DETAILED DESCRIPTION

[0017] The detailed description set forth below, in connection with the appended drawings, is intended as a description of various configurations and is not intended to represent the only configurations in which the concepts described herein may be practiced. The detailed description includes specific details for the purpose of providing a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.

[0018] FIG. 1 illustrates a block diagram of an example clock frequency deviation detector 100 in accordance with an aspect of the disclosure. The clock frequency deviation detector 100 is configured to generate an output signal D.sub.cmp indicative of whether an input clock signal f.sub.in has deviated in frequency (e.g., decreased below) a target frequency. In particular, the clock frequency deviation detector 100 includes a current digital-to-analog converter (DAC) 105, a switched capacitor 110, a reference voltage generator 115, a comparator 120, a set/pair of switching devices SW.sub.cal and SW.sub.det, and a successive approximation register (SAR) circuit 125.

[0019] The switched capacitor 110 is configured to generate a switched capacitor voltage V.sub.cap based on the input clock signal f.sub.in and a current I.sub.dac generated by the current DAC 105. For example, the switched capacitor 110 may include a T-circuit configuration including a pair of series switching devices and a shunt capacitor between the switching devices. The pair of switching devices are complementary or oppositely driven to on/off states by substantially opposite phases of the input clock signal f.sub.in, respectively. The DAC current I.sub.dac is applied to one side or input of the T-circuit configuration, and the switched capacitor voltage V.sub.cap is produced at the opposite side or output of the T-circuit configuration. The switched capacitor voltage V.sub.cap may be given by the following equation: V.sub.cap=I.sub.dac/(C*f.sub.in), where C is the capacitance of the shunt capacitor, I.sub.dac is the current generated by the current DAC 105, and f.sub.in also represents the frequency of the input clock signal f.sub.in.

[0020] The reference voltage generator 115, which may be implemented as or based on a bandgap voltage generator, is configured to generate a reference voltage V.sub.ref. As the reference voltage V.sub.ref may be based on a bandgap voltage, it may be substantially process-voltage-temperature (PVT) insensitive. The comparator 120 includes positive (+) and negative (?) inputs coupled to the switched capacitor 110 and reference voltage generator 115 to receive the switched capacitor voltage V.sub.cap and the reference voltage V.sub.ref, respectively. In this configuration, the clock frequency deviation detector 100 is configured to detect frequency deviation that falls or decreases below a target frequency. However, as discussed in more detail further herein, it shall be understood that the clock frequency deviation detector 100 may be configured to detect frequency deviation that rises or increases above a target frequency, for example, by having the switched capacitor voltage V.sub.cap and the reference voltage V.sub.ref applied to the negative (?) and positive (+) inputs of the comparator 120, respectively.

[0021] The comparator 120 is configured to generate a digital or logic signal D.sub.cmp based on a comparison of the switched capacitor voltage V.sub.cap to the reference voltage V.sub.ref. For example, in general, if the switched capacitor voltage V.sub.cap is lower than the reference voltage V.sub.ref, the comparator 120 may generate the signal D.sub.cmp as a logic zero (0) (e.g., generally, a first logic value). If the switched capacitor voltage V.sub.cap is higher than the reference voltage V.sub.ref, the comparator 120 may generate the signal D.sub.cmp as a logic one (1) (e.g., generally, a second logic value complementary to the first logic value).

[0022] The comparator 120 may be a hysteresis comparator, implemented with hysteresis thresholds: a high hysteresis threshold TH.sub.H=V.sub.ref+?V and a low hysteresis threshold TH.sub.L=V.sub.ref??V, where 2?V defines a hysteresis window. So, in this case, if the switched capacitor voltage V.sub.cap is lower than the low hysteresis threshold TH.sub.L, the comparator 120 may generate the signal D.sub.cmp as a logic zero (0) (e.g., generally, a first logic value). If the switched capacitor voltage V.sub.cap is higher than the high hysteresis threshold TH.sub.H, the comparator 120 may generate the signal D.sub.cmp as a logic one (1) (e.g., generally, a second logic value complementary to the first logic value). And, if the switched capacitor voltage V.sub.cap is between the low and high hysteresis thresholds TH.sub.H and TH.sub.L, the comparator 120 may maintain signal D.sub.cmp at the current logic level. A reason for the hysteresis thresholds is that the switched capacitor voltage V.sub.cap may be sawtooth waveform in nature due to the switching operation of the switched capacitor 110 in response to the input clock signal f.sub.in. Accordingly, the hysteresis thresholds prevent or reduce false positives if it toggles above and below one of the hysteresis thresholds.

[0023] The on/off states of the set/pair of switching devices SW.sub.cal and SW.sub.det are responsive to a mode signal indicating calibration or detection mode of operation. For example, if the mode signal indicates a calibration mode of operation, the switching device SW.sub.cal is on or closed, and the switching device SW.sub.det is off or open. In the calibration mode, the switching device SW.sub.cal routes the comparator output signal D.sub.cmp to the SAR circuit 125 for calibration purposes. Conversely, if the mode signal indicates detection mode of operation, the switching device SW.sub.cal is off or open, and the switching device SW.sub.det is on or closed. In detection mode, the switching device SW.sub.det outputs the comparator output signal D.sub.cmp to an external circuit for frequency deviation monitoring of the input clock signal f.sub.in.

[0024] In accordance with calibration mode, a clock signal with a target frequency (e.g., a specification or calibration clock signal f.sub.cal) is provided as the input clock signal f.sub.in for the clock frequency deviation detector 100. The SAR circuit 125 is configured to initially generate a DAC input signal D.sub.in at midlevel (e.g., D.sub.in=128 or 1000000 for an 8-bit D.sub.in signal). In response to D.sub.in, the current DAC 105 generates the current I.sub.dac corresponding to the initial midlevel, and the switched capacitor 110 generates the voltage V.sub.cap based on the DAC current I.sub.dac and the target frequency f.sub.cal of the specification clock signal (e.g., V.sub.cap=I.sub.dac/(C*f.sub.cal). The SAR circuit 125 performs a closed-loop successive approximation of the DAC input signal D.sub.in to resolve its bits (e.g., from most significant bit (MSB) to least significant bit (LSB)) until the switched capacitor voltage V.sub.cap is substantially the same as (e.g., no more than one (1) LSB of) the reference voltage V.sub.ref.

[0025] When calibrated and operating in detection mode, a clock signal f.sub.core to monitor is provided as the input clock signal f.sub.in for the clock frequency deviation detector 100. If the frequency of the monitored clock signal f.sub.core is not deviated or within specification (e.g., f.sub.core>f.sub.cal and V.sub.cap<V.sub.ref), the comparator 120 generates the signal D.sub.cmp as a logic zero (0) (e.g., generally, a first logic value). If the frequency of the monitored clock signal f.sub.core deviates from specification (e.g., f.sub.core<f.sub.cal and V.sub.cap>V.sub.ref), the comparator 120 generates the signal D.sub.cmp as a logic one (1) (e.g., generally, a second logic value complementary to the first logic value). The comparator signal D.sub.cmp is provided to an external circuit via the turned-on switching device SW.sub.det for monitoring and/or responding purposes.

[0026] FIG. 2 illustrates a block diagram of another example clock frequency deviation detector 200 in accordance with another aspect of the disclosure. The clock frequency deviation detector 200 is a variation of clock frequency deviation detector 100. Accordingly, the clock frequency deviation detector 200 includes the same/similar elements as clock frequency deviation detector 100 identified by the same reference numbers except that the most significant digit is a 2 for clock frequency deviation detector 200 instead of a 1 for clock frequency deviation detector 100.

[0027] As previously discussed, the clock frequency deviation detector 100 detects frequency deviation if the frequency f.sub.core of the monitored clock signal falls or decreases below the target frequency f.sub.cal (e.g., f.sub.core<f.sub.cal, V.sub.cap>V.sub.ref, and D.sub.cmp=1). That is, the clock frequency deviation detector 100 is a low-side frequency deviation detector. In contrast, the clock frequency deviation detector 200 is a high-side frequency deviation detector, and detects frequency deviation if the frequency f.sub.core of the monitored clock signal rises or increases above the target frequency f.sub.cal (e.g., f.sub.core>f.sub.cal, V.sub.cap<V.sub.ref, and D.sub.cmp=1). If the frequency f.sub.core of the monitored clock signal is below the target frequency f.sub.cal, the clock frequency deviation detector 200 generates the signal D.sub.cmp as logic zero (0), indicating no frequency deviation (e.g., f.sub.core<f.sub.cal, V.sub.cap>V.sub.ref, and D.sub.cmp=0). To effectuate high-side frequency deviation detection, the switched capacitor 210 is coupled to the negative (?) input of the comparator 220 to provide the switched capacitor voltage V.sub.cap thereto; and the reference voltage generator 215 is coupled to the positive (+) input of the comparator 220 to provide the reference voltage V.sub.ref thereto.

[0028] FIG. 3 illustrates a block diagram of another example clock frequency deviation detector 300 in accordance with another aspect of the disclosure. The clock frequency deviation detector 300 is a variation of clock frequency deviation detectors 100 and 200. Accordingly, the clock frequency deviation detector 300 includes the same/similar elements as clock frequency deviation detectors 100 and 200 identified by the same reference numbers except that the most significant digit is a 3 for clock frequency deviation detector 300 instead of a 1 or 2 for clock frequency deviation detector 100 or 200, respectively.

[0029] As previously discussed, the clock frequency deviation detector 100 detects frequency deviation if the frequency f.sub.core of the monitored clock signal falls or decreases below the target frequency f.sub.cal (e.g., f.sub.core<f.sub.cal, V.sub.cap>V.sub.ref, and D.sub.cmp=1). That is, the clock frequency deviation detector 100 is a low-side frequency deviation detector. Similarly, the clock frequency deviation detector 200 detects frequency deviation if the frequency f.sub.core of the monitored clock signal rises or increases above the target frequency f cal (e.g., f.sub.core>f.sub.cal, V.sub.cap<V.sub.ref, and D.sub.cmp=1). That is, the clock frequency deviation detector 200 is a high-side frequency deviation detector.

[0030] The clock frequency deviation detector 300 is both a high-side and a low-side frequency deviation detector. That is, the clock frequency deviation detector 300 detects frequency deviation if the frequency f.sub.core of the monitored clock signal falls or decreases below a target frequency minus a certain margin of error f.sub.cal??f.sub.1 (e.g., f.sub.core<f.sub.cal??f.sub.1, V.sub.cap>V.sub.ref1, and D.sub.cmpL=1). The clock frequency deviation detector 300 also detects frequency deviation if the frequency f.sub.core of the monitored clock signal rises or increases above the target frequency plus a certain margin of error f.sub.cal+?f.sub.2 (e.g., f.sub.core>f.sub.cal+?f.sub.2, V.sub.cap<V.sub.ref2, and D.sub.cmpH=1). If the frequency f.sub.core of the monitored clock signal is within the margin of errors of the target frequency f.sub.cal (e.g., f.sub.cal??f.sub.1<f.sub.cal<f.sub.cal+?f.sub.2), the clock frequency deviation detector 300 generates an output signal D.sub.cmp as 00 (e.g., where D.sub.cmp=D.sub.cmpL?D.sub.cmpH), indicating no frequency deviation.

[0031] To effectuate both low-side and high-side frequency deviation detection, the clock frequency deviation detector 300 includes reference voltage generators 315-1 and 315-2 configured to generate first and second reference voltages V.sub.ref1 and V.sub.ref2, respectively. The first and second reference voltages V.sub.ref1 and V.sub.ref2 may be based or derived from the same or different bandgap voltages. As discussed further herein, the first reference voltage V.sub.ref1 is used for low-side frequency deviation detection, and the second reference voltage V.sub.ref2 is used for high-side frequency deviation detection. In this regard, the first reference voltage V.sub.ref1 is greater than the second reference voltage V.sub.ref2 due to the inverse relationship between frequency and voltage associated with the switched capacitor 310 (e.g., V.sub.cap=I.sub.dac/(C*f.sub.in)).

[0032] The clock frequency deviation detector 300 may also include low-side and high-side comparators 320-1 and 320-2, and a concatenation device 330. The switched capacitor 310 includes an output coupled to positive (+) and negative (?) inputs of the comparators 320-1 and 320-2 to provide switched capacitor voltage V.sub.cap thereto, respectively. The reference voltage generator 315-1 includes an output coupled to a negative (?) input of the comparator 320-1 to provide the first reference voltage V.sub.ref1 thereto. The reference voltage generator 315-2 includes an output coupled to a positive (+) input of the comparator 320-2 to provide the second reference voltage V.sub.ref2 thereto. The comparator 320-1 includes an output coupled to a first input of the concatenation device 330 to provide thereto a low-side frequency deviation detection signal D.sub.cmpL. The comparator 320-2 includes an output coupled to a second input of the concatenation device 330 to provide thereto a high-side frequency deviation detection signal D.sub.cmpH.

[0033] The concatenation device 330 is configured to concatenate the low-side and high-side frequency deviation detection signals D.sub.cmpL and D.sub.cmpH to generate the output frequency deviation detection signal D.sub.cmp. For example, the concatenation device 330 may be implemented as two parallel transmission lines to form a two-bit data bus with one transmission line for propagating the low-side frequency deviation detection signal D.sub.cmpL and the other transmission line for propagating the high-side frequency deviation detection signal D.sub.cmpH. Similar to the previous implementations, in calibration mode of operation, the switching device SW.sub.cal is on or closed, and the switching device SW.sub.det is off or open. The closed switching device SW.sub.cal routes the comparator output signal D.sub.cmp to the input of the SAR circuit 325 for closed-loop calibration purposes. In detection mode of operation, the switching device SW.sub.cal is off or open, and the switching device SW.sub.det is on or closed. The closed switching device SW.sub.det outputs the output frequency deviation detection signal D.sub.cmp to an external circuit for frequency deviation monitoring and/or responding purposes.

[0034] The calibration of the clock frequency deviation detector 300 may be different than those of the low-side or high-side clock frequency deviation detector 100 or 200. As an example, the calibration of the clock frequency deviation detector 300 may be broken up into three (3) phases: (1) determine the DAC current I.sub.dacL corresponding to the low-side frequency threshold by closed-loop successive approximation performed by the SAR circuit 325 with the frequency of the input clock signal f.sub.in set to f.sub.cal??f.sub.1; (2) determine the DAC current I.sub.dacH corresponding to the high-side frequency threshold by closed-loop successive approximation performed by the SAR circuit 325 with the frequency of the input clock signal f.sub.in set to f.sub.cal+?f.sub.2; and (3) determine the final DAC current I.sub.dac by setting it to where the target frequency DAC current falls between I.sub.dacL and I.sub.dacH (e.g., the average of or midpoint between I.sub.dacL and I.sub.dacH, such as I.sub.dac(I.sub.dacL+I.sub.dacH)/2; or other). It shall be understood that the low margin of error ?f.sub.1 may be the same or different than the high margin of error ?f.sub.2.

[0035] FIG. 4 illustrates a block diagram of another example clock frequency deviation detector 400 in accordance with another aspect of the disclosure. The clock frequency deviation detector 400 may be implemented to detect high-side and low-side frequency deviation as in clock frequency deviation detector 300 previously discussed. The two-comparator approach to high-side and low-side frequency deviation detection in clock frequency deviation detector 300 may be suitable if the high and low frequency thresholds f.sub.cal+?f.sub.2 and f.sub.cal??f.sub.1 are not that far apart in frequency. This is because the corresponding variation in the switched capacitor voltage V.sub.cap (e.g., due to V.sub.cap being inversely related to the frequency of the input clock signal f.sub.in) may be sufficiently large that would exceed the dynamic range of the comparators 320-1 and 320-2.

[0036] Accordingly, the clock frequency deviation detector 400 may be more suitable for high and low frequency thresholds that are significantly far apart (e.g., 300 megaHertz (MHz) for the low-side threshold, and 800 MHz for the high-side threshold). In this regard, the clock frequency deviation detector 400 includes a low-side clock frequency deviation detector 410 and a high-side frequency deviation detector 420. The low-side clock frequency deviation detector 410 may be implemented per low-side clock frequency deviation detector 100 previously discussed. The high-side clock frequency deviation detector 420 may be implemented per high-side clock frequency deviation detector 200 previously discussed.

[0037] The low- and high-side clock frequency detectors 410 and 420 include a common input configured to receive an input clock signal f.sub.in. The low-side clock frequency detector 410 is configured to generate a signal D.sub.cmpL that indicates whether the frequency f.sub.in of the input clock signal is above or below a low-side frequency threshold f.sub.calL (e.g., if f.sub.in>f.sub.calL.fwdarw.D.sub.cmpL=0 and if f.sub.in<f.sub.calL.fwdarw.D.sub.cmpL=1). Similarly, the high-side clock frequency detector 420 is configured to generate a signal D.sub.cmpH that indicates whether the frequency f.sub.in of the input clock signal is below or above a high-side frequency threshold f.sub.calH (e.g., if f.sub.in<f.sub.calH.fwdarw.D.sub.cmpH=0; and if f.sub.in>f.sub.calH.fwdarw.D.sub.cmpH=1). The clock frequency deviation detector 400 further includes a concatenation device 430 configured to concatenate the low-side and high-side frequency deviation detection signals D.sub.cmpL and D.sub.cmpH to generate an output signal D.sub.cmp that indicates whether there is a low-side or high-side frequency deviation.

[0038] FIG. 5 illustrates a block diagram of another example clock frequency deviation detector 500 in accordance with another aspect of the disclosure. In the previous implementations 100 to 400, the clock frequency deviation detector was calibrated for a clock signal having a certain target frequency or frequency range. Once the clock frequency deviation detector has been calibrated, a monitored clock signal is provided to the clock frequency deviation detector, which generates a signal indicative of whether the frequency of the monitored clock signal has deviated from the target frequency or frequency range.

[0039] In clock frequency deviation detector 500, a set of monitored clock signals f.sub.core1 to f.sub.coreN and a calibration clock signal f.sub.cal may be provided as selectable inputs to the clock frequency deviation detector 500. In calibration mode of operation, a first calibration clock signal f.sub.cal1 with a first target frequency is provided as the selected calibration clock signal f.sub.cal for calibrating the detector 500 for monitoring the first monitored clock signal f.sub.eore1. The clock frequency deviation detector 500 may then perform a closed-loop successive approximation to determine a first current DAC input signal D.sub.in1 that causes a switched capacitor voltage V.sub.cap to be substantially the same as the reference voltage V.sub.ref. The first current DAC input signal D.sub.in1 is then stored in a memory.

[0040] Then, a second calibration clock signal f.sub.cal2 with a second target frequency is provided as the selected calibration clock signal f.sub.cal for calibrating the detector 500 for monitoring the second monitored clock signal f.sub.core2. The clock frequency deviation detector 500 may then perform a closed-loop successive approximation to determine a second current DAC input signal D.sub.in2 that causes the switched capacitor voltage V.sub.cap to be substantially the same as the reference voltage V.sub.ref. The second current DAC input signal D.sub.in2 is then stored in memory. Such calibration algorithm continues until the N.sup.th calibration clock signal f.sub.calN with an N.sup.th target frequency is provided as the selected calibration clock signal f.sub.cal for calibrating the detector 500 for monitoring the N.sup.th monitored clock signal f.sub.coreN. The clock frequency deviation detector 500 may then perform a successive approximation to determine an N.sup.th current DAC input signal D.sub.inN that causes the switched capacitor voltage V.sub.cap to be substantially the same as the reference voltage V.sub.ref. The N.sup.th current DAC input signal D.sub.inN is then stored in memory.

[0041] In detection mode of operation, if the clock frequency deviation detector 500 is to determine whether the frequency of the first monitored clock signal f.sub.core1 has deviated, the first monitored clock signal f.sub.core1 is selected as the input clock signal f.sub.in for the clock frequency deviation detector 500 and the corresponding DAC input signal D.sub.in1 is loaded into the current DAC, and the corresponding comparator output signal D.sub.cmp indicates whether the frequency f.sub.core1 is within specification (e.g., D.sub.cmp=0) or has deviated (e.g., D.sub.cmp=1). If the clock frequency deviation detector 500 is to determine whether the frequency of the second monitored clock signal f.sub.core2 has deviated, the second monitored clock signal f.sub.core2 is selected as the input clock signal f.sub.in for the clock frequency deviation detector 500 and the corresponding DAC input signal D.sub.in2 is loaded into the current DAC, and the corresponding comparator output signal D.sub.cmp indicates whether the frequency f.sub.core2 is within specification (e.g., D.sub.cmp=0) or has deviated (e.g., D.sub.cmp=1). Such frequency deviation detection process may continue until the frequency deviation status of the N.sup.th monitored clock signal f.sub.coreN has been determined.

[0042] More specifically, the clock frequency deviation detector 500 is similar to clock frequency deviation detector 100 or 200, and includes many of the same/similar elements as indicated by the same reference numbers with the exception that the most significant digit is a 5 for clock frequency deviation detector 500 instead of a 1 or 2 for clock frequency deviation detector 100 or 200, respectively.

[0043] In addition to the same/similar elements of detector 100 or 200, the clock frequency deviation detector 500 further includes a memory 530 and a multiplexer 535. The multiplexer 535 includes a set of inputs configured to receive the set of monitored clock signals f.sub.core1 to f.sub.coreN and the calibration clock signal f.sub.cal (e.g., an external clock signal from an automated test equipment), respectively. The multiplexer 535 further includes a select input configured to receive a clock signal selection signal CS.sub.sel. Additionally, the multiplexer 535 includes an output coupled to an input of the switched capacitor 510 to provide a selected input clock signal f.sub.in thereto. Also, the clock frequency deviation detector 500 includes a memory 530 coupled to the current DAC 505 and configured to receive the clock signal selection signal CS.sub.sel and a read/write (R/W) signal.

[0044] Thus, as discussed above, when the clock frequency deviation detector 500 is to be calibrated for one of the set of monitored clock signals f.sub.core1 to f.sub.coreN (e.g., f.sub.core1), the first calibration clock signal f.sub.cal1 is provided as calibration clock signal input f.sub.cal of the multiplexer 535. Also, the clock selection signal CS.sub.sel is set to control the multiplexer 535 to output the first calibration clock signal f.sub.cal1 as the input clock signal f.sub.in of the clock frequency deviation detector 500. The clock frequency deviation detector 500 is then operated in calibration mode to perform a closed-loop successive approximation to determine a current DAC input signal D.sub.in1 that causes the switched capacitor voltage V.sub.cap to be substantially the same as the reference voltage V.sub.ref. The R/W signal is then set to cause the memory 530 to store the current DAC input signal D.sub.in1 at an address identified by the clock selection signal CS.sub.sel. Such calibration process continues until all N current DAC input signals D.sub.in1 to D.sub.inN associated with the set of monitored clock signals f.sub.core1 to f.sub.coreN are determined and stored in the memory 530.

[0045] In detection mode of operation, the clock signal selection signal CS.sub.sel is set to control the multiplexer 535 to output a selected monitored clock signal (e.g., one of f.sub.core1 to f.sub.coreN) as the input clock signal f.sub.in of the clock frequency deviation detector 500. The R/W signal is also set to load the current DAC input signal associated with the selected monitored clock signal into the current DAC 505 as indicated by the clock selection signal CS.sub.sel. The clock frequency deviation detector 500 then generates and outputs the frequency deviation detection signal D.sub.cmp to an external circuit via the turned-on switching device SW.sub.det to determine the frequency deviation status of the selected monitored clock signal. It shall be understood that the clock frequency deviation detector 500 may be implemented to perform high-side and low-side frequency deviation detection per clock frequency deviation detector 300 or 400.

[0046] FIG. 6 illustrates a block diagram of another example clock frequency deviation detector 600 in accordance with another aspect of the disclosure. The clock frequency deviation detector 600 is similar to clock frequency deviation detector 100, and includes many of the same/similar elements as indicated by the same reference numbers with the exception that the most significant digit is a 6 for clock frequency deviation detector 600 instead of a 1 for clock frequency deviation detector 100.

[0047] In the previous implementations 100 to 500, the clock frequency deviation detector used a comparator to generate a logical signal D.sub.cmp for calibration purposes, as well as to indicate a frequency deviation status of a corresponding monitored clock signal. In contrast, the clock frequency deviation detector 600 includes a differential amplifier 620 configured to generate an analog signal V.sub.cmp for calibration purposes, as well as information about a frequency deviation of a corresponding monitored clock signal. Once calibrated, the analog signal V.sub.cmp indicates the amount of frequency deviation as a function of a gain G of the differential amplifier 620 and the difference between the switched capacitor voltage V.sub.cap and the reference voltage V.sub.ref (e.g., V.sub.cmp=G*(V.sub.cap?V.sub.ref)).

[0048] In this example, the differential amplifier 620 includes an operational amplifier 630 including negative (?) and positive (+) inputs and an output. The differential amplifier 620 further includes a pair of input resistors R.sub.1 and R.sub.2 coupled between the switched capacitor 610 and the reference voltage generator 615 and the negative (?) and positive (+) inputs of the operational amplifier 630, respectively. Additionally, the differential amplifier 630 includes a feedback resistor R.sub.3 coupled between the output and the negative (?) input of the operational amplifier 630. Further, the differential amplifier 630 includes a shunt resistor R.sub.4 coupled between the positive (+) input of the operational amplifier 630 and a lower voltage rail (e.g., ground). The gain G of the differential amplifier 620 is determined by the resistances of the resistors R.sub.1 to R.sub.4 (e.g., V.sub.cmp=G*(V.sub.cap?V.sub.ref), where G=?R.sub.3/R.sub.1 when R.sub.1=R.sub.2 and R.sub.3=R.sub.4). It shall be understood that the differential amplifier 620 may have a different implementation.

[0049] In calibration mode of operation, the clock frequency deviation detector 600 operates similar to detector 100 with the exception that the SAR circuit 625 performs a closed-loop successive approximation of the current DAC input signal D.sub.in based on the analog signal V.sub.cmp. In detection mode of operation, an external circuit may receive the analog signal V.sub.cmp and determine the frequency deviation status of the monitored clock signal based on the magnitude or amplitude of the analog signal V.sub.cmp. The comparators of detectors 100-500 and the differential amplifier 620 of detector 600 may be generally referred to voltage comparing devices.

[0050] FIG. 7 illustrates a flow diagram of another example method 700 of generating a frequency deviation detection signal in accordance with another aspect of the disclosure. The method 700 includes generating a current based on a digital signal (block 710). Examples of means for generating a current based on a digital signal include any of the current DACs described herein. Additionally, the method 700 includes generating a first voltage based on an input clock signal and the current (block 720). Examples of means for generating a first voltage based on an input clock signal and the current include any of the switched capacitors described herein.

[0051] Further, the method 700 includes generating a second voltage (block 730). Examples of means for generating a second voltage include any of the reference voltage generators described herein. Also, the method 700 includes generating a first frequency deviation detection signal based on a comparison of the first and second voltages (block 740). Examples of means for generating a first frequency deviation detection signal based on a comparison of the first and second voltages include any of the comparators or differential amplifier described herein.

[0052] FIG. 8 illustrates a block diagram of an example wireless communication device 800 in accordance with another aspect of the disclosure. The wireless communication device 800 may be a smart phone, a desktop computer, laptop computer, tablet device, Internet of Things (IoT), wearable wireless device (e.g., wireless watch), and other types of wireless device.

[0053] In particular, the wireless communication device 800 includes an integrated circuit (IC) 810, which may be implemented as a system on chip (SOC). The IC 810 includes one or more signal processing cores 820 configured to generate a transmit (Tx) baseband (BB) signal and process a received (Rx) baseband (BB) signal. The IC 810 further includes a phase lock loop (PLL) 830 as a clock source configured to generate a clock signal CLK. The clock signal CLK may be provided to the one or more signal processing cores 820 for generating the Tx BB signal and processing the Rx BB signal.

[0054] Additionally, the IC 810 further includes a clock frequency deviation detector 840 configured to generate a frequency deviation detection signal D.sub.cmp based on the frequency of the clock signal CLK, as previously discussed. The clock frequency deviation detector 840 may be implemented per any of the clock frequency deviation detectors previously discussed. The frequency deviation detection signal D.sub.cmp may be provided to the one or more signal processing cores 820 and/or other core/circuit/device for frequency deviation monitoring and/or responding thereto.

[0055] The wireless communication device 800 may further include a transceiver 850 and at least one antenna 860 (e.g., an antenna array). The transceiver 850 is coupled to the one or more signal processing cores 820 to receive therefrom the Tx BB signal and provide thereto the Rx BB signal. The transceiver 850 is configured to convert the Tx BB signal into a transmit (Tx) radio frequency (RF) signal, and convert a received (Rx) RF signal into the Rx BB signal. The transceiver 850 is coupled to the at least one antenna 860 to provide thereto the Tx RF signal for electromagnetic radiation into a wireless medium for wireless transmission, and receive the Rx RF signal electromagnetically picked up from the wireless medium by the at least one antenna 860.

[0056] The following provides an overview of aspects of the present disclosure:

[0057] Aspect 1: An apparatus, comprising: a switched capacitor configured to generate a switched capacitor voltage based on an input clock signal and a current; a current digital-to-analog converter (DAC) configured to generate the current based on a first digital signal; a first reference voltage generator configured to generate a first reference voltage; and a first voltage comparing device configured to generate a first frequency deviation detection signal based on a comparison of the switched capacitor voltage to the first reference voltage.

[0058] Aspect 2: The apparatus of aspect 1, wherein the first voltage comparing device comprises a comparator.

[0059] Aspect 3: The apparatus of aspect 2, wherein the comparator comprises a hysteresis comparator.

[0060] Aspect 4: The apparatus of aspect 1, wherein the first voltage comparing device comprises a differential amplifier.

[0061] Aspect 5: The apparatus of any one of aspects 1-4, wherein the first reference voltage generator comprises a bandgap voltage generator.

[0062] Aspect 6: The apparatus of any one of aspects 1-5, further comprising a successive approximation register (SAR) circuit configured to generate the first digital signal based on the first frequency deviation detection signal.

[0063] Aspect 7: The apparatus of aspect 6, further comprising: a first switching device coupled between the first voltage comparing device and the SAR circuit, wherein an on/off state of the first switching device is responsive to a mode signal; and a second switching device coupled between the first voltage comparing device and an output, wherein an on/off state of the second switching device is responsive to the mode signal.

[0064] Aspect 8: The apparatus of aspect 7, wherein the first switching device is on and the second switching device is off in response to the mode signal indicating a calibration mode of operation.

[0065] Aspect 9: The apparatus of aspect 8, wherein, in the calibration mode of operation while the input clock signal comprising a calibration clock signal, the SAR circuit is configured to perform a successive approximation of the first digital signal until the switched capacitor voltage is substantially equal to the first reference voltage.

[0066] Aspect 10: The apparatus of aspect 9, wherein the first switching device is off and the second switching device is on in response to the mode signal indicating a detection mode of operation, wherein the input clock signal comprises a monitored clock signal during the detection mode of operation, and wherein the first frequency deviation detection signal indicates a frequency deviation status or amount between a frequency of the calibration clock signal and a frequency of the monitored clock signal.

[0067] Aspect 11: The apparatus of aspect 10, wherein the first frequency deviation detection signal indicates: a no frequency deviation status when the switched capacitor voltage is less than the first reference voltage; and a frequency deviation status when the switched capacitor voltage is greater than the first reference voltage.

[0068] Aspect 12: The apparatus of aspect 10, wherein the first frequency deviation detection signal indicates: a no frequency deviation status when the switched capacitor voltage is greater than the first reference voltage; and a frequency deviation status when the switched capacitor voltage is less than the first reference voltage.

[0069] Aspect 13: The apparatus of any one of aspects 1-12, further comprising: a second reference voltage generator configured to generate a second reference voltage; and a second voltage comparing device configured to generate a second frequency deviation detection signal based on a comparison of the switched capacitor voltage to the second reference voltage.

[0070] Aspect 14: The apparatus of aspect 13, wherein: the first frequency deviation detection signal indicates a low-side frequency deviation status when the switched capacitor voltage is greater than the first reference voltage; and the second frequency deviation detection signal indicates a high-side frequency deviation status when the switched capacitor voltage is less than the second reference voltage.

[0071] Aspect 15: The apparatus of aspect 14, further comprising a concatenation device configured to generate a third frequency deviation detection signal including a concatenation of the first frequency deviation detection signal and the second frequency deviation detection signal.

[0072] Aspect 16: The apparatus of any one of aspect 1-15, further comprising a multiplexer including a set of inputs configured to receive a set of monitored clock signals and a calibration clock signal, and an output configured to generate the input clock signal based on a clock signal select signal.

[0073] Aspect 17: The apparatus of aspect 16, wherein the current DAC is configured to generate the current based on the clock signal select signal.

[0074] Aspect 18: The apparatus of aspect 17, further comprising a memory configured to store a set of digital signals including the first digital signal, wherein the memory is configured to provide the first digital signal to the current DAC based on the clock signal select signal.

[0075] Aspect 19: The apparatus of aspect 18, further comprising a successive approximation register (SAR) circuit configured to generate the set of digital signals based on a set of calibration clock signals including a set of target frequencies for the set of monitored clock signals, respectively.

[0076] Aspect 20: A method, comprising: generating a current based on a digital signal; generating a first voltage based on an input clock signal and the current; generating a second voltage; and generating a first frequency deviation detection signal based on a comparison of the first and second voltages.

[0077] Aspect 21: The method of aspect 20, further comprising performing a successive approximation of the digital signal until the first voltage is substantially equal to the second voltage.

[0078] Aspect 22: The method of aspect 20 or 21, wherein generating the first frequency deviation detection signal comprises generating the first frequency deviation detection signal with a first logic value in response to the first voltage being less than the second voltage, and with a second logic value complementary to the first logic value in response to the first voltage being greater than the second voltage.

[0079] Aspect 23: The method of aspect 20 or 21, wherein generating the first frequency deviation detection signal comprises generating the first frequency deviation detection signal based on a difference between the first voltage and the second voltage.

[0080] Aspect 24: The method of any one of aspects 20-23, further comprising: generating a set of one or more voltages based on a set of one or more input clock signals and a set of one or more currents, respectively; and generating a set of one or more frequency deviation detection signals based on a comparison of the set of one or more voltages to the second voltage, respectively.

[0081] Aspect 25: An apparatus, comprising: means for generating a current based on a digital signal; means for generating a first voltage based on an input clock signal and the current; means for generating a second voltage; and means for generating a first frequency deviation detection signal based on a comparison of the first and second voltages.

[0082] Aspect 26: The apparatus of aspect 25, further comprising means for performing a successive approximation of the digital signal until the first voltage is substantially equal to the second voltage.

[0083] Aspect 27: The apparatus of aspect 25 or 26, wherein the means for generating the first frequency deviation detection signal comprises means for generating the first frequency deviation detection signal with a first logic value in response to the first voltage being less than the second voltage, and with a second logic value complementary to the first logic value in response to the first voltage being greater than the second voltage.

[0084] Aspect 28: The apparatus of aspect 25 or 26, wherein the means for generating the first frequency deviation detection signal comprises means for generating the first frequency deviation detection signal based on a difference between the first voltage and the second voltage.

[0085] Aspect 29: The apparatus of any one of aspects 25-28, further comprising: means for generating a set of one or more voltages based on a set of one or more input clock signals and a set of one or more currents, respectively; and means for generating a set of one or more frequency deviation detection signals based on a comparison of the set of one or more voltages to the second voltage, respectively.

[0086] Aspect 30: A wireless communication device, comprising: at least one antenna; a transceiver coupled to the at least one antenna; a set of one or more signal processing cores coupled to the transceiver; a clock source coupled to the set of one or more signal processing cores; and a frequency deviation detector coupled to the clock source, wherein the frequency deviation detector comprises: a switched capacitor configured to generate a switched capacitor voltage based on an input clock signal and a current; a current digital-to-analog converter (DAC) configured to generate the current based on a first digital signal; a reference voltage generator configured to generate a reference voltage; and a voltage comparing device configured to generate a frequency deviation detection signal based on a comparison of the switched capacitor voltage to the reference voltage.

[0087] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.