Introduction to ICCAVR
ICCAVR is a tool that uses ANSI standard C language to develop microcontroller (MCU) programs. It is an
integrated work environment (IDE) that combines an editor and a project manager. All source files are organized into projects, and file
editing and project construction are also completed in the IDE environment. Compilation errors are displayed in the status window.
When you click on the compilation error with the mouse, the cursor will automatically jump to the error line. This project manager can also directly generate INTEL HEX
format burning files and COFF format debugging files that can be debugged in AVR Studio.
Here I would like to mention the application construction wizard in ICCAVR. You can select "Application
Biulder" in the Tools bar or directly click the "Application Biulder" icon in the shortcut toolbar to open the application construction
wizard dialog box. You can set the chip type, the initial value of each port, whether to use timers, interrupts, UARTs, etc. as needed
. After selecting, click "OK" to get the required hardware initialization program segment, which is very reliable and convenient. Figure 1
shows an example of initializing UART:
The following are brief steps to create and compile a project file:
1. Create a new source file
Select new from the file menu to create a new file, enter the source program in the file, edit and modify it,
and then save it. When saving, you must specify the file type, such as naming it: try.c.
Steps to write a new file: First, use Biulder to initialize the required hardware resources, generate the initialization program,
and then write the required code to implement the required function.
2. Create a new project
Select the new command from the projrct menu, and the IDE will pop up a dialog box. In the dialog box, the user can specify
the folder where the project is stored and the name of the project. After creating a new project, three sub-directories will appear in the project manager window
, Files, Headers, and Documents. At this time, you can add the files to be compiled to the project.
3. Add files to the project
You can right-click in project-files and select the files to be added; you can also right-click in the editing window and
select the "Add To Project" command in the pop-up window.
4. Compile source files
Before compiling, pay special attention to selecting the chip corresponding to the hardware in Project Options. For example, in this experiment, select
ATMEGA8515, as shown in Figure 2.
Select make project in project, or directly click the shortcut key F9. At this time, if there is an error,
an error message will pop up. After modifying and debugging correctly, click the shortcut key ISP to burn it into the hardware.
Figure 3 shows the icons of several commonly used shortcut keys.
Previous article:The principle of temperature difference power generation
Next article:Classification of resistance strain gauges
Recommended ReadingLatest update time:2024-11-16 20:27
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- 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
- Definition of priority order of MSP430 microcontroller interrupts
- Discuss power supply and design issues
- Introduction to the working principles of accelerometers and gyroscopes, and AlgoBuilder Tool
- Talking about Flyback Converter
- CST Simulation Tutorial Document Collection
- AD/DA acquisition based on FPGA (attached source code)
- Phased Array Antenna Simulation Considering the Effect of TR Components
- Received a Children's Day gift from EEW
- STM32MP157A-DK1 review——by freebsder
- Difference between GaN and SiC