The Keil IDE is a software suite that allows developers to write and test C code for 8051 microcontrollers in a virtual environment. It provides a device database to select a target microcontroller, sets compiler and linker options, and includes example programs. The simulation window allows viewing the microcontroller resources and interaction with peripherals in real time, helping to debug programs before deployment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
160 views15 pages
Microcontroller Keil IDE
The Keil IDE is a software suite that allows developers to write and test C code for 8051 microcontrollers in a virtual environment. It provides a device database to select a target microcontroller, sets compiler and linker options, and includes example programs. The simulation window allows viewing the microcontroller resources and interaction with peripherals in real time, helping to debug programs before deployment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 15
microcontroller
8951S #software-1 Keil IDE
• The Keil IDE is a user-friendly software suite to develop your‘C’
code and test the same in a virtual 8051 environment. The main feature of the Keil is that it allows C programmers to adapt to the 8051 environment quickly with little learning curve.
• It offers the designer a device database of MCS-51 family from
which the target device of interest can be chosen. The µVision IDE sets the compiler, assembler, linker, and memory options for the designer. Keil IDE
• The suite comes with numerous example programs to assist the
designer to start his project. • With the virtual environment, the available on-chip resources of the microcontroller chosen can be seen working on the PC screen. • The simulation window facilitates very realistic simulation of both CPU and embedded peripherals. • The graphical window shows the state and configuration of the embedded peripherals and displays the interaction of the microcontrollers with external peripherals. • Although the simulation exercise consumes time, it helps to save the bugs and project failure in the long run. Step 1: Interfaces Offered by Keil IDE Step 2: Opening a New Project Step 3: Selecting a Device for the Target Step 4: Copying Startup Code to Your Project Step 5: Adding Your Program Source Code Step 6: Configuring and Building the Target • As per the on-line Keil IDE manual C51 currently supports the following memory configurations:
• ROM: currently the largest single object file that can be
produced is 64 K, although up to 1MB can be supported with the BANKED model described below. • All compiler output to be directed to EPROM/ROM, constants,look-up tables, etc., should be declared as “code”.
• BANKED: Code can occupy up to 1 MB by using either CPU
port pins or memory-mapped latches to page memory above 0×FFFF. Within each 64 KB memory block a COMMON area must be set aside for C library code. Inter-bank function calls are possible. RAM: There are three memory models, SMALL, COMPACT, and LARGE Step 7: Compile Your Program by Pressing F7 Step 8: Working in Simulated Mode Step 8: Working in Simulated Mode
• Once the program is successfully compiled, you can verify its
functionality in the simulated mode by activating the debug window. • For this press CTRL + F5 or go to the menu option “Debug” and select “Start and Stop Debug Section”. • Press F11 for single stepping or F5 for execution in one go. • Go to the menu item “Peripheral” and select the appropriate peripherals to view the changes as the program starts executing. • Terminating the debug session is equally important. Click on “stop running” or ESC key to halt the program execution. Step 9: Actual Dumping of the Code in Microcontroller’s On-chip Memory • create HEX file.