The content of the invention
The present invention provides a kind of adjusting process and device of Real Time Clock System, to solve prior art in adjusted due to clock
Calibration system needed long-time to carry out temperature equalization, to ensure clock adjustment system before adjustment is carried out to Real Time Clock System
Ambient temperature it is identical with the ambient temperature of Real Time Clock System and cause the less efficient problem of adjustment.
The present invention provides a kind of adjusting process of Real Time Clock System, including:
The current ADC values of built-in temperature sensor in collection SOC;
According to advance summit temperature, the corresponding summit ADC values of the summit temperature for obtaining, and default built-in temperature
The temperature of sensor and the change curve of ADC values, obtain the corresponding Current Temperatures of the current ADC values;
Temperature and the mapping relations of frequency compensation value that inquiry is obtained in advance, obtain corresponding with the Current Temperatures current
Frequency compensation value;
According to the ongoing frequency offset, adjustment is carried out to the Real Time Clock System.
The present invention provides a kind of adjusting process of Real Time Clock System, including:
Receive ADC values that the Real Time Clock System sends, with reference to temperature in ADC values, the Real Time Clock System
Demarcate the temperature and ADC values of built-in temperature sensor in the temperature of device and mapping relations, the Real Time Clock System of ADC values
Change curve and the pulse per second (PPS) without alignment treatment;Wherein, an ADC values are the voltage of the temperature calibration device
It is worth corresponding ADC values;
According to the temperature and the mapping relations of ADC values of the temperature calibration device, obtain corresponding with an ADC values
Reference temperature;And according to the reference temperature, with reference to ADC values and the built-in temperature sensor temperature and ADC values change
Change curve, obtain summit ADC values corresponding with the summit temperature being pre-configured with;
According to pulse per second (PPS), default pulse per second (PPS), the built-in temperature sensing ideally without alignment treatment
The temperature of device and the change curve of ADC values, the change curve of the temperature of default quartz crystal and frequency, the summit temperature and
The corresponding summit ADC values of the summit temperature, obtain the mapping relations of temperature and frequency compensation value;
By reflecting for the summit temperature, the corresponding summit ADC values of the summit temperature and the temperature and frequency compensation value
The relation of penetrating is sent to the Real Time Clock System, so that the Real Time Clock System is according to the summit temperature, the summit temperature
Spending the mapping relations of corresponding summit ADC values and the temperature and frequency compensation value carries out corresponding alignment treatment.
The present invention provides a kind of calibration apparatus of Real Time Clock System, including:
Acquisition module, for gathering SOC in built-in temperature sensor current ADC values;
Acquisition module, for summit temperature, the corresponding summit ADC values of the summit temperature that basis is obtained in advance, and
The temperature of default built-in temperature sensor and the change curve of ADC values, obtain the corresponding Current Temperatures of the current ADC values;
The acquisition module is additionally operable to inquire about the temperature of advance acquisition and the mapping relations of frequency compensation value, obtain with it is described
The corresponding ongoing frequency offset of Current Temperatures;
Adjustment module, for according to the ongoing frequency offset, to the Real Time Clock System adjustment being carried out.
The present invention provides a kind of calibration apparatus of Real Time Clock System, including:
Transceiver module, for receive ADC values that the Real Time Clock System sends, with reference to ADC values, it is described real-time when
Built-in temperature sensor in the mapping relations of the temperature of temperature calibration device and ADC values, the Real Time Clock System in master slave system
Temperature and ADC values change curve and the pulse per second (PPS) without alignment treatment;Wherein, an ADC values are the temperature
Demarcate the corresponding ADC values of magnitude of voltage of device;
Acquisition module, for according to the mapping relations of the temperature of the temperature calibration device and ADC values, obtaining and described the
The corresponding reference temperature of one ADC values;And according to the reference temperature, with reference to ADC values and the temperature of the built-in temperature sensor
The change curve of degree and ADC values, obtains summit ADC values corresponding with the summit temperature being pre-configured with;
The acquisition module is additionally operable to according to pulse per second (PPS), the default second arteries and veins ideally without alignment treatment
The change of the change curve, the temperature of default quartz crystal and frequency of punching, the temperature of the built-in temperature sensor and ADC values
Curve, the summit temperature and the corresponding summit ADC values of the summit temperature, the mapping for obtaining temperature and frequency compensation value is closed
System;
The transceiver module is additionally operable to the summit temperature, the corresponding summit ADC values of the summit temperature and the temperature
The mapping relations of degree and frequency compensation value are sent to the Real Time Clock System, so that the Real Time Clock System is according to the top
The mapping relations of point temperature, the corresponding summit ADC values of the summit temperature and the temperature and frequency compensation value are carried out accordingly
Alignment treatment.
In the present invention, by the current ADC values of built-in temperature sensor in collection SOC, and according to acquisition in advance
Summit temperature, the corresponding summit ADC values of the summit temperature, and the temperature and ADC values of default built-in temperature sensor
Change curve, obtains the corresponding Current Temperatures of the current ADC values, then inquires about the temperature of advance acquisition and the mapping of frequency compensation value
Relation, obtains corresponding with Current Temperatures ongoing frequency offset, finally, according to the current frequency compensation value, to this it is real-time when
Master slave system carries out adjustment, so as to without the need for carry out carrying out prolonged equality of temperature standing before adjustment to Real Time Clock System just to realize
Adjustment is carried out to Real Time Clock System, Real Time Clock System adjustment is reduced to the strict requirements on temperature and time, and then
Improve the efficiency of adjustment.
Specific embodiment
Fig. 1 is the schematic flow sheet of the adjusting process embodiment one of Real Time Clock System of the present invention.As shown in figure 1, the party
The executive agent of method is Real Time Clock System, then the method includes:
Step 101:Collection SOC(system on a chip)(System on chip, hereinafter referred to as SOC)Built-in temperature sensor in chip
Current voltage analog digital conversion(Analog to Digital, hereinafter referred to as ADC)Value.
Step 102:It is according to advance summit temperature, the corresponding summit ADC values of summit temperature for obtaining and default built-in
The temperature of temperature sensor and the change curve of ADC values, obtain the corresponding Current Temperatures of current ADC values.
Step 103:Temperature and the mapping relations of frequency compensation value that inquiry is obtained in advance, obtain corresponding with Current Temperatures
Ongoing frequency offset.
Step 104:According to ongoing frequency offset, adjustment is carried out to Real Time Clock System.
In the present embodiment, by gathering SOC in built-in temperature sensor current ADC values, and according to obtaining in advance
Summit temperature, the corresponding summit ADC values of the summit temperature for taking, and the temperature and ADC values of default built-in temperature sensor
Change curve, obtain the corresponding Current Temperatures of the current ADC values, then inquire about the temperature of advance acquisition and reflecting for frequency compensation value
Relation is penetrated, ongoing frequency offset corresponding with Current Temperatures is obtained, it is finally, real-time to this according to the current frequency compensation value
Clock system carries out adjustment, so as to without the need for Real Time Clock System is carried out carry out prolonged equality of temperature standing before adjustment just can be real
Now adjustment is carried out to Real Time Clock System, reduce Real Time Clock System adjustment to the strict requirements on temperature and time, entered
And improve the efficiency of adjustment.
Further, Fig. 2 is the schematic flow sheet of the adjusting process embodiment two of Real Time Clock System of the present invention, above-mentioned
On the basis of embodiment shown in Fig. 1, before step 101, the method can also include:
Step 201:The magnitude of voltage of temperature calibration device and the reference of built-in temperature sensor in collection Real Time Clock System
ADC values, and obtain an ADC values corresponding with the magnitude of voltage.
In the present embodiment, temperature calibration device is substantially a critesistor, but is not limited to critesistor, its electricity
Pressure value variation with temperature and change.
Step 202:First ADC values, the mapping for referring to ADC values, the temperature of the temperature calibration device and ADC values are closed
System and the temperature of the built-in temperature sensor and the change curve of ADC values are sent to adjustment system, for the adjustment system root
According to the temperature and the mapping relations of ADC values of the temperature calibration device, reference temperature corresponding with an ADC values, and root are obtained
According to the reference temperature, this with reference to ADC values and the built-in temperature sensor temperature and the change curve of ADC values, acquisition with it is pre-
The corresponding summit ADC values of the summit temperature for first configuring.
Wherein, when an above-mentioned ADC values are initial(I.e. Real Time Clock System is before adjustment is carried out)Temperature calibration device
ADC values, above-mentioned reference ADC values for it is initial when built-in temperature sensor ADC values.Because said temperature demarcates device and built-in
Temperature sensor is in together inside Real Time Clock System, therefore, the temperature and Real Time Clock System corresponding to an above-mentioned ADC values
The corresponding temperature of the reference ADC values of internal built-in temperature sensor is identical, i.e. the corresponding reference temperature of an ADC values is reference
The corresponding temperature of ADC values.Also, it should be noted that the summit temperature in the present embodiment is the quartz-crystal in Real Time Clock System
The summit temperature of body, it is that adjustment system is pre-configured with.
In addition, in the present embodiment, Real Time Clock System is by an above-mentioned ADC values, with reference to ADC values, the temperature calibration device
The temperature of part and the change curve of the mapping relations of ADC values and the temperature of the built-in temperature sensor and ADC values pass through system
Programming(In-System Programming, hereinafter referred to as ISP)Interface is sent to adjustment system, and adjustment system is according to thermometer scale
The mapping relations of the temperature and ADC values of determining device obtain the corresponding reference temperature of an above-mentioned ADC values.Again due to temperature calibration device
Part and SOC built-in temperature sensor are in together inside Real Time Clock System, i.e. temperature calibration device and the built-in temperature of SOC
The degree ambient temperature that perceived of sensor is identical, therefore, the corresponding temperature of above-mentioned ADC values is SOC built-in temperature
The corresponding temperature of sensor reference ADC value.Finally, adjustment system is according to reference temperature, with reference to ADC values, the summit of quartz crystal
The change curve of the temperature and ADC values of temperature and built-in temperature sensor, the summit temperature for obtaining and being pre-configured with is corresponding
Summit ADC values.
Step 203:Receive summit temperature and the corresponding summit ADC values of the summit temperature that the adjustment system sends.
In the present embodiment, the summit temperature and summit ADC values that adjustment system is pre-configured with this is sent to real-time clock
System, so that the above-mentioned summit being pre-configured with that the Real Time Clock System is sent by the ISP interfaces adjustment system
Temperature and the corresponding ADC values of summit temperature.
Furthermore it is preferred that in the present embodiment, a kind of specific implementation of step 102 is:
After the current ADC values for collecting SOC built-in temperature sensor, current ADC values and summit temperature pair are calculated
The difference of the summit ADC values answered, if judging, current ADC values are more than or equal to 0 with the difference of summit ADC values, obtain in SOC
Put the temperature of temperature sensor and the high-temperature region slope of ADC value changes curves, by the difference of current ADC values and summit ADC values and
High-temperature region slope carries out ratio and can be obtained by current temperature offset amount, afterwards by above-mentioned reference temperature and current temperature
Side-play amount is sued for peace, and further obtains the corresponding Current Temperatures of current ADC values.If judging, current ADC values are corresponding with summit temperature
The difference of ADC values is less than 0, then the temperature of acquisition SOC built-in temperature sensor and the low-temperature space of ADC value changes curves are oblique
Rate, carries out the difference of current ADC values and summit ADC values and low-temperature space slope ratio and can be obtained by current temperature drift
Amount, afterwards sues for peace above-mentioned reference temperature with current temperature offset amount, further obtains the corresponding current temperature of current ADC values
Degree.
Further, Fig. 3 is the schematic flow sheet of the adjusting process embodiment three of Real Time Clock System of the present invention.Upper
On the basis of stating the embodiment shown in Fig. 2, after step 203, before step 101, the method can also include:
Step 301:Send without the pulse per second (PPS) of alignment treatment to the adjustment system, for the adjustment system according to this without
The pulse per second (PPS) of alignment treatment, default pulse per second (PPS) ideally, the change curve of the temperature of default quartz crystal and frequency,
The temperature of the built-in temperature sensor and the change curve of ADC values and the summit temperature and the corresponding summit of summit temperature
ADC values, obtain the mapping relations of the temperature and frequency compensation value.
Step 302:Receive the temperature of adjustment system transmission and the mapping relations of frequency compensation value.
Specifically, Real Time Clock System leads to the temperature of SOC built-in temperature sensor and the change curve of ADC values
Cross ISP interfaces and be sent to adjustment system, afterwards Real Time Clock System by ISP interfaces send a pulse per second (PPS) without adjustment to
Adjustment system, adjustment system is poor with default pulse per second (PPS) ideally using the pulse per second (PPS) without adjustment for receiving
Value, the relation being inversely proportional to using cycle and frequency obtains the corresponding fixed frequency offset of the difference at a temperature of summit.Adjustment in addition
System is by using SOC built-in real-time clock(Real Time Clock, hereinafter referred to as RTC)The frequency departure of module is mended
The numerical value increment of depositor is repaid, fixed frequency offset and numerical value increment are carried out into ratio, just obtain the corresponding frequency of summit temperature
Offset.
Afterwards, temperature and the change curve of frequency of the adjustment system according to itself default quartz crystal(The curve is
The curve that quartz crystal producer provides)And the summit temperature and the corresponding frequency compensation value of summit temperature of acquisition, so that it may obtain
Corresponding frequency compensation value, the i.e. mapping relations of temperature and frequency compensation value under different temperatures, and send it to real-time clock
System, temperature and the mapping relations of frequency compensation value that Real Time Clock System is sent by ISP interfaces adjustment system.
In the present embodiment, by being arranged on Real Time Clock System in the temperature of temperature calibration device and reflecting for ADC values
Penetrate the characteristic of relation and its critesistor to demarcate the temperature of SOC built-in temperature sensor, due to built-in temperature sensing
Device and temperature calibration device are arranged inside Real Time Clock System, therefore the two ambient temperature for perceiving is identical, so that it is guaranteed that warm
Scale determines the temperature that device is capable of accurate calibration built-in temperature sensor, it is to avoid Real Time Clock System is carried out before adjustment it is long when
Between equality of temperature stand, Real Time Clock System adjustment is reduced to the strict requirements on temperature and time, so as to improve adjustment
Efficiency;Furthermore with the temperature and frequency variation curve of Real Time Clock System inner quartz crystal, summit temperature and summit are obtained
The corresponding ADC values of temperature, and the pulse per second (PPS) without adjustment that sent using Real Time Clock System and the built-in RTC of SOC
Module obtains the corresponding frequency compensation value of summit temperature and then obtains the mapping relations of temperature and frequency compensation value, real-time clock system
The frequency compensation value that the mapping relations for inquiring about the temperature and frequency compensation value according to current temperature of uniting are obtained under Current Temperatures, enters
And Real Time Clock System is compensated, it is ensured that Real Time Clock System exports the accuracy of pulse.
Fig. 4 is the schematic flow sheet of the adjusting process example IV of Real Time Clock System of the present invention.As shown in figure 4, the party
The executive agent of method is adjustment system, then the method includes:
Step 401:Receive Real Time Clock System send an ADC values, with reference to temperature in ADC values, Real Time Clock System
Demarcate the temperature of built-in temperature sensor and the change of ADC values in the temperature of device and mapping relations, the Real Time Clock System of ADC values
Change curve and the pulse per second (PPS) without alignment treatment.
In the present embodiment, Real Time Clock System can perform the embodiment shown in above-mentioned Fig. 1 to Fig. 3 either method, its
Realize that principle is similar, here is omitted.
Step 402:According to the temperature and the mapping relations of ADC values of the temperature calibration device, it is right with an ADC values to obtain
The reference temperature answered;And according to the reference temperature, with reference to ADC values and the built-in temperature sensor temperature and ADC values change
Change curve, obtain summit ADC values corresponding with the summit temperature being pre-configured with.
Step 403:According to the pulse per second (PPS) without alignment treatment, default pulse per second (PPS), built-in temperature biography ideally
The temperature of sensor and the change curve of ADC values, the change curve of the temperature of the default quartz crystal and frequency, summit temperature and
The corresponding summit ADC values of the summit temperature, obtain the mapping relations of temperature and frequency compensation value.
Step 404:By reflecting for summit temperature, the corresponding summit ADC values of the summit temperature and the temperature and frequency compensation value
The relation of penetrating is sent to Real Time Clock System, so that the Real Time Clock System is according to the summit temperature, the corresponding top of summit temperature
The mapping relations of point ADC values and the temperature and frequency compensation value carry out corresponding alignment treatment.
Specifically, adjustment system is sent by ISP interfaces Real Time Clock System an ADC values, real-time clock system
In system in the mapping relations of the temperature of temperature calibration device and ADC values, Real Time Clock System the temperature of built-in temperature sensor and
The change curve of ADC values, adjustment system obtains above-mentioned first according to the temperature of temperature calibration device and the mapping relations of ADC values
The corresponding temperature of ADC values, but temperature calibration device and SOC built-in temperature sensor be in together inside Real Time Clock System,
Therefore temperature calibration device is identical with the ambient temperature that SOC built-in temperature sensor is perceived, then an above-mentioned ADC values are corresponding
Temperature be SOC built-in temperature sensor with reference to the corresponding reference temperature of ADC values, adjustment system and according to above-mentioned in addition
Reference temperature, with reference to ADC values and above-mentioned built-in temperature sensor temperature and ADC values change curve, obtain and match somebody with somebody in advance
The corresponding ADC values of summit temperature put.
In addition, the pulse per second (PPS) without adjustment that adjustment system is sent by ISP interfaces Real Time Clock System, adjustment system
System carries out difference using the pulse per second (PPS) without adjustment for receiving with default pulse per second (PPS) ideally, using cycle and frequency
The relation being inversely proportional to obtains the corresponding frequency departure of summit temperature, and afterwards adjustment system is by using in Real Time Clock System
The numerical value increment of the frequency departure offset registers of RTC block in SOC is put, by the corresponding frequency of above-mentioned summit temperature
Deviation and numerical value increment carry out ratio, just obtain the corresponding frequency compensation value of summit temperature;Afterwards, adjustment system is pre- according to itself
If the temperature of quartz crystal and the change curve of frequency and the corresponding frequency compensation value of the summit temperature of acquisition, so that it may obtain
Corresponding frequency compensation value, the i.e. mapping relations of temperature and frequency compensation value under different temperatures, and be sent to by ISP interfaces
To Real Time Clock System.
In the present embodiment, the temperature calibration device that adjustment system is sent by ISP interfaces Real Time Clock System
The mapping relations and an ADC values of temperature and ADC values, determine the corresponding reference temperature of an ADC values, i.e. Real Time Clock System
The reference temperature of middle SOC built-in temperature sensor, this avoid carries out the long-time before adjustment to Real Time Clock System
Equality of temperature stands, and real-time clock adjustment is reduced to the strict requirements on temperature and time, so as to improve the efficiency of adjustment;Separately
Outer adjustment system according to the temperature of the corresponding summit ADC values of summit temperature, summit temperature and quartz crystal being pre-configured with and
Frequency variation curve, obtains the mapping relations of temperature and frequency compensation value, and by the temperature and the mapping relations of frequency compensation value
Real Time Clock System is sent to, so that Real Time Clock System can inquire about the temperature and frequency compensation value according to current temperature
Mapping relations determining the corresponding ongoing frequency offset of Current Temperatures, and then Real Time Clock System is compensated, so as to
Just can realize carrying out Real Time Clock System without the need for carry out carrying out prolonged equality of temperature standing before adjustment to Real Time Clock System
Adjustment, reduces Real Time Clock System adjustment to the strict requirements on temperature and time, and then improves the efficiency of adjustment.
Fig. 5 is the schematic flow sheet of the adjusting process embodiment five of Real Time Clock System of the present invention.As shown in figure 5, the party
The executive agent of method is adjustment system, then the method includes:
Step 501:Receive Real Time Clock System send an ADC values, with reference to temperature in ADC values, Real Time Clock System
Demarcate the temperature of built-in temperature sensor and the change of ADC values in the temperature of device and mapping relations, the Real Time Clock System of ADC values
Change curve and the pulse per second (PPS) without alignment treatment.
In the present embodiment, Real Time Clock System can perform the embodiment shown in above-mentioned Fig. 1 to Fig. 3 either method, its
Realize that principle is similar, here is omitted.
Step 502:According to the temperature and the mapping relations of ADC values of the temperature calibration device, it is right with an ADC values to obtain
The reference temperature answered;And according to the reference temperature, with reference to ADC values and the built-in temperature sensor temperature and ADC values change
Change curve, obtain summit ADC values corresponding with the summit temperature being pre-configured with.
Step 503:According to described pulse per second (PPS), default pulse per second (PPS), built-in temperature ideally without alignment treatment
The temperature of degree sensor and change curve, the change curve of the temperature of the default quartz crystal and frequency, the summit temperature of ADC values
Degree and the corresponding summit ADC values of the summit temperature, obtain the mapping relations of temperature and frequency compensation value.
Step 504:Pulse per second (PPS) after collection Real Time Clock System adjustment.
Step 505:Judge whether the pulse per second (PPS) after adjustment meets adjustment condition.It is if judging, execution step 506;
If judging no, execution step 507.
Step 506:Adjustment success, the successful result of output adjustment.Adjustment terminates.
Step 507:Adjustment fails, and exports adjustment failure result and parameter.
Specifically, adjustment system is sent by ISP interfaces Real Time Clock System an ADC values, real-time clock system
In system in the mapping relations of the temperature of temperature calibration device and ADC values, Real Time Clock System the temperature of built-in temperature sensor and
The change curve of ADC values, adjustment system obtains above-mentioned first according to the temperature of temperature calibration device and the mapping relations of ADC values
The corresponding temperature of ADC values, but temperature calibration device and SOC built-in temperature sensor be in together inside Real Time Clock System,
Therefore temperature calibration device is identical with the ambient temperature that SOC built-in temperature sensor is perceived, then an above-mentioned ADC values are corresponding
Temperature be SOC built-in temperature sensor with reference to the corresponding reference temperature of ADC values, adjustment system and according to above-mentioned in addition
Reference temperature, with reference to ADC values and above-mentioned built-in temperature sensor temperature and ADC values change curve, obtain and match somebody with somebody in advance
The corresponding ADC values of summit temperature put.
In addition, the pulse per second (PPS) without adjustment that adjustment system is sent by ISP interfaces Real Time Clock System, adjustment system
System carries out difference using the pulse per second (PPS) without adjustment for receiving with default pulse per second (PPS) ideally, using cycle and frequency
The relation being inversely proportional to obtains the corresponding frequency departure of summit temperature, and afterwards adjustment system is by using in Real Time Clock System
The numerical value increment of the frequency departure offset registers of RTC block in SOC is put, by the corresponding frequency departure of summit temperature
Ratio is carried out with numerical value increment, the corresponding frequency compensation value of summit temperature is just obtained;Afterwards, adjustment system is according to default quartz
The temperature of crystal and the change curve of frequency and the corresponding frequency compensation value of the summit temperature of acquisition, so that it may obtain different temperatures
Under corresponding frequency compensation value, the i.e. mapping relations of temperature and frequency compensation value;Then adjustment system is according to the reference temperature for obtaining
Reference frequency offset under degree carries out alignment treatment to the received pulse per second (PPS) without adjustment.
Afterwards, the pulse per second (PPS) after adjustment system measurement adjustment, if the pulse per second (PPS) after adjustment meets adjustment condition, tune herein
School condition is adjusting accuracy, even scope of the frequency departure of the pulse per second (PPS) after adjustment in set frequency departure degree of stability
Interior, then adjustment system exports the successful result of adjustment, so that user is known in real time according to the adjustment result that adjustment system shows
Whether the adjustment of clock system is successful, if the frequency departure of the pulse per second (PPS) after adjustment system measurement adjustment is not in set frequency
In the range of deviation degree of stability, then adjustment failure, adjustment system can export adjustment failure result and parameter, and the parameter includes tune
Frequency departure precision of pulse per second (PPS) behind school etc., so that research staff is made to the adjustment according to the adjustment failure information and parameter
The next step of system is indicated.
In the present embodiment, the temperature calibration device that adjustment system is sent by ISP interfaces Real Time Clock System
The mapping relations and an ADC values of temperature and ADC values, determine the corresponding reference temperature of an ADC values, i.e. Real Time Clock System
The reference temperature of middle SOC built-in temperature sensor, this avoid carries out the long-time before adjustment to Real Time Clock System
Equality of temperature stand, real-time clock adjustment is reduced to the strict requirements on temperature and time, so as to improve the efficiency of adjustment;
Pulse per second (PPS) of the adjustment system after to the adjustment for exporting in addition is measured and judges whether it meets adjustment condition, is judging to adjust
Pulse per second (PPS) behind school is met after adjustment condition, by calculating process the mapping relations of the temperature that obtains and frequency compensation value and be sent to
Real Time Clock System, so that Real Time Clock System can inquire about the mapping of the temperature and frequency compensation value according to current temperature
Relation is compensated determining the corresponding ongoing frequency offset of Current Temperatures to Real Time Clock System, it is to avoid in adjustment
Adjustment and frequency compensation are carried out to Real Time Clock System in the case of precision is inaccurate, which ensures that Real Time Clock System is defeated
Go out the accuracy of pulse.
Fig. 6 is the structural representation of the calibration apparatus embodiment one of Real Time Clock System of the present invention, as shown in fig. 6, the dress
Put including:Acquisition module 61, acquisition module 62 and adjustment module 63, wherein, acquisition module 61, for gathering SOC in
The current ADC values of built-in temperature sensor;Acquisition module 62, for according to summit temperature, the summit temperature pair for obtaining in advance
The summit ADC values answered, and the temperature and the change curve of ADC values of default built-in temperature sensor, obtain current ADC values right
The Current Temperatures answered;The acquisition module 62 is additionally operable to inquire about the temperature of advance acquisition and the mapping relations of frequency compensation value, obtains
Take ongoing frequency offset corresponding with the Current Temperatures;Adjustment module 63 is right for according to the described current frequency compensation value
The described Real Time Clock System carries out adjustment.
The calibration apparatus of the Real Time Clock System of the present embodiment can perform embodiment of the method shown in Fig. 1, and it realizes principle
Similar, here is omitted.
In the present embodiment, the summit temperature that obtained in advance by acquisition module, the corresponding summit ADC values of summit temperature,
Reference temperature and the corresponding reference ADC values of the reference temperature, can obtain the current of built-in temperature sensor in current SOC
The corresponding Current Temperatures of ADC values, and the mapping relations of the temperature and frequency compensation value for obtaining in advance are inquired about, obtain and Current Temperatures
Corresponding ongoing frequency offset, last adjustment module carries out adjustment to Real Time Clock System according to ongoing frequency offset, solution
Because clock adjustment system to Real Time Clock System before adjustment is carried out in prior art of having determined, long-time is needed to enter trip temperature
Equilibrium, so that the ambient temperature for ensureing clock adjustment system is identical with the ambient temperature of Real Time Clock System the efficiency of adjustment is caused
Relatively low problem, so as to improve the efficiency of adjustment.
Fig. 7 is the structural representation of the calibration apparatus embodiment two of Real Time Clock System of the present invention, real shown in above-mentioned Fig. 6
On the basis of applying example, above-mentioned acquisition module 61 is specifically additionally operable to gather the voltage of temperature calibration device in above-mentioned Real Time Clock System
The reference ADC values of value and above-mentioned built-in temperature sensor;Above-mentioned acquisition module 62, is additionally operable to obtain corresponding with above-mentioned magnitude of voltage
First ADC values.
The device also includes transceiver module 64, for an above-mentioned ADC values, above-mentioned reference ADC values, said temperature to be demarcated
The change curve of the temperature and ADC values of the temperature of device and the mapping relations of ADC values and above-mentioned built-in temperature sensor sends
To adjustment system, so that the adjustment system is according to the temperature of the temperature calibration device and the mapping relations of ADC values, obtain with it is above-mentioned
The corresponding reference temperature of first ADC values;And according to above-mentioned reference temperature, above-mentioned reference ADC values, the summit temperature of quartz crystal with
And the temperature and the change curve of ADC values of above-mentioned built-in temperature sensor, obtain with the above-mentioned summit temperature pair being pre-configured with
The summit ADC values answered;The summit temperature that transceiver module 64 is additionally operable to receive above-mentioned adjustment system transmission is corresponding with the summit temperature
Summit ADC values.
Preferably, transceiver module 64 is additionally operable to be sent without the pulse per second (PPS) of alignment treatment, for institute to the adjustment system
Adjustment system is stated according to pulse per second (PPS), default pulse per second (PPS), the default quartz crystal ideally without alignment treatment
Temperature and the change curve of frequency, the change curve of the temperature of the built-in temperature sensor and ADC values and the summit
Temperature and the corresponding summit ADC values of the summit temperature, obtain the mapping relations of the temperature and frequency compensation value;Transceiver module
64 are additionally operable to receive the temperature of above-mentioned adjustment system transmission and the mapping relations of frequency compensation value.
The calibration apparatus of the Real Time Clock System of the present embodiment can perform embodiment of the method shown in Fig. 2 and Fig. 3, its realization
Principle is similar, and here is omitted.
In the present embodiment, acquisition module obtains summit temperature, the corresponding summit ADC of summit temperature by transceiver module
Value, reference temperature and the corresponding reference ADC values of the reference temperature, and then to the SOC built-in temperature in Real Time Clock System
The temperature that sensor is perceived is demarcated, it is ensured that the environment for being perceived of acquisition module and SOC built-in temperature sensor
Temperature is identical, i.e., acquisition module can prepare to demarcate the temperature that perceived of SOC built-in temperature sensor, it is to avoid to it is real-time when
Master slave system carries out the standing of the long-time equality of temperature before adjustment, reduces Real Time Clock System adjustment to strict on temperature and time
Require, so as to improve the efficiency of adjustment;Temperature is obtained additionally by acquisition module and transceiver module collective effect and frequency is mended
The mapping relations of value are repaid, Real Time Clock System is obtained according to the mapping relations that current temperature inquires about the temperature and frequency compensation value
Frequency compensation value under Current Temperatures, and then Real Time Clock System is compensated, it is ensured that Real Time Clock System exports pulse
Accuracy.
Fig. 8 is the structural representation of the calibration apparatus embodiment three of Real Time Clock System of the present invention, as shown in figure 8, the dress
Put including:Transceiver module 71 and acquisition module 72, wherein, transceiver module 71, for receiving what above-mentioned Real Time Clock System sent
First ADC values, the mapping relations of the temperature with reference to temperature calibration device in ADC values, above-mentioned Real Time Clock System and ADC values, on
State the change curve and the second arteries and veins without alignment treatment of the temperature of built-in temperature sensor and ADC values in Real Time Clock System
Punching;Wherein, an above-mentioned ADC values are the corresponding ADC values of the temperature calibration device;Transceiver module 71 is additionally operable to above-mentioned summit
The mapping relations of temperature, the corresponding summit ADC values of above-mentioned summit temperature and said temperature and frequency compensation value are sent to above-mentioned reality
When clock system, for above-mentioned Real Time Clock System according to above-mentioned summit temperature, the corresponding summit ADC values of above-mentioned summit temperature and
The mapping relations of said temperature and frequency compensation value carry out corresponding alignment treatment;Acquisition module 72, for according to said temperature
The temperature of device and the mapping relations of ADC values are demarcated, reference temperature corresponding with an above-mentioned ADC values is obtained;And according to above-mentioned
Reference temperature, with reference to the change curve of ADC values, the temperature of summit temperature and above-mentioned built-in temperature sensor and ADC values, obtain
Summit ADC values corresponding with the summit temperature being pre-configured with;Acquisition module 72 be additionally operable to according to without alignment treatment pulse per second (PPS),
Default pulse per second (PPS), the change curve of the temperature of above-mentioned built-in temperature sensor and ADC values, above-mentioned default stone ideally
The temperature of English crystal and the change curve of frequency, said temperature demarcate the temperature of device and mapping relations, the above-mentioned summit of ADC values
Temperature and the corresponding summit ADC values of above-mentioned summit temperature, obtain the mapping relations of temperature and frequency compensation value.
The calibration apparatus of the Real Time Clock System of the present embodiment can perform embodiment of the method shown in Fig. 4, and it realizes principle
Similar, here is omitted.
In the present embodiment, adjustment system receives the temperature calibration device that Real Time Clock System sends by transceiver module
The mapping relations and an ADC values of temperature and ADC values, determine the corresponding reference temperature of an ADC values, i.e. Real Time Clock System
The reference temperature of middle SOC built-in temperature sensor, this avoid carries out the long-time before adjustment to Real Time Clock System
Equality of temperature stands, and Real Time Clock System adjustment is reduced to the strict requirements on temperature and time, so as to improve the effect of adjustment
Rate;In addition the mapping relations that acquisition module calculating processes the temperature and frequency compensation value for obtaining are passed through transceiver module by adjustment system
Real Time Clock System is sent to, so that Real Time Clock System can inquire about the temperature and frequency compensation value according to current temperature
Mapping relations determining the corresponding ongoing frequency offset of Current Temperatures, and then Real Time Clock System is compensated, it is ensured that
Real Time Clock System exports the accuracy of pulse.
Fig. 9 is the structural representation of the calibration apparatus example IV of Real Time Clock System of the present invention, real shown in above-mentioned Fig. 8
On the basis of applying example, the device also includes acquisition module 73 and judge module 74.Wherein, acquisition module 73, it is above-mentioned for gathering
Pulse per second (PPS) after Real Time Clock System adjustment;Judge module 74, if whether the pulse per second (PPS) after for judging adjustment meets adjustment bar
Part, if then the transceiver module 71 is additionally operable to the judge module 74 and judges that the pulse per second (PPS) after the adjustment meets institute's tune
School condition, then export the successful result of adjustment;If transceiver module 71 is additionally operable to the judge module 74 judging after the adjustment
Pulse per second (PPS) be unsatisfactory for the adjustment condition, then export adjustment failure result and parameter.
The calibration apparatus of the Real Time Clock System of the present embodiment can perform embodiment of the method shown in Fig. 5, and it realizes principle
Similar, here is omitted.
In the present embodiment, adjustment system transceiver module receives the temperature of the temperature calibration device that Real Time Clock System sends
With the mapping relations and an ADC values of ADC values and send acquisition module to, acquisition module demarcates device according to said temperature
The mapping relations of temperature and ADC values determine the corresponding reference temperature of an ADC values, i.e., SOC is built-in in Real Time Clock System
The reference temperature of temperature sensor, this avoid carries out the standing of the prolonged equality of temperature before adjustment, drop to Real Time Clock System
Low Real Time Clock System adjustment to the strict requirements on temperature and time, so as to improve the efficiency of adjustment;Adjustment in addition
System gathers the pulse per second (PPS) after Real Time Clock System adjustment by acquisition module, and after adjustment of the judge module to output
Pulse per second (PPS) is measured and judges whether it meets adjustment condition, and the pulse per second (PPS) after adjustment is judged is met after adjustment condition, output
The successful result of adjustment, and then so that Real Time Clock System can inquire about the temperature and frequency compensation value according to current temperature
Mapping relations determining the corresponding ongoing frequency offset of Current Temperatures, and then Real Time Clock System is compensated, it is to avoid
Adjustment and frequency compensation are carried out to Real Time Clock System in the case of adjusting accuracy is inaccurate, real-time clock is which ensures that
System exports the accuracy of pulse.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.