TOOLSTICK-EK Silicon Laboratories Inc, TOOLSTICK-EK Datasheet - Page 6

KIT TOOL EVAL SYS IN A USB STICK

TOOLSTICK-EK

Manufacturer Part Number
TOOLSTICK-EK
Description
KIT TOOL EVAL SYS IN A USB STICK
Manufacturer
Silicon Laboratories Inc
Series
ToolStickr
Type
MCUr
Datasheet

Specifications of TOOLSTICK-EK

Contents
ToolStick, Silicon Labs IDE, Keil Development Tools and Documentation
Processor To Be Evaluated
C8051F320
Interface Type
USB
Operating Supply Voltage
2.7 V to 3.6 V
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
C8051F300
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
336-1278
To olSt ick-E K
7.2. Generating Initialization Code
As an example, the following steps show how to generate initialization code for the Programmable Counter Array
module on a C8051F300. The code generated is similar to the PWM PCA initialization example code described in
Section 6.
Configuration Wizard 2 can be used the configure the oscillators, port pins and other peripherals in a similar man-
ner. The Peripherals menu of Configuration Wizard is customized based on the device family and part number. The
options in the menu show which peripherals are supported. More information regarding any peripheral can be found
in the device family’s respective data sheet.
8. Information Locations
Example source code is installed in the “C:\SiLabs\MCU\Demos\ToolStick” directory during IDE installation.
Documentation for the ToolStick kit, including this User’s Guide, can be found in the C:\SiLabs\MCU\Demos\Tool-
Stick\Documentation\ folder.
6
1. Open Configuration Wizard from the Start → Programs → Silicon Laboratories menu.
2. Select C8051F30x as the Device Family and C8051F300 as the Part Number.
3. Select the Peripherals → PCA menu option. The top part of the new window has the peripheral options.
4. In the PCA0 tab, select “Enable PCA0.” Notice the code that is inserted in the bottom half of the window.
5. In the Module 0 tab, select “8-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
The lower part shows the initialization code.
inserted in to a final project.
Rev. 0.2

Related parts for TOOLSTICK-EK