Silicon Laboratories C8051T630-GM, C8051T630 User Manual

C8051T63x-DK
C8051T63X DEVELOPMENT KIT USERS GUIDE
1. Kit Contents
The C8051T63x Development Kit contains the following items:
C8051T630 MotherboardC8051T630 QFN 20-pin Socket Daughter Board for programming C8051T63x devicesC8051T630 Emulation Daughter Board with C8051F336 installedFive C8051T630-GM samplesC8051T63x Development Kit Quick-Start GuideProduct information CD-ROM including the following:
Silicon 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
AC-to-DC universal power adapterTwo USB cables
2. About the Daughter Boards
The C8051T63x Development Kit includes an Emulation Daughter Board (EDB) and a QFN Socket Daughter Board (QFN-DB). The EDB has an installed C8051F336 device, which is a Flash-based device that can be used for the majority of C8051T63x code development. The QFN-DB is intended to allow both programming and system-level debugging of C8051T63x devices directly.
A C8051T63x device cannot be erased once it has been program med; so, it is advisab le to use the C80 51F 336 for the majority of code development. Refer to “AN339: Differences between the C8051F336 and the C8051T63x device family” for more details on how the C8051F336 can be used to develop code for the C8051T63x device family.
Rev. 0.1 1/08 Copyright © 2008 by Silicon Laboratories C8051T63x-DK
C8051T63x-DK
PWR
P3
DEBUG
J2
SW
J12
R8
SILICON LABS
www.silabs.com
RESET
P4
COMM
P5
P1
P2
J3
LED
J11
J7
J10
J8
VDD_PWR
J6
VDD_PWR VDD_PWR VDD_PWR
+3VD
VDD_EXT
VDD_F326
VDD_CCP2103
USB ACTIVE
TX_F326
P0.4
P0.5
RX_CP2103 TX_CP2103
RX_F326
CTS_F326
P1.1
P1.2
RTS_CP2103
CTS_CP2103
RTS_F326
VPP
P1.3 P0.7
PWR
D10
DEBUG
PWR
RUN / STOP
D7
D12
D11
J4
SW
J9
J5
AC Adapter
USB Cable
Place shorting blocks on
J7 and J6 as shown.
F336
C8051T630 EDB
C8051T630-MB
J13
3. Hardware Setup
See Figure 1 for a diagram of the hardware configuration.
1. Attach the desired daughter board to the motherboard at connectors P1 and P2.
2. If using the QFN Socket Daughter Board, place the device to be programmed into the socket.
3. Place shorting blocks on J7 and the +3VD-VDD_PWR jump er pair on J6, as shown in Figu re 1.
4. Connect the motherboard’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 motherboard .
Notes:
Use the Reset icon in the IDE to reset the target when connected during a debug session.
Remove power from the motherboard and remove the USB cable before removing a daughter board from the
motherboard. Connecting or disconnecting a daughter board when the power adapter or USB cable are connected can damage the motherboard, the daughter board, or the socketed devic e.
Remove power from the motherboard and remove the USB cable before removing a C8051T63x device from the socket.
Inserting or removing a device from the socket when the power adapter or USB cable are connected can damage the motherboard, 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 Section 7.3.
Figure 1. Hardware Setup (Emulation Daughter Board)
2 Rev. 0.1
C8051T63x-DK
4. Software Overview
The included CD-ROM contains the Silicon Laboratories Integrated Development Environment (IDE), Keil software 8051 tools, Virtual COM Port drivers for the CP21 0x USB to UAR T Bridge, and additiona l document ation. 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 t he 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.
4.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 C8051T630-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 “4.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.
4.2. CP210x USB to UART VCP Driver Installation
The C8051T630 Motherboard includes a Silicon Laboratories CP2103 USB-to-UART Bridge Controller. Device drivers for the CP2103 need to be installed before PC software such as HyperTerminal can communicate with the 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 COMM USB connector (P4) on the C8051T630 Motherboard. 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.
4.3. 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 other third-party compilers and assemblers is also supported.
4.3.1. IDE System Requirements
Silicon Laboratories IDE requirements include the following:
Pentium-class host PC running Microsoft Windows 2000 or laterOne available USB port
Rev. 0.1 3
C8051T63x-DK
4.3.2. Third-Party Toolsets
The Silicon Laboratories IDE has native support for many 8051 compilers. Natively-supported tools are as follows:
KeilIARRaisonanceTaskingHi-TechSDCC
The demonstration applications for the C8051T63x development kit are written for the Keil and SDCC to olsets.
4.4. Keil Demonstration Toolset
4.4.1. Keil Assembler and Linker
The Keil demonstration toolset assembler and linker place no restrictions on code size.
4.4.2. Keil Demonstration C51 C Compiler
The evaluation version of the C51 compiler is the same as the full version with the following limitations: (1) Maximum 4 kB code generation, (2) There is no floating point library included. 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 “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.
4.5. 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 2.
Figure 2. Configuration Wizard 2 Utility
4 Rev. 0.1
C8051T63x-DK
The Configuration Wizard utility helps accelerate development by automatically generating initialization source code to configure and enable the on-chip reso urces ne eded by most design project s. In just a few steps, th e 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 webpage: www.silabs.com/mcudownloads.
4.6. Keil uVision2 and uVision3 Silicon Laboratories Drivers
As an alternative to the Silicon Laboratories IDE, the µVision debug driver allows the Keil µVision2 and µVision3 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 µVision2 and µVision3 IDEs can be used to start and stop program execution, set breakpoints, check variables, inspect and modify memory contents, and single-step through programs runn ing on the ac tu al target ha rd wa re .
For more information, refer to the µVision driver documentation. The documentation and software are available on the kit CD and from the downloads webpage: www.silabs.com/mcudownloads.
4.7. 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 s oftware 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 downloads webpage: www.silabs.com/
mcudownloads.
Rev. 0.1 5
C8051T63x-DK
5. Using the Keil Software 8051 Tools with the Silicon Laboratories IDE
To perform source-level debugging with the IDE, configure the Keil 8051 tools to generate an absolute object file in the OMF-51 format with object extensions and debug records enabled. 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.)
5.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. Cr eate 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. Righ t-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 ad ded. Continue adding files until all project files have been added.
5.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 “R ebuild All” button in the toolbar or select “Project
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 C8051T630 Motherboard.
3. Next, the correct debug interface must be selected. C8051T63x family devices and the F336 all use the Silicon Labs "C2" 2-wire debug interface. Once all the selections are made, click the OK button to close the window.
4. Click the “Connect button in the toolbar, or select “DebugConnect” from the menu to connect to the de vice.
5. Download the project to the target by clicking the “Download Code” button in the toolbar.
Note: To enab le automatic downloading if the program build is successful, select “Enable Automatic Connect/Download after
Build” in the “ProjectT arget Build Configuration” dialog. If errors occur during the build process, the IDE will not attempt the download.
6. Save the project when finished with the debug session to preserve the current target build configuration, editor settings, and the location of all open debug views. To save the project, select “ProjectSave Project As...” from the menu. Create a new name for the project, and click on “Save”.
Rebuild All” from the menu.
6 Rev. 0.1
Loading...
+ 12 hidden pages