3
Most read
12
Most read
Operational Manual
               for
  8051 Development Kit
       8051DK-6x10

         For Workshop on

“Embedded Systems using 8051 MuC”

        By: Anish Goel
        M.S.E.E., NJIT, USA
CONTENTS
   1.   List of contents of the package.
   2.   Details of the development kit and features.
   3.   Software installation steps.
   4.   Connecting and powering up the kit.
   5.   Tutorial on RIDE and Flash Magic.
   6.   Sample codes and their explanation.




8051DK-6x10 Manual                                     Page 2
Chapter 1
List of contents of the package
The package contains:

   1. A 6cm x 10cm 8051 Development kit PCB with following devices on it:
         a. P89V51RD2BN microcontroller chip.
         b. MAX232 chip
         c. 3mm LED’s – 4 Nos.
         d. Pushbutton Switches – 4Nos.
         e. Seven Segment Display (Common Cathode) – 1Nos.
         f. 0.5 cm DC motor with driver circuit.
         g. Serial DB-9 Connector.
         h. B-type USB connector.
         i. 11.0592 MHz crystal and other discrete components.

   2. A USB cable, A to B type.

   3. A serial Cable.

   4. A CD containing the required software’s and this instruction manual.




8051DK-6x10 Manual                                                           Page 3
Chapter 2
Details of the development kit and Features


                                                                          1
                                                                               2
           8

                                                                               3
           9
                                                                                      15
           10
                                                                           4
           11


           12
                                                                               5


            13                                                                 6



                                                                               7
            14




Identification

   1   ------------------------------------------------------ Reset Switch
   2   ------------------------------------------------------ Seven Segment Display
   3   ------------------------------------------------------ FRC Male Connector
   4   ------------------------------------------------------ Input Switch Array

8051DK-6x10 Manual                                                                    Page 4
5 ----------------------------------------------------- Power ON/OFF Switch
   6 ----------------------------------------------------- USB Female Connector B type
   7 ----------------------------------------------------- USB cable
   8 ----------------------------------------------------- LED’s for output
   9 ----------------------------------------------------- Power ON LED
   10 ----------------------------------------------------- Driver Circuit for DC motor
   11 ----------------------------------------------------- D.C. Motor
   12 ----------------------------------------------------- MAX-232 and capacitors
   13 ----------------------------------------------------- Serial port DB-9 Female Con.
   14 ----------------------------------------------------- Serial Cable
   15 ----------------------------------------------------- Microcontroller P89V51RD2



Features:
   1. The size of the kit is very small, due to which it is extremely handy and can
      be easily used without proper lab setup with a laptop machine.

      Size in cm: 6 x 10

   2. CPU of the development kit P89V51RD2BN which is a In-system
      programmable microcontroller with intel 8051 architecture.
   3. For basic input/output interface LED’s and switches are provided.
   4. A common cathode seven segment is interfaced to study interface of
      display device.
   5. A small DC motor (cell phone vibration motor) is interfaced to
      microcontroller and the driver circuit is provided on the kit.
   6. A MAX-232 IC with capacitors is interfaced to the microcontroller at its SCI
      port to provide serial communication.
   7. Power-ON reset circuitry is provided on the board that resets the
      microcontroller when it is powered up. A reset switch is also present to
      reset the microcontroller at any instance.
   8. USB cable is provided to power up the kit. A ON/OFF switch is present to
      turn the kit ON/OFF without disconnecting the cable. Power-ON indicator
      LED indicates if the kit is getting power.
8051DK-6x10 Manual                                                                 Page 5
9. A 11.0592 MHz crystal is present on the board to provide clock to the chip.
   10.Male FRC connector pins are available on both sides of the 8051 MuC chip
      and are accessible to the user to interface any other device besides the
      interfaces provided ON-Board. These pins are connected to each pin on
      8051 MuC.



