CS122A-Fall Quarter, 1998


PDS51 Development System for the 80C51

The PDS51 is a board level, full featured in circuit emulator that allows the user complete access to the internal registers and full program flow control.
The mother board complete with 64K of emulation memory requires a daughter board for operation. The daughter board emulates the 8051 microcontroller. It is supplied with a 40 pin DIL footprint.
The daughter board is installed with the footprint adaptor plug(s) facing the outside edge of the system and the RESET push botton closest to the heat sink. If the daughter board is not installed please have the TA do it. Do not try to do it yourself.
The 40 pin DIL footprint can be plugged into your circuit and provides all the functionality of the 8051 microcontroller.
For more information please refer to the user's manual.

a. Compiling and Linking your C program for the PDS51:
Use the following compiler directive in your C program:

#pragma SMALL dB CODE

In the following lines that you have two files main.c and counter.c that you want to compile.

  1. To compile your files type:
    c51 counter.c
    c51 main.c
    This will create the object files counter.obj and main.obj respectively
  2. Now link your object files using the bl51 linker as follows:
    bl51 counter.obj, main.obj to counter.out
    This creates the counter.out file which now load into the PDS-51 software.

b. Connecting the PDS-51 board:

  1. Connect the 8051 ports to LED's switches or any other circuitry as may be needed for the experiment. Also make any other connections you may need.
  2. Plug in the 40-pin DIL into your circuit in place of the actual 8051 chip.
  3. Connect the serial cable between the serial port 1 on your PC and the PDS-51 board.
  4. COnnect the power supply 5V adapator to the power-in connector on the board.
  5. Press the reset button.

c. Using the PDS-51 software:
After cahnging to the correct directory start up the pds-51 software by typing pds51. Once the PDS51 software starts up:

  1. Under File set the source origin to be Franklin/C
  2. Under File select Load and enter the name of the absolute object file i.e. counter.out (make sure you specify the correct path if it is not in the same directory)
  3. Use Tab to switch between the diffrent panes(windows).
  4. In the Code pane you can use Ctrl-M to switch between your C source code and the generated assembly code. Display the C source code.
  5. Set breakpoints at the desired points in the source code while in the Code pane by moving your cursor there and using the Ctrl-B key. The same key can be used to toggle breakpoints. Set as many breakpoints as you need.
  6. Under Options set Watches pane. Hit enter on an empty line to bring up all the internal registers, ports etc. of the 8051. Insert all the registers, ports and bits you may wish to observe when you step through your program
  7. Under Options set TD-style F4/7/8 to be ON if it is set to OFF. This will enable single stepping through your program.
  8. You may now:

    1. Use Ctrl-F9 to run your program(Use H to Halt)
    2. Use Ctrl-F2 to reset
    3. Use F7 to run your program on step at a time i.e. step into (steps into called procedures as well).
    4. Use F8 to step past

For more useful information that you may need on the PDS-51 board and software please refer to the User's Manual in the lab.
The software is described in the section Integrated Development Environment - IDE


File translated from TEX by TTH, version 1.1.