ICCAVR Introduction

Publisher:GoldenHarmonyLatest update time:2011-08-08 Keywords:ICCAVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Keywords:ICCAVR Reference address:ICCAVR Introduction

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

ICCAVR automatic download program description
ICCAVR software has ISP function, which can be completed by calling STK500. As long as the parameters are set, the chip can be programmed in ICCAVR. The program can also be automatically downloaded to the chip once it is compiled, which is very convenient. Set the path of STK500.exe in Tools- environment options- ISP.
[Microcontroller]
ICCAVR automatic download program description
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号