32
Getting Started With Rapid Development Board AMATEUR WORLD Rapid Development Board for 8051 1

Rapid Development Board for 8051 Getting Startedamateurworld.in/download/products_extra_files/Getting Started With.pdf · Check your first Program 31 Contact Us 32 2. Board Features

  • Upload
    haliem

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Getting Started

With

Rapid Development Board

AMATEUR WORLD

Rapid Development Board for 8051

1

Table of Contents

Board Features 3

Microcontroller Features 4

Getting Started with Programming 5

Installing FTDI Driver 19

Finding out the Virtual COM port 23

Inserting Hex File into Microcontroller 26

Check your first Program 31

Contact Us 32

2

Board Features

1. Microcontroller P89V51RD2

2. 16x2 LCD Display

3. 2 Seven Segment Display

4. 8 on board LEDs

5. FTDI IC for USB Serial Port

6. External Ports

7. Matrix Keypad (4x3)

8. Interrupt Switches

9. Buzzer

10. USB Connector for Power as well as Programming

11. External Power Supply (Need 12V Adapter)

12. On Board Power Circuit

13. DIP Switches

13

6

11

10

12

9

58

7 43

21

3

• 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

– Full-duplex enhanced UART

– Framing error detection

• Automatic address recognition

• Power control modes

– Clock can be stopped and resumed

– Idle mode

– Power down mode

• Programmable clock out

• Second DPTR register

• Asynchronous port reset

Microcontroller P89V51RD2

4

Getting Started with Programming – Step 1

Install Keil uVision Compiler (2/3/4 version). Open it first and follow the steps

5

Getting Started – Step 2

Click on Project Menu New uVision Project

6

Getting Started – Step 3

Save your uVision project in a desired location. Click Save

7

Getting Started – Step 4

Select Device for Target – Click on NXP Select P89V51RD2

8

Getting Started – Step 5

Select Device for Target – Click ok.

9

Getting Started – Step 6

It will prompt you to add start up code. Not necessary – Click No.

10

Getting Started – Step 7

Click on the ‘+’ sign of Target 1. You will find Source Group. Right

Click on Source Group 1.

11

Getting Started – Step 8

Select Add files to add your C program.

12

Getting Started – Step 9

Select your .C file which will be loaded into the target microcontroller. Click Add.

13

Getting Started – Step 10

Here is your first C program ready to compile.

14

Getting Started – Step 11

Right Click on Target Select Options for Target 1

15

Getting Started – Step 12

This Window will open. Click on Output Tab.

16

Getting Started – Step 13

Check Create Hex File option. Then Click OK.

17

Getting Started – Step 14

Click the Build Target Option. Your program is now compiled and Hex file is generated.

18

Installing FTDI Driver – Step 1

You are now ready with the hexfile. Now download the FTDIdriver first. Here is the link todownload.

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.

19

Installing FTDI Driver steps

Step 2 Step 3

20

Installing FTDI Driver steps

Step 4 Step 5

21

Installing FTDI Driver steps

Step 6 Step 7

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

Connect a USB cable from your board

to the PC or Laptop you have

22

FTDI Driver – Check your VCOM number

Step 1 Step 2

You will get notified that your new hardware is

ready to use. Your computer will assign a

COM Port number to the hardware.

Find out the COM Port

Right Click on My Computer Icon on your desktop. Then

click Properties

23

FTDI Driver – Check your VCOM number

Step 3 Step 4

Click on Hardware Tab Click on Device Manager

24

FTDI Driver – Check your VCOM number

Step 5 Step 6

Click on Ports and LPT Tab You will get a COM number.

In our case, its COM425

Inserting Hex File in the Microcontroller

Step 1Flash Magic is the tool to helpyou insert the .HEX file intoMicrocontroller. Install Flash

Magic on your PC first. Thenfollow the steps mentioned.

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.

26

Flash Magic Configuration Steps

Step 2 Step 3

Click to select the Chip 89V51RD2 Choose the COM port number. Refer previous pages.

27

Flash Magic Configuration Steps

Step 4 Step 5

Select Baud Rate 9600 Select interface None (ISP)28

Flash Magic Configuration Steps

Step 6 Step 7

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. Select Options Advanced Options

29

Flash Magic Configuration Steps

Step 8 Step 9

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. 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.)

LEDs ON LEDs OFF

31

Contact Us

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

https://www.facebook.com/amateurworld

If you want to know more about our products, then please visit

www.amateurworld.in

32