
SENSORLESS-BLDC-MOTOR-RD
Rev. 0.3 9
7. Sensorless BLDC Motor Project
The source code for the Sensorless BLDC Motor Reference design is installed from the CD onto your hard drive in
the following default location:
C:\SiLabs\MCU\SBLDC_Motor_RD\Firmware\
The software for AN208 is also available as a zip file on the CD or from the Silicon Laboratories website.
To create a Sensorless BLDC Motor Project, complete the following steps:
1. Launch the Silicon Laboratories IDE from the Start menu.
2. Select “Open Project” from the Project menu.
3. Browse to the source code location listed above, and open the file sbldc2k.wsp.
4. Double click on sbldc2k.c in the Project Workspace window to open.
5. Select “Rebuild All” from the project menu or click on the “Rebuild All” button. (The IDE will compile and link the
sbldc.c file as shown in Figure 9.)
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:C8051F310 to indicate the IDE is connected to the MCU on the Sensorless
BLDC Motor Reference Design Board. Refer to Application Note AN208 for additional information on the
Sensorless BLDC Motor code.
The sbldc2k.wsp workspace, which includes the sbldc2k.c module, will build a reduced functionality version of the
Sensorless BLDC motor code that does not include the HyperTerminal interface. This version may be built using
the 2 kB code size limited version of the Keil compiler. The full functionality workspace slbdc.wsp, which includes
the sbldc.c module, uses more than 4 kB of code and requires a full Keil compiler license.
The header file sbldc.h contains the motor parameters for the particular motor. The motor parameters must match
the motor you are using. Please check the header file to make sure the selected motor parameters match the
motor you are using.
Figure 9. Sensorless BLDC Motor Project