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
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Software folder contains the setup file for Keil and firmware loading program (Flash Magic).
Microcontroller Ports: Ports are shown in figure below.
PORT 0 PORT 2
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
PORT 1 PORT 3
Fig2. Microcontroller Ports.
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
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
4. PORT3: From Left to Right D0 D1 D2 D3 D4 D5 D6 D7
Interfacing LCD: LCD interface ports
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
LCD Control
LCD Data
Fig3. LCD Interface
Bit patterns of LCD interface:
1. LCD Control: From Left to Right RS R/W E
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
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
Fig4. ADC Interfacing
Bit patterns of ADC Interfacing:
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
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
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
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Fig6. Variable DC output
Interrupt Switch: While switch is pressed it gives digital low. Upper
pinhole is output and lower is ground.
Interrupt switches
Fig7: Interrupt Switches
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
DIP Switch Interface:
DIP SWITCH INTERFACE
Fig8. DIP SWITCH INTERFACE
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
On ON position DIP Switch gives digital LOW otherwise HIGH.
LED Interface:
LED INTERFACE
Fig9. LED Interface.
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Bit Pattern: Top to Bottom D7 D6 D5 D4 D0 D1 D2 D3
Interfacing Motor Driver:
Motor Control
Motor 1
Motor2
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
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)
DAC Interface:
Ref Adj and Select
DAC Interface
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
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
+5V fixed or lower by properly Selecting and adjusting the Trimpot. For
+5V fixed reference set the jumper between Right and middle pin and
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:
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
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.
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Relay_out: Left to Right NO COM NC
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.
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.
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
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.
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.
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Select ‘Baud Rate’ 9600 from Baud Rate option.
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Select proper Device ‘89V51RD2’ from Device option.
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’
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
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.
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.
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.
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
[email protected]
Product’s electronics is static sensitive. Use the product in static free environment.
Read the user manuals completely before start using this product
SysKriation | www.syskriation.co.in
P89V51RD2 Development Board
SysKriation
Innovation &
Implementation
Recycling:
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.
SysKriation | www.syskriation.co.in