You are on page 1of 32

P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Fig1. P89V51RD2 Development Board

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Introduction:
P89V51RD2 Development Board is integrated with all the basic components required for most
of the 8051 microcontroller based experiments. It is made from double sided PTH PCB board to
provide extra strength to the connector joints for increased reliability. Board can work on 9 to
15V DC supply. It has built-in reverse polarity protection. It has onboard 8-channel Analog to
Digital Converter (ADC) ADC0808, RS232 interface with DB9 female connector based on
MAX232, Motor driver L293, 7-segment display with BCD to 7-segment decoder, DAC0808,
Micro-Relay with drive circuit, DIP switch, 4x4 keypad, 2-extra key, 8-LED and also 16X2
LCD connected on the board. All ports are connected to standard 8-pin female connectors. Other
device interfaces are also connected to standard connectors. It can be programmed using Flash
Magic programming utility of NXP’s own programming utility via serial port. There are
provisions for selecting the reference voltages for both ADC and DAC and reference voltages
can also be adjusted by turning the provided trimpot.

Specifications:
• Microcontroller: P89V51RD2 with 11.0592MHz crystal
• PCB: Double side high quality PTH PCB board
• Power Supply: 9 to 15V DC
• Switch: Reset
• Interface: RS232, 8-analog input, 1,-analog output, Relay output, Motor driver
Output, 4X4 Keypad, 16X2 LCD, DIP Switch
• Connectors: Standard 8-pin single line connectors for all ports and device interfaces,
16 pin connector for analog interface, standard power connector, DB9F.
• Compatibility: Compatibility with General purpose prototyping board for development and
40 pin 8051 microcontrollers
• LCD: 16X2
• Dimension: 17.6X14.8cm

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Package contents:
1. P89v51RD2 Development Board with P89v51RD2 microcontroller
2. Documentation CD containing tutorial for P89v51RD2 microcontroller
3. RS232 connector with 1.5m cable
4. 12V DC Adapter

Resource CD contain following folders


1. Datasheets
2. Manual & Tutorial
3. Example Codes
4. Software
5. USB to SERIAL Driver

Datasheets folder contains the datasheet of P89VRD2 and all other devices.
Manual & Tutorial folder contains the circuit schematic of the development board, manual of the
board and Tutorial for programming the board in Keil.

Example Codes folder contains the following examples


1. I/O operation
2. LCD programming
3. UART(Serial Communication)
4. Data Acquisition System using serial ADC
5. Keypad interfacing
6. Motor Drive

Software folder contains the setup file for Keil and firmware loading program (Flash Magic).

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Microcontroller Ports: Ports are shown in figure below.

PORT 0 PORT 2

PORT 1 PORT 3

Fig2. Microcontroller Ports.


SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Bit Patterns of ports:


1. PORT0: From Left to Right D0 D1 D2 D3 D4 D5 D6 D7
2. PORT1: From Left to Right D0 D1 D2 D3 D4 D5 D6 D7
3. PORT2: From Left to Right D7 D6 D5 D4 D3 D2 D1 D0
4. PORT3: From Left to Right D0 D1 D2 D3 D4 D5 D6 D7

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Interfacing LCD: LCD interface ports

LCD Control
LCD Data

Fig3. LCD Interface

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Bit patterns of LCD interface:


1. LCD Control: From Left to Right RS R/W E
2. LCD Data: From Left to Right D0 D1 D2 D3 D4 D5 D6 D7

Interfacing ADC: ADC interfaces are shown below.

Channel Select

Digital Out
ADC Control

Ref Adjust Ref Select

Analog Input

7
Fig4. ADC Interfacing

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Bit patterns of ADC Interfacing:


1. ADC Data(Digital Out): From Left to Right D0 D1 D2 D3 D4 D5 D6 D7
2. Channel Select: From Left to Right ALE C B A
3. ADC Control: From Left to Right OE EOC SC
4. Analog Input: Left column is analog Input Channel of ADC and
Right Column is the ground.
From Top to Bottom CH0 CH1 CH2 CH3 CH4 CH5 CH6 CH7

Selecting and Adjusting Reference Voltage: ADC reference can be


