Skip to content

Getting Started

Steps of creating a project in Keil micro vision 5

  1. Open Keil micro vision 5.

  2. Create a new project: Go to the Project Menu >>Select New µVision Project >> Change the Filename: buzzer >> Click Save. A Project file will be created with .uvproj extension.

Getting Started Image
Getting Started Image
  1. A screen opens up. Search for 'AT89C51RD2' microcontroller >> Click 'AT98C51RD2'>> Click OK.
Getting Started Image
  1. A pop-up screen appears as shown >> Click NO.
Getting Started Image
  1. Go to File menu >> Click New >> Text1 file will be created >> Save the filename as 'buzzer.c' >> Click 'Save' button.
Getting Started Image
Getting Started Image
  1. In Project menu >> Right click on Target 1 >> Click on Options for Target ‘Target 1’.
Getting Started Image
  1. Options for Target ‘Target 1’ >> Target >> Select Xtal (MHz): 11.0592.
Getting Started Image
  1. Options for Target ‘Target 1’ >> Output >> Check Create Hex File >> Click OK.
Getting Started Image
  1. Click the '+ icon' next to Target 1 >> Source Group 1 will appear >> Right-Click the 'Source Group 1' >> Select 'Add Existing files to Group 1 Source Group 1' -> Browse & Select the ‘buzzer.c’ file >> Click ‘Add’ button >> Click 'Close' button.
Getting Started Image
Getting Started Image
Getting Started Image
  1. Write the program in 'buzzer.c' file >> Save it.
Getting Started Image
  1. In 'Project' menu >> Select 'Build Target'.
Getting Started Image
  1. In Build Output Window >> '0 Errors' should be reflected.
Getting Started Image

Steps for using Flash Magic Software for burning program ito microcontroller.

  1. Go to ‘Flash Magic’ Icon, it will open the main window, you can see 5 sections.

    1. Communications
    2. Erase
    3. Firmware
    4. Options
    5. Start
Getting Started Image
  1. Go to “Options” in the toolbar, and select the first menu ‘Advance options.’
  2. Uncheck the box & Click OK.
Getting Started Image
Getting Started Image
  1. In Communications Section: Select Device ‘89V51RD2’.
  2. Select the correct COM port by checking your device manager.
  3. Select the Baud Rate to '9600'.
  4. Select 'None(ISP)' in the Interface option.
Getting Started Image
Getting Started Image
  1. In Erase Section: Check 'Erase all Flash' box.
Getting Started Image
Getting Started Image
  1. In Firmware Section: Click 'Browse' to select the buzzer.hex file that we need to burn into microcontroller.
Getting Started Image
Getting Started Image
Getting Started Image
  1. In ‘Option’ Section: Check ‘Verify after programming’ option. This will verify hex file after loading.
Getting Started Image
Getting Started Image
  1. In Start Section: Click 'Start' button, it will ask to 'Reset the device into ISP mode', click the reset button on hardware board, at the bottom of Flash Magic panel you will see 'Finished' as shown, indicating that the program has been successfully loaded into microcontroller device.
Getting Started Image
Getting Started Image
Getting Started Image
Getting Started Image