51单片机文献+翻译.pdf
GettingStartedwithµVision2
TheKeilSoftware8051developmenttoolslistedbelowareprogramsyouusetocompile
yourCcode,assembleyourassemblysourcefiles,linkandlocateobjectmodulesand
libraries,createHEXfiles,anddebugyourtargetprogram.
Vision2forWindowsisanIntegratedDevelopmentEnvironmentthatcombines
projectmanagement,sourcecodeediting,andprogramdebugginginonesingle,powerful
environment.
TheC51ANSIOptimizingCCrossCompilercreatesrelocatableobjectmodulesfrom
yourCsourcecode.
TheA51MacroAssemblercreatesrelocatableobjectmodulesfromyour8051assembly
sourcecode.
TheBL51Linker/LocatorcombinesrelocatableobjectmodulescreatedbytheC51
CompilerandtheA51Assemblerintoabsoluteobjectmodules.
TheLIB51LibraryManagercombinesobjectmodulesintolibrariesthatmaybeusedby
thelinker.
TheOH51Object-HEXConvertercreatesIntelHEXfilesfromabsoluteobjectmodules.
TheRTX-51Real-timeOperatingSystemsimplifiesthedesignofcomplex,time-critical
softwareprojects.
SoftwareDevelopmentCycle
WhenyouusetheKeilSoftwaretools,theprojectdevelopmentcycleisroughlythesame
asitisforanyothersoftwaredevelopmentproject.
1.Createaproject,selectthetargetchipfromthedevicedatabase,andconfigurethetool
settings.
2.CreatesourcefilesinCorassembly.
3.Buildyourapplicationwiththeprojectmanager.
4.Correcterrorsinsourcefiles.
5.Testthelinkedapplication.
µVision2IDE
TheµVision2IDEcombinesprojectmanagement,arich-featurededitorwithinteractive
errorcorrection,optionsetup,makefacility,andon-linehelp.UseµVision2tocreateyour
sourcefilesandorganizethemintoaprojectthatdefinesyourtargetapplication.µVision2
automaticallycompiles,assembles,andlinksyourembeddedapplicationandprovidesa
singlefocalpointforyourdevelopmentefforts.
LIB51LibraryManager
TheLIB51librarym