The fuse configuration of AVR microcontrollers is a place where AVR microcontroller beginners can easily make mistakes. In fact, as long as you pay attention to some matters, you can try to avoid the microcontroller from being locked. Even if the microcontroller is locked, you can use some methods to unlock it. This article describes some problems that occurred in the fuse configuration when I first came into contact with AVR microcontrollers.
1. The fuse position of AVR microcontroller is a unique feature, which can control the system clock, JTAG debugging, watchdog, chip encryption, etc. Figure 1 is the progisp software. For beginners who are not familiar with the fuse position, you can first remove the programming fuse check at 2, so that when programming, the fuse position will not be programmed, and the factory default settings of the microcontroller can be used. Click 1 to enter the fuse position configuration interface.
figure 1
Figure 2 shows the bit configuration method. Each bit here cannot be clicked at will, especially the low-bit fuse that controls the clock. Generally speaking, it is not safe to configure the bit directly. You must make sure that it is the fuse configuration you want. If you accidentally move one of the fuse bits, you can restore the fuse configuration by reading or defaulting. This way, it is safer after downloading the program.
Figure 2 Bit configuration
Figure 3 is the wizard mode, which has text instructions. Checking the box means making a selection, such as enabling the JTAG interface and enabling ISP programming. It is recommended not to touch these two. If both ISP programming and JTAG interface are turned off at the same time, the program cannot be downloaded. The most important thing is the configuration of the clock. Figure 4 shows that the newly purchased development board is generally equipped with a crystal oscillator. At this time, do not touch the clock selection casually. If there is an external crystal oscillator on the board, but you choose the internal RC oscillator, this will directly lock the microcontroller. Similarly, if an external crystal oscillator is selected, but there is no external crystal oscillator installed, the microcontroller will also be locked. Therefore, when configuring the clock, be sure to determine the clock mode.
Figure 3 Wizard mode
Figure 4 Clock
After confirming the fuse bit configuration, you can download the program. You may need to download the program multiple times when debugging. After the fuse is configured correctly for the first time, you can remove the fuse programming just in case.
2. How to unlock the MCU after it is locked
After the microcontroller is locked, there are generally several ways to unlock it.
The first one is a high-voltage programmer. Here you need to buy a high-voltage parallel programmer. Generally, beginners don’t have this thing.
The second method, if you have played with a 51 microcontroller before or have friends around you who have a 51 microcontroller, you can use the 51 microcontroller to unlock it, power the 51 microcontroller to make it work, bring out the ALE pin of the 51 microcontroller, and insert it into the XTAL1 pin of the AVR microcontroller crystal oscillator, click Auto in the progisp software, then the AVR microcontroller will be unlocked, and then you can configure the correct fuse position (this method has been successfully tested).
The third method is to use an active crystal oscillator. If you have an active crystal oscillator at hand, this is the most convenient way to unlock. Figure 5, the small dot is below, connect according to the diagram, connect OUT to XTAL1, and program under progisp to unlock directly. (Test successful)
Figure 5 Active crystal oscillator
In addition, square waves of more than 1M can be generated through an oscilloscope, and square waves can be generated through other microcontrollers. These methods have not been tried yet.
Figure 6
Supplement: Be sure to select the chip correctly, otherwise there will be an ID recognition error. If this happens, do not choose Yes, choose No, and then check the chip signal and line connection.
Previous article:An experience of AVR fuse burning and recovery - detailed analysis and solution
Next article:atmega328p set fuse bit, atmega328p flash
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- [RVB2601 Creative Application Development] 5. Solve the problem that W800 sometimes cannot connect to the Internet
- EEWORLD University - Key points of analog front-end design for power grid automation equipment and TI solutions
- RC522 domestic replacement actually only needs this operation, NFC near-field communication is completed
- Comparison and selection of various embedded memory technologies
- Things to note when splicing data
- 【GD32450I-EVAL】+ 08 Image Recognition-Color Object Tracking
- [AB32VG1 Development Board Review] Unsuccessful WiFi Communication
- ESD Tube
- I almost thought the 51 sector was dead
- 【TI recommended course】#TI millimeter wave radar technology introduction#