After opening the software, find New Project (left click)
The following dialog box appears
Select according to the mark in the figure, change the name and path by yourself, and click OK after the settings are completed. Enter the MCU selection dialog box and find the MCU model you are using.
Click OK
This completes the creation of a simple project.
As shown in the figure, you can write your own code in the AVR_IIC.c source file.
When you open the path you just specified, there will be the following files:
When our project is relatively large, we usually need to perform modular programming, so there will be multiple source files and header files. If these files are piled under the above files, the entire project will be very messy.
Here is a simple way to create a modular project:
When we create the project according to the above method, the Create two more folders as shown below. The method is to go to AVRGCC1->right click->add->new folder. At this time, two new folders will appear in the folder directory. We can directly put the existing source files into the source folder, put the existing header files into the include folder, and then right-click in the corresponding folder under You can also right-click the corresponding file to create a new file. The final result will look like this: Next we need to associate the header file path Click the button marked below A new interface will open, as shown below. Add the header file path we just created as shown in the yellow mark in the figure, and the association can be completed after saving. Next, we click the Compile button to compile the project. The .HEX file generated after compilation (in the Debug folder) is the file we want to download to the microcontroller.
Previous article:Building an AVR MCU C language development environment under Linux
Next article:avrstudio5 relay
- 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
- 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 does the SPI bus work?
- Xiaomi Mi Band 3 Disassembly
- 17 "Ten Thousand Miles" Raspberry Pi Car——VSCode Learning (Compiling and Debugging)
- MOS tube VBE1606\VBN1603 in the design of driving circuit of medical temperature control blanket control system
- Could you please tell me what brand this chip is?
- A few questions about 4G signal indicators. In what range are these values considered good signal quality? In addition, some experts have suggested directly...
- Chip company recruitment: power hardware engineer
- C6000 DSP code online compilation problem
- Research on the information performance advantages of Suruide in-vehicle Ethernet hardware and applications
- [Synopsys IP Resources] Prototyping as a Service (PaaS): Breaking through chip design process bottlenecks and simplifying the path to innovation