Silicon Laboratories F321DC User Manual

ToolStick-F321DC
TOOLSTICK C8051F321 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.1 3/08 Copyright © 2008 by Silicon Laboratories C8051F321DC
ToolStick-F321DC

2. Contents

The ToolStick-F321DC kit contains the following items:
ToolStick C8051F321 Daughter Card
A ToolStick daughter card requires a ToolStick Base Adapter to communicate with the PC. ToolStick Base Adapters can be purchased 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 C8051F321 Daughter Card includes a pair of LEDs, a potentiometer, a micro USB connector, a switch connected to a GPIO, 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.
Figure 3 shows the ToolStick C8051F321 Daughter Card and identifies the various components.
Power LED
P2.2 LED
P1.7 Potentiometer
TOOLSTICK F321 DC
P3
P2
GND
VDD
PWR
GND
D1
P2.2
D2
VBUS_BA VBUS_COMM
VBUS
P1
P0
Px.0 Px.1 Px.2 Px.3 Px.4 Px.5 Px.6 Px.7
F321
U2
R4
P1.7
P2.0
S1
P2.0 Switch

Figure 3. ToolStick C8051F321 Daughter Card

Full Pin
access
USB
Connector
J2
C8051F321
2 Rev. 0.1
ToolStick-F321DC

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 Toolset includes a compiler, assembler, and linker. See Section “5.2.2. Keil Demonstration C51 C Compiler” for more details about the demo tools. 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
The software described above is provided in several download packages. The ToolStick download package includes example code, documentation, including user’s guides and data sheets, and the ToolStick Terminal application. The IDE, Keil Demonstration Tools, Configuration Wizard 2, and the Keil µVision Drivers are available as separate downloads. After downloading and installing these packages, see the following sections for information.

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 C8051F321 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 newer.One available USB port.

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-TechSDCC
Please note that the demo applications for the C8051F321 Daughter Card are written for the Keil toolset.
Rev. 0.1 3
ToolStick-F321DC

5.2. Keil Demonstration Toolset

5.2.1. Keil Assembler and Linker

The Keil demonstration toolset assembler and linker place no restrictions on code size.

5.2.2. Keil Demonstration C51 C Compiler

The evaluation version of the C51 compiler is the same as the full version with the following limitations:
Maximum 4 kB code generation.There is no floating point library included.When initially installed, the C51 compiler is 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.

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.1
ToolStick-F321DC

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. Using ToolStick Terminal‚" on page 12 for more information. The software is available on the ToolStick webpage (www.silabs.com/toolstick).
Rev. 0.1 5
Loading...
+ 11 hidden pages