Pin connections for MuC on the Kit.
Pin Number                Function              Connected to:       Comments
     1               Port 1 0th Bit (P1.0)     LED1 and FRC pin        --
     2               Port 1 1st Bit (P1.1)     LED2 and FRC pin        --
     3               Port 1 2nd Bit (P1.2)     LED3 and FRC pin        --
     4               Port 1 3rd Bit (P1.3)     LED4 and FRC pin        --
     5               Port 1 4th Bit (P1.4)          FRC pin            --
     6               Port 1 5th Bit (P1.5)          FRC pin            --
     7               Port 1 6th Bit (P1.6)          FRC pin            --
     8               Port 1 7th Bit (P1.7)     Motor Driver and        --
                                                    FRC pin
     9                      Reset              Reset Switch and        --
                                                    FRC pin
    10               Port 3 0th Bit (P3.0 )    Max-232 and FRC         --
                                                       pin
    11               Port 3 1st Bit (P3.1)     Max-232 and FRC         --
                                                       pin
    12               Port 3 2nd Bit (P3.2)          FRC pin            --
    13               Port 3 3rd Bit (P3.3)          FRC pin            --
    14               Port 3 4th Bit (P3.4)          FRC pin            --
    15               Port 3 5th Bit (P3.5)          FRC pin            --
    16               Port 3 6th Bit (P3.6)          FRC pin            --
    17               Port 3 7th Bit (P3.7)          FRC pin            --
    18                  Crystal 1 (X1)        Crystal and FRC pin      --
    19                  Crystal 2 (X2)        Crystal and FRC pin      --
    20                     Ground              GND and FRC pin         --
    21               Port 2 0th Bit (P2.0 )    SW4 and FRC pin         --
    22               Port 2 1st Bit (P2.1)     SW3 and FRC pin         --
    23               Port 2 2nd Bit (P2.2)     SW2 and FRC pin         --
    24               Port 2 3rd Bit (P2.3)     SW1 and FRC pin         --
    25               Port 2 4th Bit (P2.4)          FRC pin            --
    26               Port 2 5th Bit (P2.5)          FRC pin            --


8051DK-6x10 Manual                                                             Page 6
27               Port 2 6th Bit (P2.6)        FRC pin       --
    28               Port 2 7th Bit (P2.7)        FRC pin       --
    29                       ALE              GND and FRC pin   --
    30                      PSEN              VCC and FRC pin   --
    31                     EA/Vpp             VCC and FRC pin   --
    32               Port 0 0th Bit (P0.7 )   SSD and FRC pin   --
    33               Port 0 1st Bit (P0.6)    SSD and FRC pin   --
    34               Port 0 2nd Bit (P0.5)    SSD and FRC pin   --
    35               Port 0 3rd Bit (P0.4)    SSD and FRC pin   --
    36               Port 0 4th Bit (P0.3)    SSD and FRC pin   --
    37               Port 0 5th Bit (P0.2)    SSD and FRC pin   --
    38               Port 0 6th Bit (P0.1)    SSD and FRC pin   --
    39               Port 0 7th Bit (P0.0)    SSD and FRC pin   --
    40                       VCC              VCC and FRC pin   --




8051DK-6x10 Manual                                                   Page 7
Chapter 3
Software installation steps
Installation steps for RIDE.

   1.   Go to the folder named RIDE.
   2.   Double click on install.exe.
   3.   Click next next …. and go ahead until the setup wizard is complete.
   4.   At the end click finish to complete the installation.



Installation steps for Philips Flash magic.

   1. Double click on Flash magic.exe.
   2. Click next next …. and go ahead until the setup wizard is complete.
   3. At the end click finish to complete the installation.




8051DK-6x10 Manual                                                            Page 8
Chapter 4
Connecting and powering up the kit
   1. Power is provided to the kit through USB cable provided with the kit.
   2. Connect the B side of the USB cable to the B type connector present on the
      kit.
   3. Connect the A side of the USB cable to USB connector of the
      Laptop/desktop.
   4. After connecting both ends of the cable, push the ON/OFF switch.
   5. A small LED besides this switch turns ON to indicate that the kit is powered
      up properly.
   6. The serial cable provided with the kit is used to transfer the hex code from
      the PC to the kit and also as a serial link between the kit and any other
      device while performing serial communication.
   7. Connect one of the ends of the serial cable (Male connector) to the female
      serial DB-9 connector on the kit.
   8. Connect the other end of this cable to the serial port of the computer
      (Desktop).
   9. A USB to serial convertor may be used if the kit is to be connected to a
      Laptop.
   10.There is no indication whether the serial link between the kit and computer
      is has been established. It is automatically verified once a program is
      transferred from the computer to the microcontroller successfully.




