1. Technical Field
The present disclosure relates to test apparatuses and methods and, particularly, to a clock signal test apparatus and method.
2. Description of Related Art
Real-time clock (RTC) chips are used in computer systems to supply clock signals to the computer systems. Before shipment, the RTC chips must be tested to make sure the clock signals generated by the RTC chips are accurate. Ordinary test methods for testing clock signals of a RTC chip of a computer system are manual, which is very low in efficiency and the result may be inaccurate.
Referring to
The frequency generator 12 is to generate a clock pulse signal. The frequency regulator 14 is to receive the clock pulse signal and regulate the frequency of the clock pulse signal to match the RTC chip 16. The RTC chip 16 is to receive the regulated clock pulse signal from the frequency regulator 14 and supply an accurate time signal to the MCU 18. In other embodiments, if the clock pulse signal generated by the frequency generator 12 matches the RTC chip 16, the frequency regulator 14 can be omitted.
The MCU 18 is connected to the computer system 20, to receive a test command signal from the computer system 20. When the MCU 18 receives the test command signal, the computer system 20 retrieves a first current system time T1 of the computer system 20 and transmits the system time T1 to the MCU 18. The MCU 18 receives the system time T1 and sets a first current time of the RTC chip 16 equal to the system time T1 of the computer system 20 according to the test command signal. After a test interval (such as six hours), the computer system 20 outputs a time comparing command to the MCU 18 and retrieves a second current system time T2 of the computer system 20. When the MCU 18 receives the time comparing command, the MCU 18 retrieves a second current time T3 of the RTC chip 16 and transmits the time T3 of the RTC chip 16 to the computer system 20. The computer system 20 calculates an error M of the system time of the computer system 20 according to the system time T1, the system time T2 of the computer system 20, and the time T3 of the RTC chip 16. M is calculated as: M=[(T2−T3)/(T3−T1)]. Testers can determine whether the error M is within a standard range according to the result of the above formula. During the test interval, the testers can operate the computer system 20 or do another test for the computer system 20 as long as the computer system 20 is not turned off.
Referring to
In step SI, the computer system 20 outputs a test command signal to the MCU 18 and retrieves a first current system time T1 of the computer system 20.
In step S2, the MCU 18 receives the system time T1 and sets a first current time of the RTC chip 16 equal to the system time T1 of the computer system 20 according to the test command signal.
In step S3, after a test interval, the computer system 20 outputs a time comparing command to the MCU 18 and retrieves a second current system time T2 of the computer system 20.
In step S4, the MCU 18 receives the time comparing command and retrieves a second current time T3 of the RTC chip 16, and transmits the time T3 of the RTC chip 16 to the computer system 20.
In step S5, the computer system 20 calculates an error M of the system time of the computer system 20 according to the system time T1, the system time T2 of the computer system 20, and the time T3 of the RTC chip 16. M is calculated as: M=[(T2−T3)/(T3−T1)].
It is to be understood, however, that even though numerous characteristics and advantages of the present disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in details, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200910302954.7 | Jun 2009 | CN | national |