[background technology]
At electronic manufacturing field, often need the semi-manufacture circuit board is tested in the intermediate link of producing, test process often needs valuable testing apparatus and circuit board to be electrically connected, if circuit board under test has fault, the level of exporting to testing apparatus is too high, will make testing apparatus lose efficacy, damage, and changes testing apparatus and not only delays production, and need the upkeep cost of both expensive, additionally increased production cost of products.Chinese patent discloses a kind of overvoltage protection of test board for No. 02230708.7, is applied between circuit board under test and the testing apparatus, with the protection testing apparatus.The over-pressure safety device of this test board uses fuse and thyristor, thyristor conducting when overtension, electric current is excessive and blow a fuse, yet this scheme have many shortcomings: the adjustment that at first is the protection threshold values needs repetition test, and the consistance of fuse, thyristor is not fine, can only be rough adjustment; Secondly, the versatility of this protective device is bad, and different tested objects need be readjusted threshold values, the process complexity; In addition, the thyristor control utmost point is just conducting after obtaining high voltage, and then blown fuse protect not prompt enoughly, and subsequent conditioning circuit (comprising testing apparatus) still can be subjected to the overvoltage threat of moment before the protection action.
[summary of the invention]
For addressing the above problem, fundamental purpose of the present invention is to provide a kind of electric voltage exception protection device that is applied in the circuit board testing, when the electric voltage exception of circuit board under test output, plays the purpose of protection reliably, to prevent the inefficacy of testing apparatus; It is provided with simply, and versatility is good, can be applied in the circuit boards of test different types.
For achieving the above object, technical scheme of the present invention is:
A kind of electric voltage exception protection device that is applied in the circuit board testing, be connected between circuit board under test and the testing apparatus A/D converter between one of them contact that include relay, the single-chip microcomputer that is connected with relay, is connected in relay and the single-chip microcomputer and be connected the storer that single-chip microcomputer is used to store the outputting standard magnitude of voltage of circuit board under test; Two other contact of relay is respectively applied for and connects circuit board under test and testing apparatus.
Further, be connected with the detecting circuit that is used for the signal transformation that level changes is become the constant peak value level between described relay and the A/D converter, signal extracts peak value through detecting circuit, enters A/D converter again.
Further, described protective device also comprises the winding displacement seat that is provided with a plurality of pin and shows each pin level all normal LED light whether of measuring the winding displacement seat.
Compared to prior art, the present invention is applied to the electric voltage exception protection device in the circuit board testing, when the electric voltage exception of circuit board under test output, can play the purpose of protection reliably, with inefficacy, the damage that prevents testing apparatus; It is provided with simply, and versatility is good, can be applied in the circuit boards of test different types.
[embodiment]
See also shown in Figure 1; the electric voltage exception protection device that the present invention is applied in the circuit board testing is connected between circuit board under test and the testing apparatus, the A/D converter between one of them contact that include relay, the single-chip microcomputer that is connected with relay, is connected in relay and the single-chip microcomputer and be connected the storer that single-chip microcomputer is used to store the outputting standard magnitude of voltage of circuit board under test.Two other contact of relay is respectively applied for and connects circuit board under test and testing apparatus.Circuit board under test disconnects by relay with testing apparatus before the last electrical testing, and single-chip microcomputer reads circuit board under test voltage earlier by A/D converter behind the last electrical testing, if voltage in the scope of error permission then relay closes, board under test and testing apparatus connection; Otherwise, then disconnect.In order to obtain standard voltage value, should be introduced into learning state, then qualified board under test is powered on, single-chip microcomputer enters analog to digital converter by control gating signal each road voltage of gating successively, read the accurate magnitude of voltage of each road sign that qualified board under test is exported after by the analog to digital converter analog to digital conversion successively by the I2C bus, and be stored in storer, under test mode, contrasting with the test voltage value.Wherein, described relay is the relay of single-pole double-throw (SPDT).
Generally, there is multiple conducting wires to link to each other between circuit board under test and the testing apparatus, comprising power lead, ground wire, signal wire etc. are arranged.So protective device has a plurality of corresponding relays to switch, and the closing order of each relay can be set, and is all normal as each voltage of board under test, then connect ground, energized, connection signal line at last then on request earlier.
See also Fig. 2, shown in Figure 3, for having the situation of two relays, during the relay coil energising, contact 1 contacts closed with contact 2.Because the winding displacement of circuit board under test output often has ground wire, power lead, signal wire etc., and signal includes the signal of level constant and the signal (as clock) that level changes.Therefore increase detecting circuit the signal of level variation is transformed into constant peak value level (for example: low level is 0V, and high level is the clock signal of 5V, extracts peak value through behind the detecting circuit, exports constant 5V level) earlier, enter A/D converter again.As shown in Figure 3, this creation 8 pin level also being provided with the winding displacement seat CN5 of 8 pin and show measuring winding displacement seat CN5 all normal LED light D9 whether.The signal line of circuit board under test output is connected on the winding displacement seat CN5, if circuit board under test output winding displacement is 5 bit lines, and after being connected to CN5, suppose that the signal definition that each pin of CN5 is received is: 1 pin 5V, 2 pin SCL (high level is the I2C bus clock of 5V), 3 pin SDA (high level is the I2C bus data of 5V), 4 pin and 5 pin ground connection, other pin is unsettled.8 pin of winding displacement seat CN5 all enter detecting circuit separately in the time of test, export constant peak level, enter A/D converter through behind the electronic switch, the 1 pin peak level that single-chip microcomputer will read winding displacement seat CN5 is 5V, 2 pin, 3 pin peak level 5V, 4 pin are 0V to 8 pin peak levels.Which kind of signal each pin that so just need not to consider to enter winding displacement seat CN5 is, the winding displacement figure place be less than or equal 8 all can, thereby realized the versatility of this protective device.LED light D9 shows whether 8 pin level measuring winding displacement seat CN5 are all normal, and 2 pin of supposing winding displacement seat CN5 are 5V, and this signal can be connected to CN1 as trigger pip so, is connected to the trigger pip phase inverter.In test, circuit board under test powers on, winding displacement seat CN5 obtains the 5V high level and enters CN1, through giving 15 pin that input to single-chip microcomputer after the triode Q1 paraphase of trigger pip phase inverter, 15 pin of single-chip microcomputer are received the 500ms that delays time behind the negative edge, 8 constant peak value level that are input to level chip for driving IC3 after the time-delay are stable, single-chip microcomputer is then by switch level chip for driving IC3 electronic switch, read each road voltage through A/D converter, judge one by one whether each the pin level that is input to winding displacement seat CN5 is normal, if normally then LED light D9 is bright, each relay is by the closing order closure that sets, each pin of winding displacement seat CN5 just with corresponding having coupled together of each pin of output winding displacement seat CN4, be about to circuit board under test and couple together, to test circuit board under test with testing apparatus.If winding displacement seat CN5 pin level is undesired, for fear of threatening testing apparatus, then relay is all not closed, and LED light D9 does not work.Be connected to liquid crystal display as output display unit by winding displacement seat CN2, CN3, S1, S2 are button among Fig. 3, and display screen and button all are to be used to be provided with this protective device.Chip IC 2 is the A/D converter of I2C bus, and simulating signal is imported from 1 pin, and digital signal is by 9,10 pin (I2C bus) output.Chip IC 1 is the I2C bus driver, and the single-chip microcomputer access data is by 5,6 pin.Chip IC 5 can directly drive relay for driving the chip of relay behind the control level process IC5 of single-chip microcomputer output.And chip IC 3 is 8 to select 1 electronic switch, and 3 pin are output, and 9,10,11 pin are the channel selecting control pin.
When the circuit board under test of newtype, earlier enter learning state by operation push-button, qualified circuit board to be measured is logical to power on, then by " study " key, single-chip microcomputer reads the peak level that is input to each pin of winding displacement seat CN5 immediately, and be saved in the storer as standard voltage value, be used for each pin crest voltage of comparison during test and whether equal normal voltage, perhaps whether in the permissible error scope.
Most preferred embodiment described above only is that the present invention is set forth and illustrates, but is not limited to disclosed any concrete form, and it is possible carrying out many modifications and variations.