The AVR microcontroller ATmega16 was used in the project. The editing and compiling environment during the learning process was ICCAVR, and the parallel port downloader and PonyProg2000 software were used to download the program. When the project was almost done, considering that if I wanted to debug the program on site and still use the parallel port downloader, I would have to bring a desktop computer or buy an EXPRESSCARD, which would be very inconvenient, so I considered using a laptop. Later, I bought an AVR two-in-one tool from Shenzhen Yanxue Electronics Co., Ltd. After installing the USB driver and AVR Studio software according to the CD information, connect the AVR two-in-one tool to the computer USB port and the target board, open the AVR Studio software, click the button on the toolbar, and the following dialog box will appear:
Click the Connect button and the following dialog box appears:
Then click the Program button in the Flash group and the following dialog box will appear:
We can see that Entering programming mode.. FALILED! is displayed in the history operation window, which indicates that we have failed to enter the programming mode.
Then I searched the Internet to find out the reason and see if there were any friends who had the same problem as me. But the posts I saw only asked questions, but no one solved the problem. Then I searched the website of Shenzhen Yanxue Electronics Co., Ltd.! I found a very crucial sentence, haha.
The download line needs to operate the reset pin to achieve synchronization, so when designing the target board, do not make an external reset and watchdog circuit. The AVR already has a hardware watchdog, so a pull-up resistor is enough.
Then I removed the reset capacitor and the problem was solved. Later I found that replacing the reset capacitor with 100uf/16V would not cause the above problem.
Previous article:AVR MCU Locking Problem
Next article:Why choose AVR microcontroller
- 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
- MicroPython Hands-on (24) - Expanding the Control Panel with the Control Panel
- [Flower carving hands-on] Interesting and fun music visualization series of small projects (14) --- water cup and bottle lamp
- Does TMS320C6748 support TFTP instance in stareware?
- Asynchronous Serial Transceiver Design Report.docx
- Design of robotic arm gesture tracking and voice control system
- A new trend in home appliances, PI opens up your new life in home appliances! Download product information and answer questions to win prizes!
- Voltage acquisition circuit
- Problems with IO pin configuration when STM32 is low power
- Lei Jun: Young people should not make suggestions on strategy and business within six months of joining the company, as many of their ideas are unreliable!
- The baby was born--received a special care from the forum