您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 其它文档 > ICCAVR用户手册
ImageCraftICCAVR://电子发烧友ImageCraftICCAVR:vectornumberfunc2:vector...电子发烧友ImageCraftICCAVR:name#pragmadata:dataEEPROMEEPROM#pragmaabs_address:addressaddress#pragmaend_abs_addressC++(Project-Options-Compiler)C++//(Project-Options-Compiler)0b1|0*0b1010121asm(string)4IARANSICIARCAVRCIARImageCraftANSICIARCIOICCAVRICCAVRpragmaIARinterruptICCAVR#pragmainterrupt_handlerfunc:4//4funcICCAVRIARinterrupt[vector_name]func()//vector_nameIARCIARflashFLASHICCAVRconstIARICCAVR电子发烧友ImageCraftICCAVR(C)BuildIDEATMELAVRStudioCOFFATMELAVRStudio2CCmainCmain\icc\examplesled.c#includeio8515.h/*LED*/voidDelay(){unsignedchara,b;电子发烧友ImageCraftICCAVR(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);}}mainIOLEDLEDLED_OnLED_OnIOCPULED_On8515intr.cCICCAVRIDE1电子发烧友ImageCraftICCAVR(s)FileNewFileSaveSaveAsAddFile(s)AddtoProjectProjectOptions3IDECC.c.sdefault.prj4IDEC5WizardToolsApplicationBuilderMCUMCUMCUIOUARTSPImain()6IDE电子发烧友ImageCraftICCAVR…formDiskReload….fromBackUPSavefile.~extSaveasCloseCompileFile…toObjectCompileFile...toOutputSaveAllClossAllPrintExitICCAVRIDE3EditMenuUndoRedoUndoCutCopyPasteDeleteSelectAllBlockIndentBlockOutdent4SearchmenuFind…MatchCase–WholeWord–电子发烧友ImageCraftICCAVR–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–8CompilerOptionsPathsCompilerTargetPathsIncludePath(s)–AssemblerIncludePath(s)–LibraryPath–OutputDirectory–电子发烧友ImageCraftICCAVR–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–ROMC1libcavr.a电子发烧友ImageCraftICCAVR()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;4macros.h5电子发烧友ImageCraftICCAVR(),ctype.h–float.h–limits.h–math.h–stdarg.h–.stddef.h–stdio.h–IOstdlib.h–string.h–3ACSII#includectype.hintisalnum(int
本文标题:ICCAVR用户手册
链接地址:https://www.777doc.com/doc-6469310 .html