P89V51RD2 Development Board May 2010

Similar documents
8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

8051 General Purpose Board

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

LPR530A ±300 /Second, ±1200 /Second Analog Pitch-Roll Gyroscope Module

AVR Development Board

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

AVR Peripheral Board. Campus Component Pvt. Ltd.

BV511 Hardware Guide ByVac ByVac Revision 1.0

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

keyestudio Keyestudio MEGA 2560 R3 Board

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

EPM900 - Overview. Features. Technical Data

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

AVR Development Board

Note that FLIP is an Atmel program supplied by Crossware with Atmel s permission.

ZKit-51, 8051 Development Kit

AC/DC. Adapter. Ribbon. Cable Serial. Serial. Adapter. Figure 1. Hardware Setup using an EC2 Serial Adapter

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

A brief user guide Universal Learning Remote Controller

Getting Started with Keil µvision 3 and C51

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

LPC2148 DEV BOARD. User Manual.

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Breeze Board. Type A. User Manual.

Easy Kit Board Manual

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

F 2 MC-8L FAMILY 8-BIT MICROCONTROLLER MB89201 SERIES GETTING STARTED DEV-MB89N202-APP1 OPERATION MANUAL

M32 Development Board

Manual of Board ET-PIC STAMP 18F8722-K22 ET-PIC STAMP 18F8722-K22

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

Rhino Robot Control Board [RKI-1550]

ZIC2410 User Guide Device-Programmer Software Manual

C8051F700-DK C8051F700 DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents. 3. Hardware Setup

UT32M0R500-EVB Development Board User Manual

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

LPC1788 Mio Board. The functional details of the board are as follows-

ARDUINO MEGA 2560 REV3 Code: A000067

S125 Multi-Purpose 125 KHz RFID Reader USER MANUAL. 9V/24V DC Operating Voltage, AC (optional) KHz RFID EM4100/2 Cards & Tags

Lab 1 Introduction to Microcontroller

Dual Serial Shield User Manual

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

C8051F530A-DK C8051F530A DEVELOPMENT KIT USER S GUIDE. 1. Relevant Devices. 2. Kit Contents

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

XC866 Getting Started on EasyKit & Toolkits

TABLE OF CONTENTS Overview... Hardware Introduction... Software Development... I/O Distribution...

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

PGT302 Embedded Software Technology. PGT302 Embedded Software Technology

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

Getting Started Guide RS-EDP & XC167 CPU Module. Version 2 10th June 2010

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM

ToolStick-EK TOOLSTICK USER S GUIDE. 1. Kit Contents. 2. ToolStick Overview. Green and Red LEDs. C8051F321 provides USB debug interface.

Goal: We want to build an autonomous vehicle (robot)

Locktronics PICmicro getting started guide

Arduino ADK Rev.3 Board A000069

ARDUINO UNO REV3 Code: A000066

CHAPTER 1 Introduction of the tnano Board CHAPTER 2 tnano Board Architecture CHAPTER 3 Using the tnano Board... 8

ATMega128 Rapid Robot Controller Board [RKI-1148]

SK40C ENHANCED 40 PINS PIC START-UP KIT. User s Manual V1.3. March 2012

QuickStart Instructions. Using Keil's ULINK and the Keil ARM/µVision3 Software Development Tool Chain

How2Use DT-51 AT89C51XXX BMS. By: IE Team. Picture1 The layout of DT-51 AT89C51XXX BMS

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

ARDUINO MEGA ADK REV3 Code: A000069

Introduction to ARM LPC2148 Microcontroller

AC/DC. Adapter. Serial. Adapter. Figure 1. Hardware Setup

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

AVR-P20 development board Users Manual

How2Use DT-AVR ATMEGA168 BMS. By: IE Team. Picture 1 The layout of DT-AVR ATMEGA168 BMS

Breeze Board. Type B. User Manual.

Figure 1-1 ISPAVRU1 application

Megawin 8051 ISP via COM Port

A Programmer for the 68HC705C8 MicroController Figure 1 PROG05 As Built PROG05 User Guide Version C1 Page 1 of 14

Lab 3a: Scheduling Tasks with uvision and RTX

ARDUINO LEONARDO ETH Code: A000022

AN-8207 Fairchild s Motor Control Development System (MCDS) Integrated Development Environment (IDE)

GUIDE TO SP STARTER SHIELD (V3.0)

ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148

ARDUINO LEONARDO WITH HEADERS Code: A000057

EE 354 August 1, 2017 Assembly of the AT89C51CC03 board

