C8051F91x/90x
C8051F912 D
E V E L O P M E N T
K
I T
U
SER
’
S
G
UIDE
1. Relevant Devices
The C8051F912 Development Kit is intended as a development platform for the microcontrollers in the
C8051F91x-C8051F90x MCU family. The members of this MCU family are C8051F912, C8051F911, C8051F902,
and C8051F901.
Notes:
1. The target board included in this kit is provided with a pre-soldered C8051F912 MCU (QSOP24 package).
2. Code developed on the C8051F912 can be easily ported to the other members of this MCU family.
3. Refer to the C8051F91x-C8051F90x data sheet for the differences between the members of this MCU
family.
2. Kit Contents
The C8051F912 Development Kit contains the following items:
C8051F912
Target Board
C8051Fxxx Development Kit Quick-Start Guide
AC to DC Power Adapter
USB Debug Adapter (USB to Debug Interface)
2 USB Cables
2 AAA Batteries
CD-ROM
Figure 1. C8051F912 Target Board
Rev. 0.2 2/14
Copyright © 2014 by Silicon Laboratories
C8051F91x/90x
C8051F91x/90x
3. Hardware Setup Using a USB Debug Adapter
The target board is connected to a PC running the Silicon Laboratories IDE via the USB Debug Adapter as shown
in Figure 2.
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 a shorting block is installed on J17 and that SW5 is in the
ON
position.
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
P2
on the target board (Optional).
Notes:
Use
the Reset button in the IDE to reset the target when connected using a USB Debug Adapter.
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.
PC
Target Board
R15
J16
J15
TOUCH SENSE SWITCH
P2.0
TOUCH SENSE SWITCH
P2.1
P1.6
P1.5
P0.2
P0.3
USB POWER P3
CP
2103
USB Debug
Adapter
Silicon Laboratories
USB DEBUG ADAPTER
Power
J4
SILICON LABS
www.silabs.com
U3
J8
+1VD
J11
COIN_CELL
J10
J9
DEBUG
J12
USB
Cable
U1
F912
J7
J3
J6 VDD/DC+
J5
J13
J14
POWER OFF BEFORE
SWITCHING MODE
AAA_BAT
WALL_PWR
VBAT
1 CELL
+3VD
RESET
IMEASURE
`
J2
OFF
ON
SW5
J17
H2
2 CELL
VBAT
J1
SW4
P2
AC/DC
Adapter
H1
Figure 2. Hardware Setup Using a USB Debug Adapter
2
Rev. 0.2
Stop
Run
C8051F91x/90x
4. Software Setup
Simplicity Studio greatly reduces development time and complexity with Silicon Labs EFM32 and 8051 MCU
products by providing a high-powered IDE, tools for hardware configuration, and links to helpful resources, all in
one place.
Once Simplicity Studio is installed, the application itself can be used to install additional software and
documentation components to aid in the development and evaluation process.
Figure 3. Simplicity Studio
The following Simplicity Studio components are required for the C8051F912 Development Kit:
Products Part Support
Simplicity Developer Platform
Download and install Simplicity Studio from
www.silabs.com/8bit-software
or
www.silabs.com/simplicity-studio.
Once installed, run Simplicity Studio by selecting
Start
Silicon Labs
Simplicity Studio
Simplicity Studio
from the start menu or clicking the
Simplicity Studio
shortcut on the desktop. Follow the instructions to install the
software and click
Simplicity IDE
to launch the IDE.
The first time the project creation wizard runs, the
Setup Environment
wizard will guide the user through the
process of configuring the build tools and SDK selection.
In the
Part Selection
step of the wizard, select from the list of installed parts only the parts to use during
development. Choosing parts and families in this step affects the displayed or filtered parts in the later device
selection menus. Choose the C8051F91x family by checking the
C8051F91x/90x
check box. Modify the part
selection at any time by accessing the
Part Management
dialog from the
Window
Preferences
Simplicity
Studio
Part Management
menu item.
Simplicity Studio can detect if certain toolchains are not activated. If the
Licensing Helper
is displayed after
completing the
Setup Environment
wizard, follow the instructions to activate the toolchain.
8051
Rev. 0.2
3
C8051F91x/90x
4.1. Running Blinky
Each project has its own source files, target configuration, SDK configuration, and build configurations such as the
Debug
and
Release
build configurations. The IDE can be used to manage multiple projects in a collection called a
workspace. Workspace settings are applied globally to all projects within the workspace. This can include settings
such as key bindings, window preferences, and code style and formatting options. Project actions, such as build
and debug are context sensitive. For example, the user must select a project in the
Project Explorer
view in order
to build that project.
To create a project based on the Blinky example:
1. Click the
Simplicity IDE
tile from the Simplicity Studio home screen.
2. Click the
Create new project
link from the welcome screen or go to
File
New
Silicon Labs MCU
Project.
3. In the
Kit
drop-down, select
C8051F912 Development Kit,
in the
Part
drop-down, select
C8051F912,
and
in the
SDK
drop-down, select the desired SDK. Click
Next.
4. Select
Example
and click
Next.
5. Under
C8051F912 Development Kit
in the
Blinky
folder, select
F912-902 Blinky
and click
Finish.
6. Click on the project in the
Project Explorer
and click
Build,
the hammer icon in the top bar. Alternatively,
go to
Project
Build Project.
7. Click
Debug
to download the project to the hardware and start a debug session.
8. Press the
Resume
button to start the code running. The LED should blink.
9. Press the
Suspend
button to stop the code.
10. Press the
Reset the device
button to reset the target MCU.
11. Press the
Disconnect
button to return to the development perspective.
4.2. Simplicity Studio Help
Simplicity Studio includes detailed help information and device documentation within the tool. The help contains
descriptions for each dialog window. To view the documentation for a dialog, click the question mark icon in the
window:
This will open a pane specific to the dialog with additional details.
The documentation within the tool can also be viewed by going to
Help
Help Contents
or
Help
Search.
4
Rev. 0.2
C8051F91x/90x
4.3. Legacy 8-bit IDE
Note:
Using the Simplicity Studio tools with the C8051F912 Development Kit is recommended. See section 4. "Software
Setup‚" on page 3 for more information.
Download the 8-bit software from the website (www.silabs.com/8bit-software) or use the provided installer on the
CD-ROM to install the software tools for the C8051F91x/90x devices. After installation, examples can be found in
...\Examples\C8051F91x_90x
in the installation directory. At a minimum, the C8051F912 DK requires:
Labs IDE—Software
enabling initial evaluation, development, and debugging.
Configuration Wizard 2—Initialization
code generation software for the C8051F91x/90x devices.
Keil C51 Tools—Keil
8051 Compiler/Assembler/Linker toolchain.
CP210x Drivers—Virtual
COM Port (VCP) drivers for the CP210x COM interface. More information on this
installation process can be found in Section 4.4.
Other software available includes:
µVision Driver—Driver
for the Keil µVision IDE that enables development and debugging on
C8051Fxxx MCUs.
Flash Programming Utilities
and
MCU Production Programmer—Programming
utilities for the
production line. More information on the available programming options can be found on the website:
http://www.silabs.com/products/mcu/Pages/ProgrammingOptions.aspx.
ToolStick Development Tools—Software
and examples for the ToolStick development platform. More
information on this platform can be found at
www.silabs.com/toolstick.
Also available on the 8-bit software webpage is the Battery Life Estimator, which gives designers a quick and easy
way to understand the discharge characteristics of different system configurations to help optimize low-power
applications.
The development kit includes the latest version of the C51 Keil 8051 toolset. This toolset is initially limited to a code
size of 2 kB and programs start at code address 0x0800. After registration, the code size limit is removed entirely
and programs will start at code address 0x0000.
To register the Keil toolset:
1. Find the
Product Serial Number
printed on the CD-ROM. If you no longer have this serial number,
register on the Silicon Labs website (www.silabs.com/8bit-software) to obtain the serial number.
2. Open the Keil µVision4 IDE from the installation directory with administrative privileges.
3. Select
File
License Management
to open the License Management window.
Keil
Silicon
Figure 4. Keil µVision4 IDE License Management Window
Rev. 0.2
5