C8051F800-DK
4 Rev. 0.2
5.1.2. Getting Started With the Silicon Labs IDE
The following sections discuss how to open an example project in the IDE, build the source code, and download it
to the target device.
5.1.2.1. Running the F800_Blinky example program
The F800_Blinky example program blinks an LED on the target board.
1. Open the Silicon Labs IDE from the Start menu.
2. Select Project
Open Project to open an existing project.
3. Browse to the C:\SiLabs\MCU\Examples\C8051F80x_83x\Blinky directory (default) and select the
F800_Blinky_C.wsp project file and click Open.
4. Once the project is open, build the project by clicking on the Build/Make Project button in the toolbar or
selecting Project
Build/Make Project from the menu.
Note: After the project has been built the first time, the Build/Make Project command will only build the files
that have been changed since the previous build. To rebuild all files and project dependencies, click on the
Rebuild All button in the toolbar or select Project
Rebuild All from the menu.
5. Before connecting to the target device, several connection options may need to be set. Open the Connection
Options window by selecting Options
Connection Options... in the IDE menu. First, select the “USB Debug
Adapter” option. Next, the correct “Debug Interface” must be selected. C8051F80x-83x devices use Silicon
Labs “C2” 2-wire debug interface. Once all the selections are made, click the OK button to close the window.
6. Click the Connect button in the toolbar or select Debug
Connect from the menu to connect to the device.
7. Download the project to the target by clicking the Download Code button in the toolbar.
Note: To enable automatic downloading if the program build is successful select Enable automatic connect/
download after build in the Project
Target Build Configuration dialog. If errors occur during the build
process, the IDE will not attempt the download.
8. Click on the Go button (green circle) in the toolbar or by selecting Debug
Go from the menu to start running
the firmware. The LED on the target board will start blinking.
5.1.2.2. Creating a New Project
Use the following steps to create a new projects. Once steps 1–5 in this section are complete, continue at Step 3 in
Section 5.1.2.1.
1. Select Project
New Project to open a new project and reset all configuration settings to default.
2. Select File
New File to open an editor window. Create your source file(s) and save the file(s) with a
recognized extension, such as .c, .h, or .asm, to enable color syntax highlighting.
3. Right-click on “New Project” in the Project Window. Select Add files to project. Select files in the file browser
and click Open. Continue adding files until all project files have been added.
4. For each of the files in the Project Window that you want assembled, compiled and linked into the target build,
right-click on the file name and select Add file to build. Each file will be assembled or compiled as appropriate
(based on file extension) and linked into the build of the absolute object file.
Note: If a project contains a large number of files, the “Group” feature of the IDE can be used to organize.
Right-click on “New Project” in the Project Window. Select Add Groups to project. Add pre-defined groups or
add customized groups. Right-click on the group name and choose Add file to group. Select files to be added.
Continue adding files until all project files have been added.
5. Save the project when finished with the debug session to preserve the current target build configuration, editor
settings and the location of all open debug views. To save the project, select Project
Save Project As... from
the menu. Create a new name for the project and click on Save.
C8051F800-DK
Rev. 0.2 5
5.2. Configuration Wizard 2
The Configuration Wizard 2 is a code generation tool for all of the Silicon Labs devices. Code is generated through
the use of dialog boxes for each of the device's peripherals.
Figure 2. Configuration Wizard 2 Utility
The Configuration Wizard 2 utility helps accelerate development by automatically generating initialization source
code to configure and enable the on-chip resources needed by most design projects. In just a few steps, the wizard
creates complete startup code for a specific Silicon Labs MCU. The program is configurable to provide the output
in C or assembly. For more information, please refer to the Configuration Wizard 2 help available under the Help
menu in Configuration Wizard 2.
For more information, please refer to the Configuration Wizard 2 documentation. The documentation and software
are available from the Downloads webpage (www.silabs.com/mcudownloads).
5.3. Keil µVision2 and µVision3 Silicon Labs Drivers
As an alternative to the Silicon Labs IDE, the µVision debug driver allows the Keil µVision IDE to communicate with
Silicon Labs on-chip debug logic. In-system Flash memory programming integrated into the driver allows for rapidly
updating target code. The µVision IDE can be used to start and stop program execution, set breakpoints, check
variables, inspect and modify memory contents, and single-step through programs running on the actual target
hardware.
For more information, please refer to the µVision driver documentation. The documentation and software are
available from the Downloads webpage (www.silabs.com/mcudownloads).
C8051F800-DK
6 Rev. 0.2
5.4. Programming Utilities
The Silicon Labs IDE is the primary tool for downloading firmware to the MCU during development. There are two
software programming tools that are intended for use during prototyping or in the field: the MCU Production
Programmer and the Flash Programming Utilities. The MCU Production Programmer is installed with the IDE to the
directory C:\Silabs\MCU\Utilities\Production Programmer\ (default). The Flash Programming Utilities can be
optionally installed from the CD and is installed to C:\Silabs\MCU\Utilities\FLASH Programming\ (default).
6. Example Source Code
Example source code and register definition files are provided in the “SiLabs\MCU\Examples\C8051F80x_83x\
default directory during IDE installation. These files may be used as a template for code development. The
comments in each example file indicate which development tool chains were used when testing. Example
applications include a blinking LED example which configures the green LED on the target board to blink at a fixed
rate. Also included are examples for each of peripherals of the MCU such as the UART.
6.1. Register Definition Files
Register definition files C8051F800.inc, C8051F800_defs.h and compiler_defs.h define all SFR registers and bit-
addressable control/status bits. These files are installed into the
SiLabs\MCU\Examples\C8051F80x_83x\Header_Files\” default directory during IDE installation. The register and
bit names are identical to those used in the C8051F80x-83x data sheet.
6.2. Blinking LED Example
The example source files F800_Blinky.asm and F800_Blinky.c installed in the default directory
SiLabs\MCU\Examples\C8051F80x_83x\Blinky” show examples of several basic C8051F800 functions. These
include disabling the watchdog timer (WDT), configuring the Port I/O crossbar, configuring a timer for an interrupt
routine, initializing the system clock, and configuring a GPIO port pin. When compiled/assembled and linked, this
program flashes the green LED on the C8051F800 Target Board about five times a second using the interrupt
handler with a C8051F800 timer.
6.3. Capacitive Sense Switch Example
The example source file F80x_CS0.c demonstrates the configuration and usage of the capacitive sense switches
labeled P1.5 and P1.6. Refer to the source file for step-by-step instructions to build and test this example. This is
installed in the “SiLabs\MCU\Examples\C8051F80x_83x\CS0” directory by default.

C8051F800DK

Mfr. #:
Manufacturer:
Silicon Labs
Description:
Development Boards & Kits - 8051 C8051F800 MCU Family Development Kit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet