Stepper motor project – Silicon Laboratories Stepper Machine User Manual

Page 7

Advertising
background image

S T E P P E R - M O TO R - R D

Rev. 0.1

7

7. Stepper Motor Project

The source code for the Stepper Motor Reference design is installed from the CD onto your hard drive in the
following default location:

C:\SiLabs\MCU\Stepper_Motor_RD\firmware\

The software for AN155 is also available as a zip file on the CD or from the Silicon Laboratories website.

To create a stepper motor project, complete the following steps:

1. Launch the Silicon Laboratories IDE from the Start menu.

2. Select “Add Files to Project” from the Project menu.

3. Browse to the source code location listed above, and open the file stepper.c.

4. Double click on Stepper.c in the Project Workspace pane to open.

5. Select “Rebuild All” from the project menu or click on the “Rebuild All” button. (The IDE will compile and link the

stepper.c file as shown in Figure 8.)

6. Select “Connection Options” from the Options menu.

7. Make sure the USB Debug Adapter is selected and the Debug Interface is using the C2 connection.

8. Select “Connect” from the Debug menu, or click on the “Connect” button in the tool bar.

The Status Bar should display Target:C8051F301 to indicate the IDE is connected to the MCU on the Stepper
Motor Reference Design Board. Refer to the application note AN155 for additional information on the stepper
motor code.

Figure 8. Stepper Motor Project

Advertising