TOOLSTICKUNISK Silicon Laboratories Inc, TOOLSTICKUNISK Datasheet - Page 10

KIT UNIVERSITY TOOLSTICK STARTER

TOOLSTICKUNISK

Manufacturer Part Number
TOOLSTICKUNISK
Description
KIT UNIVERSITY TOOLSTICK STARTER
Manufacturer
Silicon Laboratories Inc
Series
ToolStickr
Type
MCUr
Datasheet

Specifications of TOOLSTICKUNISK

Contents
ToolStick base adapter, daughter card and 3' USB cable
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
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
336-1433

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TOOLSTICKUNISK
Manufacturer:
Silicon Labs
Quantity:
135
To o l St i c k U n i D C
2. In the debug window, change the value of P74OUT to 0x00. This value turns off all four LEDs on P5[7:4].
3. To write this new value to the device, select Refresh from the Debug Menu or click the Refresh button in the
4. Click “Go” to resume running the device with the new P74OUT value.
5. Press the push button, P5.0, and notice that it has no effect on the LED P5.7.
6. Re-enable the P5 output mode by writing 0x08 to the P74OUT and clicking the Refresh button.
7. Then, also try changing the upper four bits of the P5 register and click the Refresh button to directly light up the
Changing the values of registers does not require recompiling the code and redownloading the firmware. At any
time, the device can be halted and the values of the registers can be changed. After selecting “Go”, the firmware
will continue execution using the new values. This capability greatly speeds up the debugging process. See the
C8051F020 data sheet for the definitions and usage for all registers.
The debug windows for other sets of registers are found in the View → Debug Windows → SFR’s menu.
6.5. Enabling and Using Watch Windows
The Debug Windows in the View menu are used to view and modify hardware registers. To view and modify
variables in code, the IDE provides Watch Windows. Just as with register debug windows, variables in the watch
windows are updated each time the device is halted. This section of the User’s Guide explains how to add a
variable to the watch window and modify the variable. In the UniDC_FeaturesDemo example code, the variable
Button_Press_Count is a counter that stores the number of times the P5.0 button was pressed.
1. If the device is running, stop execution using the “Stop” button or use the Debug → Stop menu option.
2. In the File View on the left-hand side of the IDE, double-click on UniDC_FeaturesDemo.c to open the source
10
toolbar.
LEDs.
file.
Figure 10. Debug Window
Figure 11. Refresh Button
Rev. 0.1

Related parts for TOOLSTICKUNISK