CN1310392A - Test method of interval timer inside computer system - Google Patents

Test method of interval timer inside computer system Download PDF

Info

Publication number
CN1310392A
CN1310392A CN 00102382 CN00102382A CN1310392A CN 1310392 A CN1310392 A CN 1310392A CN 00102382 CN00102382 CN 00102382 CN 00102382 A CN00102382 A CN 00102382A CN 1310392 A CN1310392 A CN 1310392A
Authority
CN
China
Prior art keywords
interval timer
cmos
computer system
periodic interruptions
testing
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.)
Granted
Application number
CN 00102382
Other languages
Chinese (zh)
Other versions
CN1171149C (en
Inventor
张有权
林光信
马劲柏
沈贤宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CNB001023829A priority Critical patent/CN1171149C/en
Publication of CN1310392A publication Critical patent/CN1310392A/en
Application granted granted Critical
Publication of CN1171149C publication Critical patent/CN1171149C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The test method is comparing the periodic interrupt frequency of one prompt CMOS clock inside computer and the interrup times of interval timer in the same time interval. The periodic interrupt frequency may reach the maximum 8192 Hz so that the test error of the interval time may be smaller than 1/8192 s. The present invention is used to test the accuracy of interval interrupt or the interval clock of the computer system.

Description

The method of testing of interval timer inside computer system
The present invention relates to the method for testing of a kind of computing machine (PC) internal system interval timer, being particularly related to a kind of periodicity (Periodic) of a computing machine (PC) internal system CMOS real-time clock pulse (R.T.C) of utilizing interrupts, as testing comparison, whether serve as normal and accurate accurately to test out this system interval clock with a number of times that computing machine (PC) system interval clock interruption (Interval Timer) takes place in the identical time.
The method of testing that present general test person is carried out in a computing machine (PC) interval timer inside (Interval Timer), whether often the neither one method can be tested this computing machine (PC) internal system interval timer (Interval Timer) exactly accurate.Usually just compare with this computing machine (PC) internal system CMOS real-time clock pulse (R.T.C), this kind method of testing can only make this interval timer (Interval Timer) be accurate to second; Or must could accurately measure the error of this interval timer (Interval Timer) by an other equipment (as: oscillograph); But, the method of testing of above-mentioned conventional techniques, and can't satisfy the high requirement of measuring accuracy, when by this other testing of equipment, just computer case must be taken apart the work that just can test, therefore, can't satisfy the requirement of measuring accuracy in conventional techniques, perhaps must utilize and take computer case apart just can carry out test job other equipment, all will cause the many puzzlements of tester, therefore, if can design a kind of method under the situation that does not increase any external unit, can test this computing machine (PC) interval timer inside (Interval Timer) easily and reach and satisfy the high requirement of measuring accuracy.
In view of the various shortcomings of above-mentioned conventional techniques, the invention provides the method for testing of a kind of computing machine (PC) internal system interval timer.
Purpose of the present invention, be in the method for testing that a kind of computing machine (PC) internal system interval timer is provided, this method is to utilize the periodicity (Periodic) of a computing machine (PC) internal system CMOS real-time clock pulse (R.T.C) to interrupt, as testing comparison with a number of times that computing machine (PC) system interval clock interruption (Interval Timer) takes place in the identical time, thereby can detect this internal system interval timer and whether meet the testing standard that sets, and can make test error less than 1/8192 second, effectively avoid conventional techniques can't satisfy the high requirement of measuring accuracy, perhaps must utilize computer case taken apart just and can carry out test job etc., and avoid the facts of many puzzlements that the tester is caused to take place.
For achieving the above object, the invention provides a kind of method of testing of interval timer inside computer system, this method is to utilize the periodic interruptions of an inside computer system CMOS real-time clock pulse, as testing comparison with a number of times that the computer system interval timer interrupts taking place in the identical time, the method of testing of this interval timer inside computer system is as follows: (one) at first, setting the maximum permission of this CMOS periodic interruptions error amount is p second, reaches the interruption frequency n that this interval timer will be measured; (2) setting this CMOS periodic interruptions frequency is x, is that the interruption of forbidding this CMOS takes place at this moment; (3) then, in the identical time, wait for the generation that this interval timer is interrupted, and the initial moment of counting to start with the moment of once interrupting taking place; (4) at this moment, allow this CMOS periodic interruptions to take place, and begin counting; (5) the cycle times m that accumulative total CMOS periodic interruptions takes place in the CMOS interrupt handling routine; (6) judge whether this interval timer interruption the interruption frequency n that will measure as this interval timer that sets takes place, if, continue the following step (seven), otherwise, step (five) returned; (7) forbid that this CMOS periodically interrupts taking place, and stop counting; (8) calculate poor that this CMOS periodic interruptions takes place and the interval timer interruption takes place, and judge whether in the maximum permission of the CMOS periodic interruptions error amount p scope of second, if, continue the following step (nine), if not, inform that then this interval timer of user is undesired, and to step (ten); (9) inform that this interval timer of user is normal; (10) finish the test of this interval timer.
For enabling to purpose of the present invention, shape constructing apparatus feature and function thereof, make further understanding and understanding, now in conjunction with the accompanying drawings, be described in detail as follows for embodiment:
Fig. 1 is a testing process synoptic diagram of the present invention.
Fig. 2 is the embodiments of the invention synoptic diagram.
Referring now to shown in Figure 1, the present invention is the method for testing of a kind of computing machine (PC) internal system interval timer, this method can be used for all tests that meet a computing machine (PC) the system interval clock (Interval Timer) of IBM PC standard, standard according to the IBM PC compatible, computing machine (PC) system interval clock interrupts (Interrupt) and should produce once every 55ms, frequency is 18.2Hz, and the inner CMOS real-time clock of this computing machine (PC) pulse (Real Timer Clock, hereinafter to be referred as R.T.C) periodic interruptions (Periodic Interrupt) can set up on their own by the user, and highest frequency can be 8192Hz, and promptly per second produces 8192 interruptions.
Method of testing of the present invention is to utilize the periodic interruptions of CMOS real-time clock pulse (R.T.C) (Periodic Interrupt), as testing comparison with a number of times that computing machine (PC) system interval clock interrupts taking place in the identical time, periodic interruptions frequency by CMOS real-time clock pulse (R.T.C) can be to 8192Hz, therefore, the test error that can make this interval timer (Interval Timer) was less than 1/8192 second, so, only need utilize the periodic interruptions of this CMOS real-time clock pulse (R.T.C), whether accurate, that is whether computing machine (PC) system interval clock (Interval Timer) is accurate if can measure the interruption of this computing machine (PC) system interval clock.
The present invention tests this computing machine (PC) internal system interval timer according to the following step:
(1) at first, setting the maximum permission of this CMOS periodic interruptions error amount by the user is p second (CMOS periodic interruptions error precision value reaches as high as 1/8192 second), reaches the interruption frequency n that this interval timer will be measured altogether;
(2) and set this CMOS periodically (Periodic) interruption frequency be x, be that the interruption of forbidding this CMOS takes place at this moment;
(3) then, wait for that in the identical time this interval timer interrupts the generation of (Interval Timer Interrupt), and the initial moment of counting to start with the moment of once interrupting taking place;
(4) at this moment, allow periodically (Periodic) interruption generation of this CMOS, and begin counting;
(5) the cycle times m that accumulative total CMOS periodicity (Periodic) is interrupted generation in the CMOS interrupt handling routine;
(6) judge whether this interval timer interruption the interruption frequency n that will measure as this interval timer that had before set has taken place, if, continue the following step (seven), otherwise, step (five) returned;
(7) then forbid the periodically interruption generation of (Periodic) of this CMOS, and stop counting;
(8) calculate CMOS periodic interruptions generating period number of times m divided by originally setting CMOS periodic interruptions frequency x (being m/x), interrupt frequency n with interval timer and interrupt the poor of 18.2Hz (being n/18.2) divided by original interval timer, and judge whether in the maximum permission of the CMOS periodic interruptions error amount p scope of second, if, continue the following step (nine), if not, inform that then this interval timer of user is undesired, and to step (ten);
(9) inform that this interval timer of user is normal;
(10) finish the test of this interval timer.
With reference to shown in Figure 2, the existing explanation according to method of testing of the present invention with an embodiment tested this computing machine (PC) internal system interval timer:
(1) at first, setting this CMOS by the user, maximum to allow periodic interruptions error amount be p=0.1 second, and this interval timer interruption frequency n=182 that will measure altogether (promptly test altogether 182/18.2=10 second);
(2) and set this CMOS periodically (Periodic) interruption frequency x be 8192Hz, be that the interruption of forbidding this CMOS takes place at this moment;
(3) then, wait for that in the identical time this interval timer interrupts the generation of (Interval Timer Interrupt), and the initial moment of counting to start with the moment of once interrupting taking place;
(4) at this moment, allow periodically (Periodic) interruption generation of this CMOS, and begin counting;
(5) cycle times that accumulative total CMOS periodicity (Periodic) interruption takes place in the CMOS interrupt handling routine is m=80281 time;
(6) judge that this interval timer interrupts (Interval Timer Interrupt) and whether the interruption frequency that will measure as this interval timer that had before set has taken place n=182 time, if, continuation the following step (seven), otherwise, step (five) returned;
(7) then forbid the periodically interruption generation of (Periodic) of this CMOS, and stop counting;
(8) calculate this CMOS periodic interruptions generating period number of times m=80281, divided by originally setting CMOS periodic interruptions frequency x is 8192Hz (being 80281/8192=9.8), interrupt frequency n=182 with interval timer, interrupt the poor of 18.2Hz (being 182/18.2=10) divided by original interval timer, and judge whether in the maximum permission of the CMOS periodic interruptions error amount p=0.1 scope of second, if, continue the following step (nine), if not, inform that then this interval timer of user is undesired, and to step (ten), calculating learns that this difference is 0.2 second, promptly exceeded in the limits of error value p=0.1 scope of second, this interval timer is undesired as a result to inform user's last test;
(9) inform that this interval timer of user is normal;
(10) finish the test of this interval timer.
So, can detect this computing machine (PC) internal system interval timer and whether meet the testing standard that sets, and can make test error less than 1/8192 second, effectively avoid conventional techniques can't satisfy the high requirement of measuring accuracy, perhaps must utilize computer case taken apart just and can carry out test job etc., the facts of many puzzlements that the tester causes is taken place.
In sum, the present invention is only in order to illustrate a possible embodiments of the present invention, and to one skilled in the art, when the variation that can carry out various equivalences to its thin portion shape, this variation all should be included in spirit of the present invention and the scope.

Claims (4)

1. the method for testing of an interval timer inside computer system, this method is to utilize the periodic interruptions of an inside computer system CMOS real-time clock pulse, as testing comparison with a number of times that the computer system interval timer interrupts taking place in the identical time, the method for testing of this interval timer inside computer system is as follows:
(1) at first, setting the maximum permission of this CMOS periodic interruptions error amount is p second, reaches the interruption frequency n that this interval timer will be measured;
(2) setting this CMOS periodic interruptions frequency is x, is that the interruption of forbidding this CMOS takes place at this moment;
(3) then, in the identical time, wait for the generation that this interval timer is interrupted, and the initial moment of counting to start with the moment of once interrupting taking place;
(4) at this moment, allow this CMOS periodic interruptions to take place, and begin counting;
(5) the cycle times m that accumulative total CMOS periodic interruptions takes place in the CMOS interrupt handling routine;
(6) judge whether this interval timer interruption the interruption frequency n that will measure as this interval timer that sets takes place, if, continue the following step (seven), otherwise, step (five) returned;
(7) forbid that this CMOS periodically interrupts taking place, and stop counting;
(8) calculate poor that this CMOS periodic interruptions takes place and the interval timer interruption takes place, and judge whether in the maximum permission of the CMOS periodic interruptions error amount p scope of second, if, continue the following step (nine), if not, inform that then this interval timer of user is undesired, and to step (ten);
(9) inform that this interval timer of user is normal;
(10) finish the test of this interval timer.
2. the method for testing of interval timer inside computer system as claimed in claim 1, wherein calculate poor that this CMOS periodic interruptions takes place and the interval timer interruption takes place, be divided by originally setting CMOS periodic interruptions frequency x with CMOS periodic interruptions generating period number of times m, be m/x, interrupt frequency n with interval timer and interrupt 18.2Hz, the i.e. poor gained of n/18.2 divided by original interval timer.
3. the method for testing of interval timer inside computer system as claimed in claim 1 or 2, wherein this CMOS periodic interruptions frequency x can be 8192Hz.
4. the method for testing of interval timer inside computer system as claimed in claim 1, wherein this method can be used for the test that all meet the computer system interval timer of IBM PC standard.
CNB001023829A 2000-02-21 2000-02-21 Test method of interval timer inside computer system Expired - Fee Related CN1171149C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001023829A CN1171149C (en) 2000-02-21 2000-02-21 Test method of interval timer inside computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001023829A CN1171149C (en) 2000-02-21 2000-02-21 Test method of interval timer inside computer system

Publications (2)

Publication Number Publication Date
CN1310392A true CN1310392A (en) 2001-08-29
CN1171149C CN1171149C (en) 2004-10-13

Family

ID=4576372

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001023829A Expired - Fee Related CN1171149C (en) 2000-02-21 2000-02-21 Test method of interval timer inside computer system

Country Status (1)

Country Link
CN (1) CN1171149C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092734A (en) * 2011-10-28 2013-05-08 株式会社东芝 Periodic error detection method and periodic error detection circuit
CN105893194A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Nanosecond testing method of computer real-time clock and system clock
CN109394193A (en) * 2018-11-27 2019-03-01 西安交大辰方科技有限公司 A kind of method of ambulatory blood pressure logger real-time clock calibration
CN111447333A (en) * 2020-03-09 2020-07-24 深圳震有科技股份有限公司 TDM bus fault detection method, device, equipment and readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092734A (en) * 2011-10-28 2013-05-08 株式会社东芝 Periodic error detection method and periodic error detection circuit
CN103092734B (en) * 2011-10-28 2015-07-29 株式会社东芝 Cycle error-detecting method and cycle error detect circuit
CN105893194A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Nanosecond testing method of computer real-time clock and system clock
CN109394193A (en) * 2018-11-27 2019-03-01 西安交大辰方科技有限公司 A kind of method of ambulatory blood pressure logger real-time clock calibration
CN109394193B (en) * 2018-11-27 2021-04-23 西安交大辰方科技有限公司 Method for calibrating real-time clock of dynamic blood pressure recorder
CN111447333A (en) * 2020-03-09 2020-07-24 深圳震有科技股份有限公司 TDM bus fault detection method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN1171149C (en) 2004-10-13

Similar Documents

Publication Publication Date Title
US6321341B1 (en) Method and apparatus for measuring the power consumption of a computer
JPWO2008072678A1 (en) Detection apparatus, system, program, and detection method
CN1014101B (en) Digital signal processor idle is measured and indicating equipment
CN1171149C (en) Test method of interval timer inside computer system
CN109375040A (en) A kind of state monitoring method, equipment and the system of H bridge capacitor group
CN101604276A (en) Universal serial bus testing method
CN100357758C (en) Terminal with position-measuring functions
CN108180895A (en) A kind of method based on height above sea level peak value measurement relative altitude
CN101201247A (en) Displacement measuring tool
CN114460360B (en) Detection method, system and device based on ammeter measurement current time integral
Gokhale et al. A non-homogeneous Markov software reliability model with imperfect repair
CN1216344C (en) Testing method of contact screen linerarity
TW436702B (en) Test method for interval timer of PC system
CN105786614A (en) Loading calculation method and loading calculation system for processor in electronic device
CA1149515A (en) Measuring apparatus
CN1945913A (en) Detecting system for relay protection fault and oscillation based on double CPU and its distinguishing method
CN2572474Y (en) Analog card device
JPH03158972A (en) Simulator
CN111830340A (en) Method and device for evaluating performance of relay protection device
JP2595718B2 (en) In-circuit emulator
Hall Windows CE 5.0 for real-time systems
RU2050588C1 (en) Method for control and debug of real-time programs and device for its implementation
JPH02210206A (en) Center indexing method for circle
CN1205551C (en) Warning method for imperfect burn-in system of burn-in recorder
JP4048470B2 (en) Physical quantity measurement display method and measurement display apparatus

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20041013

Termination date: 20110221