How can I know whether the microcontroller is still usable?

Publisher:星光曲折Latest update time:2013-03-04 Source: 21IC Keywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Keywords:MCU Reference address:How can I know whether the microcontroller is still usable?

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

TM1637 four-digit digital tube module driver (TM1637.h header file) 51 single-chip C language
TM1637 four-digit digital tube module is a 4-digit common anode digital tube (0.36 inches) display module with clock points. The driver chip is TM1637 and the driving mode is IIC. Therefore, only 2 signal lines are needed to enable the microcontroller to control the 4-digit 8-segment digital tube (the digital tube has
[Microcontroller]
TM1637 four-digit digital tube module driver (TM1637.h header file) 51 single-chip C language
51 MCU Series Serial 6 - Timer Initialization Supplement
In the previous section, we mentioned that timers are very important. For timers, it is just a simple initialization. As long as you understand this, the subsequent programming operations will be a piece of cake. Today, we will briefly supplement the timer initialization.   First, let’s talk about the basic structur
[Microcontroller]
How to learn microcontroller
We are often asked by MCU enthusiasts how to learn MCU? What are the steps to learn MCU? We have roughly summarized that the process of learning MCU can be divided into four stages: The first stage    is to browse the hardware part in the textbook first, and roughly understand the hardware structure of the MCU. Such
[Microcontroller]
Bluetooth timer switch APP software (with 51 single chip microcomputer reference program)
The APP sends characters from "1" to "7". For example, the first group of characters is "1". The second group of characters is "2". There are 7 groups in total. You can use the serial port assistant to test, and connect the computer to the Bluetooth module, as shown in Figure 1.   The microcontroller source program
[Microcontroller]
Bluetooth timer switch APP software (with 51 single chip microcomputer reference program)
51 MCU Study Notes 0 -- Programming Software Installation (Keil)
The previous article talked about simulation software, which is only for analog circuit simulation with or without a physical development board. However, the derogatory software is indeed indispensable, that is, Keil. I believe that many programming enthusiasts have come into contact with Keil software. Keil has 51 co
[Microcontroller]
51 MCU Study Notes 0 -- Programming Software Installation (Keil)
PIC16-bit microcontroller CAN (8) watchdog
The framework of the program has been completed. After turning on the watchdog, all that remains is to improve the program structure. According to the documentation, the watchdog is mainly about the configuration bits. Here is my configuration: _FWDT(WDTPOST_PS4096&WDTPRE_PR32&PLLKEN_OFF&WINDIS_OFF&FWDTEN_ON); /
[Microcontroller]
Electromagnetic relay control technology based on PIC16F87X single chip microcomputer
 Electromagnetic relay is a commonly used component in automatic control. It uses electromagnetic principle to realize an automatic switch that connects or disconnects one or a group of contacts. It is widely used in electronic equipment, instruments and automation equipment. However, in various automatic control equi
[Analog Electronics]
Electromagnetic relay control technology based on PIC16F87X single chip microcomputer
The structure and principle of 51 single chip microcomputer timer/counter
  Timer/Counter is abbreviated as Timer. Its main functions include generating various time intervals and recording the number of external events. It is one of the most commonly used and basic components in microcomputers. The 803l microcontroller has two 16-bit timer/counters: Timer 0 (T0) and Timer 1 (T1).   T0 is
[Microcontroller]
The structure and principle of 51 single chip microcomputer timer/counter
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号