C8051T61x-DK
C8051T61
X
D
EVELOPMENT
K
IT
U
SER
’
S
G
U I D E
1. Kit Contents
The C8051T61x development kit contains the following items:
C8051T610 main board
C8051T610 TQFP 32-pin socketed daughter board for programming TQFP devices
C8051T610 emulation daughter board with C8051F310 installed
Five C8051T610-GQ samples
C8051T61x development kit quick-start guide
Product information CD-ROM including:
Laboratories Integrated Development Environment (IDE)
Evaluation version of Keil 8051 development tools (macro assembler, linker, “C” compiler)
Source code examples and register definition files
Documentation
Silicon
AC-to-DC Universal Power adapter
Two USB cables
Also available for purchase separately are C8051T610 QFN Socket Daughter Boards for programming QFN-28
and QFN-24 devices.
2. About the Daughter Boards
The C8051T61x development kit includes an Emulation Daughter Board (EDB) and a TQFP Socket Daughter
Board (TQFP-DB). The EDB has an installed C8051F310 device, which is a FLASH-based device that can be used
for the majority of C8051T61x code development. The TQFP-DB, as well as the 28-pin and 24-pin QFN daughter
boards (available separately), are intended to allow both programming and system-level debugging of C8051T61x
devices.
A C8051T61x device cannot be erased once it has been programmed; so, it is advisable to use the C8051F310 for
the majority of code development. Refer to “AN330: C8051F310 to C8051T610 Porting Guide” for more details on
how the C8051F310 can be used to develop code for the C8051T61x device family.
3. Software Overview
This section provides an introduction to the software tools included with the C8051T61x Development Kit.
Software covered in this section includes the Silicon Laboratories IDE, the Keil Toolset, the Configuration Wizard 2,
Keil uVision, and the ToolStick Terminal application.
3.1. Silicon Laboratories IDE
The Silicon Laboratories IDE integrates a source-code editor, source-level debugger, and an in-system Flash
programmer. The Keil demonstration toolset includes a compiler, linker, and assembler and easily integrates into
the IDE. The use of third-party compilers and assemblers is also supported.
3.1.1. IDE System Requirements
Silicon Laboratories IDE requirements include:
Pentium-class host PC running Microsoft Windows 2000 or later.
One available USB port.
Rev. 0.1 11/07
Copyright © 2007 by Silicon Laboratories
C8051T61x-DK
C8051T61x-DK
3.1.2. Third-Party Toolsets
The Silicon Laboratories IDE has native support for many 8051 compilers. Natively-supported tools are:
Keil
IAR
Raisonance
Tasking
Hi-Tech
SDCC
Please note that the demonstration applications for the C8051T61x development kit are written for the Keil toolset.
3.2. Keil Demonstration Toolset
3.2.1. Keil Assembler and Linker
The Keil Demonstration Toolset assembler and linker place no restrictions on code size. The complete assembler
and linker reference manual can be found online under the
Help
menu in the IDE or in the “SiLabs\MCU\hlp”
directory (A51.pdf).
3.2.2. Keil Demonstration C51 C Compiler
The demonstration version of the C51 compiler is the same as the full version, except code size is limited to 2 kB,
and the floating point library is not included. The C51 compiler reference manual can be found under the
Help
menu in the IDE or in the “SiLabs\MCU\hlp” directory (C51.pdf). The code size limitation can be increased to 4 kB
by registering the compiler with Keil. See “AN104: Integrating Keil 8051 Tools into the Silicon Labs IDE” for details
on registering the evaluation compiler.
3.3. Configuration Wizard
Configuration Wizard is a code generation tool for all Silicon Laboratories devices. Code is generated through the
use of dialog boxes for each device peripheral as shown in Figure 1.
Figure 1. Configuration Wizard 2 Utility
2
Rev. 0.1
C8051T61x-DK
The Configuration Wizard 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
from the downloads webpage,
www.silabs.com/mcudownloads.
3.4. Keil uVision2 and uVision3 Silicon Laboratories Drivers
As an alternative to the Silicon Laboratories IDE, the uVision debug driver allows the Keil uVision2 and uVision3
IDEs to communicate with Silicon Laboratories on-chip debug logic. In-system Flash memory programming
integrated into the driver allows for rapid updating of target code. The uVision2 and uVision3 IDEs 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, refer to the uVision driver documentation. The documentation and software are available
from the downloads webpage,
www.silabs.com/mcudownloads.
3.5. ToolStick Terminal
The onboard debug circuitry provides both an in-system programming and debugging interface and a
communications interface to the target microcontroller's UART. The ToolStick Terminal software can access the
debug hardware's communications path and provides a terminal-like interface on the PC. Note that, for concurrent
debugging and UART communications, the CP2103 USB-to-UART bridge is also included onboard.
In addition to the standard terminal functions (Send File, Receive File, Change Baud Rate), two GPIO pins on the
target microcontroller can be controlled using the terminal for either RTS/CTS handshaking or software-
configurable purposes. The ToolStick Terminal software is available on the ToolStick webpage,
www.silabs.com/
toolstick.
4. Hardware Setup
See Figure 1 for a diagram of the hardware configuration.
1. Attach the desired daughter board to the main board at connectors P1 and P2.
2. If using the TQFP Socket Daughter Board or either of the two QFN daughter boards, place the device to be
programmed into the socket.
3. Place shorting blocks on J7 and the +3VD-VDD_PWR jumper pair on J6, as shown in Figure 1.
4. Connect the main board’s P5 USB connector to a PC running the Silicon Laboratories IDE using the USB
Cable.
5. Connect the ac-to-dc power adapter to connector P3 on the main board.
Notes:
•
Use the Reset icon in the IDE to reset the target when connected during a debug session.
•
Remove power from the main board and remove the USB cable before removing a daughter board from the main board.
Connecting or disconnecting a daughter board when the power adapter or USB cable are connected can damage the
main board, the daughter board, or the socketed device.
•
Remove power from the main board and remove the USB cable before removing a C8051T61x device from the socket.
Inserting or removing a device from the socket when the power adapter or USB cable are connected can damage the
main board, the daughter board, or the socketed device.
•
The above hardware setup instructions configure the development system to be powered through the onboard 3.3 V
regulator. For other power options, see 7.3.
Rev. 0.1
3
C8051T61x-DK
J1
R8
SW
PWR
P1
LED J9
D1
SW
D7
P1.0
P0.7
AC Adapter
P3
J7
J6
PWR
D4
VDD_PWR
VDD_PWR
VDD_PWR
VDD_PWR
J12
J2
C8051T610 EDB
VPP
J11
J3
+3VD
VDD_EXT
VDD_DEBUG
VDD_COMM
Place shorting blocks on
J7 and J6 as shown.
D10
F310
D11
D12
RUN / STOP DEBUG
PWR
USB Cable
J4
P2
USB ACTIVE
J5
SILICON LABS
www.silabs.com
D2
COMM
P4
J13
RTS_DEBUG
P0.6
RTS_COMM
RX_DEBUG
P0.4
RX_COMM
J8
J10
CTS_DEBUG
P0.7
CTS_COMM
DEBUG
P5
TX_DEBUG
P0.5
RESET
TX_COMM
Figure 2. Hardware Setup (Emulation Daughter Board)
5. Software Setup
The included CD-ROM contains the Silicon Laboratories Integrated Development Environment (IDE), Keil software
8051 tools, the Virtual COM Port Drivers, 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 the CD contents.
5.1. 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 C8051T610-DK development kit from the list of options.
3. In the next screen, choose “Components to be Installed”.
Note: selecting the action that reads "Install CP210x Drivers" will launch a program described in “5.2. CP210x
USB to UART VCP Driver Installation” .
4. Installers selected in Step 3 will execute in sequence, prompting the user as they install programs,
documentation, and drivers.
5.2. CP210x USB to UART VCP Driver Installation
The C8051T610 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
4
Rev. 0.1
C8051T61x-DK
CP210xVCPInstaller.exe.
5. To complete the installation process, connect the included USB cable between the host computer and the USB connector
(P2) on the C8051T610 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.
6. Using the Keil Software 8051 Tools with the Silicon Laboratories IDE
To perform source-level debugging with the IDE, you must configure the Keil 8051 tools to generate an absolute
object file in the OMF-51 format with object extensions and debug records enabled. You may build the OMF-51
absolute object file by calling the Keil 8051 tools at the command line (e.g. batch file or make file) or by using the
project manager built into the IDE. The default configuration when using the Silicon Laboratories IDE project
manager enables object extension and debug record generation. Refer to "AN104: Integrating Keil 8051 Tools into
the Silicon Labs IDE" in the
SiLabs\MCU\Documentation\Appnotes
directory on the CDROM for additional
information on using the Keil 8051 tools with the Silicon Laboratories IDE.
To build an absolute object file using the Silicon Laboratories IDE project manager, you must first create a project.
A project consists of a set of files, IDE configuration, debug views, and a target build configuration (list of files and
tool configurations used as input to the assembler, compiler, and linker when building an output object file). The
following sections illustrate the steps necessary to manually create a project with one or more source files, build a
program, and download it to the target in preparation for debugging. (The IDE will automatically create a single-file
project using the currently open and active source file if you select Build/Make Project before a project is defined.)
6.1. Creating a New Project
1. Select “ProjectNew Project” to open a new project and reset all configuration settings to default.
2. Select “FileNew 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 them. Right-click on
"New Project" in the Project Window. Select “Add Groups to Project”. Add predefined 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.
6.1.1. Building and Downloading the Program for Debugging
1. Once all source files have been added to the target build, build the project by clicking on the “Build/Make
Project” button in the toolbar or by selecting “ProjectBuild/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.
2. Before connecting to the target device, several connection options may need to be set. Open the Connection
Options window by selecting “OptionsConnection Options...” in the IDE menu. First, select the "USB Debug
Adapter" option. The USB Debug circuitry is integrated onto the C8051T610 main board.
Next, the correct debug interface must be selected. C8051T61x family devices and the C8051F310 all use the
Silicon Labs "C2" 2-wire debug interface. Once all the selections are made, click the OK button to close the
window.
3. Click the “Connect” button in the toolbar, or select “DebugConnect” from the menu to connect to the device.
4. Download the project to the target by clicking the “Download
Code”
button in the toolbar.
Rev. 0.1
5