Silicon Laboratories C8051F330DC User Manual

ToolStick-F330DC
TOOLSTICK C8051F330 DAUGHTER CARD USERS GUIDE

1. Handling Recommendations

To enable development, the ToolStick Base Adapter and daughter cards are distributed without any protective plastics. To prevent damage to the devices and/or the host PC, please take into consideration the following recommendations when using the ToolStick:
Never connect or disconnect a daughter card to or from the ToolStick Base Adapter while the Base Adapter is
Always connect and disconnect the ToolStick Base Adapter from the PC by holding the edges of the boards.

Figure 1. Proper Method of Holding the ToolStick

Avoid directly touching any of the other components.

Figure 2. Improper Method of Holding the ToolStick

Manipulate mechanical devices on the daughter cards, such as potentiometers, with care to prevent the Base
Adapter or daughter card from accidentally dislodging from their sockets.
Rev. 0.3 1/07 Copyright © 2007 by Silicon Laboratories ToolStick-C8051F330DC
ToolStick-F330DC

2. Contents

The ToolStick-F330DC kit contains the following items:
ToolStick C8051F330 Daughter Card
The ToolStick Starter Kit includes the following items:
ToolStick Base AdapterToolStick C8051F330 Daughter Card3-foot USB extension cable
A ToolStick daughter card requires a ToolStick Base Adapter to communicate with the PC. If the daughter card was not purchased as part of a Starter Kit, ToolStick Base Adapters can be purchased separately at
www.silabs.com/toolstick.

3. ToolStick Overview

The purpose of the ToolStick is to provide a development and demonstration platform for Silicon Laboratories microcontrollers and to demonstrate the Silicon Laboratories software tools, including the Integrated Development Environment (IDE).
The ToolStick development platform consists of two components: the ToolStick Base Adapter and a daughter card. The ToolStick Base Adapter provides a USB debug interface and data communications path between a Windows PC and a target microcontroller.
The target microcontroller and application circuitry are located on the daughter card. Some daughter cards, such as the C8051F330 Daughter Card, are used as general-purpose development platforms for the target microcontrollers and some are used to demonstrate a specific feature or application.
The C8051F330 Daughter Card includes a pair of LEDs, a potentiometer, a resistor across the C8051F330’s current DAC output pin, and a small prototyping area which provides access to all of the pins of the device. This prototyping area can be used to connect additional hardware to the microcontroller and use the daughter card as a development platform. See Section "10. Board Revision Information‚" on page 14 for information regarding the prototyping area.
Figure 3 shows the ToolStick C8051F330 Daughter Card and identifies the various components.
Power LED P1.3 LED
C8051F330
P1.6 Potentiometer

Figure 3. ToolStick C8051F330 Daughter Card

2 Rev. 0.3
Full Pin Access
ToolStick-F330DC

4. Getting Started

The necessary software to download, debug and communicate with the target microcontroller must be downloaded from www.silabs.com/toolstick. The following software is necessary to build a project, download code to, and communicate with the target microcontroller:
Silicon Laboratories Integrated Development Environment (IDE)Keil Demonstration ToolsToolStick Terminal application
The Keil Demo Tools include a compiler, assembler, and linker. The limits of the demo version are: 1) the resulting object code is limited to 2 kBytes and 2) the floating point library is not included. ToolStick Terminal communicates with the target microcontroller's UART through the ToolStick Base Adapter. It can also read/write the two GPIO pins available on the ToolStick Base Adapter.
Other useful software that is provided on the Silicon Labs Downloads (www.silabs.com/mcudownloads) website includes:
Configuration Wizard 2Keil uVision2 and uVision3 Drivers
All of the above software is described in more detail in Section “5. Software Overview”.
To simplify the download process, the necessary software described above is provided in two download packages. The ToolStick Download package includes the Keil Tools, example code, documentation including User’s Guides and data sheets, and the ToolStick Terminal application. The IDE, Configuration Wizard 2, and the Keil uVision Drivers are available as a separate download. After downloading and installing these two packages, see the following sections for information regarding the software and running one of the demo applications.

5. Software Overview

5.1. Silicon Laboratories IDE

The Silicon Laboratories IDE integrates a source-code editor, source-level debugger, and an in-system Flash programmer. See Section “6. ToolStick C8051F330 Daughter Card Features Demo” for detailed information on how to use the IDE. 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.

5.1.1. IDE System Requirements

The Silicon Laboratories IDE requirements:
Pentium-class host PC running Microsoft Windows 2000 or Windows XP.One available USB port.64 MB RAM and 40 MB free HD space recommended.

5.1.2. 3rd Party Toolsets

The Silicon Laboratories IDE has native support for many 8051 compilers. The full list of natively supported tools is:
KeilIARRaisonanceTaskingHi-TechSDCCDunfield
Please note that the demo applications for the C8051F330 Daughter Card are written for the Keil toolset.
Rev. 0.3 3
ToolStick-F330DC

5.2. Keil Demonstration Toolset

5.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.pdf).

5.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).

5.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 4. 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 documentation. The documentation and software available from the Downloads webpage (www.silabs.com/mcudownloads).
4 Rev. 0.3
ToolStick-F330DC

5.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 rapidly updating 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, please refer to the uVision driver documentation. The documentation and software are available from the Downloads webpage (www.silabs.com/mcudownloads).

5.5. ToolStick Terminal

The ToolStick Terminal program provides the standard terminal interface to the target microcontroller's UART. However, instead of requiring the usual RS-232 and COM port connection, ToolStick Terminal uses the USB interface of the ToolStick Base Adapter to provide the same functionality.
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 (see the demo software for an example).
See Section 6.8 for more information on using ToolStick Terminal. The software is available on the ToolStick webpage (www.silabs.com/toolstick).
Rev. 0.3 5
ToolStick-F330DC

6. ToolStick C8051F330 Daughter Card Features Demo

The ToolStick kit includes a few simple code examples. The example described in this section is titled F330DC_FeaturesDemo. The purpose of this example is to guide a new user through the features and capabilities of the IDE and demonstrate the microcontroller’s on-chip debug capabilities. The F330DC_FeaturesDemo example code uses the potentiometer on the daughter card to vary the blinking rate of the LED. The first part of this demo shows how to use the IDE to connect and download the firmware, view and modify registers, use watch windows, use breakpoints, and single step through code. The second part of the demo shows how to use ToolStick Terminal to receive UART data from the daughter card and how to use the GPIO pins.

6.1. Hardware Setup

Connect the ToolStick hardware to the PC using the steps below while taking note of the recommendations in Section 1:
1. Connect the ToolStick Base Adapter to the ToolStick C8051F330 Daughter Card.
2. If available, connect the USB extension cable to the ToolStick Base Adapter.
3. Connect the ToolStick to a USB port on a PC.
See Figure 5 below for an example hardware setup.

Figure 5. Hardware Setup Example

6 Rev. 0.3
Loading...
+ 12 hidden pages