8051DK-6x10 Manual                                                          Page 9
Chapter 5
Tutorial on RIDE and Flash Magic
Executing sample programs using RIDE.



   1. Open the RIDE software.




   2. To make a new project:
         • Project        New




         •   Specify a “Name”.
         •   Directory where the project is to be stored.
         •   Target family as 80C51.
         •   Click “Next”.
         •   Select the target device as: Atmel-AT89S52, or Philips-
             P89C/V51RD2xx.
8051DK-6x10 Manual                                                     Page 10
• Clock on “Finish”


   3. The place on the left hand side is the project window. It shows all the
      details about the project.




   4. To create new file: File   New C File.

   5. Write your code into the window on the right and save it.

   6. Right click on your project name in the project window and click on “Add
   node source/application”.

   7. Brows the saved C-File and click ok. This includes the C-File in the project.

   8. To generate .HEX file of the project press F9. The hex file is generated is
   there are no errors in the code.

   9. The location of the .HEX file is shown at the bottom of the RIDE window.




8051DK-6x10 Manual                                                              Page 11
10. This file can be directly transferred to the microcontroller using Flash
   magic.




8051DK-6x10 Manual                                                            Page 12
Programming the microcontroller P89C/V51RD2BN using Philips Flash Magic



   1. Open the Philips flash magic software.
   2. Make the following setting in the software:
         • Select the appropriate COM port where the kit is connected.
         • Select the Baud rate (Generally keep it at 9600)
         • Select the device (89C51RD2xx or 89V51RD2) according to the
           microcontroller place on board.
         • Place a tick on “Erase all flash”
   3. Brows your code’s .HEX File I the hex file space.




   4. Click on the “Start” button.


8051DK-6x10 Manual                                                       Page 13
5. The software gives a message “Reset the device in ISP mode now” (in case
      of 89V51RD2)




   6. Turn the kit off by pressing the pushbutton switch (AC/DC) switch and then
   switch it on. The above box disappears and the hex file gets transferred.

   ALTERNATIVELY

   6. At this point press the “BOOT” switch on the kit. Reset the device by
      pressing the “RESET” switch (while keeping the BOOT switch pressed), and
      then release the BOOT switch. The above window disappears and the .HEX
      file is transferred to the microcontroller.
   7. After the software shows “Finish” (bottom right of the window) Press
      “RESET” switch to execute your program.
   8. In case of 89C51RD2xx, select this device, locate the hex file, follow STEP 6
      (above) and then press start button on the software.




8051DK-6x10 Manual                                                             Page 14
Chapter 6
Sample codes
Code 1
This code will blink LED’s connected at Port 1 alternatively.

Change the numbers 0xaa and 0x55 to change the pattern of the LED’s.

# include<reg51rx.h>

main()

{
         int t;
         P1=0xaa;
         for(t=0;t<50000;t++);
         P1=0x55;
         for(t=0;t<50000;t++);
         main();
}


Code 2
This code checks if any of the switches at port 2 is pressed and then blinks the LED’s at port 1.

# include<reg51rx.h>

void prog1();
void delay();

main()

{
         int r;
         P2=0xff;
         if (P2!=0xff)
         {

8051DK-6x10 Manual                                                                         Page 15
prog1();
         }
}

void prog1(void)

{
         P1=0x00;
         delay();
         P1=0xff;
         delay();
         main();
}

void delay(void)

{
         int t;
         for(t=0;t<50000;t++);
}



Code 3
This code displays the count 0 to 9 on seven segment display interfaced on port 0.

# include<reg51rx.h>

main()

{
         int t,i,u;
         static code char num[] = {0x7e,0x48,0x3d,0x6d,0x4b,0x67,0x77,0x4c,0x7f};
         for(i=0;i<10;i++)
         {
                  P0=num[i];
                  for(u=0;u<20;u++)
                  {
                         for(t=0;t<50000;t++);

8051DK-6x10 Manual                                                                   Page 16
}
       }
       i=0;
}




Code 4
Set the baud rate on hyper-terminal at 9600 bps
/************************************************************/
/*      this displays how to serially communicate without printf */
/************************************************************/

#include<reg51rx.h>

void comsend(char *);
void cominit();

void main()
{
      cominit();//initialize UART for communication
      comsend("Hello World");//send the string
      while(1);//stop
}