Flash Magic Application Note 4 What to do if ISP Does Not Work Embedded Systems Academy 2003, All Rights Reserved

DIY KIT 123. ATMEL 89xxxx PROGRAMMER

Getting Started with STK200 Dragon

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup Using a USB Debug Adapter

Transcription:

P89V51RD2 Development Board May 2010 NEX Robotics Pvt. Ltd. 1

P89V51RD2 Development Board Introduction: P89V51RD2 Development Board P89V51RD2 Development Board is a low cost development board which have all the basic components needed for gaining a headstart on your first 8051 microcontroller projects. It is made from double sided PTH PCB board to provide extra strength to the connector joints for increased reliability. Board can work on 7 to 15V AC or DC supply. It has built-in reverse polarity protection. 7805 voltage regulator has heat sink for heat dissipation so that it can supply 1Amp current continuously without getting over heated. It has switches for reset and power. It also has RS232 interface with DB9 female connector based on MAX232. All the ports are connected to standard 10 pin FRC connectors. Open pads for connecting microcontroller s pins to external devices are also provided. It can be programmed using Flash Magic programming utility of NXP s own programming utility via serial port. NEX Robotics Pvt. Ltd. 2

Specifications Microcontroller: P89V51RD2 with 11.0592MHz crystal Double side high quality PTH PCB board to provide extra strength to the connector joints for increased reliability Power: 7 to 15V, AC or DC, Heat sink on 7805 for better current rating Reverse polarity protected Switches: Reset, Power RS232 serial interface 10 pin FRC connectors and soldering pads on all ports Compatible with General purpose prototyping board for development board for stackable design Application examples in Keil provided in the documentation CD Package contains P89v51RD2 Development Board with P89v51RD2 microcontroller Documentation CD containing tutorial for P89v51RD2 microcontroller programming in Keil and application examples. Documentation CD contain following Application examples I/O Port operation Interrupt control Timer as external Counter PWM (Pulse Width Modulation) for power control UART (Serial Communication) P89V51RD2 Development Board Warning: Do not give Power supply more than 15 V AC/DC. NEX Robotics Pvt. Ltd. 3

Note: P89V51RD2 Development Board schematic is in the documentation CD PORT FRC connector pin connections Pin No. Pin Function 1 Pin 0 of PORT X 2 Pin 1 of PORT X 3 Pin 2 of PORT X 4 Pin 3 of PORT X 5 Pin 4 of PORT X 6 Pin 5 of PORT X 7 Pin 6 of PORT X 8 Pin 7 of PORT X 9 5V 1A output of 7805 voltage regulator 10 Ground Power Port pin connections Power port is used to give power to the accessories boards compatible to the microcontroller development board Pin No. Pin Function 1 5V 1A output of 7805 voltage regulator 2 5V 1A output of 7805 voltage regulator 3 Ground 4 Ground 5 Vin DC (Input supply 1.2V DC drop due to bridge rectifier) 6 Vin DC (Input supply 1.2V DC drop due to bridge rectifier) 7 NC 8 NC 9 NC 10 NC NEX Robotics Pvt. Ltd. 4

Loading Firmware on Development Board P89V51RD2 Development Board programming involves two steps. First step is to write and compile the code and generate the *.hex file. Second step is to load this *.hex file on the microcontroller using Flash Magic software provided by NXP (formerly Phillips) We are going to use Keil-U-Vision (Version 4) software for writing the code for the microcontroller. We can also use any other open source of proprietary software supporting P89V51RD2 microcontroller. P89V51RD2 Development Board CD contains free version of the uvision 4 software. You can also download latest version from http://www.keil.com/dd/chip/3711.htm and click C51 Evaluation Software Writing program in KEIL uvision3.1 Start with Keil-U-Vision Steps for writing program in uvision3 Go to project and start new project. Name your project and save it in your project folder. (always create new folder for new project) NEX Robotics Pvt. Ltd. 5

A dialogue box will open asking you to select your device used. Select the appropriate device for e.g. P89V51RD2.Then click OK. P89V51RD2 can be found in the NXP (founded by Philips) directory. NEX Robotics Pvt. Ltd. 6

Next it will ask you if you want to add the A51STARTUP code. Say NO NEX Robotics Pvt. Ltd. 7

In the Project Workspace right click on Target 1 and select options for target as shown. A dialogue box to choose different options will open. Click on the Target tab. Enter the frequency of the crystal. For Development Board its 11.0592 MHz. NEX Robotics Pvt. Ltd. 8

Go to the output tab and tick on the file to create HEX-file. Then click OK to save your options. Other tabs can be left with the default options. After this is done, open a new file and save it with the project file as a C file i.e. with the extension.c. NEX Robotics Pvt. Ltd. 9

