WEEK 4

Project Weekly Progress Report
 

 Project Title
Microcontroller Implementation of a Small Robot Arm Controller

   Week of:  January 25th, 2000

   Engineers:
    Megan Bern and Ritesh Patel

            Advisor’s Signature:  __________
            Grade:  _______

         =================================================================

Objective:

For the week of February 15th, 2000, our objective was to learn the new debugging tool called Keil PK51.

Progress:

Keil PK51:

               The documentation to learn Keil PK51 consisted of about 20 pages that was found in the Junior Laboratory.  This documentation didn’t show how to start your own project, so a lot of time was wasted trying to figure out how to set up a project within the new software.  There was also no documentation on installation of the software available.

                The MOD515 program that is included in the program pro4a_df.asm for a digital filter had to be revised.  Some of the variables would have been renamed if they were not erased which would cause errors. We also had to rename MOD515.a51 so that Keil PK51 will recognize the file.  The digital.asm program that was also included in the program pro4a_df.a51 for the digital filter was also renamed as digital.a51 for the same reason.  These three files were saved in the c:\Temp directory. The new revised MOD515 is attached to this report as well as digital.a51 and pro4a_df.a51.

                The following steps listed in Table 1 will set up a project for a program, run the program, and interface with the EMAC board.

Table 1:
Keil PK51 Tutorial

1.  Make sure your programs are saved in the c:\Temp directory as .a51 files.
2.  Connect EMAC board to COM2 PC Port.
3.  Go to EE Applications.
4.  Go to KEIL PK51.
5.  Select mVision-51.
6.  Go to Project.
7.  Select New Project.
8.  Choose c:\Temp.
9.  Enter name of project as .prj file and select OK.  This will pop up a window to add source files.
10.  Select ADD.  This will pop up a window to add files.
11.  Select file(s) to be added to project from c:\Temp directory.
12.  Select ADD after each file to be added.
13.  Select Close.
14.  Select Open All.
15.  Select Close.
16.  Click on main program.
17.  Go to  Project.
18.  Select Compile File.  If errors, fix program and repeat 16 and 17.
19.  Go to Run.
20.  Select dScope Debugger.
21.  Go to View.
22.  Select Toolbar, Status Bar, Register Window, Command Window, Debug Window, Memory Window, Toolbox.
23.  Go to CPU driver DLL selection and choose mon51.dll.


24.  Go to File.
25.  Select Load Object File.  This will pop up a window to select an absolute object file.
26.  Select all files.
27.  Select your project file and hit OK.
28.  Go to Command Window.
29.  Type $=starting address of program and hit ENTER, example, $=8000h.
30.  Select GO or Step Into.
 
 
 

                This ran the programs attached to this report.  The input to the A/D was a 1Vp-p sine wave with a DC offset of 500mV at a frequency of 20Hz.  The output should be 0.707 of the input.  The output is shown in Figure 1.  The code for the digital filter gives the same output using Keil PK51 as it did using ProComm in the previous week.
 


Figure 1:
Output of Digital Filter @ 20Hz

Conclusion:

                This weeks’ progress, due to the lack of installation documentation for the Keil PK51 software, would be the normal time expected in industry.  We are still on schedule.  Next week we will test the digital filter code with the interface hardware.

Note:

                The Software code is not posted for confidential reasons.
 

BACK