given +5V fixed or lower by properly Selecting and adjusting the
Trimpot. For +5V fixed reference set the jumper between top and
middle pin and for lower reference set the jumper between middle and
lower pin. However lower reference can be measured in lower pin by
DMM or Oscilloscope before setting the jumper.

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Interfacing Keypad: Keypad Interface is shown below.

ROW COL

Fig5. Keypad Interface

Bit Pattern: From left to right


ROW: ROW0 ROW1 ROW2 ROW3
COL: COL0 COL1 COL2 COL3
9

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Variable DC Output: Variable DC can be taken out to test the ADC


input. To vary the voltage output just turn the potentiometer.

Right pinhole is Variable DC and Left pinhole is Ground.

POT

DC OUT

10
Fig6. Variable DC output

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Interrupt Switch: While switch is pressed it gives digital low. Upper


pinhole is output and lower is ground.

Interrupt switches

Fig7: Interrupt Switches

11

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

DIP Switch Interface:

DIP SWITCH INTERFACE

Fig8. DIP SWITCH INTERFACE

On ON position DIP Switch gives digital LOW otherwise HIGH.


12

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

LED Interface:

LED INTERFACE

Fig9. LED Interface.

Bit Pattern: Top to Bottom D7 D6 D5 D4 D0 D1 D2 D3

13

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Interfacing Motor Driver:

Motor Control
Motor 1

Motor2
2Contro
l

Fig10. Motor Driver Interface

Bit pattern: Motor Control Top to Bottom DIR1 DIR2 E1 E2


Output Motor1 & 2 Top to Bottom Y1_1(Y2_1) NC Y1_2(Y2_2)
14

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

DAC Interface:
Ref Adj and Select

DAC Interface

Fig11. DAC Interface

Bit Pattern Top to Bottom D7 D6 D5 D4 D3 D2 D1 D0

Selecting and Adjusting Reference Voltage: DAC reference can be given


15
+5V fixed or lower by properly Selecting and adjusting the Trimpot. For
+5V fixed reference set the jumper between Right and middle pin and
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

for lower reference set the jumper between middle and left pin. However
lower reference can be measured in lower pin by DMM or Oscilloscope
before setting the jumper.

DAC Interfacing requires -12V external Supply. This voltage can be


applied on the middle pin of the DAC_out. Left pin is ground and the
right pin is output.

Seven Segment Interfacing:

16

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Seven Segment Interface

Fig11: Seven Segment Imterface

For both segments bit pattern from left to right is D C D A or


D3 D2 D1 D0

17

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Relay Interface:

Relay Interface

Fig11.Interfacing Relay.

Relay_in: Left pin is excitation Pin Right is ground.


18
Relay_out: Left to Right NO COM NC

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

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-µ-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
µVision 4 software. You can also download latest version from
http://www.keil.com/dd/chip/3711.htm and click C51 Evaluation Software

For writing, compiling C program and generating *.hex file in Keil-µ-Vision see the tutorial
provided in the CD.

19

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

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.

20

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

In main window you can see five types of sections.


1. Communications
2. Erase
3. Hex File
4. Options
5. Start

21

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Go to “Option” in the toolbar, and select first menu ‘Advance options.’

It will show you extracted window with many options. 22

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

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 then find out COM port
number in Device Manager.

23

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Select ‘Baud Rate’ 9600 from Baud Rate option.

24

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

25

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Select proper Device ‘89V51RD2’ from Device option.

26

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Go to ‘Erase’ section for erasing the all ‘Flash’ or Blocks used by ‘HEX File’

27
Check on the check box to Erase all Flash.

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Go to ‘HEX File’ section click ‘Browse’ to select proper Hex file.

28

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

Go to ‘Option’ section to select ‘Verify after programming’ option. This will verify hex file after
loading.

29

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

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 find out COM
port number in Device Manager.

30

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation

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,
SysKriation welcomes your corrections. You can send us your queries /suggestions at
syskriation@gmail.com

Product’s electronics is static sensitive. Use the product in static free environment.
Read the user manuals completely before start using this product

31
Recycling:

SysKriation | www.syskriation.co.in
P89V51RD2 Development Board

SysKriation
Innovation & Implementation
Almost all the parts 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.

32

SysKriation | www.syskriation.co.in

You might also like