void cominit()
{
       TH1=-3;//timer 1 used as baud rate generator, gives 9600 baud
       TMOD=0x20;//timer 1 in mode 1
       TR1=1;//start timer 1

       SCON=0x50;//intialize UART
}

void comsend(char *dat)//read data
{
       char data temp;//temporary
       for(temp=0;dat[temp];temp++)//count characters in the string

8051DK-6x10 Manual                                                     Page 17
{
            TI=0;
            SBUF=dat[temp];//transmit character
            while(!TI);//wait for transmission
      }
}




             For more details visit: www.dicovermechatronics.blogspot.com
                             Email: 2007.anish@gmail.com
                                     Cell: 09970825313




8051DK-6x10 Manual                                                          Page 18

More Related Content

PPTX
Arduino maze solving robot
DOCX
Object follower bot
PPTX
AN ADVANCED DOOR-KNOCK AID FOR DEAF
PDF
Smart Voice Controlled Wheelchair
PPTX
Android-based surveillance Robot
PPTX
EYE CONTROLLED WHEEL CHAIR USING RASPBERRY PI
PPTX
Sem2 robotics ppt
PDF
Lecture 10 mobile robot design
Arduino maze solving robot
Object follower bot
AN ADVANCED DOOR-KNOCK AID FOR DEAF
Smart Voice Controlled Wheelchair
Android-based surveillance Robot
EYE CONTROLLED WHEEL CHAIR USING RASPBERRY PI
Sem2 robotics ppt
Lecture 10 mobile robot design

What's hot (20)

PPTX
Pelton_Presentation_Drowsy_Driving_PCoughlin_DRubenstein_KSingh
PPTX
smart vehicle parking system
PDF
Enhanced robotic arm Abstract
PPTX
Cruise control devices
PPTX
Autonomous maze solving robot (1/2)
PPTX
Smart DoorBell - Make your door smart with Raspberry Pi!
PPTX
Vechicle accident prevention using eye bilnk sensor ppt
DOCX
Digital Alarm Clock (IC-TMS-8560)
PDF
Maze Solver Robot using Arduino
PPTX
Real-time Obstacle Avoidance Algorithm for Mobile Robots
PPT
Arduino traffic lights
PPTX
Intelligent traffic information and control system
PPTX
Traffic light controller
PPTX
Obstacle Avoiding Robot Using Micro Controller
PPTX
Obstacle avoiding robot
PPTX
Line Following Robot Using Arduino
PPTX
BOMB DETECTION ROBOT BY USING GSM & GPS
PPTX
Obstacle Avoidance Robot (Powered by Arduino)
PDF
Women Security Assistance system with GPS tracking and messaging system
PPSX
Singapore Electronic Road Pricing System
Pelton_Presentation_Drowsy_Driving_PCoughlin_DRubenstein_KSingh
smart vehicle parking system
Enhanced robotic arm Abstract
Cruise control devices
Autonomous maze solving robot (1/2)
Smart DoorBell - Make your door smart with Raspberry Pi!
Vechicle accident prevention using eye bilnk sensor ppt
Digital Alarm Clock (IC-TMS-8560)
Maze Solver Robot using Arduino
Real-time Obstacle Avoidance Algorithm for Mobile Robots
Arduino traffic lights
Intelligent traffic information and control system
Traffic light controller
Obstacle Avoiding Robot Using Micro Controller
Obstacle avoiding robot
Line Following Robot Using Arduino
BOMB DETECTION ROBOT BY USING GSM & GPS
Obstacle Avoidance Robot (Powered by Arduino)
Women Security Assistance system with GPS tracking and messaging system
Singapore Electronic Road Pricing System
Ad

Similar to 8051 kit manual (20)

