1、 The introduction of keil C The Keil Software 8051 development tools listed below are programs you use to compile your C code, assemble your assembly source files, link and locate object modules and libraries, create HEX files, and debug your target program. Vision2 for Windows is an Integrated Deve
2、lopment Environment that combines project management, source code editing, and program debugging in one single, powerful environment. The C51 ANSI Optimizing C Cross Compiler creates relocatable object modules from your C source code. The A51 Macro Assembler creates relocatable object modules from y
3、our 8051 assembly source code. The BL51 Linker/Locator combines relocatable object modules created by the C51 Compiler and the A51 Assembler into absolute object modules. The LIB51 Library Manager combines object modules into libraries that may be used by the linker. The OH51 Object-HEX Converter cr
4、eates Intel HEX files from absolute object modules. The RTX-51 Real-time Operating System simplifies the design of complex, time-critical software projects. Software Development Cycle When you use the Keil Software tools, the project development cycle is roughly the same as it is for any other softw
5、are development project. 1. Create a project, select the target chip from the device database, and configure the tool settings. 2. Create source files in C or assembly. 3. Build your application with the project manager. 4. Correct errors in source files. 5. Test the linked application. Vision2 IDE
6、The Vision2 IDE combines project management, a rich-featured editor with interactive error correction, option setup, make facility, and on-line help. Use Vision2 to create your source files and organize them into a project that defines your target application. Vision2 automatically compiles, assembl
7、es, and links your embedded application and provides a single focal point for your development efforts. LIB51 Library Manager The LIB51 library manager allows you to create object library from the object files created by the compiler and assembler. Libraries are specially formatted, ordered program
8、collections of object modules that may be used by the linker at a later time. When the linker processes a library, only those object modules in the library that are necessary to create the program are used. BL51 Linker/Locator The BL51 linker creates an absolute object module using the object module
9、s extracted from libraries and those created by the compiler and assembler. An absolute object file or module contains no relocatable code or data. All code and data reside at fixed memory locations. The absolute object file may be used: To program an EPROM or other memory devices, With the Vision2
10、Debugger for simulation and target debugging, With an in-circuit emulator for the program testing. Vision2 Debugger The Vision2 symbolic, source-level debugger is ideally suited for fast, reliable program debugging. The debugger includes a high-speed simulator that let you simulate an entire 8051 sy
11、stem including on-chip peripherals and external hardware. The attributes of the chip you use are automatically configured when you select the device from the Device Database. The Vision2 Debugger provides several ways for you to test your programs on real target hardware: Install the MON51 Target Mo
12、nitor on your target system and download your program using the Monitor-51 interface built-in to the Vision2 Debugger. Use the Advanced GDI interface to attach use the Vision2 Debugger front end with your target system. Monitor-51 The Vision2 Debugger supports target debugging using Monitor-51. The
13、monitor program resides in the memory of your target hardware and communicates with the Vision2 Debugger using the serial port of the 8051 and a COM port of your PC. With Monitor-51, Vision2 lets you perform source-level, symbolic debugging on your target hardware. RTX51 Real-Time Operating System T
14、he RTX51 real-time operating system is a multitasking kernel for the 8051 microcontroller family. The RTX51 real-time kernel simplifies the system design, programming, and debugging of complex applications where fast reaction to time critical events is essential. The kernel is fully integrated into
15、the C51 Compiler and is easy to use. Task description tables and operating system consistency are automatically controlled by the BL51 linker/locator. C51 Optimizing C Cross Compiler The Keil C51 Cross Compiler is an ANSI C Compiler that was written specifically to generate fast, compact code for th
16、e 8051 microcontroller family. The C51 Compiler generates object code that matches the efficiency and speed of assembly programming. Using a high-level language like C has many advantages over assembly language programming: Knowledge of the processor instruction set is not required. Rudimentary know
17、ledge of the memory structure of the 8051 CPU is desirable (but not necessary). Details like register allocation and addressing of the various memory types and data types is managed by the compiler. Programs get a formal structure (which is imposed by the C programming language) and can be divided i
18、nto separate functions. This contributes to source code reusability as well as better overall application structure. The ability to combine variable selection with specific operations improves program readability. Keywords and operational functions that more nearly resemble the human thought process may be used. Programming and program test time is drastically reduced.