When you change the fuse configuration of the AVR and re-power on, and then try to use ISP to download, the prompt "Failed to enter programming mode" appears, etc. It is very likely that you have made a mistake in the fuse settings, causing the chip to not know which main frequency to use and unable to work properly (only limited to the case of internal RC oscillation).
The solution is:
1. Send it back to the chip service provider and ask them to help restore the chip
This is the easiest, but most time-consuming and most helpless method.
2. Use the programmer to restore the chip to factory settings
This method requires you to have a programmer. For detailed information on how to make a programmer, please refer to the post on the technical forum of this website: Using 89S51 to make a simple parallel programmer ATmega16 (Resurrecting ATmega16).
Supplement: On October 27, 2004, Rainbow Digital, a member of this website, provided a method to restore the chip by changing the fuse position in the Weihuang series programmer. For details, please go to the postscript and supplement at the end of this article.
3. Restore it by adding an external active crystal oscillator.
This method is the most feasible. It can recover most chips with wrong fuse positions. The connection method is as follows:
Recovery method:
Connect the active crystal oscillator shown in the figure above, re-power it on, and then use the ISP download cable to modify the wrong fuse position. After the modification is completed, turn off the power, remove the active crystal oscillator, and see if it has returned to normal.
There is another way. If there is no active crystal oscillator, you can use the clock of other working microcontrollers as an external crystal oscillator. Just connect the XTAL2 pin of the working microcontroller to the XTAL1 pin of the microcontroller with the wrong fuse setting. For example, if I use the AVR910 download cable, I can directly connect the clock output of AT90S2313 to the wrongly set chip to restore it. It is very convenient. (This method is provided by Rainbow Digital).
-------------------------------------------------- ----------------------------------
Postscript and Supplement (2004-10-27): Rainbow Digital, a member of this website, provides a method to restore the chip by changing the fuse position in the Weihuang series programmer.
As more and more chips are locked these days, there are no more chips available, so I have to take out the Weihuang 500A parallel programmer I bought before to study it. Because I have never found that the programmer has the option of changing the AVR configuration fuse (as shown below), I didn't have much hope.
After selecting the M16 chip in the 500A burning program, a dialog box popped up. In the past, I always looked at how to connect the AVR-2 adapter, and never paid attention to the words in the red box in the picture below.
After careful reading, I suddenly remembered that the configuration fuse interface in SLISP also has high and low byte bits, so I quickly opened it to have a look. Sure enough, the high and low bits and the extended bits correspond to fuses with different functions, as shown in the following figure:
Finally, I understand that the so-called fuse is actually a 3-byte memory. Different values represent different function settings. Therefore, the Weihuang series programmer only needs to manually modify the fuse address (the fuse address of different chips will be different) in the data buffer and then write it, as shown below:
For a detailed discussion, please refer to the forum post on this website: New Discovery: The True Face of Fuse and How to Change Fuse with Weihuang Series Programmer
-------------------------------------------------- ----------------------------------
Appendix 1: Brief information: Crystal, crystal oscillator and active crystal oscillator
A crystal is a piece of crystal (natural or artificial quartz) cut in a specific way (such as AT or BT), and the piezoelectric effect of the crystal is used as a frequency reference.
Add an oscillation circuit (such as Kleipzig, Colpitts, etc.) to complete a complete circuit function, and then package it, we call it an active crystal oscillator. Relatively speaking, a crystal without a circuit is called a passive crystal or a passive crystal oscillator.
Appendix 2: Fuse bit reference diagram for Mega8 chip using SL_ISP 1.3
8M internal RC oscillator
1M internal RC oscillator
Previous article:LED digital large screen display system based on single chip microcomputer
Next article:Design of VRAM Color LCD Module Based on Single Chip Microcomputer
- Popular Resources
- Popular amplifiers
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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWORLD University ---- Learn myRIO with me
- Classic MATLAB simulation model for parameter identification of three-phase asynchronous motor
- 900 yuan, looking to buy a DE1-SOC, no accessories are required [
- EEWORLD University Hall----Introduction to FPGA Peripheral Circuits (Intel Official Tutorial)
- From BLE to Mesh: Bluetooth's Path to the Internet of Things
- Guide to the Undergraduate Electronic Design Competition (Resource Download)
- Sensitivity of the robot
- My sharing of e-sports: A blessing in disguise
- LIS3MDL three-axis magnetometer package and code
- Regarding millimeter wave transceiver chips,