PDF
8051 smd kit_manual
PDF
P89v51rd2
PDF
FOSOH-V (TM) preliminary schematics
PDF
Argox scannerqig
PDF
8051 microcontroller
PDF
89 v51rd2bn
PPT
PIC16F877A C Programming.ppt
PPT
8051microcontroller
DOCX
Rf module
PDF
74HCT4046-SMD.pdf Datasheet de IC 4046 descripción
PDF
avenger96-schematics.pdf
PDF
At 89c51
PDF
BlueOptics Bo33j15280d 10gbase-zr xenpak transceiver 1550nm 80 kilometer sing...
PDF
At89s51
PDF
Bo32j15280d 10gbase-zr x2 transceiver 1550nm 80 kilometer singlemode sc-duple...
PPTX
Unit_I.pptx
PDF
BlueOptics Bo33j13210d 10gbase-lr xenpak transceiver 1310nm 10 kilometer sing...
PDF
Bo32j13210d 10gbase-lr x2 transceiver 1310nm 10 kilometer singlemode sc-duple...
PPT
Packet Card Knowledge Transferfinal
PDF
NT1065 LE DS v2.04
8051 smd kit_manual
P89v51rd2
FOSOH-V (TM) preliminary schematics
Argox scannerqig
8051 microcontroller
89 v51rd2bn
PIC16F877A C Programming.ppt
8051microcontroller
Rf module
74HCT4046-SMD.pdf Datasheet de IC 4046 descripción
avenger96-schematics.pdf
At 89c51
BlueOptics Bo33j15280d 10gbase-zr xenpak transceiver 1550nm 80 kilometer sing...
At89s51
Bo32j15280d 10gbase-zr x2 transceiver 1550nm 80 kilometer singlemode sc-duple...
Unit_I.pptx
BlueOptics Bo33j13210d 10gbase-lr xenpak transceiver 1310nm 10 kilometer sing...
Bo32j13210d 10gbase-lr x2 transceiver 1310nm 10 kilometer singlemode sc-duple...
Packet Card Knowledge Transferfinal
NT1065 LE DS v2.04
Ad

More from anishgoel (20)

PDF
Computer Organization
PDF
Learning vhdl by examples
PDF
Dot matrix module interface wit Raspberry Pi
PDF
Input interface with Raspberry pi
PDF
Learning Python for Raspberry Pi
PDF
Raspberry Pi
PDF
learning vhdl by examples
PDF
Digital System Design Basics
PPTX
digital design of communication systems
PPTX
Rtos concepts
PDF
8051 Microcontroller Timer
PDF
8051 Microcontroller I/O ports
PDF
Serial Communication Interfaces
PDF
Embedded systems ppt iv part d
PDF
Embedded systems ppt iv part c
PDF
Embedded systems ppt iv part b
PDF
Embedded systems ppt ii
PDF
Embedded systems ppt iii
PDF
Embedded systems ppt iv part a
PDF
Embedded systems ppt i
Computer Organization
Learning vhdl by examples
Dot matrix module interface wit Raspberry Pi
Input interface with Raspberry pi
Learning Python for Raspberry Pi
Raspberry Pi
learning vhdl by examples
Digital System Design Basics
digital design of communication systems
Rtos concepts
8051 Microcontroller Timer
8051 Microcontroller I/O ports
Serial Communication Interfaces
Embedded systems ppt iv part d
Embedded systems ppt iv part c
Embedded systems ppt iv part b
Embedded systems ppt ii
Embedded systems ppt iii
Embedded systems ppt iv part a
Embedded systems ppt i

Recently uploaded (20)

PPTX
Climate Change and Its Global Impact.pptx
PPTX
PLASMA AND ITS CONSTITUENTS 123.pptx
PDF
PUBH1000 - Module 6: Global Health Tute Slides
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Journal of Dental Science - UDMY (2022).pdf
PDF
semiconductor packaging in vlsi design fab
PPTX
Macbeth play - analysis .pptx english lit
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
PDF
Nurlina - Urban Planner Portfolio (english ver)
PDF
THE CHILD AND ADOLESCENT LEARNERS & LEARNING PRINCIPLES
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PPTX
Reproductive system-Human anatomy and physiology
PDF
African Communication Research: A review
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
PDF
0520_Scheme_of_Work_(for_examination_from_2021).pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Everyday Spelling and Grammar by Kathi Wyldeck
Climate Change and Its Global Impact.pptx
PLASMA AND ITS CONSTITUENTS 123.pptx
PUBH1000 - Module 6: Global Health Tute Slides
Cambridge-Practice-Tests-for-IELTS-12.docx
Journal of Dental Science - UDMY (2022).pdf
semiconductor packaging in vlsi design fab
Macbeth play - analysis .pptx english lit
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2015).pdf
Nurlina - Urban Planner Portfolio (english ver)
THE CHILD AND ADOLESCENT LEARNERS & LEARNING PRINCIPLES
The TKT Course. Modules 1, 2, 3.for self study
Literature_Review_methods_ BRACU_MKT426 course material
Reproductive system-Human anatomy and physiology
African Communication Research: A review
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Myanmar Dental Journal, The Journal of the Myanmar Dental Association (2013).pdf
0520_Scheme_of_Work_(for_examination_from_2021).pdf
What’s under the hood: Parsing standardized learning content for AI
Environmental Education MCQ BD2EE - Share Source.pdf
Everyday Spelling and Grammar by Kathi Wyldeck

