background image

ToolStick-EK

2

Rev. 0.2

3.  Software Setup

The included CD-ROM contains the Silicon Laboratories Integrated Development Environment (IDE), Keil software
8051 tools 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. 

4.  Silicon Laboratories Integrated Development Environment (IDE)

The Silicon Laboratories IDE integrates a source-code editor, source-level debugger, and in-system Flash pro-
grammer. The use of third-party compilers and assemblers is also supported. This kit includes the Keil Software
A51 macro assembler, BL51 linker and evaluation version C51 C compiler. These tools can be used from within the
Silicon Laboratories IDE.

4.1.  System Requirements

The Silicon Laboratories IDE requirements:

• Pentium-class host PC running Microsoft Windows 98SE, Windows 2000, or Windows XP.
• One available USB port.
• 64 MB RAM and 40 MB free HD space recommended.

4.2.  Assembler and Linker

A full-version Keil A51 macro assembler and BL51 banking linker are included with the kit and are installed during
IDE installation. 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).

4.3.  Evaluation C51 C Compiler

An evaluation version of the Keil C51 C compiler is included with the kit and is installed during IDE installation. The
evaluation version of the C51 compiler is the same as the full professional 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).

4.4.  3rd Party Toolsets

The ToolStick demos are written for the Keil toolset that is provided on the CD. The Silicon Laboratories IDE has
native support for many other 8051 compilers. The full list of natively supported tools is:

• Keil
• Raisonance
• Tasking
• Hi-Tech
• SDCC
• IAR
• Dunfield

5.  Blink_LED Demo

The ToolStick kit includes two simple code examples. The first example is titled Blink_LED. 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 Blink_LED example code alternately turns on the red and green
LEDs on the ToolStick board. The following steps describe how to connect and download the firmware, view and
modify registers, use watch windows, use breakpoints, and single step through code.

Summary of Contents for TOOLSTICK EK

Page 1: ...ick is a fully contained evaluation board The target microcontroller on the board is a Silicon Laboratories C8051F300 The target device is connected to a C8051F320 microcontroller which provides a USB debug interface between the PC and the target device The ToolStick enumerates as a Human Interface Device and so drivers are not necessary to communicate with the device For more information regardin...

Page 2: ...ed with the kit and are installed during IDE installation 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 4 3 Evaluation C51 C Compiler An evaluation version of the Keil C51 C compiler is included with the kit and is installed during IDE installation The evaluation version of the C51 compiler is the s...

Page 3: ...cution click the red Stop button on the toolbar or use the Debug Stop menu option The device will halt code execution and all of the registers and pin on the device will hold their state When the ToolStick firmware is stopped one of the LEDs will be on and the other will be off All debug windows and watch windows are refreshed when the device is stopped If any of the values in these win dows have ...

Page 4: ...en the device is halted click on the value field in the watch window and change the value to 0 Then click the Refresh button or select Debug Refresh to write the new value to the device 6 Start and stop the device a few times to watch the variable increment starting from 0 Changing the values of variables does not require recompiling the code or redownloading the firmware At any time the device ca...

Page 5: ...on The Disassembly debug window and the capability to single step through firmware allows a developer to see exactly what instructions are executed and their output 6 PWM Demo In addition to the demo Blink_LED example software the ToolStick CD also includes a demo project named PWM_LED This demo firmware uses the hardware Programmable Counter Array modules on the C8051F300 in 8 bit PWM mode to dri...

Page 6: ...bit Pulse Width Modulator 6 In the Module 1 tab select 8 bit Pulse Width Modulator 7 In the Module 2 WDT tab uncheck Enable Watchdog Timer 8 Click OK The initialization code is inserted in a new function PCA_Init This function can be directly inserted in to a final project Configuration Wizard 2 can be used the configure the oscillators port pins and other peripherals in a similar man ner The Peri...

Page 7: ...ToolStick EK Rev 0 2 7 9 Schematic ...

Page 8: ...or the functioning of undescribed features or parameters Silicon Laboratories reserves the right to make changes without further notice Silicon Laboratories makes no warranty rep resentation or guarantee regarding the suitability of its products for any particular purpose nor does Silicon Laboratories assume any liability arising out of the application or use of any product or circuit and specific...

Reviews: