C8051F53x/52x
C8051F530A D
EVELOPMENT
K
I T
U
SER
’
S
G
UIDE
1. Relevant Devices
The C8051F530 Development Kit is intended as a development platform for microcontrollers in the C8051F53x/
52x MCU family. Code developed on the C8051F530 can be easily ported to the other members of this MCU
family.
2. Kit Contents
The C8051F530 Development Kit contains the following items:
Target Board
C8051Fxxx Development Kit Quick-Start Guide
AC to DC Power Adapter
USB Debug Adapter (USB to Debug Interface)
USB Cable
The development kit target board contains two C8051F530 microcontrollers that can communicate through an LIN
network. One of the C8051F530 (U2) can also be connected to a CP2102 USB to UART bridge and directly
connected to two analog signals and a Voltage Reference Signal Input.
C8051F530A
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
connectors on the target board (HDR1 or
HDR2)
with the 10-pin ribbon cable. The recommended connection is to the
HDR2
(connected to U2) as this
microcontroller can be connected to the CP2102 USB to UART bridge.
2. Verify that shorting blocks are installed on J13 and J14 to supply power to the target devices.
3. Connect one end of the USB cable to the USB connector on the USB Debug Adapter.
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
P5
on the target board.
PC
J6
Target Board
J8
D2
“A” Side
RDH
4
P1.4_A
USB Debug Adapter
Power
C8051F530A TB
“B” Side
SILICON
LABORATORIES
J4 J3 J5
U1
HDR3
J14
U2
PWR
USB
Cable
DEBUG_A
P1
HDR2
P5
Reset_A
HDR1
Reset_B
AC/DC
Adapter
Figure 1. Hardware Setup using a USB Debug Adapter
Rev. 0.4 11/14
Copyright © 2014 by Silicon Laboratories
C8051F53x/52x
DEBUG_B
T2
U3
T1
P1.4_B
J13
D1
P0.0_B
P1.7_B
P1.6_B
Silicon Laboratories
USB DEBUG ADAPTER
Stop
Run
C8051F53x/52x
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 C8051F530 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.4
C8051F53x/52x
In the
Part Selection
step of the wizard, select from the list of installed parts only the parts to be used during
development. Choosing parts and families in this step affects the displayed or filtered parts in the later device
selection menus. Choose the C8051F53x/52x family by checking the
C8051F53x/52x
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, perform the following steps:
1. Click the
Software Examples
tile from the Simplicity Studio home screen.
2. In the
Kit
drop-down, select
C8051F530A Development Kit;
in the
Part
drop-down, select
C8051F530,
and in the
SDK
drop-down, select the desired SDK. Click
Next.
3. Select
Example,
and click
Next.
4. Under
C8051F530A Development Kit,
select
F52x-53x 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.4
3
C8051F53x/52x
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 necessary, 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 language. For more information, refer to the Configuration Wizard documentation.
Documentation and software is available on the kit CD and from the downloads web page:
www.silabs.com/
mcudownloads.
4
Rev. 0.4
C8051F53x/52x
5. Target Board
The C8051F52xA-53xA Development Kit includes a target board with two C8051F530A devices 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.
Table 1. Target Board Part Summary
Part
P5
PWR
TB1
U5
A Side
J2
HDR2
P1.3_A
Reset_A
P1.4_A
R32
J6, J8
J13
J11, J12
J3
J4
J5
TB2
HDR4
U3
P1
USB ACTIVE
T2
U2
28-pin Expansion I/O connector for U2
Debug connector for Debug Adapter Interface
Green LED (D2)
Reset button
Push button
Potentiometer for P1.2_A
Connects R32 (potentiometer) to U2 and +5 V
Connects power to U2
Connects external crystal to U2 pins P0.7_A and P1.0_A
Connects analog channel 1 to U2 P1.6_A
Connects analog channel 2 to U2 P1.7_A
Connects VREFIN to U2 P0.0_A
Analog input connector
Connector block for serial port connection, Green LED, and push-button
Silicon Laboratories CP2102 USB-to-UART Bridge
USB connector to serial interface (CP2102)
Red USB Active LED (D4) (CP2102)
LIN transceiver
C8051F530A “A” Side
Description
Power connector (Accepts input from 7 to 15 VDC unregulated power adapter.)
Red Power-on LED (D3)
LIN connector
5 V Voltage Regulator
Rev. 0.4
5