8051 kit manual

  • 1. Operational Manual for 8051 Development Kit 8051DK-6x10 For Workshop on “Embedded Systems using 8051 MuC” By: Anish Goel M.S.E.E., NJIT, USA
  • 2. CONTENTS 1. List of contents of the package. 2. Details of the development kit and features. 3. Software installation steps. 4. Connecting and powering up the kit. 5. Tutorial on RIDE and Flash Magic. 6. Sample codes and their explanation. 8051DK-6x10 Manual Page 2
  • 3. Chapter 1 List of contents of the package The package contains: 1. A 6cm x 10cm 8051 Development kit PCB with following devices on it: a. P89V51RD2BN microcontroller chip. b. MAX232 chip c. 3mm LED’s – 4 Nos. d. Pushbutton Switches – 4Nos. e. Seven Segment Display (Common Cathode) – 1Nos. f. 0.5 cm DC motor with driver circuit. g. Serial DB-9 Connector. h. B-type USB connector. i. 11.0592 MHz crystal and other discrete components. 2. A USB cable, A to B type. 3. A serial Cable. 4. A CD containing the required software’s and this instruction manual. 8051DK-6x10 Manual Page 3
  • 4. Chapter 2 Details of the development kit and Features 1 2 8 3 9 15 10 4 11 12 5 13 6 7 14 Identification 1 ------------------------------------------------------ Reset Switch 2 ------------------------------------------------------ Seven Segment Display 3 ------------------------------------------------------ FRC Male Connector 4 ------------------------------------------------------ Input Switch Array 8051DK-6x10 Manual Page 4
  • 5. 5 ----------------------------------------------------- Power ON/OFF Switch 6 ----------------------------------------------------- USB Female Connector B type 7 ----------------------------------------------------- USB cable 8 ----------------------------------------------------- LED’s for output 9 ----------------------------------------------------- Power ON LED 10 ----------------------------------------------------- Driver Circuit for DC motor 11 ----------------------------------------------------- D.C. Motor 12 ----------------------------------------------------- MAX-232 and capacitors 13 ----------------------------------------------------- Serial port DB-9 Female Con. 14 ----------------------------------------------------- Serial Cable 15 ----------------------------------------------------- Microcontroller P89V51RD2 Features: 1. The size of the kit is very small, due to which it is extremely handy and can be easily used without proper lab setup with a laptop machine. Size in cm: 6 x 10 2. CPU of the development kit P89V51RD2BN which is a In-system programmable microcontroller with intel 8051 architecture. 3. For basic input/output interface LED’s and switches are provided. 4. A common cathode seven segment is interfaced to study interface of display device. 5. A small DC motor (cell phone vibration motor) is interfaced to microcontroller and the driver circuit is provided on the kit. 6. A MAX-232 IC with capacitors is interfaced to the microcontroller at its SCI port to provide serial communication. 7. Power-ON reset circuitry is provided on the board that resets the microcontroller when it is powered up. A reset switch is also present to reset the microcontroller at any instance. 8. USB cable is provided to power up the kit. A ON/OFF switch is present to turn the kit ON/OFF without disconnecting the cable. Power-ON indicator LED indicates if the kit is getting power. 8051DK-6x10 Manual Page 5
  • 6. 9. A 11.0592 MHz crystal is present on the board to provide clock to the chip. 10.Male FRC connector pins are available on both sides of the 8051 MuC chip and are accessible to the user to interface any other device besides the interfaces provided ON-Board. These pins are connected to each pin on 8051 MuC. Pin connections for MuC on the Kit. Pin Number Function Connected to: Comments 1 Port 1 0th Bit (P1.0) LED1 and FRC pin -- 2 Port 1 1st Bit (P1.1) LED2 and FRC pin -- 3 Port 1 2nd Bit (P1.2) LED3 and FRC pin -- 4 Port 1 3rd Bit (P1.3) LED4 and FRC pin -- 5 Port 1 4th Bit (P1.4) FRC pin -- 6 Port 1 5th Bit (P1.5) FRC pin -- 7 Port 1 6th Bit (P1.6) FRC pin -- 8 Port 1 7th Bit (P1.7) Motor Driver and -- FRC pin 9 Reset Reset Switch and -- FRC pin 10 Port 3 0th Bit (P3.0 ) Max-232 and FRC -- pin 11 Port 3 1st Bit (P3.1) Max-232 and FRC -- pin 12 Port 3 2nd Bit (P3.2) FRC pin -- 13 Port 3 3rd Bit (P3.3) FRC pin -- 14 Port 3 4th Bit (P3.4) FRC pin -- 15 Port 3 5th Bit (P3.5) FRC pin -- 16 Port 3 6th Bit (P3.6) FRC pin -- 17 Port 3 7th Bit (P3.7) FRC pin -- 18 Crystal 1 (X1) Crystal and FRC pin -- 19 Crystal 2 (X2) Crystal and FRC pin -- 20 Ground GND and FRC pin -- 21 Port 2 0th Bit (P2.0 ) SW4 and FRC pin -- 22 Port 2 1st Bit (P2.1) SW3 and FRC pin -- 23 Port 2 2nd Bit (P2.2) SW2 and FRC pin -- 24 Port 2 3rd Bit (P2.3) SW1 and FRC pin -- 25 Port 2 4th Bit (P2.4) FRC pin -- 26 Port 2 5th Bit (P2.5) FRC pin -- 8051DK-6x10 Manual Page 6
  • 7. 27 Port 2 6th Bit (P2.6) FRC pin -- 28 Port 2 7th Bit (P2.7) FRC pin -- 29 ALE GND and FRC pin -- 30 PSEN VCC and FRC pin -- 31 EA/Vpp VCC and FRC pin -- 32 Port 0 0th Bit (P0.7 ) SSD and FRC pin -- 33 Port 0 1st Bit (P0.6) SSD and FRC pin -- 34 Port 0 2nd Bit (P0.5) SSD and FRC pin -- 35 Port 0 3rd Bit (P0.4) SSD and FRC pin -- 36 Port 0 4th Bit (P0.3) SSD and FRC pin -- 37 Port 0 5th Bit (P0.2) SSD and FRC pin -- 38 Port 0 6th Bit (P0.1) SSD and FRC pin -- 39 Port 0 7th Bit (P0.0) SSD and FRC pin -- 40 VCC VCC and FRC pin -- 8051DK-6x10 Manual Page 7
  • 8. Chapter 3 Software installation steps Installation steps for RIDE. 1. Go to the folder named RIDE. 2. Double click on install.exe. 3. Click next next …. and go ahead until the setup wizard is complete. 4. At the end click finish to complete the installation. Installation steps for Philips Flash magic. 1. Double click on Flash magic.exe. 2. Click next next …. and go ahead until the setup wizard is complete. 3. At the end click finish to complete the installation. 8051DK-6x10 Manual Page 8
  • 9. Chapter 4 Connecting and powering up the kit 1. Power is provided to the kit through USB cable provided with the kit. 2. Connect the B side of the USB cable to the B type connector present on the kit. 3. Connect the A side of the USB cable to USB connector of the Laptop/desktop. 4. After connecting both ends of the cable, push the ON/OFF switch. 5. A small LED besides this switch turns ON to indicate that the kit is powered up properly. 6. The serial cable provided with the kit is used to transfer the hex code from the PC to the kit and also as a serial link between the kit and any other device while performing serial communication. 7. Connect one of the ends of the serial cable (Male connector) to the female serial DB-9 connector on the kit. 8. Connect the other end of this cable to the serial port of the computer (Desktop). 9. A USB to serial convertor may be used if the kit is to be connected to a Laptop. 10.There is no indication whether the serial link between the kit and computer is has been established. It is automatically verified once a program is transferred from the computer to the microcontroller successfully. 8051DK-6x10 Manual Page 9
  • 10. Chapter 5 Tutorial on RIDE and Flash Magic Executing sample programs using RIDE. 1. Open the RIDE software. 2. To make a new project: • Project New • Specify a “Name”. • Directory where the project is to be stored. • Target family as 80C51. • Click “Next”. • Select the target device as: Atmel-AT89S52, or Philips- P89C/V51RD2xx. 8051DK-6x10 Manual Page 10
  • 11. • Clock on “Finish” 3. The place on the left hand side is the project window. It shows all the details about the project. 4. To create new file: File New C File. 5. Write your code into the window on the right and save it. 6. Right click on your project name in the project window and click on “Add node source/application”. 7. Brows the saved C-File and click ok. This includes the C-File in the project. 8. To generate .HEX file of the project press F9. The hex file is generated is there are no errors in the code. 9. The location of the .HEX file is shown at the bottom of the RIDE window. 8051DK-6x10 Manual Page 11
  • 12. 10. This file can be directly transferred to the microcontroller using Flash magic. 8051DK-6x10 Manual Page 12
  • 13. Programming the microcontroller P89C/V51RD2BN using Philips Flash Magic 1. Open the Philips flash magic software. 2. Make the following setting in the software: • Select the appropriate COM port where the kit is connected. • Select the Baud rate (Generally keep it at 9600) • Select the device (89C51RD2xx or 89V51RD2) according to the microcontroller place on board. • Place a tick on “Erase all flash” 3. Brows your code’s .HEX File I the hex file space. 4. Click on the “Start” button. 8051DK-6x10 Manual Page 13
  • 14. 5. The software gives a message “Reset the device in ISP mode now” (in case of 89V51RD2) 6. Turn the kit off by pressing the pushbutton switch (AC/DC) switch and then switch it on. The above box disappears and the hex file gets transferred. ALTERNATIVELY 6. At this point press the “BOOT” switch on the kit. Reset the device by pressing the “RESET” switch (while keeping the BOOT switch pressed), and then release the BOOT switch. The above window disappears and the .HEX file is transferred to the microcontroller. 7. After the software shows “Finish” (bottom right of the window) Press “RESET” switch to execute your program. 8. In case of 89C51RD2xx, select this device, locate the hex file, follow STEP 6 (above) and then press start button on the software. 8051DK-6x10 Manual Page 14
  • 15. Chapter 6 Sample codes Code 1 This code will blink LED’s connected at Port 1 alternatively. Change the numbers 0xaa and 0x55 to change the pattern of the LED’s. # include<reg51rx.h> main() { int t; P1=0xaa; for(t=0;t<50000;t++); P1=0x55; for(t=0;t<50000;t++); main(); } Code 2 This code checks if any of the switches at port 2 is pressed and then blinks the LED’s at port 1. # include<reg51rx.h> void prog1(); void delay(); main() { int r; P2=0xff; if (P2!=0xff) { 8051DK-6x10 Manual Page 15
  • 16. prog1(); } } void prog1(void) { P1=0x00; delay(); P1=0xff; delay(); main(); } void delay(void) { int t; for(t=0;t<50000;t++); } Code 3 This code displays the count 0 to 9 on seven segment display interfaced on port 0. # include<reg51rx.h> main() { int t,i,u; static code char num[] = {0x7e,0x48,0x3d,0x6d,0x4b,0x67,0x77,0x4c,0x7f}; for(i=0;i<10;i++) { P0=num[i]; for(u=0;u<20;u++) { for(t=0;t<50000;t++); 8051DK-6x10 Manual Page 16
  • 17. } } i=0; } Code 4 Set the baud rate on hyper-terminal at 9600 bps /************************************************************/ /* this displays how to serially communicate without printf */ /************************************************************/ #include<reg51rx.h> void comsend(char *); void cominit(); void main() { cominit();//initialize UART for communication comsend("Hello World");//send the string while(1);//stop } void cominit() { TH1=-3;//timer 1 used as baud rate generator, gives 9600 baud TMOD=0x20;//timer 1 in mode 1 TR1=1;//start timer 1 SCON=0x50;//intialize UART } void comsend(char *dat)//read data { char data temp;//temporary for(temp=0;dat[temp];temp++)//count characters in the string 8051DK-6x10 Manual Page 17
  • 18. { TI=0; SBUF=dat[temp];//transmit character while(!TI);//wait for transmission } } For more details visit: www.dicovermechatronics.blogspot.com Email: [email protected] Cell: 09970825313 8051DK-6x10 Manual Page 18