Add this file to the project by Right-clicking on Source Group and choosing to add files to group. Select the appropriate.c file to be added. NEX Robotics Pvt. Ltd. 10

You can write macros and save them with an.h extension and add them to your project files. Write your C code and save the file. Add (write): #include <intrins.h> Add (write): #include "p89v51rx2.h" Copy file: p89v51rx2.h from the folder Experiments from the documentation CD and paste it in your existing project folder before building target. Note: A declaration with the following syntax #include <intrins.h> would direct the compiler to look for the.h file in its own parent directory whereas the syntax #include intrins.h would direct the compiler to search for the.h file in the parent directory where the current project is stored. Therefore the double quotes are used to declare the files specific to the Microcontroller chip and its peripherals where as < > are used to declare more generic files which are compatible with multiple chips. //code for buzzer beep //connect Buzzer to Port pin 2.7. #include <intrins.h> #include "p89v51rx2.h" sbit buzzer=p2^7; //buzzer = 1; buzzer off, buzzer = 0; buzzer on, // function for giving a delay of ms milliseconds void delay_ms(unsigned int ms) { unsigned int i,j; for(i=0;i<ms;i++) for(j=0;j<53;j++); } void main (void) { while(1) { buzzer=0; delay_ms(100); buzzer=1; delay_ms(100); } } //switch ON the buzzer //give delay of 100 milliseconds //switch off the buzzer NEX Robotics Pvt. Ltd. 11

Now click on the Project tab and choose to Build Target as shown. Check for any errors in the Output Window. If there are no errors then Hex file will be created and stored in the Project folder. You can then download this file onto your microcontroller using the In System Programming (ISP) software i.e. using flash tools like Flash Magic or FLIP or parallel programming as supported by your microcontroller. Note: Use rebuild all target files option if you are including multiple header file NEX Robotics Pvt. Ltd. 12

Loading the generated Hex file on the microcontroller using Serial Port Flash Magic is Windows software which allows easy access to all the In System Programming (ISP) features provided by the devices. These features include: Erasing the Flash memory (individual blocks or the whole device) Programming the Flash memory Reading Flash memory Reading the signature bytes Reading and writing the security bits Direct load of a new baud rate (high speed communications) Sending commands to place device in Boot loader mode Flash Magic provides a clear and simple user interface to these features Go to Flash Magic Icon, it will open the main window as show below. NEX Robotics Pvt. Ltd. 13

In main window you can see five types of sections. 1. Communications 2. Erase 3. Hex File 4. Options 5. Start Go to Option in the toolbar, and select first menu Advance options. NEX Robotics Pvt. Ltd. 14

It will show you extracted window with many options. Uncheck the box which is highlighted to don t allow Flash Magic to control PSEN & RST using DTR & RTS. Now go for Communication selection, select COM 1 from COM PORT Option if you are using serial port. If you are using USB to serial converter from NEX Robotics then find out COM port number with the help of documentation provided with the USB to serial converter. NEX Robotics Pvt. Ltd. 15

Select Baud Rate 9600 from Baud Rate option. Select proper Device 89V51RD2 from Device option. NEX Robotics Pvt. Ltd. 16

Go to Erase section for erasing the all Flash or Blocks used by HEX File Check on the check box to Erase all Flash. Go to HEX File section click Browse to select proper Hex file. NEX Robotics Pvt. Ltd. 17

Go to Option section to select Verify after programming option. This will verify hex file after loading. After doing all the required settings, connect serial cable between Development Board and PC. Turn on the Board and click on the Start, it will ask to RESET TO DEVICE IN TO ISP MODE, now press RESET Switch on the Development Board, Flash magic will load hex file on the robot and verify it for correctness. If you are using USB to serial converter from NEX Robotics then find out COM port number with the help of documentation provided with the USB to serial converter. NEX Robotics Pvt. Ltd. 18

Notice The contents of this manual are subject to change without notice. All efforts have been made to ensure the accuracy of contents in this manual. However, should any errors be detected, NEX Robotics welcomes your corrections. You can send us your queries / suggestions at info@nex-robotics.com Content of this manual is released under the Creative Commence cc by-nc-sa license. For legal information refer to: http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode Product s electronics is static sensitive. Use the product in static free environment. Read the user manuals completely before start using this product Recycling: Almost all the part of this product are recyclable. Please send this product to the recycling plant after its operational life. By recycling we can contribute to cleaner and healthier environment for the future generations. NEX Robotics Pvt. Ltd. 19