Brief Introduction to Fault Diagnosis Methods of Single Chip Microcomputer Application Circuit Board

Publisher:雅致书香Latest update time:2012-09-07 Source: 21IC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 Introduction
Single-chip microcomputers are widely used in the fields of instrumentation, intelligent household appliances, and industrial control, with their advantages of small size, low power consumption, flexible application, and high cost performance. Single-chip microcomputers are also widely used in new electronic equipment of our army. When these equipments fail, the fault can be located on the printed circuit board using the built-in self-test program. Therefore, the performance test and fault diagnosis of the circuit board have become the focus of equipment maintenance work. When we developed a general automatic test system for electronic equipment, we studied the test of PCB, especially the fault diagnosis of PCB with single-chip microcomputer (referred to as CPU board) as one of the difficult problems. The test and diagnosis of CPU board have similarities with ordinary digital circuit boards, and also have their own characteristics, because CPU board is a PCB board with bus structure, and the bus devices (such as RAM, ROM, etc.) in its bus structure complete different functions as the program instructions proceed, and the pin data information changes continuously as the program is executed, so it is generally tested by simulation method. Simulation test is to apply the simulator developed by single-chip microcomputer system to circuit board test. General simulation test methods include: processor simulation test, memory simulation test, bus cycle simulation test, DMA simulation test, etc. To test non-bus devices (such as logic devices, timing devices, etc.), isolation technology can be used to inject test excitation, collect the response of the corresponding nodes for online testing, functional testing, etc. By weighing the performance, type and test speed requirements of the CPU board of the equipment under test, we chose a method that combines processor simulation testing with automatic probe testing in the test system.
2 Test content and implementation method
The CPU board generally has a single-chip microcomputer, ROM, RAM, digital I/O and other IC devices. The CPU board under test is provided with a specific excitation signal by the test system, executes a dedicated test program, completes the test task, and generates an output signal at the output port of the circuit board. The test system collects the output signal and compares it with the expected signal to determine whether the function of the circuit board is normal. When the functional test fails, the test system uses a programmable probe to collect signals from the key nodes inside the circuit board, compares them with the predetermined data, isolates and displays the fault through the fault tree analysis program, and determines the fault to one or several devices. For non-bus logic and timing digital integrated devices that cannot be judged by the test program, the real-time simulation test method can be combined with the auxiliary IC fixture test method to perform fault diagnosis and locate the fault to a certain integrated device.
The following technical supports are needed to complete the performance test and fault diagnosis of the above-mentioned CPU board.
2.1 Processor simulation test technology
The working program carried by the circuit board itself cannot provide the test vectors required by the test system and complete the test tasks. Test developers need to compile the corresponding MCU program according to the working principle, circuit design and device types of the circuit board under test to implement complex test algorithms, and edit the MCU test program into a library. When the test operator performs a functional test on a specific circuit board, he first replaces the MCU on the board under test with the simulation head corresponding to the MCU on the board under test. The test system calls the developed MCU program and writes it into the emulator, then executes the emulator offline running state, and uses the simulation system to read/write the bus devices on the board under test to determine whether its function is normal. Because the current MCU simulation development and debugging technology has become increasingly mature, only a small improvement in the MCU emulator hardware and software supplied on the market can be applied to the general automatic test system. The advantages of processor simulation testing are: dynamic functional testing at the same working rate as the board under test; complex test algorithms can be implemented, and complex test patterns can be easily generated; the fault coverage rate of bus device testing is high; due to the use of mature market simulation technology, the development workload is less.
2.2 Programmable probe automatic detection technology
The programmable automatic probe can programmatically locate the detection point and pierce the protective layer to obtain the detection signal. It uses stepper motor open-loop control, and the motor drives the probe to complete the vector displacement. The pressure of the probe contacting the circuit solder joint is adjustable. This device has two working states: remote control and local. The programmable signal is implemented using the IEEE488 interface, and the detection signal is led out by a dedicated cable. When developing the PCB to be tested, first calibrate the physical position of the PCB to be tested on the program-controlled probe device, and generally select two calibration points for record; then determine the coordinate parameters of the selected node through manual assisted positioning, and its local function is used at this time: use the displacement key on the control panel to accurately locate the probe to the node to be tested; then execute its remote control function, and the computer accurately reads and records the coordinate parameters; call the test point coordinate parameters into the test program, calculate the distance between the test point and the current probe position, call the equipment's needle lift and displacement commands, locate the probe at the node to be tested, and then call the needle drop and relative displacement to scratch the coating program, control the matrix switch and measuring instrument to measure, and record the test data. Compared with the traditional manual detection method, this automatic detection method has a high degree of automation and fewer human faults. Compared with the needle bed, it has good versatility and relatively fast test speed, which adapts to the current development trend of high chip integration and intensive installation. However, when testing special-shaped PCBs, it is difficult to install and fix the circuit board and cannot be detected.

