WO2013078108A2 - Precision on-board tuning of embedded microcontroller oscillator using charge time measurenent unit - Google Patents
Precision on-board tuning of embedded microcontroller oscillator using charge time measurenent unit Download PDFInfo
- Publication number
- WO2013078108A2 WO2013078108A2 PCT/US2012/065774 US2012065774W WO2013078108A2 WO 2013078108 A2 WO2013078108 A2 WO 2013078108A2 US 2012065774 W US2012065774 W US 2012065774W WO 2013078108 A2 WO2013078108 A2 WO 2013078108A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frequency
- integrated circuit
- digital processor
- ctmu
- time value
- Prior art date
Links
- 238000005259 measurement Methods 0.000 claims abstract description 22
- 239000003990 capacitor Substances 0.000 claims description 62
- 230000007704 transition Effects 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 8
- 238000005070 sampling Methods 0.000 claims description 8
- 238000000034 method Methods 0.000 claims description 5
- 230000007423 decrease Effects 0.000 claims description 3
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 230000008878 coupling Effects 0.000 claims 1
- 238000010168 coupling process Methods 0.000 claims 1
- 238000005859 coupling reaction Methods 0.000 claims 1
- 230000006872 improvement Effects 0.000 abstract description 3
- 238000012790 confirmation Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 12
- 230000008859 change Effects 0.000 description 6
- 239000013078 crystal Substances 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000001276 controlling effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005476 soldering Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L1/00—Stabilisation of generator output against variations of physical values, e.g. power supply
- H03L1/02—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only
- H03L1/022—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature
- H03L1/026—Stabilisation of generator output against variations of physical values, e.g. power supply against variations of temperature only by indirect stabilisation, i.e. by generating an electrical correction signal which is a function of the temperature by using a memory for digitally storing correction values
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/282—Testing of electronic circuits specially adapted for particular applications not provided for elsewhere
- G01R31/2822—Testing of electronic circuits specially adapted for particular applications not provided for elsewhere of microwave or radiofrequency circuits
- G01R31/2824—Testing of electronic circuits specially adapted for particular applications not provided for elsewhere of microwave or radiofrequency circuits testing of oscillators or resonators
Definitions
- the present disclosure relates to integrated circuit devices requiring a precision clock oscillator, and more particularly, to integrated circuit devices having a precision clock oscillator integrated with the integrated circuit device.
- An integrated circuit device oscillator using internal frequency determining elements would eliminate the external pins requirement for connection to a crystal.
- Such an oscillator having internal frequency determining elements e.g., self contained oscillator, may be, for example but is not limited to, a resistor-capacitor (RC) oscillator.
- RC resistor-capacitor
- an integrated circuit device with a frequency tunable internal clock oscillator having a precision frequency that is automatically maintained by using a charge time measurement unit may comprise a charge time measurement unit (CTMU) having a capacitor of known value and a constant current source of known value; a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU; an analog-to-digital converter (ADC) coupled to the CTMU; and a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source upon detection of a first logic transition of the clock signal indicating a beginning of a period thereof, the CTMU stops charging the capacitor upon detection of a second logic transition of the clock signal indicating an end of the period thereof, the ADC samples and converts a voltage on the capacitor to a digital voltage value, the digital processor reads the digital voltage value from the ADC
- the period time value represents a time value of a plurality of clock signal periods.
- the CTMU may comprise a constant current source; a current steering switch coupled to the constant current source; the capacitor is coupled to the current steering switch, wherein the voltage on the capacitor increases substantially linearly in time when the current steering switch couples the constant current source to the capacitor; and a circuit for controlling the current steering switch, wherein the current steering switch couples the capacitor to the constant current source upon detection of the first logic transition of the clock signal and decouples the capacitor from the constant current source upon detection of a second logic transition of the clock signal.
- the circuit for controlling the current steering switch may comprise a first flip-flop having a positive edge triggered clock input coupled to the clock signal, and a reset input coupled to the digital processor; an inverter having an input coupled to the clock signal; a second flip-flop having a positive edge triggered clock input coupled to an output of the inverter, and a reset input coupled to the digital processor; and an AND gate having a first input coupled to a Q-output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch; wherein the digital processor resets the first and second flip-flops.
- the circuit for controlling the current steering switch may comprise a divide by N frequency divider having an input coupled to the clock signal; a first flip-flop having a positive edge triggered clock input coupled to an output of the divide by N frequency divider, and a reset input coupled to the digital processor; an inverter having an input coupled to the output of the divide by N frequency divider; a second flip-flop having a positive edge triggered clock input coupled to an output of the inverter, and a reset input coupled to the digital processor; and an AND gate having a first input coupled to a Q- output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch; wherein the digital processor resets the first and second flip-flops, and the divide by N frequency divider.
- the ADC is a successive approximation ADC.
- the ADC is a sigma-delta ADC.
- a voltage sampling circuit samples the voltage on the capacitor and couples the sampled voltage to the sigma-delta ADC.
- the digital processor calculates the clock signal period time value from the known value of capacitance and the digital representation of the voltage.
- the digital processor is a microcontroller.
- the digital processor is a microcontroller.
- the digital processor is selected from the group consisting of a microprocessor, a digital signal processor (DSP), a programmable logic array (PLA) and an application specific integrated circuit (ASlC).Aceording to a further embodiment, the CTMU, the frequency tunable clock oscillator, the ADC and the digital processor are fabricated on an integrated circuit die. According to a further embodiment, the integrated circuit die is enclosed in an integrated circuit package.
- the frequency tunable clock oscillator comprises an up/down counter and a plurality of binary weighted frequency determining elements.
- the frequency determining elements are selected from any one or more of the group consisting of capacitors, resistors, inductors, and constant current sources.
- the frequency of the tunable clock oscillator is maintained within at least 0.25 percent of a desired frequency.
- a temperature sensor is coupled to the digital processor, and a temperature compensation look-up table is stored in the memory and used to compensate the CTMU over a temperature range of operation.
- a voltage sensor is coupled to the digital processor and a voltage compensation look-up table is stored in the memory and used to compensate the CTMU over a voltage range of operation.
- a method for maintaining a clock oscillator in an integrated circuit device at a precision frequency may comprise the steps of providing a charge time measurement unit (CTMU) having a capacitor of known value and a constant current source of known value; providing a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU; providing an analog-to-digital converter (ADC) coupled to the CTMU; and providing a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein upon detecting a first logic transition of the clock signal indicating a beginning of a period thereof the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source, upon detecting a second logic- transition of the clock signal indicating an end of the period thereof the CTMU stops charging the capacitor, sampling and converting a voltage on the capacitor to a digital voltage value with the ADC, reading the digital voltage value from the ADC with the digital processor, converting the digital voltage value
- Figure 1 illustrates a time-voltage graph of a capacitor being charged from a constant current source
- Figure 2 illustrates a schematic diagram of a high resolution time period measurement circuit, according to the teachings of this disclosure
- Figure 3 illustrates a schematic timing diagram of the high resolution time period measurement circuit of Figure 2;
- Figure 4 illustrates a schematic block diagram of an integrated circuit device with an internal clock oscillator having on-board tuning of the oscillator using a CTMU for precision frequency determination and tuning thereof, according to a specific example embodiment of this disclosure
- Figure 5 illustrates a more detailed schematic block diagram of the internal clock oscillator and tuning circuits thereof shown in Figure 5;
- Figure 6 illustrates a schematic diagram of the frequency determining circuit shown in Figure 5, according to a specific example embodiment thereof.
- a Charge Time Measurement Unit is used in determining the free running frequency of the internal self contained clock oscillator and provides very accurate frequency (period) information for confirmation that a desired precision clock frequency, e.g., within 0.25 percent of the desired frequency, is running or an indication of how much and which direction to adjustment the frequency of the clock oscillator to maintain the frequency precision desired.
- Automatic frequency adjustment of the internal self contained clock oscillator may be implemented so as to maintain the desired precision frequency thereof.
- Temperature and voltage compensation profiles for maintaining the accuracy of the CTMU may be stored in a table, e.g., nonvolatile memory, for a further improvement in absolute frequency accuracy of the internal self contained clock oscillator.
- the CTMU is more fully described in Microchip applications notes AN 1250, AN 1375, etc., available at www.microchip.com, and U.S. Patent Nos. 7,460,441 B2 and 7,764,213 B2; wherein all are hereby incorporated by reference herein for all purposes.
- the CTMU period/frequency measurement accuracy is achieved by charging a known value capacitor with a known value constant current source over a period or periods of the clock frequency, then sampling a voltage developed on the capacitor. This sampled voltage is then converted into a digital value with an analog-to-digital converter (ADC) and a look-up table may be used, or other means, to convert the digital value of the sampled voltage into a period (frequency) value for comparison against a period reference value.
- ADC analog-to-digital converter
- the oscillator frequency must be adjusted up in frequency, and if the period value is less than the period reference value then the oscillator frequency must be adjusted down in frequency. If the period value is within an acceptable range, e.g., 0.25 percent, of the desired frequency then no adjustment of the oscillator frequency is required.
- the oscillator frequency may be adjusted through analog and/or digital means by switching in or out capacitors and/or resistors comprising the frequency determining circuit, voltage to a voltage variable oscillator can be adjusted to change the oscillator frequency up or down, current to a current variable oscillator can be adjusted to change the oscillator frequency up or down, etc.
- a digital processor e.g., microcontroller, may be used to control the CTMU, sample voltage charge on the CTMU capacitor, determine the oscillator frequency (period) and cause correction to the oscillator frequency when necessary to maintain the desired oscillator frequency precision. This may all occur in an automatic closed loop fashion that is transparent to a user of the integrated circuit device.
- FIG. 1 depicted is a time- voltage graph of a capacitor being charged from a constant current source.
- V the voltage, across the capacitor 1 18 increases linearly with time, according to equation ( 1 ):
- C C * dV/dT Eq. (1)
- I the current from the constant current source 104
- V the voltage on the capacitor 1 18 at time T.
- the other unknown value may be calculated from the two known values. For example, if the capacitance of the capacitor 1 18 and the charging current from the constant current source 104 are known, then the time T t at voltage Vj and the time T 2 at voltage V 2 may be determined. In a similar fashion, if voltages V i and V 2 (e.g., the voltage difference between Vj and V 2 ) and the elapsed time between times Ti and T 2 are known then capacitance, C, may be determined.
- the high resolution time measurement circuit may comprise a constant current source 104, current steering switches 1 12 and 1 14, a capacitor 1 18, a voltage sample switch 1 16, and a charge drain switch 120.
- the capacitor 1 18 may be initialized to substantially zero charge by closing the charge drain switch 120 so that any charge (voltage) on the capacitor 1 18 is removed (shorted to ground or common, Vss).
- An initial charge (voltage) on the capacitor 1 18 may also be determined by sampling that voltage with an analog-to-digital converter (ADC) 108, e.g., sigma-delta, by closing the voltage sample switch 1 16.
- ADC analog-to-digital converter
- the capacitor 1 18 may be part of a switched capacitor successive approximation analog-to-digital converter wherein the voltage sample switch 1 16 is unnecessary.
- the current steering switches 1 12 and 1 14 may be field effect transistors and the like, integrated onto an integrated circuit substrate (not shown) that may also contain other digital logic and analog circuits discussed more fully herein.
- the current steering switches 1 12 and 1 14 are configured so that the constant current source 104 always sees a load, i.e., when switch 1 14 is closed and switch 1 12 is open the constant current source 104 is coupled to common, Vss, and when switch 1 12 is closed and switch 1 14 is open the constant current source 104 is coupled to the capacitor 1 18 from.
- the current steering switches 1 12 and 1 14 may be controlled from a start/stop control signal 133.
- the switch 1 14 when the start/stop control signal 133 is at a logic "0" (low) the switch 1 14 is closed and the switch 1 12 is open, or when the start/stop control signal 133 is at a logic "1 " (high) the switch 1 14 is open and the switch 1 12 is closed.
- the constant current source 104 charges the capacitor 1 18 to a voltage value directly dependent upon the length of time that the current steering switch 1 12 is closed as determined by equation 1 hereinabove.
- the start/stop control signal 133 goes to a logic 1 upon the occurrence of a positive (e.g., logic 0 to logic 1 ) transition (e.g., ⁇ Clock Edge 1) at the beginning (start) of an event for which a time period is to be determined.
- the capacitor 1 18 will be charged by the constant current source 104 until the current steering switch 1 12 is opened by the start/stop control signal 133 going back to a logic 0 upon the occurrence of a negative (e.g., logic 1 to logic 0) transition (e.g., I Clock Edge 2) at the end of the event for which the time period is to be determined.
- the start/stop control signal 133 may be generated with a logic circuit comprising a first flip-flop 126, a second flip-flop 128, an AND gate 124 and an inverter 136.
- the first and second flip-flops 126 and 128 Prior to the event occurring, the first and second flip-flops 126 and 128 have been reset (as well as the divide by N counter 138 if used) by a CTMU reset signal 130 from the digital processor 106 so that the Q-outputs of the first and second flip-flops 126 and 128 are at a logic 0.
- These Q- outputs, being at logic 0, cause the AND gate 124 output to be at a logic 0.
- the output of the AND gate 124 generates the start/stop control signal 133.
- the Q-output thereof goes to a logic 1 . Since the Q- not output of the second flip-flop 128 is also at a logic 1 , the output of the AND gate 124 will go to a logic 1 , thus generating a logic 1 for the start/stop control signal 133.
- the first and second flip-flops 126 and 128 are positive edge triggered (when the signal to the clock input of the flip-flop goes from a logic 0 (low) to a logic 1 (high)).
- the current steering switch 1 12 closes (turns on) and the constant current source 104 begins charging the capacitor 1 18.
- the constant current source 104 continues charging the capacitor 1 18 until the start/stop control signal 133 goes back to a logic 0, thereby opening (turning off) the current steering switch 1 12,
- the output of the AND gate 124 i.e., start/stop control signal 133 will go to a logic 0 when one or more of its inputs is at a logic 0.
- a logic 0 at an input of the AND gate 124 occurs when j.
- Clock Edge 2 occurs at the clock input of the second flip-flop 128.
- the capacitor 1 18 only charges between the occurrences of ⁇ Clock Edge 1 and J.
- a voltage representative of the time interval (period) between the ⁇ Clock Edge 1 and the J, Clock Edge 2 may be used in combination with the known capacitance value of the capacitor 1 18 to calculate the time interval (period of the clock signal) with very precise resolution.
- calculation of the event time period may be determined with the digital processor 106 performing the calculations of Eq. (1) hereinabove by using the measured voltage on the capacitor 1 18 and the known capacitance value thereof.
- the time period measurement precision is a function of the ADC 108 resolution, e.g., 10 or 12 bits, and the accuracy of- the measured capacitance of the capacitor 1 18.
- a further improvement in the resolution of the time period of the clock signal may be accomplished with a divide by N counter 138 that allows finer granularity of the ADC resolution in determining the time interval (period of the clock signal).
- the ADC output and period time may also be fine tuned during production of the integrated circuit device or in the field by using an external highly accurate frequency measurement device, e.g., frequency counter, to correlate the respective charge voltage measured on the capacitor 1 18 and the correlated results stored in a nonvolatile portion of the memory 140.
- the charge drain switch 120 and the voltage sample switch 1 16 are merely for standard sample and hold operations wherein the capacitor 1 18 may be part of the sample and hold circuit feeding a sampled analog voltage to the analog input of the ADC 108, or may be part of a successive approximation ADC.
- the high resolution time period measurement circuit 200 may be fabricated on an integrated circuit die 202, and the integrated circuit die 202 may be enclosed in an integrated circuit package (not shown).
- the aforementioned high resolution time period measurement circuit 200 may be implemented with a Charge Time Measurement Unit (CTMIJ) peripheral as more fully described in Microchip applications notes AN 1250, AN 1375, etc., available at www.microchip.com, and U.S. Patent Nos. 7,460,441 B2 and 7,764,213 B2; wherein all are hereby incorporated by reference herein for all purposes.
- CMIJ Charge Time Measurement Unit
- the memory 140 may be volatile and/or non- volatile memory.
- a software and/or firmware operating program, and temperature and/or voltage compensation table(s) may be stored in the memory 140 coupled to the digital processor 106.
- the temperature and/or voltage compensation table(s) may be defined during testing of the integrated circuit device by measuring the frequency, as referenced above, and correlating any changes to that frequency as a function of temperature and/or voltage.
- FIG. 3 depicted is a schematic timing diagram of the high resolution time period measurement circuit of Figure 2.
- a time period of the clock signal is taken between the Clock Edge 1 and the Clock Edge 2.
- a time period is taken that is four times the clock signal period. This is obtained by using the divide by N counter 138 and results in a finer granularity of time resolution. Since any frequency drift in the clock oscillator will be generally over a long time period compared to the period of the clock signal, a sample of the clock oscillator period need only occur at infrequent intervals when the clock frequency is within the desired frequency tolerance. Only when the clock frequency has to be changed to bring it back into the desired frequency tolerance will a more frequent sampling of the clock frequency period be required, e.g., after every frequency change a new time period measurement is made until the clock frequency is within the desired frequency tolerance.
- the integrated circuit device 202 comprises a clock oscillator 240, an oscillator tuning circuit 242, a CTMU 200, an ADC 108, and a digital processor 106.
- the digital processor 106 may be, for example but is not limited to, a microcontroller, a microprocessor, a digital signal processor (DSP), a programmable logic array (PLA), an application specific integrated circuit (ASIC), etc.
- An output of the clock oscillator 240 is coupled to a clock input of the CTMU 200.
- the CTMU 200 and the ADC 108 are used to precisely determine a period(s) of the clock oscillator 240, as shown in Figures 2 and 3 and described hereinabove.
- the digital processor 106 will send an increment signal 132 to the oscillator tuning circuit 242 which then increases the frequency of the clock oscillator 240.
- the digital processor 106 will send an decrement signal 134 to the oscillator tuning circuit 242 which then decreases the frequency of the clock oscillator 240.
- the clock period is substantially the same as the desired clock period (frequency)
- the digital processor 106 will do nothing to cause the oscillator tuning circuit 242 to change the frequency of the clock oscillator 240.
- a temperature sensor 142 and/or a voltage sensor 144 may be coupled to the digital processor 106 through an analog or digital interface depending upon the sensor's output.
- the temperature sensor 142 may be used in determining temperature compensation of the CTMU from a temperature compensation table stored in the memory 140.
- the voltage sensor 144 may be used in determining voltage compensation of the CTMU from a voltage compensation table stored in the memory 140.
- the oscillator tuning circuit 242 may comprise an up/down counter 210 and a frequency determining circuit 220.
- the up/down counter 210 may be preloaded from the digital processor 106 with a specific count. This specific count may be determined at the time of manufacture of the integrated circuit device or in the field by a user during a calibration thereof.
- the frequency determining circuit 220 may be comprised of components such as capacitors ( Figure 6), resistors (not shown), inductors (not shown) constant current sources (not shown), etc., or any combination thereof.
- the tuning component values of the frequency determining circuit 220 may be increased and decreased according to the binary (or BCD) outputs Q 3 -Q 0 of the up/down counter 210. Accordingly, the frequency of the clock oscillator 240 will change.
- the frequency change resolution may be determined by the number of bits of the up/down counter 210.
- FIG. 6 depicted is a schematic diagram of the frequency determining circuit shown in Figure 5, according to a specific example embodiment thereof.
- the frequency determining circuit 220 ( Figure 5) may be comprised of a plurality of binary weighted capacitors 250 that are coupled to the clock oscillator 240 and determine the frequency thereof. Resistors and/or current sources may also be utilized in a similar fashion, implementation of which would be known by one having ordinary skill in digital circuit design and having the benefit of this disclosure.
Landscapes
- Semiconductor Integrated Circuits (AREA)
- Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
- Oscillators With Electromechanical Resonators (AREA)
- Electric Clocks (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
Precision measurement of a period(s) of an embedded clock oscillator using a charge time measurement unit (CTMU) maintains a desired frequency accuracy of the embedded clock oscillator over a range of time, temperature and operating condition changes. The CTMU determines the free running frequency of the embedded clock oscillator and provides very accurate frequency (period) information for confirmation that a desired frequency, e.g., within 0.25 percent of the desired frequency, is running or an indication of how much and which direction to adjustment the frequency of the clock oscillator to maintain the frequency precision desired. Automatic frequency adjustment of the embedded clock oscillator may be implemented so as to maintain the desired precision frequency thereof. Temperature and voltage compensation profiles for maintaining the accuracy of the CTMU may be stored in a table, e.g., nonvolatile memory, for a further improvement in absolute frequency accuracy of the embedded clock oscillator.
Description
PRECISION ON BOARD TUNING OF EMBEDDED MICROCONTROLLER OSCILLATOR USING CHARGE TIME MEASUREMENT UNIT
TECHNICAL FIELD
The present disclosure relates to integrated circuit devices requiring a precision clock oscillator, and more particularly, to integrated circuit devices having a precision clock oscillator integrated with the integrated circuit device.
BACKGROUND
As integrated circuit devices incorporate more sophisticated and complex peripherals, there is a need for precise run-time control of an internal clock oscillator. For example, a USB 2.0 integrated peripheral must meet 0.25 percent clock frequency accuracy. A typical application would have to use an external crystal to control the clock frequency to that accuracy. However, an external crystal frequency determining device requires two integrated circuit pins for connection to the internal oscillator circuit in the integrated circuit device. This poses a problem for low pin count integrated circuit devices as two of the very few package pins must be dedicated for the external crystal.
An integrated circuit device oscillator using internal frequency determining elements would eliminate the external pins requirement for connection to a crystal. Such an oscillator having internal frequency determining elements, e.g., self contained oscillator, may be, for example but is not limited to, a resistor-capacitor (RC) oscillator. But a problem exists in that an internal self contained RC oscillator can drift in frequency even if it is precisely calibrated at the time of manufacture of the integrated circuit device. This drift may be attributed to package stress, fabrication soldering stress, temperature and/or voltage changes, etc.
SUMMARY
Therefore, a need exists for a precision run-time self-tuning mechanism that will maintain a desired frequency accuracy of an internal self contained clock oscillator over a range of time, temperature and operating condition changes.
According to an embodiment, an integrated circuit device with a frequency tunable internal clock oscillator having a precision frequency that is automatically maintained by using a charge time measurement unit (CTMU) may comprise a charge time measurement
unit (CTMU) having a capacitor of known value and a constant current source of known value; a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU; an analog-to-digital converter (ADC) coupled to the CTMU; and a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source upon detection of a first logic transition of the clock signal indicating a beginning of a period thereof, the CTMU stops charging the capacitor upon detection of a second logic transition of the clock signal indicating an end of the period thereof, the ADC samples and converts a voltage on the capacitor to a digital voltage value, the digital processor reads the digital voltage value from the ADC and converts this digital voltage value into a period time value, the digital processor compares the period time value to a reference period time value, wherein: if the period time value is greater than the reference period time value then the digital processor causes the frequency tunable clock oscillator to increase the frequency thereof, if the period time value is less than the reference period time value then the digital processor causes the frequency tunable clock oscillator to decrease the frequency thereof, and if the period time value is substantially the same as the reference period time value then the frequency of the frequency tunable clock oscillator is not changed.
According to a further embodiment, the period time value represents a time value of a plurality of clock signal periods. According to a further embodiment, the CTMU may comprise a constant current source; a current steering switch coupled to the constant current source; the capacitor is coupled to the current steering switch, wherein the voltage on the capacitor increases substantially linearly in time when the current steering switch couples the constant current source to the capacitor; and a circuit for controlling the current steering switch, wherein the current steering switch couples the capacitor to the constant current source upon detection of the first logic transition of the clock signal and decouples the capacitor from the constant current source upon detection of a second logic transition of the clock signal.
According to a further embodiment, the circuit for controlling the current steering switch may comprise a first flip-flop having a positive edge triggered clock input coupled to the clock signal, and a reset input coupled to the digital processor; an inverter having an input coupled to the clock signal; a second flip-flop having a positive edge triggered clock input
coupled to an output of the inverter, and a reset input coupled to the digital processor; and an AND gate having a first input coupled to a Q-output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch; wherein the digital processor resets the first and second flip-flops.
According to a further embodiment, the circuit for controlling the current steering switch may comprise a divide by N frequency divider having an input coupled to the clock signal; a first flip-flop having a positive edge triggered clock input coupled to an output of the divide by N frequency divider, and a reset input coupled to the digital processor; an inverter having an input coupled to the output of the divide by N frequency divider; a second flip-flop having a positive edge triggered clock input coupled to an output of the inverter, and a reset input coupled to the digital processor; and an AND gate having a first input coupled to a Q- output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch; wherein the digital processor resets the first and second flip-flops, and the divide by N frequency divider.
According to a further embodiment, the ADC is a successive approximation ADC.
According to a further embodiment, the ADC is a sigma-delta ADC. According to a further embodiment, a voltage sampling circuit samples the voltage on the capacitor and couples the sampled voltage to the sigma-delta ADC.
According to a further embodiment, the digital processor calculates the clock signal period time value from the known value of capacitance and the digital representation of the voltage. According to a further embodiment, the digital processor is a microcontroller. According to a further embodiment, the digital processor is a microcontroller. According to a further embodiment, the digital processor is selected from the group consisting of a microprocessor, a digital signal processor (DSP), a programmable logic array (PLA) and an application specific integrated circuit (ASlC).Aceording to a further embodiment, the CTMU, the frequency tunable clock oscillator, the ADC and the digital processor are fabricated on an integrated circuit die. According to a further embodiment, the integrated circuit die is enclosed in an integrated circuit package.
According to a further embodiment, the frequency tunable clock oscillator comprises an up/down counter and a plurality of binary weighted frequency determining elements. According to a further embodiment, the frequency determining elements are selected from
any one or more of the group consisting of capacitors, resistors, inductors, and constant current sources. According to a further embodiment, the frequency of the tunable clock oscillator is maintained within at least 0.25 percent of a desired frequency. According to a further embodiment, a temperature sensor is coupled to the digital processor, and a temperature compensation look-up table is stored in the memory and used to compensate the CTMU over a temperature range of operation. According to a further embodiment, a voltage sensor is coupled to the digital processor and a voltage compensation look-up table is stored in the memory and used to compensate the CTMU over a voltage range of operation.
According to another embodiment, a method for maintaining a clock oscillator in an integrated circuit device at a precision frequency may comprise the steps of providing a charge time measurement unit (CTMU) having a capacitor of known value and a constant current source of known value; providing a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU; providing an analog-to-digital converter (ADC) coupled to the CTMU; and providing a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein upon detecting a first logic transition of the clock signal indicating a beginning of a period thereof the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source, upon detecting a second logic- transition of the clock signal indicating an end of the period thereof the CTMU stops charging the capacitor, sampling and converting a voltage on the capacitor to a digital voltage value with the ADC, reading the digital voltage value from the ADC with the digital processor, converting the digital voltage value into a period time value with the digital processor, comparing the period time value to a reference period time value with the digital processor, wherein: if the period time value is greater than the reference period time value then increasing the frequency of the tunable clock oscillator, if the period time value is less than the reference period time value then decreasing the frequency of the tunable clock oscillator, and if the period time value is substantially the same as the reference period time value then not changing the frequency of the frequency tunable clock oscillator. According to a further embodiment of the method, the period time value represents a time value of a plurality of clock signal periods.
BRIEF DESCRIPTION OF THE DRAWINGS
A more complete understanding of the present disclosure may be acquired by referring to the following description taken in conjunction with the accompanying drawings wherein:
Figure 1 illustrates a time-voltage graph of a capacitor being charged from a constant current source;
Figure 2 illustrates a schematic diagram of a high resolution time period measurement circuit, according to the teachings of this disclosure;
Figure 3 illustrates a schematic timing diagram of the high resolution time period measurement circuit of Figure 2;
Figure 4 illustrates a schematic block diagram of an integrated circuit device with an internal clock oscillator having on-board tuning of the oscillator using a CTMU for precision frequency determination and tuning thereof, according to a specific example embodiment of this disclosure;
Figure 5 illustrates a more detailed schematic block diagram of the internal clock oscillator and tuning circuits thereof shown in Figure 5; and
Figure 6 illustrates a schematic diagram of the frequency determining circuit shown in Figure 5, according to a specific example embodiment thereof.
While the present disclosure is susceptible to various modifications and alternative forms, specific example embodiments thereof have been shown in the drawings and are herein described in detail. It should be understood, however, that the description herein of specific example embodiments is not intended to limit the disclosure to the particular forms disclosed herein, but on the contrary, this disclosure is to cover all modifications and equivalents as defined by the appended claims.
DETAILED DESCRIPTION
According to the teachings of this disclosure, a Charge Time Measurement Unit (CTMU) is used in determining the free running frequency of the internal self contained clock oscillator and provides very accurate frequency (period) information for confirmation that a desired precision clock frequency, e.g., within 0.25 percent of the desired frequency, is
running or an indication of how much and which direction to adjustment the frequency of the clock oscillator to maintain the frequency precision desired. Automatic frequency adjustment of the internal self contained clock oscillator may be implemented so as to maintain the desired precision frequency thereof. Temperature and voltage compensation profiles for maintaining the accuracy of the CTMU may be stored in a table, e.g., nonvolatile memory, for a further improvement in absolute frequency accuracy of the internal self contained clock oscillator.
The CTMU is more fully described in Microchip applications notes AN 1250, AN 1375, etc., available at www.microchip.com, and U.S. Patent Nos. 7,460,441 B2 and 7,764,213 B2; wherein all are hereby incorporated by reference herein for all purposes. The CTMU period/frequency measurement accuracy is achieved by charging a known value capacitor with a known value constant current source over a period or periods of the clock frequency, then sampling a voltage developed on the capacitor. This sampled voltage is then converted into a digital value with an analog-to-digital converter (ADC) and a look-up table may be used, or other means, to convert the digital value of the sampled voltage into a period (frequency) value for comparison against a period reference value. If the period value is greater than the period reference value then the oscillator frequency must be adjusted up in frequency, and if the period value is less than the period reference value then the oscillator frequency must be adjusted down in frequency. If the period value is within an acceptable range, e.g., 0.25 percent, of the desired frequency then no adjustment of the oscillator frequency is required.
The oscillator frequency may be adjusted through analog and/or digital means by switching in or out capacitors and/or resistors comprising the frequency determining circuit, voltage to a voltage variable oscillator can be adjusted to change the oscillator frequency up or down, current to a current variable oscillator can be adjusted to change the oscillator frequency up or down, etc. A digital processor, e.g., microcontroller, may be used to control the CTMU, sample voltage charge on the CTMU capacitor, determine the oscillator frequency (period) and cause correction to the oscillator frequency when necessary to maintain the desired oscillator frequency precision. This may all occur in an automatic closed loop fashion that is transparent to a user of the integrated circuit device.
Referring now to the drawing, the details of specific example embodiments are schematically illustrated. Like elements in the drawings will be- represented by like numbers, and similar elements will be represented by like numbers with a different lower case letter suffix.
Referring to Figure 1 , depicted is a time- voltage graph of a capacitor being charged from a constant current source. When a capacitor 1 18 is charged through a constant current source 104, the voltage, V, across the capacitor 1 18 increases linearly with time, according to equation ( 1 ):
I = C * dV/dT Eq. (1) where C is the capacitance value of the capacitor 1 18, I is the current from the constant current source 104 and V is the voltage on the capacitor 1 18 at time T. When any two values of the current, I; time, T; and voltage, V are known, the other unknown value may be calculated from the two known values. For example, if the capacitance of the capacitor 1 18 and the charging current from the constant current source 104 are known, then the time Tt at voltage Vj and the time T2 at voltage V2 may be determined. In a similar fashion, if voltages V i and V2 (e.g., the voltage difference between Vj and V2) and the elapsed time between times Ti and T2 are known then capacitance, C, may be determined.
Referring now to Figure 2, depicted is a schematic diagram of a high resolution time period measurement circuit, according to the teachings of this disclosure. The high resolution time measurement circuit, generally represented by the numeral 200, may comprise a constant current source 104, current steering switches 1 12 and 1 14, a capacitor 1 18, a voltage sample switch 1 16, and a charge drain switch 120. The capacitor 1 18 may be initialized to substantially zero charge by closing the charge drain switch 120 so that any charge (voltage) on the capacitor 1 18 is removed (shorted to ground or common, Vss). An initial charge (voltage) on the capacitor 1 18 may also be determined by sampling that voltage with an analog-to-digital converter (ADC) 108, e.g., sigma-delta, by closing the voltage sample switch 1 16. The capacitor 1 18 may be part of a switched capacitor successive approximation analog-to-digital converter wherein the voltage sample switch 1 16 is unnecessary.
The current steering switches 1 12 and 1 14 may be field effect transistors and the like, integrated onto an integrated circuit substrate (not shown) that may also contain other digital logic and analog circuits discussed more fully herein. The current steering switches 1 12 and
1 14 are configured so that the constant current source 104 always sees a load, i.e., when switch 1 14 is closed and switch 1 12 is open the constant current source 104 is coupled to common, Vss, and when switch 1 12 is closed and switch 1 14 is open the constant current source 104 is coupled to the capacitor 1 18 from. The current steering switches 1 12 and 1 14 may be controlled from a start/stop control signal 133. For example, when the start/stop control signal 133 is at a logic "0" (low) the switch 1 14 is closed and the switch 1 12 is open, or when the start/stop control signal 133 is at a logic "1 " (high) the switch 1 14 is open and the switch 1 12 is closed. The constant current source 104 charges the capacitor 1 18 to a voltage value directly dependent upon the length of time that the current steering switch 1 12 is closed as determined by equation 1 hereinabove.
The start/stop control signal 133 goes to a logic 1 upon the occurrence of a positive (e.g., logic 0 to logic 1 ) transition (e.g.,† Clock Edge 1) at the beginning (start) of an event for which a time period is to be determined. The capacitor 1 18 will be charged by the constant current source 104 until the current steering switch 1 12 is opened by the start/stop control signal 133 going back to a logic 0 upon the occurrence of a negative (e.g., logic 1 to logic 0) transition (e.g., I Clock Edge 2) at the end of the event for which the time period is to be determined.
The start/stop control signal 133 may be generated with a logic circuit comprising a first flip-flop 126, a second flip-flop 128, an AND gate 124 and an inverter 136. Prior to the event occurring, the first and second flip-flops 126 and 128 have been reset (as well as the divide by N counter 138 if used) by a CTMU reset signal 130 from the digital processor 106 so that the Q-outputs of the first and second flip-flops 126 and 128 are at a logic 0. These Q- outputs, being at logic 0, cause the AND gate 124 output to be at a logic 0. The output of the AND gate 124 generates the start/stop control signal 133. When the† Event Edge 1 occurs at the clock input of the first flip-flop 126, the Q-output thereof goes to a logic 1 . Since the Q- not output of the second flip-flop 128 is also at a logic 1 , the output of the AND gate 124 will go to a logic 1 , thus generating a logic 1 for the start/stop control signal 133. The first and second flip-flops 126 and 128 are positive edge triggered (when the signal to the clock input of the flip-flop goes from a logic 0 (low) to a logic 1 (high)).
When the start/stop control signal 133 is at a logic 1 , the current steering switch 1 12 closes (turns on) and the constant current source 104 begins charging the capacitor 1 18. The
constant current source 104 continues charging the capacitor 1 18 until the start/stop control signal 133 goes back to a logic 0, thereby opening (turning off) the current steering switch 1 12, In this specific example, the output of the AND gate 124 (i.e., start/stop control signal 133) will go to a logic 0 when one or more of its inputs is at a logic 0. A logic 0 at an input of the AND gate 124 occurs when j. Clock Edge 2 occurs at the clock input of the second flip-flop 128. Thus the capacitor 1 18 only charges between the occurrences of † Clock Edge 1 and J. Clock Edge 2. This sequence of toggling the flip-flops 126 and 128 can only occur once and the CTMU reset signal 130 has to be sent from the digital processor 106 before another time period sample of the clock frequency is taken again. Therefore, the digital processor 106 can sample the clock frequency at programmed intervals, wherein the intervals may be determined by the clock frequency drift characteristics of the integrated circuit device (integrated circuit die 202) and any frequency adjustments necessary thereto.
By measuring the voltage on the capacitor 1 18 with an analog-to-digital converter (ADC) 108 after the J. Clock Edge 2, a voltage representative of the time interval (period) between the† Clock Edge 1 and the J, Clock Edge 2 may be used in combination with the known capacitance value of the capacitor 1 18 to calculate the time interval (period of the clock signal) with very precise resolution. For example, calculation of the event time period may be determined with the digital processor 106 performing the calculations of Eq. (1) hereinabove by using the measured voltage on the capacitor 1 18 and the known capacitance value thereof. Thus the time period measurement precision is a function of the ADC 108 resolution, e.g., 10 or 12 bits, and the accuracy of- the measured capacitance of the capacitor 1 18. A further improvement in the resolution of the time period of the clock signal may be accomplished with a divide by N counter 138 that allows finer granularity of the ADC resolution in determining the time interval (period of the clock signal). The ADC output and period time may also be fine tuned during production of the integrated circuit device or in the field by using an external highly accurate frequency measurement device, e.g., frequency counter, to correlate the respective charge voltage measured on the capacitor 1 18 and the correlated results stored in a nonvolatile portion of the memory 140.
The charge drain switch 120 and the voltage sample switch 1 16 are merely for standard sample and hold operations wherein the capacitor 1 18 may be part of the sample and hold circuit feeding a sampled analog voltage to the analog input of the ADC 108, or may be part of a successive approximation ADC. The high resolution time period measurement
circuit 200 may be fabricated on an integrated circuit die 202, and the integrated circuit die 202 may be enclosed in an integrated circuit package (not shown). The aforementioned high resolution time period measurement circuit 200 may be implemented with a Charge Time Measurement Unit (CTMIJ) peripheral as more fully described in Microchip applications notes AN 1250, AN 1375, etc., available at www.microchip.com, and U.S. Patent Nos. 7,460,441 B2 and 7,764,213 B2; wherein all are hereby incorporated by reference herein for all purposes.
The memory 140 may be volatile and/or non- volatile memory. A software and/or firmware operating program, and temperature and/or voltage compensation table(s) may be stored in the memory 140 coupled to the digital processor 106. The temperature and/or voltage compensation table(s) may be defined during testing of the integrated circuit device by measuring the frequency, as referenced above, and correlating any changes to that frequency as a function of temperature and/or voltage.
Referring to Figure 3, depicted is a schematic timing diagram of the high resolution time period measurement circuit of Figure 2. In the top timing diagram a time period of the clock signal is taken between the Clock Edge 1 and the Clock Edge 2. In the bottom timing diagram a time period is taken that is four times the clock signal period. This is obtained by using the divide by N counter 138 and results in a finer granularity of time resolution. Since any frequency drift in the clock oscillator will be generally over a long time period compared to the period of the clock signal, a sample of the clock oscillator period need only occur at infrequent intervals when the clock frequency is within the desired frequency tolerance. Only when the clock frequency has to be changed to bring it back into the desired frequency tolerance will a more frequent sampling of the clock frequency period be required, e.g., after every frequency change a new time period measurement is made until the clock frequency is within the desired frequency tolerance.
Referring to Figure 4, depicted is a schematic block diagram of an integrated circuit device with an internal clock oscillator having on-board tuning of the oscillator using a CTMU for precision frequency determination and tuning thereof, according to a specific example embodiment of this disclosure. The integrated circuit device 202 comprises a clock oscillator 240, an oscillator tuning circuit 242, a CTMU 200, an ADC 108, and a digital processor 106. The digital processor 106 may be, for example but is not limited to, a
microcontroller, a microprocessor, a digital signal processor (DSP), a programmable logic array (PLA), an application specific integrated circuit (ASIC), etc.
An output of the clock oscillator 240 is coupled to a clock input of the CTMU 200. The CTMU 200 and the ADC 108 are used to precisely determine a period(s) of the clock oscillator 240, as shown in Figures 2 and 3 and described hereinabove. When the clock period (frequency) is greater (less) than a desired clock period (frequency), the digital processor 106 will send an increment signal 132 to the oscillator tuning circuit 242 which then increases the frequency of the clock oscillator 240. When the clock period (frequency) is less (greater) than the desired clock period (frequency), the digital processor 106 will send an decrement signal 134 to the oscillator tuning circuit 242 which then decreases the frequency of the clock oscillator 240. When the clock period is substantially the same as the desired clock period (frequency), the digital processor 106 will do nothing to cause the oscillator tuning circuit 242 to change the frequency of the clock oscillator 240.
A temperature sensor 142 and/or a voltage sensor 144 may be coupled to the digital processor 106 through an analog or digital interface depending upon the sensor's output. The temperature sensor 142 may be used in determining temperature compensation of the CTMU from a temperature compensation table stored in the memory 140. The voltage sensor 144 may be used in determining voltage compensation of the CTMU from a voltage compensation table stored in the memory 140.
Referring to Figure 5, depicted is a more detailed schematic block diagram of the internal clock oscillator and tuning circuits thereof shown in Figure 4. The oscillator tuning circuit 242 may comprise an up/down counter 210 and a frequency determining circuit 220. The up/down counter 210 may be preloaded from the digital processor 106 with a specific count. This specific count may be determined at the time of manufacture of the integrated circuit device or in the field by a user during a calibration thereof. When the clock frequency is greater than the desired clock frequency the decrement signal 134 to the up/down counter 210 is asserted so that the frequency determining circuit increases the clock oscillator frequency, and when the clock frequency is less than the desired clock frequency the increment signal 132 to the up/down counter 210 is asserted so that the frequency determining circuit raises the clock oscillator frequency.
The frequency determining circuit 220 may be comprised of components such as capacitors (Figure 6), resistors (not shown), inductors (not shown) constant current sources (not shown), etc., or any combination thereof. The tuning component values of the frequency determining circuit 220 may be increased and decreased according to the binary (or BCD) outputs Q3-Q0 of the up/down counter 210. Accordingly, the frequency of the clock oscillator 240 will change. The frequency change resolution may be determined by the number of bits of the up/down counter 210.
Referring to Figure 6, depicted is a schematic diagram of the frequency determining circuit shown in Figure 5, according to a specific example embodiment thereof. The frequency determining circuit 220 (Figure 5) may be comprised of a plurality of binary weighted capacitors 250 that are coupled to the clock oscillator 240 and determine the frequency thereof. Resistors and/or current sources may also be utilized in a similar fashion, implementation of which would be known by one having ordinary skill in digital circuit design and having the benefit of this disclosure.
While embodiments of this disclosure have been depicted, described, and are defined by reference to example embodiments of the disclosure, such references do not imply a limitation on the disclosure, and no such limitation is to be inferred. The subject matter disclosed is capable of considerable modification, alteration, and equivalents in form and function, as will occur to those ordinarily skilled in the pertinent art and having the benefit of this disclosure. The depicted and described embodiments of this disclosure are examples only, and are not exhaustive of the scope of the disclosure.
Claims
What is claimed is:
1 , An integrated circuit device with a frequency tunable internal clock oscillator having a precision frequency that is automatically maintained by using a charge time measurement unit (CTMU), said integrated circuit device comprising:
a charge time measurement unit (CTMU) having a capacitor of known value and a constant current source of known value;
a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU;
an analog-to-digital converter (ADC) coupled to the CTMU; and a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein
the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source upon detection of a first logic transition of the clock signal indicating a beginning of a period thereof,
the CTMU stops charging the capacitor upon detection of a second logic transition of the clock signal indicating an end of the period thereof, the ADC samples and converts a voltage on the capacitor to a digital voltage value,
the digital processor reads the digital voltage value from the ADC and converts this digital voltage value into a period time value,
the digital processor compares the period time value to a reference period time value, wherein:
if the period time value is greater than the reference period time value then the digital processor causes the frequency tunable clock oscillator to increase the frequency thereof,
if the period time value is less than the reference period time value then the digital processor causes the frequency tunable clock oscillator to decrease the frequency thereof, and if the period time value is substantially the same as the reference period time value then the frequency of the frequency tunable clock oscillator is not changed.
2. The integrated circuit device according to claim 1 , wherein the period time value represents a time value of a plurality of clock signal periods.
3. The integrated circuit device according to claim 1 , wherein the CTMU comprises:
a constant current source;
a current steering switch coupled to the constant current source; the capacitor is coupled to the current steering switch, wherein the voltage on the capacitor increases substantially linearly in time when the current steering switch couples the constant current source to the capacitor; and
a circuit for controlling the current steering switch, wherein the current steering switch couples the capacitor to the constant current source upon detection of the first logic transition of the clock signal and decouples the capacitor from the constant current source upon detection of a second logic transition of the clock signal.
4. The integrated circuit device according to claim 3, wherein the circuit for controlling the current steering switch, comprises:
a first flip-flop having a positive edge triggered clock input coupled to the clock signal, and a reset input coupled to the digital processor;
an inverter having an input coupled to the clock signal;
a second flip-flop having a positive edge triggered clock input coupled to an output of the inverter, and a reset input coupled to the digital processor; and
an AND gate having a first input coupled to a Q-output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch;
wherein the digital processor resets the first and second flip-flops.
5. The integrated circuit device according to claim 3, wherein the circuit for controlling the current steering switch, comprises:
a divide by N frequency divider having an input coupled to the clock signal; a first flip-flop having a positive edge triggered clock input coupled to an output of the divide by N frequency divider, and a reset input coupled to the digital processor;
an inverter having an input coupled to the output of the divide by N frequency divider;
a second flip-flop having a positive edge triggered clock input coupled to an output of the inverter, and a reset input coupled to the digital processor; and
an AND gate having a first input coupled to a Q-output of the first flip-flop, a second input coupled to a Q-not output of the second flip-flop and an output coupled to a control input of the current steering switch;
wherein the digital processor resets the first and second flip-flops, and the divide by N frequency divider,
6. The integrated circuit device according to claim 1, wherein the ADC is a successive approximation ADC.
7. The integrated circuit device according to claim 1 , wherein the ADC is a sigma-delta ADC.
8. The integrated circuit device according to claim 7, further comprising a voltage sampling circuit for sampling the voltage on the capacitor and coupling the sampled voltage to the sigma-delta ADC.
9. The integrated circuit device according to claim 1 , wherein the digital processor calculates the clock signal period time value from the known value of capacitance and the digital representation of the voltage.
10. The integrated circuit device according to claim 1 , wherein the digital processor is a microcontroller.
1 1. The integrated circuit device according to claim 1, wherein the digital processor is selected from the group consisting of a microprocessor, a digital signal processor (DSP), a programmable logic array (PLA) and an application specific integrated circuit (ASIC).
12. The integrated circuit device according to claim 1 , wherein the CTMU, the frequency tunable clock oscillator, the ADC and the digital processor are fabricated on an integrated circuit die.
13. The integrated circuit device according to claim 12, wherein the integrated circuit die is enclosed in an integrated circuit package.
14. The integrated circuit device according to claim 1, wherein the frequency tunable clock oscillator comprises an up/down counter and a plurality of binary weighted frequency determining elements.
15. The integrated circuit device according to claim 14, wherein the frequency determining elements are selected from any one or more of the group consisting of capacitors, resistors, inductors, and constant current sources.
16. The integrated circuit device according to claim 14, wherein the frequency of the tunable clock oscillator is maintained within at least 0.25 percent of a desired frequency.
17. The integrated circuit device according to claim 1 , further comprising a temperature sensor coupled to the digital processor and a temperature compensation look-up table stored in the memory and used to compensate the CTMU over a temperature range of operation.
18. The integrated circuit device according to claim 1 , further comprising a voltage sensor coupled to the digital processor and a voltage compensation look-up table stored in the memory and used to compensate the CTMU over a voltage range of operation.
19. A method for maintaining a clock oscillator in an integrated circuit device at a precision frequency, said method comprising the steps of:
providing a charge time measurement unit (CTMU) having a capacitor of known value and a constant current source of known value;
providing a frequency tunable clock oscillator supplying a clock signal at a frequency to the CTMU;
providing an analog-to-digital converter (ADC) coupled to the CTMU; and providing a digital processor having a memory, the digital processor is coupled to the CTMU, the frequency tunable clock oscillator and the ADC, wherein upon detecting a first logic transition of the clock signal indicating a beginning of a period thereof the digital processor causes the CTMU to begin charging the known value capacitor with the known value constant current source,
upon detecting a second logic transition of the clock signal indicating an end of the period thereof the CTMU stops charging the capacitor,
sampling and converting a voltage on the capacitor to a digital voltage value with the ADC,
reading the digital voltage value from the ADC with the digital processor,
converting the digital voltage value into a period time value with the digital processor,
comparing the period time value to a reference period time value with the digital processor, wherein:
if the period time value is greater than the reference period time value then increasing the frequency of the tunable clock oscillator, if the period time value is less than the reference period time value then decreasing the frequency of the tunable clock oscillator, and if the period time value is substantially the same as the reference period time value then not changing the frequency of the frequency tunable clock oscillator.
20. The method according to claim 19, wherein the period time value represents a time value of a plurality of clock signal periods.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020147016970A KR102024038B1 (en) | 2011-11-21 | 2012-11-19 | Precision on-board tuning of embedded microcontroller oscillator using charge time measurement unit |
CN201280067325.0A CN104067519B (en) | 2011-11-21 | 2012-11-19 | Tune on the accurate plate to embedded microcontroller agitator being carried out using charging interval measuring unit |
EP12799675.9A EP2783465B1 (en) | 2011-11-21 | 2012-11-19 | Precision on-board tuning of embedded microcontroller oscillator using charge time measurement unit |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/301,248 US8390384B1 (en) | 2011-11-21 | 2011-11-21 | Precision on-board tuning of embedded microcontroller oscillator using charge time measurement unit |
US13/301,248 | 2011-11-21 |
Publications (3)
Publication Number | Publication Date |
---|---|
WO2013078108A2 true WO2013078108A2 (en) | 2013-05-30 |
WO2013078108A3 WO2013078108A3 (en) | 2013-08-22 |
WO2013078108A8 WO2013078108A8 (en) | 2013-11-07 |
Family
ID=47356283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2012/065774 WO2013078108A2 (en) | 2011-11-21 | 2012-11-19 | Precision on-board tuning of embedded microcontroller oscillator using charge time measurenent unit |
Country Status (6)
Country | Link |
---|---|
US (1) | US8390384B1 (en) |
EP (1) | EP2783465B1 (en) |
KR (1) | KR102024038B1 (en) |
CN (1) | CN104067519B (en) |
TW (1) | TWI577134B (en) |
WO (1) | WO2013078108A2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018039538A1 (en) * | 2016-08-25 | 2018-03-01 | Microchip Technology Incorporated | Systems and methods for storing frequency information for system calibration and trimming |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103187925B (en) * | 2011-12-31 | 2016-06-15 | 意法半导体研发(上海)有限公司 | The HS-CAN bus clock using oscillator tracking circuit recovers |
CN104935303B (en) | 2014-03-19 | 2019-01-18 | 恩智浦美国有限公司 | Relaxation oscillator |
US9825620B2 (en) * | 2016-01-21 | 2017-11-21 | Apple Inc. | Method and apparatus for digital undervoltage detection and control |
JP2018085563A (en) * | 2016-11-21 | 2018-05-31 | ソニーセミコンダクタソリューションズ株式会社 | Oscillator and oscillation method |
US10305425B2 (en) | 2017-10-30 | 2019-05-28 | Hong Kong Applied Science and Technology Research Institute Company, Limited | RC oscillator that uses thermometer codes to select a sub-array and binary codes to select capacitors or resistors within a sub-array for linear and monotonic tuning |
US10637494B2 (en) * | 2017-11-02 | 2020-04-28 | Microchip Technology Incorporated | ADC self-test using time base and current source |
US10866269B2 (en) * | 2017-11-16 | 2020-12-15 | Microchip Technology Incorporated | Fast frequency calculator |
US11405026B2 (en) * | 2020-08-12 | 2022-08-02 | Infineon Technologies LLC | Method and circuit for electromagnetic interference (EMI) reduction of analog blocks |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7460441B2 (en) | 2007-01-12 | 2008-12-02 | Microchip Technology Incorporated | Measuring a long time period |
US7764213B2 (en) | 2008-07-01 | 2010-07-27 | Microchip Technology Incorporated | Current-time digital-to-analog converter |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6614313B2 (en) * | 2000-10-06 | 2003-09-02 | Linear Technology Corporation | Precision oscillator circuits and methods with switched capacitor frequency control and frequency-setting resistor |
US6624640B2 (en) * | 2001-02-07 | 2003-09-23 | Fluke Corporation | Capacitance measurement |
US7312616B2 (en) * | 2006-01-20 | 2007-12-25 | Cypress Semiconductor Corporation | Successive approximate capacitance measurement circuit |
US7646253B2 (en) * | 2006-05-19 | 2010-01-12 | Broadcom Corporation | Frequency-locked clock generator |
US20080140438A1 (en) * | 2006-12-08 | 2008-06-12 | Teletech Holdings, Inc. | Risk management tool |
US8073092B2 (en) * | 2008-06-19 | 2011-12-06 | Microchip Technology Incorporated | Automatic synchronization of an internal oscillator to an external frequency reference |
CN101944899A (en) * | 2009-07-02 | 2011-01-12 | 瑞昱半导体股份有限公司 | Integrated circuit with low temperature coefficient and associated calibration method |
TWI442682B (en) * | 2010-03-16 | 2014-06-21 | Noveltek Semiconductor Corp | Oscillator having time-variant frequency deviation and related power supply |
-
2011
- 2011-11-21 US US13/301,248 patent/US8390384B1/en active Active
-
2012
- 2012-11-16 TW TW101142955A patent/TWI577134B/en active
- 2012-11-19 WO PCT/US2012/065774 patent/WO2013078108A2/en active Application Filing
- 2012-11-19 EP EP12799675.9A patent/EP2783465B1/en active Active
- 2012-11-19 CN CN201280067325.0A patent/CN104067519B/en active Active
- 2012-11-19 KR KR1020147016970A patent/KR102024038B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7460441B2 (en) | 2007-01-12 | 2008-12-02 | Microchip Technology Incorporated | Measuring a long time period |
US7764213B2 (en) | 2008-07-01 | 2010-07-27 | Microchip Technology Incorporated | Current-time digital-to-analog converter |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018039538A1 (en) * | 2016-08-25 | 2018-03-01 | Microchip Technology Incorporated | Systems and methods for storing frequency information for system calibration and trimming |
US10551428B2 (en) | 2016-08-25 | 2020-02-04 | Microchip Technology Incorporated | Systems and methods for storing frequency information for system calibration/trimming |
Also Published As
Publication number | Publication date |
---|---|
EP2783465B1 (en) | 2020-01-01 |
EP2783465A2 (en) | 2014-10-01 |
CN104067519A (en) | 2014-09-24 |
TW201332295A (en) | 2013-08-01 |
WO2013078108A3 (en) | 2013-08-22 |
US8390384B1 (en) | 2013-03-05 |
WO2013078108A8 (en) | 2013-11-07 |
KR20140106589A (en) | 2014-09-03 |
CN104067519B (en) | 2017-03-08 |
TWI577134B (en) | 2017-04-01 |
KR102024038B1 (en) | 2019-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8390384B1 (en) | Precision on-board tuning of embedded microcontroller oscillator using charge time measurement unit | |
US7460441B2 (en) | Measuring a long time period | |
CN107807511B (en) | Correction apparatus and method, correction apparatus manufacturing method, and integrated circuit constructing method | |
TWI521875B (en) | System and method for determining capacitance value | |
WO2009155233A1 (en) | Automatic synchronization of an internal oscillator to an external frequency reference | |
US8803725B2 (en) | Single slope AD converter circuit provided with compartor for comparing ramp voltage with analog input voltage | |
Stout et al. | Voltage source based voltage-to-time converter | |
US7884678B2 (en) | Single-pin RC oscillator | |
US20140176233A1 (en) | Bandwidth Calibration for Filters | |
US20220173748A1 (en) | An analogue-to-digital converter (adc) | |
CN110998338B (en) | Method for determining an electrical parameter and measuring device for determining an electrical parameter | |
US20070103245A1 (en) | Method for calibration of an oscillator for a microcontroller chip operation | |
US11581897B1 (en) | Dual slope digital-to-time converters and methods for calibrating the same | |
CN110135206B (en) | Card detector and card detection method | |
CN113341232A (en) | Measuring range self-adaptive high-precision capacitance detection method and detection circuit | |
Stoyanov et al. | Design of RLC to frequency converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12799675 Country of ref document: EP Kind code of ref document: A2 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2012799675 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 20147016970 Country of ref document: KR Kind code of ref document: A |