Silicon Laboratories ToolStick-CapTouchSenseDC User Manual

ToolStick-CapTouchSenseDC
TOOLSTICK CAPTOUCHS ENSE 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.2 5/08 Copyright © 2008 by Silicon Laboratories ToolStick-CapTouchSenseDC
ToolStick-CapTouchSenseDC

2. Contents

The ToolStick-CapTouchSenseDC kit contains the following items:
ToolStick CapTouchSense Daughter Card
One A76 battery
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. The ToolStick-CapTouchSenseDC is also available as part of a ToolStick Starter Kit (CapTouchSenseSK) that includes a CapTouchSenseDC, Toolstick Base Adapter, and USB Extension Cable and may be purchased from the same link.

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 CapTouchSense Daughter Card, are used to demonstrate a specific feature or application and some are used as general-purpose development platforms for the target microcontrollers.
The CapTouchSense Daughter Card includes a C8051F931 MCU, four GPIO controlled LEDs, a switch connected to a GPIO, four capacitive touch sense switches, 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. The CapTouchSense Daughter Card also includes an A76 1.5 V alkaline battery which can be used to power the board when not connected to the Toolstick Base Adapter. The C8051F931 MCU on this daughter card will continue to operate from the single “button cell” battery until the supply voltage drops below 0.9 V.
Figure 3 shows the ToolStick CapTouchSense Daughter Card and identifies the various components.
Voltage Regulator
(3.3 V to 1.5V)
ToolStick Power Available
Red LED
Power Source Indicator
Yellow LED
Power Source
Selector
Switch (S1)
1.5V Battery Holder
C8051F931
MCU
Full Pin Access
P0.2 Push
Button Switch (S2)

Figure 3. ToolStick CapTouchSense Daughter Card

2 Rev. 0.2
P1.0
Blue LED
P1.5
Red LED
P1.1
Green LED
P1.6
Yellow LED
Capacitive Touch
Sense Switches
ToolStick-CapTouchSenseDC

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. See Section “5.2. Keil Demonstration Toolset” for more information about the evaluation version limitations. 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 the following:
Configuration Wizard 2Keil µVision2 and µVision3 Drivers
All of the above software is described in more detail in Section “5. Software Overview”.
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 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 “7. ToolStick CapTouchSense Daughter Card Example Code” for 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 as follows:
KeilIARRaisonanceTaskingHi-TechSDCC
The demo applications for the CapTouchSense Daughter Card are written for the Keil and SDCC toolsets.
Rev. 0.2 3
ToolStick-CapTouchSenseDC

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: (1) Maximum 4 kB code generation, (2) 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 are available from the Downloads webpage (www.silabs.com/mcudownloads).
4 Rev. 0.2
ToolStick-CapTouchSenseDC

5.4. Keil µVision2 and µVision3 Silicon Laboratories Drivers

As an alternative to the Silicon Laboratories IDE, the uVision 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 rapidly updating 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 running on the actual target hardware.
For more information, please refer to the µVision 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).
The software is available on the ToolStick webpage (www.silabs.com/toolstick).
Rev. 0.2 5
Loading...
+ 9 hidden pages