Rapid Development Board for 8051 Getting Started

Rapid Development Board for 8051 1. ... Microcontroller P89V51RD2 ... Flash Magic is a free tool, available for download at...

0 downloads 143 Views 4MB Size
Rapid Development Board for 8051

Getting Started With Rapid Development Board



Table of Contents Board Features Microcontroller Features Getting Started with Programming Installing FTDI Driver Finding out the Virtual COM port Inserting Hex File into Microcontroller Check your first Program Contact Us

3 4 5 19 23 26 31 32


Board Features

10 11


9 8

5 2



1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.





12. 13.

Microcontroller P89V51RD2 16x2 LCD Display 2 Seven Segment Display 8 on board LEDs FTDI IC for USB Serial Port External Ports Matrix Keypad (4x3) Interrupt Switches Buzzer USB Connector for Power as well as Programming External Power Supply (Need 12V Adapter) On Board Power Circuit DIP Switches


Microcontroller P89V51RD2 •

• • •

• • • •

On-chip Flash Program Memory with In-System Programming (ISP) and In-Application Programming (IAP) capability Boot ROM contains low level Flash programming routines for downloading via the UART Can be programmed by the end-user application (IAP) 6 clocks per machine cycle operation (standard) 12 clocks per machine cycle operation (optional) Speed up to 20 MHz with 6 clock cycles per machine cycle (40 MHz equivalent performance); up to 33 MHz with 12 clocks per machine cycle Fully static operation RAM expandable externally to 64 kB 4 level priority interrupt 8 interrupt sources Four 8-bit I/O ports – –

• •

Automatic address recognition Power control modes – – –

• • •

Full-duplex enhanced UART Framing error detection

Clock can be stopped and resumed Idle mode Power down mode

Programmable clock out Second DPTR register Asynchronous port reset


Getting Started with Programming – Step 1 Install Keil uVision Compiler (2/3/4 version). Open it first and follow the steps


Getting Started – Step 2 Click on Project

Menu  New uVision Project


Getting Started – Step 3 Save your uVision project in a desired location. Click Save


Getting Started – Step 4 Select Device for Target – Click on NXP

 Select P89V51RD2


Getting Started – Step 5 Select Device for Target – Click ok.


Getting Started – Step 6 It will prompt you to add start up code. Not necessary – Click No.


Getting Started – Step 7 Click on the ‘+’ sign of Target 1. You will find Source Click on Source Group 1.

Group. Right


Getting Started – Step 8 Select Add files to add your C program.


Getting Started – Step 9 Select your .C file which will be loaded into the target microcontroller. Click Add.


Getting Started – Step 10 Here is your first C program ready to compile.


Getting Started – Step 11 Right Click on Target

 Select Options for Target 1


Getting Started – Step 12 This Window will open. Click on Output



Getting Started – Step 13 Check Create

Hex File option. Then Click OK.


Getting Started – Step 14 Click the Build Target Option. Your program is now compiled and Hex file is generated.


Installing FTDI Driver – Step 1 You are now ready with the hex file. Now download the FTDI driver first. Here is the link to download.

http://www.ftdichip.com /Drivers/VCP.htm Download the 2.08 version for Windows systems. You will get a Zip. Extract it, you will get an .EXE file. Install it. Refer to the steps mentioned.

Double click on the EXE file to install.


Installing FTDI Driver steps Step 2

Step 3


Installing FTDI Driver steps Step 4

Step 5


Installing FTDI Driver steps Step 6

Your driver installation is finished. The Hardware is now ready to Use. Now Connect the Hardware. 

Step 7

Connect a USB cable from your board to the PC or Laptop you have 22

FTDI Driver – Check your VCOM number Step 1

You will get notified that your new hardware is ready to use. Your computer will assign a COM Port number to the hardware.

Step 2

Right Click on My Computer Icon on your desktop. Then click Properties

Find out the COM Port  23

FTDI Driver – Check your VCOM number Step 3

Click on Hardware Tab

Step 4

Click on Device Manager 24

FTDI Driver – Check your VCOM number Step 5

Click on Ports and LPT Tab

Step 6

You will get a COM number. In our case, its COM4


Inserting Hex File in the Microcontroller Flash Magic is the tool to help you insert the .HEX file into Microcontroller. Install Flash Magic on your PC first. Then follow the steps mentioned. 

Step 1

Flash Magic is a free tool, available for download at www.flashmagictool.com. Open the tool first, make sure the Rapid Development Board is connected.


Flash Magic Configuration Steps Step 2

Click to select the Chip 89V51RD2

Step 3

Choose the COM port number. Refer 27 previous pages.

Flash Magic Configuration Steps Step 4

Select Baud Rate 9600

Step 5

Select interface None (ISP)


Flash Magic Configuration Steps Step 6

Select the HEX file (generated by Keil Compiler) by clicking on Browse button. Now click Open. Remember to check the advanced options for error free operation. 

Step 7

Select Options  Advanced Options 29

Flash Magic Configuration Steps Step 8

Click on Hardware Config tab, then uncheck the 2 options visible. Click Ok. Your flash configuration is complete. Now Click Start for programming. Remember to Check Erase all Flash option.

Step 9

Your operation is successfully finished. Test the Board now. 30

Check your program Simple LED blinking Program. Don’t forget to ON the DIP switches for LED (Written as D0, D1…D7.)




Contact Us

If you want to know more about our products, then please visit www.amateurworld.in


Support: [email protected] Sales: [email protected] Phone: +91-33-24997074 Reach Us: Flat No.3, 1/6 Gandhi Colony, Regent Park, Kolkata-700040, West Bengal, India. 32