C 80 5 1 F5 2 x - 5 3 x -D K
C8051F52
X
-53
X
D
EVELOPMENT
K
IT
U
S E R
’
S
G
U I D E
1. Relevant Devices
The C8051F52x-53x Development Kit is intended as a development platform for the microcontrollers in the
C8051F52x-53x MCU family. The members of this MCU family are C8051F520, C8051F521, C8051F523,
C8051F524, C8051F526, C8051F527, C8051F530, C8051F531, C8051F533, C8051F534, C8051F536 and
C8051F537.
Notes:
The target board included in this kit is provided with two pre-soldered C8051F530-IT MCUs (TSSOP-20
package).
Code developed on the C8051F530 can be easily ported to the other members of this MCU family.
Refer to the C8051F52x-53x data sheet for the differences between the members of this MCU family.
2. Kit Contents
The C8051F52x-53x Development Kit contains the following items:
• C8051F530 Target Board
• C8051Fxxx Development Kit Quick-Start Guide
• Silicon Laboratories IDE and Product Information CD-ROM. CD content includes:
• Silicon Laboratories Integrated Development Environment (IDE)
• Keil 8051 Development Tools (macro assembler, linker, evaluation ‘C’ compiler)
• Source code examples and register definition files
• Documentation
• C8051F52x-53x Development Kit User’s Guide (this document)
• AC to DC Power Adapter
• USB Debug Adapter (USB to Debug Interface)
• USB Cable
The development kit target board contains two C8051530 microcontrollers that can communicate through a LIN
network. One of the C8051F530 (U1) can also be connected to a CP2102 USB to UART bridge while the other one
(U2) can be directly connected to two analog signals and a Voltage Reference Signal Input.
The kit is provided with one USB Debug Adapter but the designer can add a second USB debug adapter so that
both microcontrollers can have their firmware debugged at the same time using only one PC and two instances of
the Silicon Labs IDE.
Rev. 0.2 12/07
Copyright © 2007 by Silicon Laboratories
C8051F52x-53x-DK
C8051F52x-53x-DK
3. Getting Started
All software required to develop firmware and communicate with the target microcontroller is included in the CD-
ROM. The CD-ROM also includes other useful software.
Below is the software necessary for firmware development and communication with the target microcontroller:
Silicon Laboratories Integrated Development Environment (IDE)
Keil 8051 Development Tools (macro assembler, linker, evaluation C compiler)
Other useful software that is provided in the CD-ROM includes the following:
Configuration Wizard 2
Keil uVision Drivers
CP210x USB to UART Virtual COM Port (VCP) Drivers
3.1. Software Installation
The included CD-ROM contains the Silicon Laboratories Integrated Development Environment (IDE), Keil software
8051 tools 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. After installing the software, see the following sections for information
regarding the software and running one of the demo applications.
3.2. CP210x USB to UART VCP Driver Installation
The C8051F530 target board includes a Silicon Laboratories CP2102 USB-to-UART Bridge Controller. Device
drivers for the CP2102 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 was selected during installation, this
will launch a driver “unpacker” utility.
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 (P1) on the C8051F530 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 Laboratories CP210x USB to UART Bridge
(Driver Removal)” option in the “Add or Remove Programs” window.
2
Rev. 0.2
C8051F52x-53x-DK
4. Software Overview
4.1. Silicon Laboratories IDE
The Silicon Laboratories IDE integrates a source-code editor, a source-level debugger, and an in-system Flash
programmer. See Section 6., "Using the Keil Software 8051 Tools with the Silicon Laboratories IDE‚" on page 6 for
detailed information on how to use the IDE. The Keil Evaluation Toolset includes a compiler, linker, and assembler
and easily integrates into the IDE. The use of third-party compilers and assemblers is also supported.
4.1.1. IDE System Requirements
The Silicon Laboratories IDE requirements:
Pentium-class host PC running Microsoft Windows 2000 or newer.
One available USB port.
64 MB RAM and 40 MB free HD space recommended.
4.1.2. Third Party Toolsets
The Silicon Laboratories IDE has native support for many 8051 compilers. The full list of natively supported tools is
as follows:
Keil
IAR
Raisonance
Tasking
Hi-Tech
SDCC
The demo applications for the C8051F530 target board are written to work with the Keil and SDCC toolsets.
4.2. Keil Evaluation Toolset
4.2.1. Keil Assembler and Linker
The assembler and linker that are part of the Keil Demonstration Toolset are the same versions that are found in
the full Keil Toolset. The complete assembler and linker reference manual can be found on-line under the
Help
menu in the IDE or in the “SiLabs\MCU\hlp” directory (A51.chm).
4.2.2. Keil Evaluation C51 C Compiler
The evaluation version of the C51 compiler is the same as the full version with the following limitation: (1) Maximum
4 kB code generation. When installed from the CD-ROM, the C51 compiler is initially limited to a code size of 2 kB,
and programs start at code address 0x0800. Refer to the Application Note “AN104: Integrating Keil Tools into the
Silicon Labs IDE" for instructions to change the limitation to 4 kB, and have the programs start at code address
0x0000.
Rev. 0.2
3
C8051F52x-53x-DK
4.3. 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 1. 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, refer to the Configuration Wizard 2 help available under the
Help
menu in Config Wizard 2.
4.4. Keil uVision2 and uVision3 Silicon Laboratories Drivers
As an alternative to the Silicon Laboratories IDE, the uVision debug driver allows the Keil uVision IDE to
communicate with Silicon Laboratories on-chip debug logic. In-system Flash memory programming integrated into
the driver allows for rapidly updating target code. The uVision 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.
4
Rev. 0.2
C8051F52x-53x-DK
5. 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 one of the DEBUG connectors on the target board (HDR1 or HDR2)
with the 10-pin ribbon cable. The recommended connection is to the HDR1 (connected to U1) as this micro-
controller can be connected to the CP2102 USB to UART bridge.
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 P5 on the target board.
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
AC/DC
Adapter
TB1
D3
USB Debug Adapter
RESET_A
J7
Power
HDR3
1
Figure 2. Hardware Setup using a USB Debug Adapter
Rev. 0.2
J4
J3
USB
Cable
J5
RDH
P1
P5
D1
1
Silicon Laboratories
USB DEBUG ADAPTER
Target Board
RESET_B
JTAG
T2
T1
SILICON LABORATORIES
HDR2
C8051T530 TB
F530
F530
JTAG
U2
U1
TB2
P1.4_B
“B” SIDE
“A” SIDE
1
Stop
J1
Run
J2
D2
P1.4_A
2
2
HDR4
Prototype
Area
5