First, you should confirm whether the power supply voltage is normal. Use a voltmeter to measure the voltage between the ground pin and the power pin to see if it is the power supply voltage, such as the commonly used 5V. Next, check whether the reset pin voltage is normal. Measure the voltage values when the reset button is pressed and released to see if they are correct. Then check whether the crystal oscillator is oscillating. Generally, an oscilloscope is used to view the waveform of the crystal oscillator pin. Note that the "X10" position of the oscilloscope probe should be used.
Another way is to measure the IO port level in the reset state. Press and hold the reset button, and then measure the voltage of the IO port (except the P0 port that is not connected to the external pull-up) to see if it is a high level. If it is not a high level, it is mostly because the crystal oscillator has not started. Another thing to note is that if you use the on-chip ROM (this is the case in most cases, and now there are very few people who use external expansion ROM), you must pull the EA pin high, otherwise the program will run around. Sometimes it works with the emulator, but it doesn't work when burning into the chip. It is often because the EA pin is not pulled high (of course, the crystal oscillator does not start oscillating is also one of the reasons). After checking the above points, the fault can generally be eliminated. If the system is unstable, it is sometimes caused by poor power supply filtering. Connecting a 0.1uF capacitor between the power pin and the ground pin of the microcontroller will improve it. If the power supply does not have a filter capacitor, you need to connect a larger filter capacitor, such as 220uF. When the system is unstable, you can try to connect a capacitor (the closer to the chip, the better).
In addition, you must be patient when debugging the system, calm down and adjust it bit by bit, and don't be anxious.
Previous article:The process of microcontroller executing instructions
Next article:Summary of matters needing attention in single chip microcomputer design
Recommended ReadingLatest update time:2024-11-17 05:30
- Popular Resources
- Popular amplifiers
- Wireless Sensor Network Technology and Applications (Edited by Mou Si, Yin Hong, and Su Xing)
- Modern Electronic Technology Training Course (Edited by Yao Youfeng)
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- A brief analysis of the power amplifier in RF chips
- 【ST NUCLEO-G071RB Review】_04_UART Experiment
- ELT8629 chip
- MicroPython driver for non-volatile memory
- Comic: The Principle of Antenna
- Shenzhen Youming Technology Recruitment: Motor Software Engineer, Hardware Engineer, Algorithm Engineer, Assistant Engineer, Finance, etc.
- This week's highlights
- The 5G era is coming, why not put a 1080p display in your pocket?
- Download the white paper "Magnetic scale-based magnetoresistive sensor systems" to learn about the various applications of AMR position sensors
- Anlu SparkRoad domestic FPGA evaluation [Problem feedback] The top-level file suddenly disappeared