< br >
1.? Check the power supply: Directly use a multimeter to measure the levels of VCC and GND and check whether they meet the requirements. If the VCC deviates too much from 5V or 3.3V, check the output of the 7805 or other voltage regulator or filter circuit.
< br >
2.? Check the crystal oscillator ? This I also do not know how to check the crystal vibration is good or bad, my method is more soil: generally change a few crystal vibration on the power to try, anyway, quartz crystal vibration is not worth a lot of money:)
< br >
3.? Check the RESET pin level logic, pay attention to whether the model used is a high level reset or a low level reset, if the MCU has been repeatedly reset state, ha ha, the result is self-evident.
< br >
4.? Also check the EA pin if the program is designed to run from an extended external ROM.
< br >
5.? Check whether the MCU is damaged or the flash cannot be downloaded, it is best to try a new chip.
< br >
6.? If the above points are OK, it is reasonable to say that the hardware should run normally (in case, you can also write a shorter parallel port lighting program to test the smallest system)... If the test program runs properly. It is basically determined that the problem is the control program, in keil repeatedly trace the debugger, pay attention to the working register group, accumulator, DPTR, etc., after calling the subroutine is expected.
< br >
How to judge the quality of ic chip
< br >
First, no road detection
< br >
This method is carried out when the ic is not welded into the circuit, under normal circumstances, a multimeter can be used to measure the positive and reverse resistance values between each pin corresponding to the ground pin, and compare with the intact ic.
< br >
Second, on the road detection
< br >
This is a multimeter to detect the DC resistance of each ic pin in the circuit (ic in the circuit), AC and DC voltage to ground and the total working current detection method. This method overcomes the limitation of substitutable ic and the trouble of disassembling ic by substitution test method, and is the most common and practical method for detecting ic.
< br >
2. Dc operating voltage measurement
< br >
This is a way to measure the DC supply voltage and the working voltage of peripheral components by using a multimeter DC voltage block in the case of power-on. Detect the DC voltage value of each ic pin to ground, and compare with the normal value, and then compress the fault range to find the damaged component. Note the following eight when measuring:
< br >
(1) The multimeter should have a large enough internal resistance, at least more than 10 times the resistance of the measured circuit, so as not to cause large measurement errors.
< br >
(2) The potentiometer is usually rotated to the middle position, if it is a TV, the signal source should use a standard color bar signal generator.
< br >
3) The stylus or probe should take anti-slip measures. Because any instant short circuit is easy to damage the ic. The following methods can be taken to prevent the sliding of the pen: take a bicycle valve core set on the nib of the watch, and grow the nib of the watch about 0.5mm, which can make the nib of the watch well in contact with the test point, and can effectively prevent slipping, even if it hits the adjacent point, it will not short circuit.
< br >
(4) When a certain pin voltage is not consistent with the normal value, it should be analyzed according to whether the pin voltage has an important impact on the normal operation of the ic and the corresponding changes in other pin voltages, and the ic can be judged.
< br >
(5) ic pin voltage will be affected by peripheral components. When the peripheral components have leakage, short circuit, open circuit or variable value, or the peripheral circuit is connected to a potentiometer with variable resistance value, the position of the potentiometer sliding arm is different, and the pin voltage will change.
< br >
(6) If the ic each pin voltage is normal, the ic is generally considered normal; If the ic part of the pin voltage is abnormal, you should start from the maximum deviation from the normal value, check the peripheral components have no fault, if there is no fault, the ic is likely to be damaged.
< br >
(7) For dynamic receiving devices, such as television sets, the ic pin voltage is different when there is no signal. If it is found that the pin voltage should not change but change greatly, and the change with the signal size and different positions of the adjustable element does not change, the ic damage can be determined.
< br >
(8) For devices with multiple working modes, such as video recorders, the ic pin voltage is also different under different working modes.