Background of the Invention
This invention relates to self-diagnostic testing of electrical circuit boards and particularly to the production and presentation of self-diagnostic testing information on a circuit board so that the status of the circuit board can be determined using a commonly available electrical signal measuring device, such as a frequency measuring device.
A common type of electrical circuit board ("PCB"), employs an insulating substrate having patterned thereon a plurality of lines or "runs" of a conducting material, the runs forming an electrical signal path between locations on the board at which a lead or pin of an electrical component may be electrically joined, as by soldering. The substrate may be provided in layers, wherein a plurality of layers may include runs. The PCB may complete the manufacturing process in a defective condition, wherein two or more runs are shorted, or one or more runs is open.
The PCB is "loaded" with electrical components in another manufacturing process. The electrical components are typically placed on the PCB so that the pins thereof are positioned on pads which form terminations of the runs and are soldered in place. The loaded PCB ("PCA"), may also exhibit defects resulting from failures of the manufacturing process. Typically, these defects are solder shorts, generally across pins of the electrical components, and lifted pins, wherein a pin fails to make physical contact with its corresponding pad.
Further, the electrical components themselves contribute, typically, a large portion of the defects which result in a PCA that does not function within its the perimeters of its design. Although testing increases manufacturing cost, unless the defect rate is very low, it is generally cost efficient to test a PCA before installing the PCA into an electrical instrument.
Such testing is often done with the use of dedicated off-board test equipment which electrically contacts the PCA, subjects the PCA to various electrical stimuli and measures the electrical responses of the PCA thereto. Typically, the test particulars and sequences are controlled by a computer program ("diagnostic test software"). While testing by this method is relatively comprehensive and is capable of providing relatively detailed failure information ("resolution"), it is also relatively expensive and testing is generally limited to being performed at the location of the test equipment.
Another approach to testing a PCA is to employ an on-board processor to run diagnostic test software resident in on-board ROM ("on-board testing"). This method has the advantage of being portable and relatively inexpensive, generally with a trade-off in comprehensiveness and resolution.
Where a PCA includes a communications port for standard communication, such as an RS-232 interface, on-board testing may employ the port for output to a computer or other peripheral device of digital words that encode information describing the failure or providing direction as to the location of a defect. This method requires a relatively sophisticated and expensive peripheral device that is capable to read and display the data to a user.
Some PCA's, particularly low cost PCA's, will not be provided with a communications port for standard communications with a peripheral device. Moreover, they will often not be provided with a processor which provides for the requisite capability of asynchronous transmission and receiving, such as is normally provided by a UART.
Typically then, lower cost PCA's are provided with a test pin or a binary indicator, such as an LED, for outputting a single bit indication of whether the diagnostic test software has determined a failure or not. In addition to the board space lost to the pin or indicator, the method provides very little resolution.
It is possible, of course, to output serial data bits through the test pin in order to achieve greater resolution. However, again, this generally requires the use of relatively sophisticated or specialized devices for acquiring and reading the data.
Accordingly, there is a need for a novel method and apparatus for producing comprehensive self-diagnostic information from a circuit board and presenting it for analysis in a straight forward manner.
Summary of the Invention
The method and apparatus for producing self-diagnostic information from a circuit board of the present invention solves the aforementioned problems and meets the aforementioned need by providing a circuit board with self-diagnostic hardware and software which produces at a single output terminal on the circuit board a signal having a frequency representative of the status of the circuit board. The circuit board is provided with an on-board processor and an on-board ROM containing diagnostic test software, the diagnostic test software being adapted to implement a diagnostic test sequence comprising a plurality of tests, each test being adapted to electrically stimulate a portion of the circuit board, measure an electrical response of a portion of the circuit board and characterize the response as either acceptable or unacceptable. A frequency generator is adapted to produce an electrical signal having a predetermined frequency when an unacceptable response is determined, wherein the predetermined frequency corresponds substantially to the event within the diagnostic test sequence of a particular test for which an unacceptable response is determined. The frequency generator is electrically connected to an output test terminal for external connection to a frequency measuring device. Preferably, the frequency generator employs an existing digital clock and an existing ASIC on the circuit board in which has been included a circuit for dividing the digital clock frequency, for producing the plurality of frequencies. Preferably, a table is employed which indexes the predetermined frequencies with corresponding locations on the circuit board which are tested by the test associated therewith.
Therefore, it is a principal object of the present invention to provide a novel method and apparatus for producing self-diagnostic information from a circuit board.
It is another object of the present invention to provide such a method and apparatus that produces and presents the diagnostic information in the form of predetermined frequencies.
It is a further object of the present invention to provide such a method and apparatus that enables the status of a circuit board to be determined by measuring the frequency of a signal produced thereby.
It is still another object of the present invention to provide such a method and apparatus that employs a table which indexes the predetermined frequencies with corresponding locations on the circuit board which are tested by a test associated therewith.
It is yet another object of the present invention to provide such a method and apparatus that employs an existing on-board ASIC to provide the predetermined frequencies.
The foregoing and other objects, features and advantages of the present invention will be more readily understood upon consideration of the following detailed description of the invention, taken in conjunction with the following drawings.
Brief Description of the Drawings
FIG. 1 is a pictorial diagram of a preferred embodiment for an apparatus for producing self-diagnostic information from a circuit board according to the present invention.
Detailed Description of a Preferred Embodiment
Referring to FIG. 1, a preferred embodiment of an apparatus for producing self-diagnostic information from a circuit board according to the present invention employs, in a printed circuit assembly ("PCA") 10, a processor 12, a memory 14 which contains, inter alia, diagnostic test software, and a frequency generator 16. The PCA 10 ordinarily includes other electrical components C(l) . . . C(n) which may be integrated circuits, discrete components such as resistors and capacitors, or any other electrical component. After manufacture of the PCA 10, it is often desirable to electrically test the electrical components to verify that there are not (1) solder bridges; (2) solder shorts; (3) shorted runs; (4) open runs; or (5) any other electrical or software malfunction. The processor 12 generally has electrical continuity through runs or electrical components of the PCA 10 with many if not all of the electrical components. Testing of many if not all of the electrical components through use of the processor 12 and the diagnostic test software resident in the memory element 14 is typical of the art.
The diagnostic test software is adapted to implement a diagnostic test sequence comprising a plurality of individual tests, each individual test being adapted to electrically stimulate a portion of the PCA, measure an electrical response of the same portion or a desired other portion of the PCA and characterize the response as either acceptable or unacceptable (a "failure"). The portion of the PCA testing will generally be a location on the PCA which is in electrical continuity with or which resides at a pin or lead of one of the electrical components which it is desired to stimulate or at which it is desired to determine a response.
The frequency generator 16 produces at an output terminal 22 an electrical signal on command of the processor 12, the electrical signal comprising one of a set of substantially discrete predetermined frequencies or tones which correspond to individual tests within the diagnostic test sequence. The output predetermined frequency corresponds to an individual test for which a failure has been determined. Preferably, the diagnostic test software comprises N individual tests and the frequency output element 16 produces an associated N predetermined frequencies. However, the predetermined frequencies may be mapped to the individual tests in other than one-to-one correspondence. Moreover, the predetermined frequencies may be mapped to other features of the diagnostic test software, such as specific lines of code, or may be fewer in number than the number of individual tests without departing from the principles of the invention.
An outstanding feature of the invention is to take advantage of often existing on-board circuitry. For example, lower cost PCA's are often made so by custom integration provided by an Application Specific Integrated Circuit ("ASIC"). Moreover, digital circuit boards invariably include a single frequency generating means ("clock"). The PCA 10 for which the present invention is particularly well suited advantageously includes an ASIC 18 and a clock 20 which provide the mechanism employed by the frequency generator 16. However, the present invention may be carried out with additional components added to the PCA 10 if the PCA for which the invention is employed does not have an ASIC or a clock or other frequency generating means. The modification required to provide a PCA with frequency generating means will be readily apparent to one of ordinary skill in the art.
In the frequency generator 16, the ASIC is coupled to the clock 20 and includes circuitry that divides the clock to provide the plurality of predetermined frequencies. Preferably, there are N divisors for the N individual tests, the divisors providing for conveniently and predeterminedly spaced frequencies (such as substantially evenly spaced frequencies) which facilitate measurement thereof by an external frequency measuring device such as an inexpensive digital multi-meter (DMM) (not shown). However, it will be readily apparent to one of ordinary skill that the frequencies need not be substantially evenly spaced for practice of the invention. The frequency output element 16 is electrically connected to output terminal 22 for external connection to a frequency measuring device. It is an outstanding feature of the present invention that simple and inexpensive hardware, such as the DMM, may be employed to read the output of the element 16.
The frequency output, therefore, identifies an event, such as the conclusion of a particular individual test, in the test sequence at which a failure was determined. From an understanding of the circuit and of the test, a probable cause of a failure determined at a given event in the test sequence may be assigned to the location. Consequently, the frequency output may be employed as a code for the cause of failure and, moreover, of predetermined repair information to be associated therewith. Where the cause of failure is indeterminate or otherwise ambiguously related to a specific frequency, additional or different testing may be employed to provide greater testing resolution. In that event, the information gained by employing the invention may be used to focus a test designer's attention to particular testing areas around which a greater test resolution is appropriate or desired.
In an exemplary embodiment of the invention, the clock frequency is divided to provide predetermined frequencies in blocks of (1) 30 Mhz to 7.5 Mhz; (2) 2.53 Mhz; (3) 1.9 Mhz to 210 kHz; (4) 118 kHz; (5) 105 kHz - 31 kHz; (6) 5 kHz; and (7) 4 kHz to 1 kHz. An exemplary Table "T" , comprising sub tables 1 through 8 indexes the predetermined frequencies within these frequency blocks with pins of various electrical components, each frequency representing or coding the event in the diagnostic test sequence at which a failure is determined. Also included in the Table T is a description of the troubleshooting procedure recommended based thereon.
In the above, exemplary, embodiment of the invention, the highest frequencies are assigned to the first individual tests in the diagnostic test sequence, with lower frequencies being assigned to tests farther along in the sequence. However, the frequencies may be assigned in ascending order, in any order, or in no order without departing from the principles of the invention.
It is to be recognized that, while a specific method and apparatus for producing self-diagnostic information from a circuit board has been shown as the preferred embodiment of the invention, other configurations and steps could be utilized, in addition to configurations and steps already mentioned, without departing from the principles of the invention. For example, while a printed circuit assembly 10 has been described, the method and apparatus may be employed with any circuit construction, e.g., within an integrated circuit.
The terms and expressions which have been employed in the foregoing specification are used therein as terms of description and not of limitation, and there is no intention of the use of such terms and expressions of excluding equivalents of the features shown and described or portions thereof, it being recognized that the scope of the invention is defined and limited only by the claims which follow.