C8051F800-DK
C8051F800 D
E V E L O P M E N T
K
I T
U
SER
’
S
G
UIDE
1. Relevant Devices
The C8051F800 Development Kit is intended as a development platform for the microcontrollers in the
C8051F80x-83x MCU family. The members of this MCU family are as follows: C8051F800, C8051F801,
C8051F802, C8051F803, C8051F804, C8051F805, C8051F806, C8051F807, C8051F808, C8051F809,
C8051F810, C8051F811, C8051F812, C8051F813, C8051F814, C8051F815, C8051F816, C8051F817,
C8051F818, C8051F819, C8051F820, C8051F821, C8051F822, C8051F823, C8051F824, C8051F825,
C8051F826, C8051F827, C8051F828, C8051F829, C8051F830, C8051F831, C8051F832, C8051F833,
C8051F834, and C8051F835.
The target board included in this kit is provided with a pre-soldered C8051F800-GM MCU (QFN20 package).
Code developed on the C8051F800 can be easily ported to the other members of this MCU family.
Refer to the C8051F80x-83x data sheet for the differences between the members of this MCU family.
The C8051F80x-GM and C8051F81x-GM devices (QFN20 package) are pin-compatible with the C8051F330/1/
2/3/4/5/6/7 devices.
2. Kit Contents
The C8051F800 Development Kit contains the following items:
C8051F800 Target Board
C8051Fxxx Development Kit Quick-Start Guide
Silicon Labs IDE and Product Information CD-ROM. CD content includes the following:
Labs Integrated Development Environment (IDE)
Evaluation assembler, compiler, and linker tools
Source code examples and register definition files
Documentation
Silicon
Optional Third Party Tools CD
AC to DC Power Adapter
USB Debug Adapter
Two USB Cables
3. Hardware Setup
Refer to Figure 1 for a diagram of the hardware configuration.
1. Connect the USB Debug Adapter to the DEBUG connector on the target board with the 10-pin ribbon cable.
2. Connect one end of the USB cable to the USB connector on the USB Debug Adapter.
3. Verify that shorting blocks are installed on the target board as shown in Figure 4 on page 8.
4. Connect the other end of the USB cable to a USB Port on the PC.
5. Connect the ac/dc power adapter to power jack P4 on the target board.
Notes:
Use the
Reset
icon in the IDE to reset the target when connected during a debug session.
Remove power from the target board and the USB Debug Adapter before connecting or disconnecting the
ribbon cable from the target board. Connecting or disconnecting the cable when the devices have power can
damage the device and/or the USB Debug Adapter.
Rev. 0.2 7/13
Copyright © 2013 by Silicon Laboratories
C8051F800-DK
C8051F800-DK
PC
Target Board
CAPACITIVE SENSE
R14
C8051F800-TB
P1.0_LED
D10
P1.0_LED
P1.1_LED
P1.1_LED P1.2_LED
D9
P1.3_LED
P1.4_SW
P1.2_LED TX_MCU
D8
RX_MCU
RTS
P1.3_LED
CTS
D7
J1
GND
P2.0
P1.6
P1.4
P1.2
P1.0
P0.6
P0.4
P0.2_J8
P0.0
+3VD
J3
P1.0
P1.1
P1.2
P1.3
P1.4
P0.4
P0.5
P1.5
P1.6
P1.4
RESET
P1.5
J7J6
COMM
USB
D4
USB Debug
Adapter
Silicon Laboratories
USB DEBUG ADAPTER
Power
+3VD
P0.7
F326
DEBUG
P1.6
USB
Cable
Prototype Area
GND
RST
www.silabs.com
P1.7
P1.5
P1.3
U1
F800
P1.1
P0.7
P0.5
P0.3_J9
XTAL1
P0.1
P0.2_J8
+3VD P0.3_J9
J9
J8
P0.0
P0.0/VREF
SILICON LABS
J4
J5
POWER
XTAL2
P1
P0.6/CNVSTR
P0.0/VREF
J10
GND
P0.1
GND
P1.0
P1.1
P0.1
VDD
J2
PWR
D6
+3VD
GND
TB1
Figure 1. Hardware Setup using a USB Debug Adapter
4. Software Setup
The included CD-ROM contains the Silicon Labs Integrated Development Environment (IDE), evaluation 8051
tools, optional software utilities, and additional documentation. Insert the CD-ROM into your PC’s CD-ROM drive.
An installer will automatically launch, allowing you to install the IDE software or read documentation by clicking
buttons on the Installation Panel. If the installer does not automatically start when you insert the CD-ROM, run
autorun.exe
found in the root directory of the CD-ROM. Refer to the
ReleaseNotes.txt
file on the CD-ROM for the
latest information regarding known problems and restrictions.
4.1. System Requirements
The following are the system requirements necessary to run the debug and programming tools:
Pentium-class host PC running Microsoft Windows 2000 or newer.
One available USB port.
4.2. Development Tools Installation
To install the IDE, utilities, and code examples, perform the following steps:
1. Click on the "Install Development Tools" button on the installation utility's startup screen.
2. In the Kit Selection box that appears, choose the C8051F800-DK development kit from the list of options.
3. In the next screen, choose “Components to be Installed”. The programs necessary to download and debug on
the MCU are the
Silicon Labs IDE
and the
Keil 8051 Evaluation Toolset.
The
CP210x Drivers
are necessary
to use the UART capabilities of the target board. See Section 4.3. for more information about installing the
CP210x drivers.
4. Installers selected in Step 3 will execute in sequence, prompting the user as they install programs,
documentation, and drivers.
2
Rev. 0.2
Stop
Run
AC/DC
Adapter
C8051F800-DK
4.3. CP210x USB to UART VCP Driver Installation
The C8051F800 Target Board includes a Silicon Labs CP2103 USB-to-UART Bridge Controller. Device drivers for
the CP2103 need to be installed before PC software such as HyperTerminal can communicate with the target
board over the USB connection. If the "Install CP210x Drivers" option is selected during installation, a driver
“unpacker” utility will launch.
1. Follow the steps to copy the driver files to the desired location. The default directory is
C:\SiLabs\MCU\CP210x.
2. The final window will give an option to install the driver on the target system. Select the “Launch the CP210x
VCP Driver Installer” option if you are ready to install the driver.
3. If selected, the driver installer will now launch, providing an option to specify the driver installation location. After
pressing the “Install” button, the installer will search your system for copies of previously installed CP210x
Virtual COM Port drivers. It will let you know when your system is up to date. The driver files included in this
installation have been certified by Microsoft.
4. If the “Launch the CP210x VCP Driver Installer” option was not selected in step 3, the installer can be found in
the location specified in step 2, by default
C:\SiLabs\MCU\CP210x\Windows_2K_XP_S2K3_Vista.
At this
location, run
CP210xVCPInstaller.exe.
5. To complete the installation process, connect the included USB cable between the host computer and the USB
connector (P5) on the C8051F800 Target Board. Windows will automatically finish the driver installation.
Information windows will pop up from the taskbar to show the installation progress.
6. If needed, the driver files can be uninstalled by selecting “Silicon Labs CP210x USB to UART Bridge Driver
Removal” option in the “Add or Remove Programs” window.
5. Software Overview
The following software is necessary to build a project, download code to, and communicate with the target
microcontroller.
Silicon Labs Integrated Development Environment (IDE)
8051 Toolset
Other useful software that is provided on the development kit CD and the Silicon Labs Downloads
(www.silabs.com/mcudownloads) website includes:
Configuration Wizard 2
Keil µVision2 and µVision3 Drivers
MCU Production Programmer and Flash Programming Utilities
5.1. Silicon Labs IDE
The Silicon Labs IDE integrates a source-code editor, source-level debugger and in-system programmer. The use
of third-party compilers, assemblers, and linkers is also supported. This development kit includes evaluation
versions of commercial C compilers and assemblers which can be used from within the Silicon Labs IDE.
5.1.1. Third Party Toolsets
The Silicon Labs IDE has native support for many 8051 compilers. Natively-supported tools are as follows:
Keil
IAR
Raisonance
Tasking
SDCC
Specific instructions for integrating each of the supported tools can be found in the application notes section of the
CD, or on the Silicon Labs website (http://www.silabs.com).
Rev. 0.2
3
C8051F800-DK
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.
4
Rev. 0.2
C8051F800-DK
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).
Rev. 0.2
5