bit bdata ss,flag_startactivity flag,mode

当前位置: >>
Keil uVision2 教程,uVision2教程
Keil softwareC51uVision2 2Keil Software()Keil Elektronik GmbHKeil Software
Keil C51 TM uVision TM Keil Elektronik GmbH Windows TM Microsoft Corporation Microsoft R PC R International Business Machines Corporation80512 3Keil Software8051MCU1 2 3Keil Software8051MCUCuVision2 IDE45 6 7 8 9Vision2 debugger uVision2 debugger Keil 8051 RTX-51 Tiny C51 RTX-51 Full10 11 12CPU Monitor-51 Keil 8051 Monitor8051CPU3 4:README.TXT CLS DIR BL51.EXE Courier Variables &projectfile& Elements that Repeat Omitted code Void main (void) { .while (1); [Optional Items] C51 TEST.C PRINT [(filename)] { opt1 | opt2 } Keys Point Click Drag Double-Click '|' sans serif &Press Enter to continue.& . . . , Enter : .4 51.......................................................... ......... ......... ......... .........9 ...................................................... ………………………….10 .................................................. ……………………….10 ............................................ …………………...11 ...................................................... …………………………..11 ...................................................... …………………………..12 .................................................. ………………………..13 ...................................................... …………………………..16 .......................................................... ………………………..19 ...................................................... …………………………..19 .................................................. ………………………..19 ................................................ ………………………2023uVision2 C51 C A51 BL51 LIB51 OC51 OH51 .......................................……………………. 21 ........................................... …………………32 .................................................. ………………………..49 ........................................... ……………………51 .................................................. ………………………54 ....................................... 55 HEX ................................ 554...................................................... .............................................. ................................................. ...................................................... u Vi s i o n 2 .................................................. .................................................. .......................................................... 57 64 66 67 69 78 825 u Vi s i o n 2 ................................................ 93 ....................................................... 107 ......................................................... 110 ........................................................... 126 6 uVision2 .......................................................1315 6dScope....................................................... ....................................................... C .......................................... u Vi s i o n 2 ..................................133 133 147 1487 HELLO MEASURE 88051C..................................... 150 .......................................155............................................................169 .....................................173 ............................................174 TRAFFIC ...................................176 .........................................180 9 .................................................183 .......................................................184 ....................................................185 ..................................................187 ......................................................187 .....................................................189 .......................................................190 ...................................................193 ......................................................194 ......................................................195 ......................................................196 ..............................................197I/O // /10 11CPUMonitor-51 ................................................199 ............................................................199 ..................................................200 ..........................................................201 u Vi s i o n 2 M o n i t o r ..........................................201 Monitor-51 u Vi s i o n 2 ................................202 Monitor-51 ......................................204 Monitor-51 .................................................206 .....................................................208 Monitor-51 ..............................................209 .......................................................211 ...........................................21112 u Vi s i o n 26 7A51/A251 C51/C251 L51/BL51 L251 / LIB51/L251 OC51 OH51 OH251............................................212 ................................................213 / ..........................................215 .............................................216 ...........................................218 ........................................219 HEX .................................219 HEX .................................219....................................................................2227 88 91Keil Software 80518051Keil Software 21 Windows C51 A51 BL51 LIB51 OH51 RTX-51 168051 HEXCuVision2 C 8051 / C51 A51 CHEXIntel HEX80519 1016 16 uVision2 C51 149 IDE uVision2
114RELEASE.TXT \KEIL\C51\HLP\KEIL\UV210 11Keil Software 8051 2K16 18051 ()2K8051MCU8051Keil 805111 12Keil Software1 2 3 4E-mail ( )FAXE-mail/support,,12 13Keil Software 1 2 3 4 5C8051uVision2 IDEuVision2 uVision2 uVision213 14C51A51uVision2 IDE Keil C51 8051 Keil A51 ANSI C
CLIB51LIB51BL51BL51//EPROM uVision214 15uVision2uVision2 8051 uVision2 MON51 GDI AGDI Monitor-51 uVision2Monitor-51uVision2 Monitor-51 uVision2Monitor-51uVision2RTX51RTX51 C51 8051 RTX51 RTX51 BL51 /15 16Keil Software 178051 Keil Software 8051PK51PK51 PK51 DK51DK51 PK51 8051 RTX51CA51CA51 C uVision2 IDE uVision2 CA51 805116 17A51A51 8051RTX51RTX51 TINYFR518051 MCU CAN RTX51 FULL RTX51.17 1818 192RAM 20MBII WIN95 16MBWIN98WINNT4.0Keil Keil CD8051CD \KEIL\SETUP\SETUP.EXECD19 20C:\KEIL 8051C:\KEIL\C51\ASM C:\KEIL\C51\BIN C:\KEIL\C51\EXAMPLES C:\KEIL\C51\RTX51 C:\KEIL\C51\RTX_TINY C:\KEIL\C51\INC C:\KEIL\C51\LIB C:\KEIL\C51\MONITOR C:\KEIL\UV2 C C 8051SFRI/OuVision220 213Keil 8051uVision2uVision2 IDE MAKE uVision2 HEX Window KEIL 8051 uVision2 C /MAKE CPU GDI AGDI Monitor-51uVision2PK51DK5121 22uVision2 uVision222 23uVision2uVision2 uVision2FileNew Open Close Save Save all Save as Device Database Print Setup Print Print Preview 1-9 ExitCtrl+N Ctrl+O Ctrl+SCtrl+PuVision223 24(Edit)Home End Ctrl+Home Ctrl+End Ctrl+&Ctrl+-& Ctrl+A Undo Redo Cut Copy Paste Indent Selected Text Unindent Selected Text Toggle Bookmark Goto Next Bookmark Goto Previous Bookmark Clear All Bookmarks Find Ctrl+FCtrl+Z Ctrl+Shift+Z Ctrl+X Ctrl+Y Ctrl+C Ctrl+VCtrl+F2 F2 Shift+F2/F3 Shift+F3 Ctrl+F3 Ctrl+]Replace Find in FilesCtrl+H/**************************** Ctrl+] uVision2 2.20a Goto Matching brace-*************************************/ uVision2 Edit/****************************-*************************************/24 25uVision2Shift Ctrl+Shift+-&Ctrl+-&Alt25 26ViewStatus Bar File Toolbar Build Toolbar Debug Toolbar Project Window Output Window Source Browser Disassembly Window Watch & Call Stack Window Memory Window Code Coverage Window Performance Analyzer Window Symbol Window Serial Window #1 Serial Window #2 Toolbox Periodic Window Update Workbook Mode Options/ / / / / / / / / / / / / / / /1 226 27ProjectNew Project Import Vision1 Project Open Project Close Project Target Environment Targets, Groups,Files Select Device for Target Remove OptionsuVision1CPU . Alt+F7File Extensions Build Target Rebuild Target Translate Stop Build 1-9F7 Ctrl+F727 28DebugStart/Stop Debugging Go Step Step over Step out of Current function Stop Running Breakpoints Insert/Remove Breakpoint Enable/Disable Breakpoint Disable All Breakpoints Kill All Breakpoints Show Next Statement Enable/Disable Trace Recording View Trace Records Memory Map Performance Analyzer Inline Assembly Function EditorCtrl+F5 F5 F11 F10 Ctrl+F11 ESC// //28 29PeripheralsReset CPU Interrupt, I/O-Ports, Serial, Timer, A/D Converter, D/A Converter, I2C Controller, CAN Controller, WatchdogCPUCPUTool Gimpel PC-Lint Siemens Easy-Case Customize Tools Menu Using the Tools Menu 72Setup PC-Lint Lint Lint all C Source Files Setup Easy-Case Start/Stop Easy-Case Show File (Line) Customize Tools MenuGimpel Software PC-Lint PC-Lint PC-Lint C Siemens Easy-Case / Siemens Easy-Case Easy-Case29 30SVCS 76 SVCS Menu Using theConfigure Version ControlWindowCascade Tile Horizontally Tile Vertically Arrange Icons Split 1-930 31HelpHelp topics About VisionuVision2 57 Creating Applications 93 Testing Programs31 32C51Keil C51CANSI C 8051 MCU CC 8051 CPU CC ANSI C32 33C51C51 C51 ANSI 8051 MCUPL/MA51C51.* bit, sbit Csfr,sfr168051C51C251ANSI33 34sbitsfrsfr168051MCUsfr P0 = 0x80; /* Define 8051 P0 SFR */ P0 0x80 80510C51 bit interger integerC5180518051code data idata bytes bdata xdata pdata64 KbytesMOVC @A+DPTR 128 bytes 256 16 bytesMOVX @DPTR 64 Kbytes 256 bytes MOVX @RnSMALL34 35signed char data var1; char code text[] = &ENTER PARAMETER&; unsigned long xdata array[100]; float idata x,y,z; unsigned unsigned char xdata vector[10][4][4];unsignedSMALLCOMPACTLARGESMALLCOMPACTLARGE(SMALL) 8051 RAM BL51 SMALL / data35 36COMPACT 8051 Port 2 R0,R1 MOVX @R0/R1 LARGE 256 SMALL pdataLARGE xdata DPTR xdata SMALL COMPACTDPTRSMALL36 37C51 8051* C51CC char *s; /* string ptr */ int * /* int ptr */ long * /* long ptr */37 38char data * /* ptr to string in data */ int xdata * /* ptr to int(s) in xdata */ long code * /* ptr to long(s) in code */idata data bdatapdatacodexdata8051 CDescription CIdata Pointer idata * val = * MOV R0,ip MOV val,@R0Xdata Pointer char xdata * val = * MOV DPL,xp +1 MOV DPH,xp MOV A,@DPTR MOV val,A 2 byte 9 bytes 7 cyclesGeneric Pointer char *p; val = * MOV R1,p + 2 MOV R2,p + 1 MOV R3,p CALL CLDPTR 3 byte 11 bytes + library call 13 cycles1 byte 4 bytes 4 cycles38 39C51int calc (char i, int b) reentrant { x = table [i]; return (x * b); }reentrant ,39 40C51C interrupt usingunsig
void timer0 (void) interrupt 1 using 2 { if (++interruptcnt == 4000) { /* count to 4000 */ second++; /* second counter */ interruptcnt = 0; /* clear int counter */ } }C51CPU REGPARMS NOREGPARMS1 2 3char, 1-byte pointer R7 R5 R3 CPUint, 2-byte pointer R6 & R7 R4 & R5 R2 & R3long, float R4 R7generic pointer R1 R340 41CPUCPUbit char,unsigned char,1-byte pointer int, unsigned int, 2-byte pointer long, unsigned long float generic pointerCarry Flag R7 R6 & R7 R4 R7 R4 R7 R1 R3MSB in R6, LSB in R7 MSB in R4, LSB in R7 32-Bit IEEE format Memory type in R3, MSB R2, LSB R1C517 C51 C CPUC51RTX-51 Full RTX &RTX-51 Real-Time Operating System&C51RTX-51 Tiny 16941 42C NOREGPARMS CPU A51 unsigned int asmfunc1 (unsigned int arg) { return (1 + arg); } SRC C51 C SRCCPU?PR?_asmfunc1?ASM1 SEGMENT CODE PUBLIC asmfunc1 RSEG ?PR?_asmfunc1?ASM1 USING 0 asmfunc1: ;---- Variable 'arg?00' assigned to Register 'R6/R7' ---MOV A,R7 ; load LSB of the int ADD A,#01H ; add 1 MOV R7,A ; put it back into R7 CLR A ADDC A,R6 ; add carry & R6 MOV R6,A ?C0001: RET ; return result in R6/R7#pragma asm#pragma endasmC42 43PL/M-51Intel C PL/M-51 PL/M-51 alien PL/M-51 C C CPL/M-51extern alien char plm_func (int, char); PL/M-51 OMF51 Keil Software OMF51C51 / C C51 9 C51CPU43 44/********************-/********************-****************************/ , 9 . . ****************************/8051DPTR BL51 Case/Switch switchcaseC CC51PL/M-51ASM-5144 45C51 IntelIntelOMF51 uVision2OBJECTEXTEND Intel OMF51 KeilC51ANSI7C51S.LIB C51FPS.LIB C51C.LIB ` C51FPC.LIB C51L.LIB C51FPL.LIB 80C751.LIB Philips 8xC751 / \KEIL\C51\LIB /45 46ACALLLCALL_crol_ _cror_ _irol_ _iror_ _lrol_ _lror_ _nop_ _testbit_8051 JBCC51 DOS C51 CuVision2 IDE&C51 MODULE.C COMPACT PRINT (E:M.LST) DEBUG SYMBOLS C51 COMPILER V6.00 C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S) #pragma 213 &C51/C251 Compiler&46 47C51 OMF51C51uVision2C51C5147 48C51 {} Vision2-Options for Target 8051 . Listing Assembly Code48 49A51A51 8051MCU A51A51 uVision2A51A518051(MPL) Intel ASM51 MPLA5149 50A51 EXTERN PUBLIC and SEGMENTVision2-Options for TargetListingCross Reference.50 51BL51BL51 //8051BL51Keil C51A51Intel PL/M-51ASM-51BL518051 BL51 OVERLAY NOOVERLAY . BL51BL5164KB ( )805164KB 805151 52BL51 2MB3264KBBL51C51 C518051 I/O C 50 CPU 2Bytes BL5152 53BL51:BL51 BL51 8051(*.M51)53 54LIB51uVision2 Library Manager CommandsOptions for Target LIB51OutputCreate Library 218 &LIB51 / L251ANSI CuVision2C:\KEIL\C51\RTX_TINY\RTX_TINY.UV2 I/O CANRTX5154 55OC51OC51 BL51 uVision2 OC51 OH51 Intel HEXHEXOH51HEXIntel HEX ASCII EPROMS BL51OC51Intel HEX55 5656 574Keil C51 P16 uVision2 ) uVision2 ( C51uVision28051uVision2PROMHEX uVision257 58uVision2uVision2 Windows uVision2 ProjectNew ProjectWindowsProject1 uVision2 Project1.UV2Project Window C FilesProject Philips 80C51RD + CPU Select Device for Target MCU 80C51RD+ CPU: uVision2 Description58 59CPU KeilBooksCPUFile-New *.C MAIN.C uVision2 CProject Add Files MAIN.CuVision2 Files59 60.STARTUP.A51 8051CPU 8051 ,Philips 8051RD+ CPU xdata RAM STARTUP.A51CPU Targets, Groups, Files Add Files to GroupProject System Files STARTUP.A5160 61.uVision2 Project Window Files STARTUP.A51 (CPU and C Startup Code) Options Target Target,P197 RAM Options61 62uVision2Options for TargetXtal Memory ModelCPU P78XTAL SMALLAllocate On-chip Use multiple DPTR registers Off-chip Memory Code Banking Xdata Bankingxdata RAM STARTUP.A51 XRAMBanking Code BankingP67LX51LX51PK51.62 63BuildHEXOptions Build uVision2 Target Output Window BuilduVision2 Testing Programs& Options for Target uVision2 Build HEX Run User Program #1 PROM P93 Chapter 5 HEX Output HEX Options for Target Output63 64Build uVision2 uVision2 Target) Rebuild All Target( RebuilduVision2CPUProjectTargets, Groups, Files1) 2) 3) 4) Build64 65&Include in Target Build& 87,SVCS SVCS & ( 4) ( 5)(SVCS) 76 &87/*********************************-**********************************/, /********************************* -(),**********************************/65 66Project WindowFilesTarget Output Listing C51 A51, AX51 L51 Locate LX51 Locate L51 Misc LX51 Misc Debug Properties Specific Options Vision2 Debugger Keil P82 Keil C51 P8062&Memory Layout from Target Dialog& P86P101 P87 Properties Dialog& &File and GroupL51Use Memory Layout from Target DialoguVision266 67Code BankingMB 64KB 64KB 32 Keil 64KB ,0xfff ROM 32KB ROM32KBROM 0x8000-0xffff ROMOptions for TargetTargetC51\LIB\L51_BANK.A51C51\LIB\L51_BANK.A51OptionsProperties67 68Options Properties,Options for Target BANKxL51 MiscuVision2 Options for Target &Create HEX File& PROM HEXOutput uVision2 0 64KB EPROM68 69uVision2uVision2EditFind in Files Find in FilesFind in FilesOptions for Target Browser Information View Source BrowserOutput69 70Symbol # $ * Filter on File Outline Memory Spaces 0-9 NULL* *#* _a$#* _*ABC Definitions and references a, ABCDefinitions and references[D] [R] [r] [w] [r/w] [&] /70 71F12 Shift+F12 Ctrl+Num+ Ctrl+NumuVision2 SVCS Options for Target-Output% # % @ $ ~ ^ ~ ^ ##, %%, @@, ~~ F ^^ @@ C:\MYPROJECT F F ,PROJECT1.UV2 C:\MYPROJECT\PROJECT1.UV2 :PROJECT1.UV2 PROJECT1$, #, %, @, ~ @^$$,Project Window - Files F P L H HEX uVision2 PROJECT1.H86 PROJECT1.UV2MEASURE.CPROJECT1 C:\KEIL\UV2\UV2.EXE71 72SVCSP76SVCSQ R C U V Q, R, C, USVCS SVCS SVCS SVCS-Configure Version Control -User Name SVCS-Configure Version Control -Database V %Tools Customize Tools Menu...Menu Content(&)Prompt for Arguments Run Minimized Command Initial Folder Arguments uVision272 73Output Window -Build73 74PC-Lint Gimpel Software PC-Lint C C PC-Lint PC-LintPC PC-Lint Tools Setup PC Lint PC-Lint Output Window-Build , KEIL\C51\BINPC-Lint C PC-Lint PC-Lintlint ToolsTools Lint PC-Lint Lint All C Source Files PC-Lint Output Window-BuildOutput Window-BuildPC-Lint74 75C:\KEIL\C51\BIN\CO-KC51.LNT Keil 51 PC-LintSiemens Easy-Case Vision2 Easy-Case Easy-Case: Easy-Case C:\KEIL\UV2\UV2EASY-CPP.INI EASY-CPP.INI Vision2 WINDOWS copy Siemens Easy-Case Easy-Case Easy-Case Vision2DOScopyC:\&CD C:\WINNT C:\WINNT&COPY EASY-CPP.INI+C:\KEIL\UV2\UV2EASY-CPP.INI EASY-CPP.INI Vision2 Tools Easy-Case EASYCPP.EXE Siemens Easy-Case SetupEasy-Case Easy-Case Easy-Case Tools Vision2 ShowToolsStart/Stop Easy-Case Vison2 Vision275 76SVCSuVision2 SVCS SVCS Intersolv PVCS,Microsoft SourceSafe, and MKS Source IntegritySVCS SVCSSVCS Customize SVCS MenuTemplate File User Name Database Menu Content Query for Comment RevisionSVCS SVCS SVCS SVCS SVCS %Q %R %C SVCS %V '&' %U76 77CheckPoint Run Minimized Command Arguments Environment SVCS Output Window Build SVCS SVCS SVCS SVCSSVCS WindowProject Files SVCS *.UV2uVision SVCS*.UV2 uVision2 *.OPTSVCS SVCSSVCS Explorer Check In Check Out Undo Check Out Put Current Version Get Actual Version Add file to Project Differences, History Create Project uVision2 SVCS SVCS SVCS SVCS77SVCS SVCS SVCS Check Out SVCS 78*.SVCS Microsoft SourceSafe SSUSER MKS Source Integrity Intersolv PVCS805135Options for TargetTarget dialog78 79Keil 8051 C51 C uVision2 input Global Register OptimizationOptions for Target C51Build outputC79 80C51C51 C51 C OptionsC51Define Undefine Code Optimization Level C51 9 CALL Code Optimization Emphasis Global Register Optimization Favor Code Size C51 &Global Register Optimization& 79 Options Options80 81Don't use absolute register accesses Warnings Bits to round for float compare Interrupt vectors at address Keep Variables in Order Enable ANSI interger promotion rules Misc Controls Compiler Control String C51 C51 C51R0-R7C51 PUSH POP 0ARxC51CANSI C51 80518051 CPU88charunsigned char81 82uVision2uVision1uVision2uVision1 uVision2 uVision2 58 uVision1 uVision2 CPUProject uVision1Import uVision1 ProjectuVision2 Options for Target-Target Options for Target Target Dialog L51 Locate Use Memory Layout fromuVision2 uVision2 64 Project Targets and File GroupsuVision2 uVision2 uVision1 uVision2 uVision2100%uVision1uVision1 dScope82 83/****************************** 2 uVision2-******************************/ uVision23L51 Locate/******************************-******************************/BuildOptions for Target Output uVision2 BuildF12 Shift+F12 Ctrl+Num+ Ctrl+Num7183 84User Program #1 C:\MYPROJECT\PROJECT1.HEX PROJECT1 ~,#HexUser Program # &-p&C:\MYPROJECTOptions for TargetOutput uVision2 Build TargetOptions for TargetListingSelect Folder for List FilesuVision2uVision2 8051 CPU Generic CPU CPU uVision2 CPU 8051 all Variants Options for TargetTarget File Device Database CPUIRAM (range) XRAM (range) IROM (range) CLOCK (val) MODA2 MODDP2 MODDPXIRAM XRAM ROM Atmel Dallas 24 ADuC812 flash 084 85MODP2 MOD517DP MOD517AU MOD_CONT MXPhilips and Temic Infineon C500 Infineon C500 Dallas 390 Contigious Philips 80C51MX CPU uVision2 DLLOptions for Target / L51 Misc CPUOutput CPU 8051uVision2 L51 Locate GenericProject Targets, Groups, Files all Settings from Current Target 1 2 3 Remove Target Targets,Groups,FilesCopyCopy all Settings from Current Target85 86alarm_control 0xC000 ALMCTRL.Cstruct alarm_st { unsigned int alarm_ unsig unsigned int time_
}; struct alarm_st xdata alarm_ALMCTRL.C alarm_control ?XD?ALMCTRL Locate uVision2 ?XD?ALMCTRL xdata 0xC000C51xdata Options for Target /L51C51 &C51 User's Guide&_at_86 87uVision2 Project Window Files Options forPath, Type, Size Last Change Include in Target Build uVision2 Always Build __DATE__ Generate Assembler SRC File Assemble SRC File C51 C #pragma asm / endasm Generate Assembler SRC File C51 __TIME__ C87 88Link Publics OnlyLx51Stop on Exit Code Select Modules to Always Include Custom Arguments 90uVision2 89FILE1.C88 89asm / endasmC File Assembler SRC FileCC51 Generate Assembler SRCC C51 CProject Window Options for...Files89 90uVision2 Options Properties Custom Arguments A51 C51CUSTOM.PRE C:\UTILITIES\PRETRANS.EXE Build-X Always Build90 91Intel PL/M-51Intel PL/M-51 PL/M51 PLM51.LIB PL/M-51 Options Properties uVision2 uVision2 *.OBJ IntelPL/M-51OptionsPropertiesCustom Arguments91 92ProjectFile ExtensionsProject WindowFilesHelpAbout92

我要回帖

更多关于 mode 1 start 的文章

 

随机推荐