2.3 Real-time simulation test technology for digital integrated circuits
For non-bus devices that cannot be involved in processor simulation tests, auxiliary test fixtures can realize the detection of digital integrated circuits. In the test system, we abandon the traditional back drive technology and adopt the test method of real-time simulation of the working environment of circuit devices. We use the logical relationship and conditional function provided by the graphical programming tool to establish a simulation device library, synchronously inject the input information of the actual device under test into the input end of the simulation device, collect the output data of the actual circuit, and compare it with the simulation output after the input data is calculated by the logical relationship and conditional function, so as to detect the working performance of this integrated circuit. The simulation implementation of combinational logic devices is relatively simple. The simulation device can be constructed using mathematical logic formulas according to the function table. The output of the sequential circuit device is not only related to the input at the time, but also to the previous level of the circuit timing state. It needs to be memorized and represented by the storage circuit composed of the storage trigger. Therefore, its construction process needs to solve the problems of the initial state, storage and memory of the sequential circuit. We use HPVEE software for simulation and use its special function functions such as Math, Sample & Hold and ShiftRegister to realize the construction of the simulation device library.
This technology avoids the device damage that the back-drive technology may cause to the CMOS circuit, and expands the scope of application. The improved sawtooth artificial fixture enhances its ability to pierce the coating and reduces the test failure caused by poor contact. However, in the simulation test development work, the huge simulation device library takes up a lot of space, which may affect the running speed.
3 Example Analysis
The general automatic test system for electronic equipment is a new, high-performance integrated test system that integrates VXI bus technology and various test and diagnosis technologies. It is used to complete the performance test and fault diagnosis of new electronic equipment. The system hardware consists of a main control computer, a VXI chassis and card-type instruments, a programmable AC and DC power supply, a universal adapter, and a programmable probe locator; the software design platform selects HPVEE, the basic environment is Windows98, the programming language is HPVEE and VC++, and the Chinese platform is Chinese Star. The software structure mainly consists of five parts: the diagnostic information library of the tested device, the system editing and development software library, the system test diagnosis database, the system test diagnosis program set, and the tested device test diagnosis report. PCB detection and diagnosis is one of the main functions of the test system. The system structure for CPU board testing is shown in Figure 1.
The software testing process is shown in Figure 2. During the software design process, the performance test and fault diagnosis of the PCB board under test can be performed separately or continuously, and the fault diagnosis history record can be saved. The fault display uses the test point image display method to call the circuit diagram of the board under test and dynamically display the test nodes and the location of the fault isolation device.



In this test system, the core (single-chip microcomputer) of the CPU board is tested from the inside out, which not only improves the accuracy of fault diagnosis, but also improves the fault coverage of the test system. In addition, it is worth mentioning that the RAM test in this system adopts the k/n code extraction graphic method, and its test performance and test time basically meet the requirements of the tested weapons and equipment. The ROM test uses the original code comparison method, using the additional functions of the emulator to read the actual working program code on the tested board and compare it with the standard original program code saved by the system to obtain the diagnosis result. This method does not require the addition of hardware and software and is simple and easy.
At present, the development of test and diagnosis software for various equipment has been completed on this system. Through fault simulation experiments, typical faults of 13 single-chip microcomputer application circuit boards such as computer communication boards, information machine CPU boards, information machine communication boards, artillery terminal CPU boards, and communication boards can be correctly isolated by the test system.

Reference address:Brief Introduction to Fault Diagnosis Methods of Single Chip Microcomputer Application Circuit Board

Previous article:Design of a function generator based on single chip microcomputer
Next article:The production of kitchen timer based on AT89C2051 single chip microcomputer

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号