Everyone knows that ICC-AVR cannot debug code, and many people choose AVRStudio, but AVR Studio is not intuitive, especially when debugging LCD display code, you cannot see the display status in real time, and the emulator is too expensive, which is not realistic for most beginners.
Steps:
1. Create a new ICC-AVR project and save it in the project folder.
2. Design compilation options
3. Compile and generate debug files
4. Open proteus to create a simulation circuit diagram
5. Load the debugging file to the atmega16L microcontroller
6. Save the proteus simulation file in the same folder as the ICC-AVR project file and save it with the same file name.
7. Open the saved proteus file again and start debugging.
8. If the code box is not displayed when debugging, open the tab shown below.
9. When debugging, you can choose options such as full-speed execution and single-step debugging.
10. Finally, here is the full picture of debugging for everyone to see.
At this point, everyone should understand how to use proteus to debug ICC-AVR code.
Previous article:Design of ozone therapy device based on AVR microcontroller
Next article:Design of remote temperature difference cycle controller based on ATmega16
Recommended ReadingLatest update time:2024-11-16 19:55
- Popular Resources
- Popular amplifiers
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Single chip microcomputer control technology (Li Shuping, Wang Yan, Zhu Yu, Zhang Xiaoyun)
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
- How to use common mode chokes in signal lines to eliminate common mode noise
- EEWORLD University ---- Python 3 video tutorial
- [Rivet RVB2601 Creative Application Development Competition] Participation Award Prizes
- CCS5.5 compiler optimization issues
- Is there anyone who knows PGA460? My circuit diagram is based on PGA460PSM, but I can't get any measurement results.
- How does AD import the complete content of a DWG file, or how does AD apply copper in a ring-shaped strip area?
- 5G mobile phones bring huge opportunities to RF front-end
- About the equivalent series resistance problem
- stm32 controls LCD1602 display, but the screen always displays two blank spaces, and the letter p is displayed as the letter r. Can you guys see what the problem is?
- ESP32 Simulator