您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > C/C++资料 > Icc AVR C编译器的使用
IccAVRC-1-(,);,199,ICCAVR,1380,ICE-200(2200),3200/ImageCraftICCAVR1SETUP.EXEabcSETUP.EXEdabdrive:\setup.exedrivecd1302ICCAVRIccAVRC-2-://:vectornumberfunc2:vector...func1func2retiretvectornumber#pragmactaskfunc1func2...RTOSRTOS#pragmatext:name#pragmadata:dataEEPROMEEPROM#pragmaabs_address:addressaddress#pragmaend_abs_addressC++(Project-Options-Compiler)C++//(Project-Options-Compiler)0b1|0*0b1010121asm(string)4IccAVRC-4-:4//4funcICCAVRIARinterrupt[vector_name]func()//vector_nameIARCIARflashFLASHICCAVRconstIARICCAVRICCAVR1IDEProjectOpen\icc\examples.avrledled.cProjectOptionsTargetProjectMakeProjectIDE\icc\examples.avrled.hexINTELHEXAVRMCUCOFFAVRStudioProjectOptionsCOFFIDEled.cProjectMakeProjectIDECProjectNewfoo.prjfoo.hexfoo.cof(C)BuildIDEATMELAVRStudioCOFFATMELAVRStudioIccAVRC-5-*LED*/voidDelay(){unsignedchara,b;for(a=1;a;a++)for(b=1;b;b++);}voidLED_On(inti){PORTB=~BIT(i);/*LED*/Delay();}voidmain()4{inti;DDRB=0xFF;/*B*/PORTB=0xFF;/*BLED*/while(1){/*LED*/for(i=0;i8;i++)LED_On(i);/*LED*/for(i=8;i0;i--)LED_On(i);/*LED*/for(i=0;i8;i+=2)LED_On(i);for(i=7;i0;i-=2)LED_On(i);}}IccAVRC-6-(s)FileNewFileSaveSaveAsAddFile(s)AddtoProjectProjectOptions3IDECC.c.sdefault.prj4IDEC5IccAVRC-7-()6IDE7IDEISPASC6.20IDEISP1ICCAVRICCAVR2FileMenuNewReopenOpenReload…formDiskReload….fromBackUPSavefile.~extSaveasCloseCompileFile…toObjectCompileFile...toOutputSaveAllClossAllPrintExitICCAVRIDE3EditMenuUndoRedoUndoCutCopyPasteDeleteSelectAllBlockIndentBlockOutdentIccAVRC-8-…MatchCase–WholeWord–Up/Down–FindinFiles...–CaseSensitive–WholeWord-RegularExpression–Replace...–FindAgain–GotoLineNumber–AddBookmark–DeleteBookmark–NextBookmark–GotoBookmark–5ViewMenuStatusWindow–ProjectMakefile–makefileOutputListingFile–6ProjectMenuNew...–Open–OpenAllFiles...–CloseAllFiles–Reopen...–MakeProject–RebuildAll–AddFile(s)–RemoveSelectedFiles–Option...–Close–SaveAs...–7ToolsMenuEnvironmentOptions–EditorandPrintOptions–AVRCalc–AVRUARTApplicationBuilder–ConfigureTools–Run–8CompilerOptionsPathsCompilerTargetIccAVRC-9-(s)–AssemblerIncludePath(s)–LibraryPath–OutputDirectory–CompilerStrictANSICChecking–ANSICAcceptExtensions–C++MacroDefine(s)–name[:value]name[=value]DEBUG:1;PRINT=printf#defineDEBUG1#definePRINTprintfMacroUndefine(s)–OutputFileFormat–COFF/HEXIntelHEXCOFFOptimizations–Default–MaximizeCodeSizeReduction–TargetDeviceConfiguration–MCUMemorySizes–CustomROMSRAMEEPROMTextAddress–DataAddress–0x60UseLongJMP/CALL–MCUEnhancedCore–IORegistersOffsetInternalSRAM–SRAM,8515SRAM0x60,IO512Mega603,IOSRAMSRAM0InternalExternalSRAM–SRAMPRINTFVersion–PRINTFSmallBasic:%c,%d,%x,%X,%u,and%sLong:%ld,%lu,%lx,%lXFloatingpoint:%fAVRStudioSimulatorIO–AVRStudioAdditionalLibraries–StringsinFLASH–FLASHReturnStackSize–NonDefaultStartup–PathsIDEUnusedROMFillPattern–ROMIccAVRC-10-()cd\icc\libsrc.avr;editcrtavr.s;crtavr.sopencrtavr.susingtheIDE;IDEcrtavr.sChooseCompileFileTo-Object;crtavr.ocopycrtavr.o..\lib;MCUMegacrtatmegacrtavrMegawordMegaword.21c:\icc\libsrc.avr\libsrc.zipZIPUNZIPAboutunzip-slibsrc.zip;unzip2AVR-----ICCAVRUARTEEPROMSPI3io*.h(io2313.h,io8515.h,iom603.h,....)ATMELIOavr.hPORTB=1;uc=PORTA;IccAVRC-11-(),ctype.h–float.h–limits.h–math.h–stdarg.h–.stddef.h–stdio.h–IOstdlib.h–string.h–3ACSII#includectype.hintisalnum(intc)cintisalpha(intc)cintiscntrl(intc)cFF,BELL,LF..intisdigit(intc)cintisgraph(intc)cintislower(intc)cintisprint(intc)cintispunct(intc)cintisspace(intc)cCR,FF,HT,NL,VTintisupper(intc)cintisxdigit(intc)cinttolower(intc)cccinttoupper(intc)IccAVRC-12-(floatx)xfloatacos(floatx)xfloatatan(floatx)xfloatatan2(floatx,floaty)y/x-~+floatceil(floatx)xfloatcos(floatx)xfloatcosh(floatx)xfloatexp(floatx)exexfloatexp10(floatx)1010xfloat
本文标题:Icc AVR C编译器的使用
链接地址:https://www.777doc.com/doc-7028495 .html