C8051F50x/51x
C8051F500 D
EVELOPMENT
K
IT
U
S E R
’
S
G
UIDE
1. Relevant Devices
The C8051F500 Development Kit is intended as a development platform for the microcontrollers in the
C8051F50x/51x MCU family.
The
target board included in this kit is provided with a presoldered
C8051F500
MCU (LQFP48 package)
and a
C8051F502
(QFN32 package).
Code developed on the C8051F500 can be easily ported to the other members of this MCU family.
Refer to the C8051F50x/51x data sheet for the differences between the members of this MCU family.
2. Kit Contents
The C8051F500 Development Kit contains the following items:
C8051F500
Target Board
C8051Fxxx Development Kit Quick-Start Guide
AC to DC Power Adapter
USB Debug Adapter (USB to Debug Interface)
Two USB Cables
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 1.
1. Connect the USB Debug Adapter to one of the
DEBUG
connector on the target board (DEBUG_A or
DEBUG_B)
with the 10-pin ribbon cable. The recommended connection is to
DEBUG_A
as this microcon-
troller is the primary MCU on the board and more peripherals are easily available.
2. Connect one end of the USB cable to the USB connector on the USB Debug Adapter.
3. Connect the other end of the USB cable to a USB Port on the PC.
4. Connect the AC/DC power adapter to power jack
P4
on the target board.
Target Board
J27
J28
Port 0 “B”
Port 1 “B”
Port 2 “B”
J29
SIDE “B”
C8051F500-TB
J26
P1.3_B
DS1
DEBUG_B
J31
F502
U2
J11
RESET_B
P1.4_B
PC
P3
J8
J32
SILICON LABS
J17
www.silabs.com
J14
PWR
J22
J24
DS3
C8051
F500
R27
J20
J9
J10
J21
TB3
U1
P4
Silicon Laboratories
USB DEBUG ADAPTER
Power
P1.3_A
DS2
P1
J19
J7
SIDE “A”
COMM
J1 DS4
RESET_A
P1.4_A
DEBUG_A
U5
J18
P2
J5
J4
J3
Port 0 “A”
Port 4 “A”
Port 2 “A”
Port 1 “A”
Port 3 “A”
J2
USB Debug
Adapter
P1
Figure 1. Hardware Setup using a USB Debug Adapter
Rev. 0.2 11/14
Copyright © 2014 by Silicon Laboratories
C8051F50x/51x
Stop
Run
LIN_OUT
CAN_H
+LIN_V
CAN_L
GND
GND
AC/DC
Adapter
USB
Cable
C8051F50x/51x
Notes:
1.
Use the Reset button in the IDE to reset the target when connected using a USB Debug Adapter.
2.
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.
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 2. Simplicity Studio
The following Simplicity Studio components are required for the C8051F500 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.
8051
2
Rev. 0.2
C8051F50x/51x
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 C8051F50x/51x family by checking the
C8051F50x/51x
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.
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
Software Examples
tile from the Simplicity Studio home screen.
2. In the
Kit
drop-down, select
C8051F500 Development Kit,
in the
Part
drop-down, select
C8051F500,
and
in the
SDK
drop-down, select the desired SDK. Click
Next.
3. Select
Example
and click
Next.
4. Under
C8051F500 Development Kit,
select
F50x Blinky,
click
Next,
and click
Finish.
5. Click on the project in the
Project Explorer
and click
Build,
the hammer icon in the top bar. Alternatively,
go to
Project
Build Project.
6. Click
Debug
to download the project to the hardware and start a debug session.
7. Press the
Resume
button to start the code running. The LED should blink.
8. Press the
Suspend
button to stop the code.
9. Press the
Reset the device
button to reset the target MCU.
10. 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.
Rev. 0.2
3
C8051F50x/51x
4.3. CP210x USB to UART VCP Driver Installation
The Target Board includes a Silicon Labs CP210x USB-to-UART Bridge Controller. Device drivers for the CP210x
need to be installed before the PC software can communicate with the MCU through the UART interface.
1. After opening Simplicity Studio for the first time, a dialog will prompt to install the CP210x drivers. Click
Yes.
The drivers can also be installed at any time by going to
Help
Install Drivers
CP210x VCP USB
Drivers.
2. Accept the license agreement and follow the steps to install the driver on the system. The installer will let
you know when your system is up to date. The driver files included in this installation have been certified by
Microsoft.
3. To complete the installation process, connect the included USB cable between the host computer and the
USB connector (P4) on the Target Board. Windows will automatically finish the driver installation.
Information windows will pop up from the taskbar to show the installation progress.
4. If needed, the driver files can be uninstalled by selecting
Windows Driver Package—Silicon
Laboratories...
option in the
Programs and Features
window.
4.4. Configuration Wizard 2
The Configuration Wizard 2 is a code generation tool for all of the Silicon Laboratories devices. Code is generated
through the use of dialog boxes for each of the device's peripherals.
Figure 3. 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 Laboratories 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 Config Wizard 2.
4
Rev. 0.2
C8051F50x/51x
5. Target Board
The C8051F500 Development Kit includes a target board with a
C8051F500
(Side A) and
C8051F502
(Side B)
device preinstalled for evaluation and preliminary software development. Numerous input/output (I/O) connections
are provided to facilitate prototyping using the target board. Refer to Figure 4 for the locations of the various I/O
connectors. Figure 5 on page 7 shows the factory default shorting block positions. A summary of the signal names
and headers is provided in Table 12 on page 14.
Table 1. Target Board Connector Summary
Connector
J1-J5
J7
J8
J9, J10
J11
J14
J17
J18
J19
J20
J21
J22
J24
J26
J27-J29
J31
J32
P1
P2
P3
P4
P5
TB1
TB2
TB3
Side A: Port 0 through Port 4 headers
Header to choose between +5V from Debug Adapter (P2) or +5V from on-board regulator (U6)
Side B: CAN Transceiver (U4) power connector
Side A: External crystal enable connectors
Side B: Connects P1.3_B LED and P1.4_B Switch to MCU port pins
Side A: CAN Transceiver (U3) power connector
Side A: Connects MCU to three separate transceivers (UART(U5), CAN(U3) and LIN(T1))
Side A: Connects VIO to VIO_A_SRC which powers the P1.2 potentiometer, the /RST_A pin
pull-up, and P1.4_A Switch pull-up.
Side A: Connects P1.3_A LED and P1.4_A Switch to MCU port pins
Side A: Connects R27 potentiometer to port pin 1.2
Connect V_HIGH node from TB1 LIN header to +5V regulator input for board power
Side A: Connects decoupling capacitors C28 and C29 for MCU VREF (P0.0)
Side A: Connects +5 V net to VIO and VREGIN of the MCU
Side B: Connects MCU to three separate transceivers (CAN (U4) and LIN (T2))
Side B: Port 0 through Port 2 headers
Side B: Connects +5V net to VIO and VREGIN of the MCU
Side B: Connects decoupling capacitors C41 and C42 for MCU VREF (P0.0)
Side A: 96-pin female connector
Side A: DEBUG connector for Debug Adapter interface
Side B: DEBUG connector for Debug Adapter interface
Power connector (accepts input from 7 to 15 VDC unregulated power adapter)
USB connector (connects to PC for serial communication)
Shared LIN Connector for Side A and B MCUs for external nodes
Shared CAN Connector for Side A and B MCUs for external nodes
Side A: Power supply terminal block
Description
Rev. 0.2
5