ToolStick-EK
5.6. Single-Stepping Through Firmware
The IDE supports the ability to single-step through firmware one assembly instruction at a time. The IDE reads the
Flash from device, converts the instructions to assembly and displays them in a disassembly window. The following
steps show how to open the disassembly window and single step through firmware.
1. If a breakpoint is not already set on the line of code that increments the T2_Overflow_Count variable, set
the breakpoint using the steps described in Section 5.5.
2. Start the processor using the “Go” button and wait until it stops on the breakpoint.
3. Select View → Debug Windows → Disassembly. The disassembly window will appear on the right-hand
side of the IDE if it is not already open.
4. To execute one assembly instruction at a time, click the “Step” button on the toolbar or select the Debug →
Step menu option. The highlighted line in the disassembly window indicates the next instruction to be exe-
cuted. The blue line marker in the editor window will stay on the same .C source line until all of the assem-
bly instructions are completed.
The disassembly window has three columns. The left column is the address of the instruction in Flash. The middle
column is the instruction in hex. The right column is the disassembled instruction. 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 drive the LEDs on the ToolStick.
The project and source files for the demo can be found in the C:\SiLabs\MCU\Demos\ToolStick\PWM folder.
7. Configuration Wizard 2
Configuration Wizard 2 helps accelerate development by automatically generating initialization source code to con-
figure and enable the on-chip resources needed by most design projects. Configuration Wizard 2 is installed as part
of the demo installation.
This chapter of the User ’s Guide describes the basic features and capabilities of Configuration Wizard 2.
7.1. Configuration Wizard 2 Options
When Configuration Wizard 2 is opened, the program lists the device families that it supports. Based on the target
device, first select the device family and then the specific part number.
The default source file that appears initially includes the header file for the device. As the initialization code is gen-
erated for each hardware peripheral, it is added to source file.
Configuration Wizard 2 can output the initialization code in either C or assembly. The selection between C and
assembly is done using the Options → Code Format menu option.
Rev. 0.2
5
相关PDF资料
TPS23757EVM EVALUATION MODULE FOR TPS23757
TPS62230EVM-370 EVAL MODULE FOR TPS62230-370
TRAVELCUBE SURGE SUP 1OUT W/RJ11 DIRECTPLUG
TRAVELER100BT SURGE SUP 2OUT W/RJ11 DIRECTPLUG
TRAVELER3USB SURGE SUPP USB CHARGE TRAVEL SZ
TRAVELERC6 SURGE SUPPRESSOR 120/240V RJ11
TRAVELERC8 SURGE SUPPRESSOR 120/240V RJ11
TRAVELER SURGE SUP 2OUT W/RJ11 DIRECTPLUG
相关代理商/技术参数
TOOLSTICKLINDC 功能描述:子卡和OEM板 ToolStick LIN Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TOOLSTICKSK 功能描述:开发板和工具包 - 8051 Toolstick StarterKIT ToolstickBA+TlS330DC RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:C8051F960, Si7005 核心: 接口类型:USB 工作电源电压:
TOOLSTICKUNIDC 功能描述:子卡和OEM板 Toolstick University Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TOOLSTICKUNISK 功能描述:开发板和工具包 - 8051 Toolstick University Starter Kit RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:C8051F960, Si7005 核心: 接口类型:USB 工作电源电压:
TOOL-WING 制造商:Thomas & Betts 功能描述:MARR
TOOTHPIC 制造商:RF Solutions LTD 功能描述:MODULE BLUETOOTH DATA ACQUISITION 制造商:RF Solutions LTD 功能描述:BLUETOOTH MODULE, 2.48GHZ, 90KBPS 制造商:RF Solutions LTD 功能描述:BLUETOOTH MOD, 2.48GHZ, 90KBPS, DATA ACQUISITION; Supply Voltage Min:4.5V; Supply Voltage Max:5.5V; Signal Range Max:100m; Data Rate:92.16Kbps; Bluetooth Version:Bluetooth 1.1; Bluetooth Class:Class 1; Operating Temperature Min:-20C
TOOTHPICK 制造商:RF Solutions LTD 功能描述:MODULE BLUETOOTH DATA ACQUISITION 制造商:RF Solutions LTD 功能描述:BLUETOOTH MODULE, 2.48GHZ, 90KBPS 制造商:RF Solutions LTD 功能描述:BLUETOOTH MOD, 2.48GHZ, 90KBPS, DATA ACQUISITION; Bluetooth Version:Bluetooth 2.0; Operating Temperature Min:-40C; Operating Temperature Max:85C; Kit Contents:Module Board Docs; Operating Frequency Range:2.402GHz to 2.48GHz ;RoHS Compliant: Yes
TOP 04 制造商:GT LINE 功能描述:TOOL BAG TEAR-RESISTANT 制造商:GT LINE 功能描述:TOOL BAG, TEAR-RESISTANT 制造商:GT LINE 功能描述:TOOL BAG, TEAR-RESISTANT, Carrying Case Material:Tear-proof Fabric, External Wid 制造商:GT LINE 功能描述:TOOL BAG, TEAR-RESISTANT, Carrying Case Material:Tear-proof Fabric, External Width:320mm, External Depth:210mm, SVHC:No SVHC (20-Jun-2013), Colour:Black, External Depth - Metric:210mm, External Width - Metric:320mm, Height:240mm, , RoHS Compliant: NA