PMU electrifying timing sequence testing device and method
[technical field]
The present invention relates to the test devices and methods therefor of a kind of computer motherboard, specifically refer to PMU when powering on
Sequence test device and method.
[background technology]
PMU(power management unit), Power Management Unit, is a kind of highly integrated, pin
Power management scheme to portable use, if will Ganlei's Power Management Devices of traditional discrete be incorporated into
Within single encapsulation, so can realize higher power supply conversion efficiency and more low-power consumption, and less group
Number of packages is to adapt to the plate level space reduced.The electrifying timing sequence of PMU CPU to be coordinated (system level chip),
The electric sequence of some voltage and between time interval have precedence relationship and time requirement.
At present, mainly observation oscilloscope is used to detect the power supply (powering on) of PMU chip by test man
Sequential, efficiency is the lowest, and accuracy also difficulty is guaranteed.
In view of this, the present inventor furthers investigate for the defect of prior art, and has this case to produce.
[summary of the invention]
One of the technical problem to be solved is to provide a kind of simple efficient PMU electrifying timing sequence
Test device.
The two of the technical problem to be solved are to provide a kind of simple efficient PMU electrifying timing sequence
Method of testing.
The present invention solves one of above-mentioned technical problem by the following technical programs:
PMU electrifying timing sequence testing device, including PMU to be measured and for the SOC tested, described in treat
Two the power supply output pins surveying PMU are connected to the two of described SOC respectively by a level sensitive circuit
Individual interruption detects foot;
Described level sensitive circuit includes one first resistance, one second resistance, one the 3rd resistance, a NPN
Audion;Each power supply output pin of described PMU to be measured connects described first resistance, described first electricity
The resistance other end divides two-way, and a road is connected to the base stage of described NPN audion, and another road connects described second
Resistance, described second resistance other end ground connection;The grounded emitter of described NPN audion, described NPN
The colelctor electrode of audion divides two-way, and a road is connected to the interruption detection foot of described SOC, and another road is connected to
Described 3rd resistance, the described 3rd resistance other end is connected to power supply;
Described SOC, is judged by the change in voltage detecting described NPN transistor collector respectively accordingly
Sequential, described SOC receives interruption, then records in call back function when each road is interrupted interrupting
System time, is stored in record array, all interruptions be carried out after by array data and preset data ratio
Relatively, it is judged that the correctness of described PMU electrifying timing sequence to be measured.
The present invention solves the two of above-mentioned technical problem by the following technical programs:
Use the electrifying timing sequence method of testing of above-mentioned PMU electrifying timing sequence testing device, comprise the steps:
Step 1: the GPIO of SOC is set to fracture in trailing edge, interrupt counter count clear 0, time
Between record array timeDate [] clear 0;
Step 2: power on to PMU to be measured;
Step 3: time delay 1 microsecond, time++;
Step 4: judge Count >=to be measured need to survey power supply number n?It is to proceed to step 5, no, proceed to
Step 6;
Step 5: compare timeDate [] whether in set point, be then to proceed to step 7, no, then
Proceed to step 8;
Step 6: judge time > timeouts value?It is to proceed to step 8, no, forward step 3 to;
Step 7:PMU electrifying timing sequence is qualified, and ret=SUCCESS proceeds to step 9;
Step 8:PMU electrifying timing sequence is defective, and ret=ERROR proceeds to step 9;
Step 9: terminate test.
It is an advantage of the current invention that: utilize the interrupt pin of test board processor to detect the electricity of PMU to be measured
Source output timing, while testing efficiency is greatly improved, also ensure that the accuracy of test.
[accompanying drawing explanation]
The invention will be further described the most in conjunction with the embodiments.
Fig. 1 is the hardware architecture diagram that the present invention tests device.
Fig. 2 is method of testing schematic flow sheet of the present invention.
[detailed description of the invention]
As it is shown in figure 1, PMU electrifying timing sequence testing device, including PMU to be measured and for testing
Two power supply output pins of SOC, PMU are detected by the first level sensitive circuit, second electrical level respectively
Circuit is connected to two interruption detection feet of SOC.
First level sensitive circuit includes resistance R1, R2, R3, NPN audion Q1;Its of PMU
In power supply output pin connect resistance R1, the resistance R1 other end divides two-way, and a road is connected to NPN
The base stage of audion Q1, another road connects resistance R3, resistance R3 other end ground connection;NPN audion
The grounded emitter of Q1, the colelctor electrode of NPN audion Q1 divides two-way, and a road is connected in SOC
Disconnected detection foot, another road is connected to resistance R2, and the resistance R2 other end is connected to power supply.
Second electrical level testing circuit includes resistance R4, R5, R6, NPN audion Q2;Its of PMU
In power supply output pin connect resistance R4, the resistance R4 other end divides two-way, and a road is connected to NPN
The base stage of audion Q2, another road connects resistance R6, resistance R6 other end ground connection;NPN audion
The grounded emitter of Q2, the colelctor electrode of NPN audion Q2 divides two-way, and a road is connected in SOC
Disconnected detection foot, another road is connected to resistance R5, and the resistance R5 other end is connected to power supply.
When SOC judges corresponding by the change in voltage detecting described NPN transistor collector respectively
Sequence, described SOC receives interruption, then records system when each road is interrupted in interrupting call back function
Time, being stored in record array, array data is compared after being carried out by all interruptions with preset data,
Judge the correctness of described PMU electrifying timing sequence to be measured.
Concrete PMU electrifying timing sequence method of testing is as in figure 2 it is shown, comprise the steps:
Step 1: the GPIO of SOC is set to fracture in trailing edge, interrupt counter count clear 0, time
Between record array timeDate [] clear 0;
Step 2: power on to PMU to be measured;
Step 3: time delay 1 microsecond, time++;
Step 4: judge Count >=to be measured need to survey power supply number n?It is to proceed to step 5, no, proceed to
Step 6;
Step 5: compare timeDate [] whether in set point, be then to proceed to step 7, no, then
Proceed to step 8;
Step 6: judge time > timeouts value?It is to proceed to step 8, no, forward step 3 to;
Step 7:PMU electrifying timing sequence is qualified, and ret=SUCCESS proceeds to step 9;
Step 8:PMU electrifying timing sequence is defective, and ret=ERROR proceeds to step 9;
Step 9: terminate test.
The present invention utilize the interrupt pin of test board processor to detect the power supply output timing of PMU to be measured,
While testing efficiency is greatly improved, also ensure that the accuracy of test.
The foregoing is only the present invention preferably implements use-case, is not intended to limit the protection of the present invention
Scope.All within the spirit and principles in the present invention, any amendment, equivalent and the improvement made
Deng, should be included within the scope of the present invention.