CN113608574B - Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer - Google Patents
Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer Download PDFInfo
- Publication number
- CN113608574B CN113608574B CN202110907493.7A CN202110907493A CN113608574B CN 113608574 B CN113608574 B CN 113608574B CN 202110907493 A CN202110907493 A CN 202110907493A CN 113608574 B CN113608574 B CN 113608574B
- Authority
- CN
- China
- Prior art keywords
- time
- time interval
- output
- computer
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
Abstract
The invention relates to a microsecond time output method and a microsecond time output system of a computer, which are characterized in that a first time interval from a starting moment to a current moment is firstly obtained, then the first time interval and one second are subjected to residual operation to obtain a second time interval from the current moment to the last whole second moment, and finally time delay is carried out according to the second time interval so as to output a second pulse signal and a computer time signal carrying years, months, days, hours, minutes and seconds at the next whole second moment, thereby realizing microsecond time output of the computer. The invention also provides a computer microsecond time calibration system, which is used for measuring the time interval error between the second pulse signal and the reference time signal generated by the external reference time source by the time interval measuring instrument, so that the standard time signal generated by the external reference time source can be used for calibrating the computer, and the time signal output by the computer is more accurate and reliable.
Description
Technical Field
The invention relates to the technical field of computer clock metering, in particular to a computer microsecond time output method, a computer microsecond time output system and a computer microsecond time output calibration system.
Background
The digital economy in China is in a high-speed development stage, and the data volume is continuously increased. According to the report display of the Internet data center, china is expected to become the global maximum data market in 2025, the value of data is increasingly highlighted, the data is big data, and the data is the basis of the development and application of the emerging Internet technologies such as data mining, artificial intelligence and the like. The data is recorded in a time which is independent of high precision, the time provides logic for the data, the large data and the high-quality development of digital economy are realized, and orderly data support is not required.
In the fields of inspection, medical and health, financial trade, public security and the like, data is generated and recorded by a computer, a machine room data server, and the like. Securities exchanges and banks produce a large number of data records per day due to transactions, which can have inconceivable consequences if there are errors in the time of the data records. If the time of medical treatment and electronic equipment in hospitals is inconsistent, the time deviation of the results report of patient admission, doctor advice delivery, transfer, execution, inspection and examination is larger, and the sample collection has strict time sequence on the collection time, the delivery time and the detection time, once the time sequence of each link is disordered, the inspection result is inaccurate, clinical misdiagnosis is possibly caused, and unnecessary medical disputes are caused. The systems of the public security traffic management and the monitoring bayonet snapshot equipment shoot a large amount of pictures or video data every day, and whether the time of the computers or the servers is accurate and consistent is related to the punishment basis of various traffic illegal behaviors.
At present, the time of each application terminal is usually obtained from a network time server in a network, the time obtained from the network through a network time protocol is in the millisecond level, and the time accuracy of data recording is not guaranteed for the terminal with large processing and access quantity. In addition, the report issued by the third-party inspection and detection mechanism and the time recorded by the professional inspection and detection software are calibrated by the network time server and the timestamp server by using the computer client, and how to ensure the accurate and reliable time of the computer terminal equipment is an urgent problem to be solved at present.
Based on this, there is a need for a computer microsecond time output method, system and calibration system.
Disclosure of Invention
The invention aims to provide a computer microsecond time output method, a computer microsecond time output system and a computer microsecond time output calibration system, which can realize computer microsecond time output, calibrate computer time and ensure accurate and reliable computer time.
In order to achieve the above object, the present invention provides the following solutions:
In a first aspect, the present invention is used to provide a computer microsecond time output method, where the output method includes:
acquiring a first time interval from a starting time to a current time; the starting moment is a preset value; the first time interval is in microseconds;
Performing residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
Delaying according to the second time interval to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returns to the step of acquiring the first time interval from the start time to the current time.
The invention also provides a computer microsecond time output system, which comprises:
The acquisition module is used for acquiring a first time interval from the starting moment to the current moment; the starting moment is a preset value; the first time interval is in microseconds;
the residual operation module is used for carrying out residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
The output module is used for delaying according to the second time interval so as to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returns to the step of acquiring the first time interval from the start time to the current time.
In a second aspect, the present invention is directed to a computer microsecond time calibration system comprising an external reference time source and a time interval measurement instrument; the external reference time source is in communication connection with the time interval measuring instrument; the time interval measuring instrument is in communication connection with a computer;
The external reference time source is used for generating a reference time signal and transmitting the reference time signal to the time interval measuring instrument;
the computer is used for generating a second pulse signal by using the output method and transmitting the second pulse signal to the time interval measuring instrument;
The time interval measuring instrument is used for measuring time interval errors between the starting signal and the stopping signal by taking the reference time signal as the starting signal and the second pulse signal as the stopping signal.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
The invention provides a microsecond time output method and a microsecond time output system of a computer. And then, carrying out residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment. Finally, time delay is carried out according to the second time interval, so that a second pulse signal and a computer time signal carrying years, months, days, hours, minutes and seconds are output at the next whole second moment, microsecond time output of a computer can be further realized, the problem that time accuracy cannot be guaranteed due to millisecond time output of the traditional computer is solved, and the output computer time accuracy is high and more accurate.
The invention also provides a computer microsecond time calibration system, which comprises an external reference time source and a time interval measuring instrument which are in communication connection, wherein the time interval measuring instrument takes a reference time signal generated by the external reference time source as a starting signal, a second pulse signal generated by the output method is used as a stopping signal by a computer, and the time interval error between the starting signal and the stopping signal is measured, so that the computer can be calibrated by using a standard time signal generated by the external reference time source, and the time signal output by the computer is more accurate and reliable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an output method according to embodiment 1 of the present invention;
FIG. 2 is a schematic diagram illustrating the connection between a computer and a bus chip according to embodiment 1 of the present invention;
FIG. 3 is a system block diagram of an output system according to embodiment 2 of the present invention;
FIG. 4 is a schematic diagram of a calibration system according to embodiment 3 of the present invention;
Fig. 5 is a schematic diagram of measurement results of time interval errors according to embodiment 3 of the present invention.
Symbol description:
1-a computer; 2-buses; 3-bus chip; 4-an external reference time source; 5-time interval measuring instrument; 6-an external reference frequency source.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention aims to provide a computer microsecond time output method, a computer microsecond time output system and a computer microsecond time output calibration system, which can realize computer microsecond time output, calibrate computer time signals and ensure accurate and reliable time of a computer.
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Example 1:
At present, the time of application terminals such as computers, data servers, timestamp servers and the like used in data centers and machine rooms in various industries in China is usually obtained from a network time server in a network, but the time obtained from the network through a network time protocol is in the millisecond level, and the time accuracy of data recording cannot be guaranteed for computer terminals with large processing and access quantity. In addition, each application terminal can acquire time from the GPS signal, but the accuracy of the time acquired from the GPS signal is higher, but the source is not the time issued by the national authority, and the hardware equipment and the method are not approved by the national authority, so that the potential safety hazard is large. And some data center machine rooms are closed, the application scene is limited, and an antenna can not be erected to receive GPS signals. In addition, although the time of the computer can be synchronized to the standard time through various time synchronization modes, the synchronization result is not verified by an effective method at present, and the time deviation between the computer and the standard time cannot be determined. Based on this, the embodiment is used for providing a microsecond time output method of a computer so as to realize microsecond time output of the computer, and the output computer time is high in accuracy and good in safety, so that the microsecond time output of the computer is used for measuring and calibrating the time of the computer so as to determine the time deviation between the computer and the standard time, the purpose of calibrating the computer time is realized, and the accuracy and reliability of the computer equipment time are ensured.
As shown in fig. 1, with a computer as an execution body, the method for outputting microsecond time of the computer according to the embodiment includes:
s1: acquiring a first time interval from a starting time to a current time; the starting moment is a preset value; the first time interval is in microseconds;
Specifically, when the Windows operating system is adopted in the computer, since the time of the Windows operating system is accumulated from 1601 years, the time interval from 1601 years to the current time is obtained by calling the function. However, in order to facilitate the subsequent extraction of years, months, days, hours, minutes, and seconds in computer time signals, since 1970 is the time starting point of the UNIX system, and also the time starting points of many mainstream computers and operating systems, the existing extraction techniques and functions have been extracted from 1970. Based on this, in this embodiment, 1 month, 1 day, 0 hour, 0 minute, 0 second in 1601 is designated as an initial time, 1 month, 1 day, 0 hour, 0 minute, 0 second in 1970 is designated as a starting time, and S1 may include:
1) Calculating a third time interval from the initial time to the initial time of the Windows operating system; that is, a third time interval T 3,T3 = 116444736000000000 from 1 month, 1 day, 0 minute, 0 second to 1 month, 1 day, 0 minute, 0 second in 1970 is calculated, the unit of the third time interval being 100ns.
2) Acquiring a fourth time interval from the initial time to the current time; specifically, a fourth time interval from the initial time to the current time may be obtained by calling GETSYSTEMTIMEASFILETIME a function, that is, a computer based on the Windows operating system may obtain a fourth time interval T 4 passing from 0 minutes 0 seconds at 1 month of 1601 to 0 seconds at 1 day of 1 to the current time by calling GETSYSTEMTIMEASFILETIME a function, where the unit of the fourth time interval is 100ns.
3) And performing difference operation on the fourth time interval and the third time interval to obtain a first time interval from the starting moment to the current moment. Specifically, the first time interval T 1=(T4-T3)/10 may be the first time interval T 1 from 1970, 1 month, 1 day, 0 minute, 0 second to the current time, where the unit of the first time interval is microseconds.
S2: performing residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
Specifically, the remainder operation is performed on T 1 and 1000000, so that a second time interval T 2,T2=T1% 1000000 below the second order of magnitude can be obtained, and the range of the second time interval T 2 is 0 mu s to 999999 mu s.
S3: delaying according to the second time interval to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returns to the step of acquiring the first time interval from the start time to the current time.
Since the purpose of calculating the second time interval is to delay and further determine the next whole second time, in order to shorten the delay time, after the second time interval is obtained by S2 and before S3, the output method of the embodiment further includes: judging whether the second time interval is larger than a preset time interval or not; if not, that is, if the second time interval is smaller than or equal to the preset time interval, returning to the step of acquiring the first time interval from the starting time to the current time until the second time interval is larger than the preset time interval. If yes, that is, if the second time interval is greater than the preset time interval, the current second time interval is taken as a new second time interval, and S3 is executed.
Further, the preset time interval may be set to x, where x is an optional value, and typically x= 980000 μs. Then S3 is performed if the second time interval T 2 is in the range of x to 999999 mus, otherwise S1 is returned again to begin execution.
Delaying according to the second time interval to output the second pulse signal at a next full second time may include: and according to the second time interval, delaying by utilizing SleepPerformUS functions, and outputting a second pulse signal after the delay is finished. After the delay time is over, the next whole second time is reached. Specifically, the time delay of (999999-T 2) mu s is performed by using SleepPerformUS functions, and the time delay reaches the whole second time in time after the end of the time delay. Further, the SleepPerformUS function queries the current value of the timer by calling the QueryPerformanceCounter function, and judges whether the current value is equal to the frequency value of the timer obtained by calling the QueryPerformanceFrequency function, and delay is finished when the current value is equal to the frequency value, so that microsecond delay is realized.
Note that QueryPerformanceCounter functions and QueryPerformanceFrequency functions are api functions of the Windows operating system. The frequency value of the timer resulting from the invocation QueryPerformanceFrequency function is fixed at system start-up and consistent across all processors.
After the time delay is performed by using SleepPerformUS functions, and further determining the next whole second time, outputting the second pulse signal at the next whole second time used in this embodiment may include: the second pulse signal is output by controlling the output pin level of the bus chip. Specifically, at the next whole second moment, the bus is used to control a plurality of output pins of the bus chip to be at a high level, and after the high level continues for a preset time, the bus is used to control the plurality of output pins to be at a low level. The high level and the low level output by the same output pin form a second pulse signal, so that the repeated output of the second pulse signal can be realized. The number of output pins controlled may be one or more. The output method provided by the embodiment can obtain more accurate second pulse signal transmitting time, for example, 1 second is the next moment of 0.99999S, and then the second pulse signal can be accurately sent out when 0.00001S arrives, so that the time accuracy is ensured.
More specifically, the bus used in this embodiment may be a PCIe bus, and the bus chip may be a CH367 chip. As shown in fig. 2, which shows a schematic diagram of the connection relationship between the computer and the bus chip, the computer 1 interacts with the CH367 chip through the PCIe bus. In outputting the second pulse signal, the method used may be: the computer 1 controls the value of a GPOR general output register of the CH367 chip to be 0xFF through a PCIe bus, and then three output pins of GPO, GPO0 and GPO1 of the CH367 chip are all enabled to output high level 3.3V. And then calling a Sleep function to delay for 10ms, wherein after the delay is finished, the value of a general output register of the computer 1 is 0x00 through a PCIe bus GPOR, so that three output pins of GPO, GPO0 and GPO1 all output low-level 0V, and the twice output of the method is used for manufacturing a pulse signal with a pulse width of 10ms, namely a second pulse signal, and the pulse signal is based on the rising edge of a high level, thereby realizing the repeated output of the second pulse signal in three output pins of GPO, GPO0 and GPO 1. Because PCIe is a high-speed real-time bus interface, the transmission rate is between 250MB/s and 63GB/s because the version of PCIe is continuously updated, so that the repeated pulse per second signal output delay is theoretically not more than 1 mu s, and microsecond time output of a computer can be realized.
Referring to fig. 2, the connection relationship between the computer 1 and the CH367 chip is further described: the WAKE# pin of the PCIe slot of the computer 1 is connected with the WAKE# pin of the CH367 chip and is used for controlling the WAKE-up work of the CH367 chip. The perst# pin of the PCIe slot of the computer 1 is connected with the perst# pin of the CH367 chip, and is used for realizing system reset of the computer 1 and the CH367 chip. The PECKP pin of the PCIe slot of the computer 1 is connected with the PECKP pin of the CH367 chip, the PECKN pin of the PCIe slot of the computer 1 is connected with the PECKN pin of the CH367 chip, and the PECKP pin and the PECKN pin jointly form the reference clock differential input of the CH367 chip. PETP pin of PCIe slot of computer 1 is connected with PERP pin of CH367 chip, PETN pin of PCIe slot of computer 1 is connected with PERN pin of CH367 chip, PERP pin and PERN pin jointly constitute the input of PCIe differential signal reception of CH367 chip. PERP pins of PCIe slots of the computer 1 are connected with PETP pins of the CH367 chip, PERN pins of the PCIe slots of the computer 1 are connected with PETN pins of the CH367 chip, and the PETP pins and the PETN pins jointly form a PCIe differential signal transmission output end of the CH367 chip.
Specifically, outputting the computer time signal carrying year, month, day, time, minute, and second in S3 while outputting the second pulse signal may include: and performing upward rounding of the second order of magnitude on the first time interval to obtain an integer interval, performing upward rounding of the second order of magnitude to omit numbers below the second order of magnitude, and adding 1 to the numbers corresponding to the second order of magnitude to obtain the integer interval. And then carrying out extraction calculation on the whole number interval of years, months, days, hours, minutes and seconds to obtain and output computer time signals carrying the years, months, days, hours, minutes and seconds. After the computer time signals carrying year, month, day, time, minute and second are obtained through extraction and calculation, the computer time signals are converted into a standard NMEA-0183 protocol format and are output through a serial port, and the NMEA-0183 protocol format output by the serial port is that 1 second outputs time information reaching the second level only.
It should be noted that, the second pulse signal may be output from three output pins of GPO, GPO0 and GPO1 of the CH367 chip, and the computer time signal carrying year, month, day, hour, minute and second may be output through a serial port, where the serial port may be a serial port of Windows, or may be output through an SPI of the CH367 chip first, and then converted into a serial port for output.
According to the microsecond time output method of the computer, a first time interval from the starting time to the current time is acquired, and the first time interval is in units of microseconds. And then, carrying out residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment. Finally, time delay is carried out according to the second time interval, so that a second pulse signal and a computer time signal carrying years, months, days, hours, minutes and seconds are output at the next whole second moment, microsecond time output of a computer can be further realized, the problem that time accuracy cannot be guaranteed due to millisecond time output of the traditional computer is solved, and the output computer time signal is high in accuracy and more accurate.
Example 2:
The embodiment is used for providing a computer microsecond time output system, as shown in fig. 3, where the output system includes:
An acquisition module M1, configured to acquire a first time interval from a start time to a current time; the starting moment is a preset value; the first time interval is in microseconds;
The residual operation module M2 is used for carrying out residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
The output module M3 is used for delaying according to the second time interval so as to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returns to the step of acquiring the first time interval from the start time to the current time.
Example 3:
although the time of the computer can be synchronized to the standard time through various time synchronization modes, no effective method is available at present for verifying the synchronization result, the time deviation between the computer and the standard time cannot be determined, and the time of the computer cannot be calibrated.
To solve this problem, this embodiment is used to provide a computer microsecond time calibration system, as shown in fig. 4, where the calibration system includes an external reference time source 4 and a time interval measurement instrument 5, the external reference time source 4 is communicatively connected to the start end of the time interval measurement instrument 5, the time interval measurement instrument 5 is communicatively connected to the computer 1, specifically, the computer 1 is communicatively connected to the bus chip 3 through the bus 2, and the bus chip 3 is communicatively connected to the stop end of the time interval measurement instrument 5.
The external reference time source 4 is used to generate a reference time signal and to transmit the reference time signal to the time interval measuring apparatus 5. The computer 1 is configured to control the bus chip 3 to generate a second pulse signal by using the output method in embodiment 1, and transmit the second pulse signal to the time interval measurement instrument 5, and specifically, the time interval measurement instrument 5 accesses the recurring output signal of the second pulse in any one of the three pins GPO, GPO0, GPO 1. The time interval measuring instrument 5 is used for measuring the time interval error between the start signal and the stop signal by taking the reference time signal as the start signal and the second pulse signal as the stop signal so as to obtain the time interval error below the second order, thereby achieving the purpose of calibrating the computer time signal. The calibration in this embodiment refers to calibration in the field of measurement and inspection and detection, and only gives time interval errors. As shown in fig. 5, which schematically shows a graph of the measurement results of the resulting time interval errors.
In addition, the present embodiment may further compare the computer time signal output in embodiment 1 with the standard time signal to obtain a time interval error of more than a second order, and the comparison method may be a direct observation method or an automatic comparison method using a time comprehensive measuring instrument.
Specifically, the time interval measuring instrument 5 may be a universal counter with a time interval measuring function, and the reference time signal generated by the external reference time source 4 is a standard second pulse signal.
In addition, the calibration system of the present embodiment further includes an external reference frequency source 6, and the external reference frequency source 6 is connected to the reference frequency input terminal of the time interval measuring instrument 5. The external reference frequency source 6 is used to generate a reference frequency signal that is used to calibrate the frequency of the time interval measuring apparatus 5, so that the measurement accuracy of the time interval measuring apparatus 5 can be improved.
The measurement uncertainty introduced by the time interval measuring instrument 5 and the external reference time source 4 adopted in the calibration system of the present embodiment is better than 1 μs, so that the time deviation calibration and measurement of the computer microsecond level can be realized. The pulse per second signal (1Pulse Per Second,1PPS) is output through the computer PCIe bus and the CH367 chip, and then is connected into the time interval measuring instrument 5 to be compared and measured with the standard time signal generated by the external reference time source 4, so that the time deviation is obtained, microsecond computer time deviation measurement and calibration are realized, the application of time frequency in various industries in China can be effectively promoted, and important guarantee is provided for the development of digital economy and high quality.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to assist in understanding the methods of the present invention and the core ideas thereof; also, it is within the scope of the present invention to be modified by those of ordinary skill in the art in light of the present teachings. In view of the foregoing, this description should not be construed as limiting the invention.
Claims (9)
1. A computer microsecond time output method, the output method comprising:
acquiring a first time interval from a starting time to a current time; the starting moment is a preset value; the first time interval is in microseconds;
Performing residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
Delaying according to the second time interval to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returning to the step of acquiring the first time interval from the starting time to the current time;
the step of delaying according to the second time interval to output a second pulse signal at the next whole second time specifically comprises the following steps:
According to the second time interval, carrying out time delay by utilizing SleepPerformUS functions, and outputting a second pulse signal after the time delay is finished; and after the delay is finished, the next whole second time is reached.
2. The output method according to claim 1, wherein when the computer adopts a Windows operating system, the acquiring the first time interval from the start time to the current time specifically includes:
calculating a third time interval from the initial time to the initial time of the Windows operating system;
acquiring a fourth time interval from the initial time to the current time;
and performing difference operation on the fourth time interval and the third time interval to obtain a first time interval from the starting moment to the current moment.
3. The output method according to claim 2, wherein the acquiring the fourth time interval from the initial time to the current time specifically includes:
a fourth time interval from the initial time to the current time is obtained by calling GETSYSTEMTIMEASFILETIME a function.
4. The output method according to claim 1, wherein after the second time interval is obtained, the output method further comprises:
judging whether the second time interval is larger than a preset time interval or not;
If not, returning to the step of acquiring the first time interval from the starting time to the current time until the second time interval is larger than the preset time interval.
5. The output method according to claim 1, wherein outputting the second pulse signal at the next full second time specifically includes: the second pulse signal is output by controlling the output pin level of the bus chip.
6. The output method according to claim 5, wherein the outputting the second pulse signal by controlling the output pin level of the bus chip specifically includes:
At the next whole second moment, utilizing the bus to control a plurality of output pins of the bus chip to be at a high level;
After the high level lasts for a preset time, the plurality of output pins are controlled to be low level by utilizing a bus; the high level and the low level output by the same output pin form a second pulse signal.
7. The output method according to claim 1, wherein the outputting the computer time signal carrying year, month, day, time, minute, second specifically comprises:
performing second-order upward rounding on the first time interval to obtain an integer interval;
and extracting and calculating the year, month, day, time, minute and second of the integer interval to obtain and output a computer time signal carrying the year, month, day, time, minute and second.
8. A computer microsecond-level time output system, the output system comprising:
The acquisition module is used for acquiring a first time interval from the starting moment to the current moment; the starting moment is a preset value; the first time interval is in microseconds;
the residual operation module is used for carrying out residual operation on the first time interval and one second to obtain a second time interval from the current moment to the last whole second moment; the one second is in microseconds;
The output module is used for delaying according to the second time interval so as to output a second pulse signal and a computer time signal carrying year, month, day, time, minute and second at the next whole second moment; and returning to the step of acquiring the first time interval from the starting time to the current time;
the step of delaying according to the second time interval to output a second pulse signal at the next whole second time specifically comprises the following steps:
According to the second time interval, carrying out time delay by utilizing SleepPerformUS functions, and outputting a second pulse signal after the time delay is finished; and after the delay is finished, the next whole second time is reached.
9. A computer microsecond level time calibration system comprising an external reference time source and a time interval measurement instrument; the external reference time source is in communication connection with the time interval measuring instrument; the time interval measuring instrument is in communication connection with a computer;
The external reference time source is used for generating a reference time signal and transmitting the reference time signal to the time interval measuring instrument;
the computer is used for generating a second pulse signal by using the output method of any one of claims 1-7 and transmitting the second pulse signal to the time interval measuring instrument;
The time interval measuring instrument is used for measuring time interval errors between the starting signal and the stopping signal by taking the reference time signal as the starting signal and the second pulse signal as the stopping signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110907493.7A CN113608574B (en) | 2021-08-09 | 2021-08-09 | Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110907493.7A CN113608574B (en) | 2021-08-09 | 2021-08-09 | Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113608574A CN113608574A (en) | 2021-11-05 |
| CN113608574B true CN113608574B (en) | 2024-06-11 |
Family
ID=78307624
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110907493.7A Active CN113608574B (en) | 2021-08-09 | 2021-08-09 | Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113608574B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114721249B (en) * | 2022-03-17 | 2024-01-23 | 齐鲁空天信息研究院 | Microsecond level singlechip timing device and method |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5274545A (en) * | 1990-01-29 | 1993-12-28 | The United States Of America As Represented By The Secretary Of Commerce | Device and method for providing accurate time and/or frequency |
| CN102088279A (en) * | 2010-11-30 | 2011-06-08 | 清华大学 | Digital delay trigger |
| CN102138298A (en) * | 2008-05-02 | 2011-07-27 | 北电网络有限公司 | Method and apparatus for time and frequency transfer in communication networks |
| CN102265237A (en) * | 2008-08-21 | 2011-11-30 | 克罗诺洛吉克有限公司 | Synchronisation and timing method and apparatus |
| CN103051409A (en) * | 2012-12-26 | 2013-04-17 | 中国电子科技集团公司第二十二研究所 | Shortwave channel synchronous device and shortwave channel synchronous switching control system |
| CN104320240A (en) * | 2014-11-03 | 2015-01-28 | 武汉科影技术科技有限公司 | Method and device for providing global clock in system |
| CN107566061A (en) * | 2017-08-23 | 2018-01-09 | 成都天奥技术发展有限公司 | Microwave second level time delay calibration system |
| CN108181889A (en) * | 2017-12-05 | 2018-06-19 | 南京国电南自电网自动化有限公司 | A kind of multiple signals synchronism output implementation method and device |
| CN110794426A (en) * | 2019-10-21 | 2020-02-14 | 泰斗微电子科技有限公司 | Cold start control method and device of receiver, terminal equipment and medium |
| CN112433536A (en) * | 2020-10-27 | 2021-03-02 | 一飞(海南)科技有限公司 | PPS second pulse clock calibration method, processor, storage medium and unmanned aerial vehicle |
| CN113110016A (en) * | 2021-04-12 | 2021-07-13 | 中国计量科学研究院 | Common-view data generation method, receiver and time calibration system |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7304521B2 (en) * | 2005-01-28 | 2007-12-04 | Altera Corporation | Delay circuit for synchronizing arrival of a clock signal at different circuit board points |
| TWI357721B (en) * | 2008-03-06 | 2012-02-01 | Holtek Semiconductor Inc | Oscillation tuning circuit and method |
| KR101855603B1 (en) * | 2013-10-30 | 2018-06-08 | 인텔 코포레이션 | A method, apparatus and system for measuring latency in a physical unit of a circuit |
| WO2020069009A1 (en) * | 2018-09-25 | 2020-04-02 | Synopsys, Inc. | Coherent observability and controllability of overlaid clock and data propagation in emulation and prototyping |
-
2021
- 2021-08-09 CN CN202110907493.7A patent/CN113608574B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5274545A (en) * | 1990-01-29 | 1993-12-28 | The United States Of America As Represented By The Secretary Of Commerce | Device and method for providing accurate time and/or frequency |
| CN102138298A (en) * | 2008-05-02 | 2011-07-27 | 北电网络有限公司 | Method and apparatus for time and frequency transfer in communication networks |
| CN102265237A (en) * | 2008-08-21 | 2011-11-30 | 克罗诺洛吉克有限公司 | Synchronisation and timing method and apparatus |
| CN102088279A (en) * | 2010-11-30 | 2011-06-08 | 清华大学 | Digital delay trigger |
| CN103051409A (en) * | 2012-12-26 | 2013-04-17 | 中国电子科技集团公司第二十二研究所 | Shortwave channel synchronous device and shortwave channel synchronous switching control system |
| CN104320240A (en) * | 2014-11-03 | 2015-01-28 | 武汉科影技术科技有限公司 | Method and device for providing global clock in system |
| CN107566061A (en) * | 2017-08-23 | 2018-01-09 | 成都天奥技术发展有限公司 | Microwave second level time delay calibration system |
| CN108181889A (en) * | 2017-12-05 | 2018-06-19 | 南京国电南自电网自动化有限公司 | A kind of multiple signals synchronism output implementation method and device |
| CN110794426A (en) * | 2019-10-21 | 2020-02-14 | 泰斗微电子科技有限公司 | Cold start control method and device of receiver, terminal equipment and medium |
| WO2021077588A1 (en) * | 2019-10-21 | 2021-04-29 | 泰斗微电子科技有限公司 | Method and apparatus for controlling cold startup of receiver, and terminal device and medium |
| CN112433536A (en) * | 2020-10-27 | 2021-03-02 | 一飞(海南)科技有限公司 | PPS second pulse clock calibration method, processor, storage medium and unmanned aerial vehicle |
| CN113110016A (en) * | 2021-04-12 | 2021-07-13 | 中国计量科学研究院 | Common-view data generation method, receiver and time calibration system |
Non-Patent Citations (1)
| Title |
|---|
| "基于多级放大结构的高速低功耗时间数字转换器设计";范传奇 等;《北京大学学报(自然科学版)》;20180228;第54卷(第2期);第299-306页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113608574A (en) | 2021-11-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4924468A (en) | Logic analyzer | |
| EP1347356A2 (en) | Instrument timing using synchronized clocks | |
| CN106850115A (en) | A kind of Multi-channel data acquisition synchronization system and method | |
| CN111585682A (en) | Sensor time synchronization method and device and terminal equipment | |
| AU2013204757A1 (en) | Synchronisation of a system of distributed computers | |
| CN106707736A (en) | Automobile instrument clock precision measuring method and automobile instrument clock precision measuring device | |
| CN216748451U (en) | High-precision time service precision measurement system | |
| CN113608574B (en) | Microsecond time output method, microsecond time output system and microsecond time output calibration system for computer | |
| CN103744284B (en) | A kind of two ends time synchronized triggering system for power transmission line parameter measurement and method | |
| CN107566199B (en) | Signal processing device and method and electronic equipment comprising same | |
| CN106788841A (en) | Synchronous net on-line monitoring system | |
| CN114499816B (en) | Clock synchronization method and device, terminal equipment and readable storage medium | |
| CN117294378A (en) | Clock synchronization method, device and system | |
| CN101123482B (en) | A device and method for testing sliding index in digital communication network | |
| CN110297794A (en) | Data communication system and method | |
| CN101136627B (en) | Method for automatically setting high-stability constant temperature crystal oscillator parameter | |
| CN109091756A (en) | A kind of artificial cochlea implanting device chip functions test platform | |
| CN111830429B (en) | A ground fault detection method and device for a power system | |
| CN118112400B (en) | Frequency testing method and frequency testing device of differential clock signal, and program product | |
| CN103941214B (en) | A kind of electronic type transformer checking system and method based on TDC | |
| CN109394193A (en) | A kind of method of ambulatory blood pressure logger real-time clock calibration | |
| CN102426414B (en) | Time checking method of electric energy quality monitoring system | |
| CN110601785A (en) | Rapid high-precision synchronization method for satellite time service | |
| CN119420447A (en) | A PTP timing test method, device, equipment and medium | |
| CN222232580U (en) | An ultra-high precision frequency and pulse number measurement device based on FPGA |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |