Tuesday 23 October 2012

KIEL TUTORIAL

Here is some initial steps which are necessary before writing a program in KIEL.

  1. Open kiel u vision software.

  1. Click on Project from the menu bar.


  1. Click on the new project.

  1. Select the folder and name the project and click in save.

  1. Now you will see a window like below. Select the name of the microcontroller. We use P89V51RD2 from PHILIPS. Click OK.


  1. Click on YES.

  1. Now open file menu and create a new file.


  1. Name and save the file in same folder with  .c extension.


  1. Click the target 1 option from the left most window.

  1. Right click on the source group 1.

  1. Click on the add files from the source group. Now a window opens like below. Click Add and Close.
  1. Now click on the Target option. Click on Target and select the frequency of your microcontroller. (For 8051 it is 11.0592).

  1. Now click on Output and check the box create Hex file.

  1. Now click on Debug and check the box limit speed to real time.

  1. Now click on OK. Now you can write your program.

  1. After writing the program Click on Build or Rebuild option. You can errors and warnings in the bottom window.







  1. If your program consists I/O ports programming then you can test your program in kiel. After rebuilding your program if there is no error and warning then click on the debug from menu bar. Click on star/stop debug session option.

  1. Click OK.
  1. Now click on Peripherals from menu bar. Select your I/O ports.
  1. Now click on RUN.

Proper way to close the kiel is first stop your running program then stop the debug session and save your program.

IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.      
                                                            GOOD LUCK

More embedded projects >>....                             More MAT LAB projects>>...