See below IDE screen after project creation.įig. In the project folder you have to add code file. Project is like folder sort off, like in VB. 4: Screenshot of Microcontroller Family Selection in Keil Compilerĥ)Now your Keil compiler project is ready to accept any C code or assembly code. We will study this is separate chapter.įig. If device is very complex and there is lot of re-arrangement of memory allocation then you can go for startup code which we use in the ARM microcontroller programming. If you want to execute code from 000 flash memory location then no need to take startup code from Keil compiler. Startup file is initialization file for the microcontroller will provide memory, initialization. In this screen click on “NO” button because we do not want startup file from compiler. 3: Screenshot showing navigation to New Project in Keil CompilerĤ) Click on “OK” button of above screen.
Fig 1.3 shows, how to select Philips P89VRD2 family as a microcontroller, due to this your assembly of C code will be compatible to P89v51RD2xx microcontroller.įig. See below screen shot.ģ)Select, Philips or NXP company, in that P89V51RD2 (if you are using Keil version 2) then your target device could be P89C51RD2xx also will do. Step2: Open project -> New -> give name of project (any suitable, donot give extension to it), click on Save button., now it is asking “Select target Device” screen. You can download evaluation copy of this compiler from Keil’s Company website (. Here I am giving various steps to use this compiler. Keil starts to code with the target device in mind because the same compiler can be used for 300 different microcontrollers. Turbo C compiler never ask target device (microcontroller) for which you want to write program. Keil is very popular cross compiler for 8051 microcontroller.