Silicon Laboratories Stepper Machine manual Stepper Motor Project

Page 7

STEPPER-MOTOR-RD

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

Rev. 0.1

7

Image 7
Contents Kit Overview Kit ContentsStepper Motor Reference Design Demonstration GBM 42BY201 Stepper Motor Wiring DiagramHyperTerminal Demonstration Stepper Motor Reference Design Terminal Setup Stepper Motor Command Line Install Development Tools Development Tool InstallationDevelopment Setup using the USB Debug Adapter Development Setup using the USB Debug AdapterStepper Motor Project Stepper Motor ProjectRelated Documents STEPPER-MOTOR-RD Silicon Laboratories Inc Contact Information