Home
ToolStick F800DC User's Guide
Contents
1. ToolStick F800DC SILICON LABS TOOLSTICK C8051F800 DAUGHTER CARD USER S 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 m Never connect or disconnect a daughter card to or from the ToolStick Base Adapter while the Base Adapter is connected to a PC m Always connect and disconnect the ToolStick Base Adapter from the PC by holding the edges of the boards PWR Ri R2 P3 Vos TOOLSTICK 0 cal RUN STOF fA EHE D4 71 XI O Opi DIT T1 H TESA ae A ay T 7 TETHT RS x 2 n sla OFT 4 ri4 ore U U U a VE P A 12152 a B V A Em 8 M Or20 SD moot l VDO M GB l F330 TOOLSTICK DC et Figure 1 Proper Method of Holding the ToolStick m Avoid directly touching any of the other components Figure 2 Improper Method of Holding the ToolStick m 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 1 10 09 Copyright 2009 by Silicon Laboratories ToolStick C8051F800DC ToolStick F800DC 2 Contents The ToolStick F800DC kit conta
2. This pin is connected to the output of the potentiometer The 0 resistor R5 can be removed to disconnect the potentiometer from the pin The 0 resistor R3 can be removed to disconnect VDD from the potentiometer m P1 4 This pin is connected to the push button switch 51 through a series resistor R6 The switch or R6 can be removed to disconnect them from the pin m P1 5 P1 6 These pins are connected to the two capacitive sense switches through 0 ohm series resistors R8 and R9 The resistors can be removed to disconnect the switches from the pin See the daughter card schematic in Section 10 for more information 8 2 C2 Pin Sharing On the ToolStick C8051F800DC the debug pins C2CK and C2D are shared with the pins RST and P2 0 respectively The daughter card includes the resistors R11 R12 necessary to enable pin sharing which allow the RST and P2 0 pins to be used normally while simultaneously debugging the device See Application Note AN124 Pin Sharing Techniques for the C2 Interface at www silabs com for more information regarding pin sharing 14 Rev 0 1 SILICON LABS ToolStick F800DC 9 Information Locations Example source code is installed by default in the C Si Labs MCU ToolStick F800DC Firmware directory during the ToolStick installation Documentation for the ToolStick kit including this Users Guide can be found in the C SiLabs MCU ToolStick Documentation and the C SILabs IMC U ToolS
3. SILICON LABS ToolStick F800DC 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 F800 FeatureDemo example code the variable Num LED Flashes is a counter that stores the number of times the LED blinks 12 2 If the device is running stop execution using the Stop button or use the Debug Stop menu option In the File View on the left hand side of the IDE double click on FB00DC FeaturesDemo c to open the source file Scroll to the TIMER2 ISR function line 368 and right click on the variable Num LED Flashes In the context menu that appears select the first option Num LED Flashes to Watch as Default Type On the right hand portion of the IDE the watch window appears and the variable is added The current value of the variable is shown to the right of the name INTERRUPT TIMER2 ISE IHTERKUFT TIHEE 2j static U32 TMEZ Count 0 TMR2CH Uead Clear TIMER Flags if Blink State TIMER MODE THR2 Count Blink Rate 01 LED ILED Num LED Flashes Add Mum LED Flashes to Watch as Default ADOBUSY 1 Add Num
4. E Create a New Project Load an Existing Project Define the paramters of your QuickSense Firmware API project by either creating a new project or loading an existing one Defining a project allows the QuickSense Studio to pass information between other Silicon programs For more information please refer to AN366 on the Resources page 7 Global Settings Famine Peripherals Chanrr be The os h Groups Coda Group beings MEU CHOS TE FOUC CC 8 a ci ol o wu Resources TELE EIL I UL QuickSense Studio Legend QuickSense Configuration Wizard QuickSense Calibration Utility Figure 5 Silicon Labs QuickSense Studio Software For detailed information on the QuickSense Studio software please see the QuickSense Studio User s Guide available on the Silicon Labs QuickSense webpage www silabs com quicksense in the QuickSense Studio sec tion 6 Rev 0 1 6 SILICON LABS ToolStick F800DC 6 ToolStick C8051F800 Daughter Card Features Demo The ToolStick kit includes a few simple code examples The example described in this section is titled F800DC FeaturesDemo 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 F800DC FeaturesDemo example code uses the potentiometer on the daughter card to vary the blinking rate of the LED The first
5. Wi Registers Comparator 0 ES pag V Quiput Window np 8 Toobars ile Code Memory DAC Status E Disassembly Taterrupts External Memory Oscilators v Workbook Mode hi i UART The progran alsCO pm 2 In the debug window change the value of ADCOCN from 0x80 to 0x00 This value turns off the ADC on the target microcontroller ADLCOMX 07 ADCOCN IE F3 ADCOL F ADCOH Ul ADCOGT FFFF ADCOLT 0000 3 To write this new value to the device select Refresh from the Debug Menu or click the Refresh button in the toolbar 4 Click Go to resume running the device with the new ADCOCN value 5 Turn the potentiometer on the daughter card and notice that it has no effect on the blinking rate of the LED 6 Re enable the ADC by writing 0x80 to the ADCOCN and clicking the Refresh button 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 soeeds up the debugging process See the data sheet for the C8051F80x 83x device family for the definitions and usage for all registers The debug windows for other sets of registers are found in the View gt Debug Windows SFR s menu amp Rev O 1 9
6. AR m asking m SDCC Please note that the demo applications for the C8051F800 Daughter Card are written for the Keil toolset Rev O 1 3 SILICON LABS ToolStick F800DC 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 m Maximum 4 kB code generation m There is no floating point library installed m Wheninitially 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 finelude Z8 siE33n0 n ff Inirislizscion funaci n fox ff Call Init Devige fram youd void Init Device voids i i ff Erpzy configuration ff Cpen che Peripherals menu ff ghgaae pexiphexal co confi Figure 4 Configuration Wizard 2 Utility The Configuration Wizard 2 utility helos accelerate development by automatically generating initialization source code to c
7. LED Flashes to watch F lerzion THR2 Count Jt Insert Remove Breakpoint f 4 WR to Cursor mene nitializat Start and stop the device a few times See that the value of the Num LED Flashes is incremented each time the LED blinks When 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 Value LED Hashes 0 6 Start and stop the device a few times to watch the variable increment starting at 0 Changing the values of variables does not require recompiling the code and redownloading the firmware At any time the device can be halted and the values of the variables can be changed The firmware will continue execution using the new values 10 SILICON LABS ToolStick F800DC 6 6 Setting and Running to Breakpoints The Silicon Laboratories microcontroller devices support up to four hardware breakpoints A breakpoint is associated with a specific line of code When the processor reaches a hardware breakpoint the code execution stops and the IDE refreshes all debug and watch windows The on chip debug hardware allows for breakpoints to be placed on any line of executable code including code in Interrupt Service Routines This section provides steps to set a breakpoint on the line of source code that increments the Num L
8. ToolStick Base Adapter 1 If the Silicon Laboratories IDE is open close the IDE The IDE and the ToolStick Terminal cannot communicate with the daughter card simultaneously 2 Open ToolStick Terminal from the Start gt Programs Silicon Laboratories menu Za Silicon Laboratories ToolStick Terminal Terminal ToolStick Help Connection Current Pin State Pin State Configuration TS00004567 X GPIOO GPIO1 Connect C2 Reset Transfer Data Set Selected Pin Data Format Capture Data to File ASCII Format Receive File f Hex Format receive_data txt Ej Capture Receive Data to File Send File Receive Data NOT CONNECTED Clear Receive Data 3 Go to the ToolStick Settings menu 4 Under Pin Settings change GPIOO RTS to GPIO Output Push Pull and click OK The rest of the default settings are correct for the C8051F800 Features Demo 5 In the top left hand corner of the Terminal application available devices are shown in the drop down Connection menu Click Connect to connect to the device In the Receive Data window text indicating the blink rate of the LED will appear 6 Turn the potentiometer on the daughter card and see that the blink rate is updated on the daughter card and the new blink rate is printed to the Terminal In addition to the standard two UART pins TX and RX there are two GPIO UART handshaking pins on the ToolStick Base Adapter that are conne
9. available at www silabs com guicksense 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 the Keil uVision Drivers and the QuickSense Studio software 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 6 ToolStick C8051F800 Daughter Card Features Demo for detailed 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 m Pentium class host PC running Microsoft Windows 2000 or newer m One available USB port 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 m Raisonance m Keil m
10. 7 1 gt 922 in ee AC E GOA NI OIA AS Sn8 azo 020 9L 929 IGL 1s4 lt 59412227001 540297001 gt XM IVNINYJLSL XL IVNINYJLSL SLM 00189 1 lt 519 00149 1no 119ddA 7W3 0 4 20 801 193A 3903 NNOO In YOLOANNOD 3903 Q3VO 1815 dol 3no l YLX o 3415 WOLLOG 774 gt tc 16 SILICON LABS NOTES SILICON LABS Rev 0 1 ToolStick F800DC ToolStick F800DC CONTACT INFORMATION Silicon Laboratories Inc 400 West Cesar Chavez Austin TX 78701 Tel 1 512 416 8500 Fax 1 512 416 9669 Toll Free 1 877 444 3032 Email MCUinfo silabs com Internet www silabs com The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice Silicon Laboratories assumes no responsibility for errors and omissions and disclaims responsibility for any consequences resulting from the use of information included herein Additionally Silicon Laboratories assumes no responsibility for 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 applicati
11. ED Flashes variable 1 If the device is running stop execution using the Stop button or use the Debug Stop menu option 2 Scroll to the TIMER2 ISR function line 368 and right click on the variable Num LED Flashes In the context menu that appears select Insert Remove Breakpoint On the left side of the line in the editor window a red circle is added to indicate a breakpoint is placed on the source line INTERRUPT TIMER2 ISR INTERREUFT TIHEE 2 static U32 TMEZ Count 0 THR2CH x8 Clear TIHERZ2 Flags 11 Blink State TIMER MODE amp amp TMR2 Count Blink Kate 01 LED LED Num LED Add Num LED Flashes to Watch as Default Type ADOBUSY 1 Add Num LED Flashes to Watch F 2 Count 4 cate A A Initializat 3 Click the Go button or select the Debug Go menu option 4 After a short time the IDE will show that the device is halted A blue line will be placed in the editor window to indicate where the code execution has stopped INTERRUPT TIMER ISR INTERRUPT_TIHER static U32 TMR2 Count 0 THR2CH amp 2 0x80 s Clear TIMER Flags Blink State TIMER_MODE amp amp TMER2 Count Blink Rate 01 LED LED Hum LED Flashes ADOBUSY 1 Start ADCO Conversion THR Countt 5 Start and stop the processor a few more tim
12. OK Go to Debug Connect Download the code using the download button on the menu bar or use alt D NOU RO Once these steps are completed the firmware is built into an object file step 5 and downloaded to the device step 9 The device is now ready to begin executing code If all of these steps were followed successfully the Go option is enabled in the Debug menu A green circle icon in the IDE toolbar also indicates that the device is ready to run If one of the steps leads to an error make sure that the ToolStick is properly inserted in a USB port and start again with step 6 6 3 Running and Stopping Code Execution Once the IDE is connected to the device and the firmware is loaded the IDE can start and stop the code execution The following steps can be performed using the buttons on the toolbar or using the options in the Debug menu 1 To start code execution click the green Go button on the toolbar or use the Debug Go menu option The green LED on the daughter card will start to flash The debug commands in the IDE single step multiple step set breakpoint and others are disabled when the device is running While the firmware is running the potentiometer on the daughter card can be turned to alter the blinking speed of the LED OR Po 2 stop code execution 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
13. SR is triggered upon a TIMER ove ES 15 MOV A 15H TIMER MODE the ISE toggles the state 0441 2B ADD number of times the LED Blinks 044 FS 15 MOY 15H A The timer is also used for periodically 0444 E MOV R2 P 0445 35 14 ADDI A 14H 0447 F5 14 MOV 14H 0449 EY MOV R1 INTERRUPT TIMER 15E IHTERREUFT TIHER 2 0444 35 13 ADDC A 13H 1 04407 FS 13 MOV 13H static U32 TMR2 Count 0 44E ES MOV A O44F 35 12 ADDIC A 12H THE2CHN amp DxD ve 0451 FS 12 MOV 12H 0453 D2 SETE EG 4H Blink State TIMER THF 0455 5 11 MOV A 1115 T 0457 24 01 ADD 01 LED LED 0459 F5 11 MOV 11H Hum LED 1 45B E4 CLR 1 0450 35 10 ADDC 4 10H 045E FS 10 MOV 10H ADOBUSY 1 sr Stz 0460 E4 0461 35 OF ADDIC THR2 Count 0463 FS OF MOV A 1 0465 E4 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 12 Rev 0 1 s SILICON LABS ToolStick F800DC 6 8 Using ToolStick Terminal This section describes how to use ToolStick Terminal to communicate with UART from the PC to the daughter card through the
14. and pins on the device will hold their state g All debug windows and watch windows are refreshed when the device is stopped If any of the values in these windows have changed since the last time the device was halted the new value is shown in red text instead of black text 8 Rev 0 1 SILICON LABS ToolStick F800DC 6 4 Viewing and Modifying Registers All registers on the device can be viewed and modified when the device is in a halted state The registers are grouped together according to which peripheral or part of hardware they belong As an example this guide shows how to open the ADCO Debug Window and disable the ADCO directly from the IDE 1 Open the ADCO Debug Window from the View gt Debug Windows SFR s gt ADCO menu option The ADCO Debug Window appears on the right hand side of the IDE In this window the ADCOON register is shown This register is used to enable and configure the on chip ADC When the firmware is running the ADCOCN register reads as 0x80 indicating that the ADC is running Silicon Laboratories IDE F362DC FeaturesDemo c 7 Fle Edit wew Project Debug Tools Options Window Help 4 hie program den F362 Daughter Ca Part oe zB Based on the set sus will either blin SPI Bus 1 or the duty Voltage across t Timers d 8051 Controller Mis D pebug Windows Be 051 Controller ise TT Water Winga ADCU v Project Window
15. cted to two port pins on the target microcontroller ToolStick Terminal is used to configure and read write these pins For the Fa0ODC FeaturesDemo one of these GPIO pins is connected to the GPIO pin P1 2 on the C8051F800 The following steps describe how to change the level of one of the GPIO pins and have that change affect the program flow on the target microcontroller The level change is recognized by the firmware using the Port Match feature and it switches modes and send a pulse width modulated PWM signal to the LED instead of blinking the LED using an on chip Timer When P1 2 is low the state of the push button switch P1 4 is ignored by the firmware 1 In ToolStick Terminal under Pin State Configuration select Set GPIOO Logic Low and click on Set Selected Pin States This changes the level of the GPIOO pin from Logic High to Logic Low and that is detected by the firmware running on the microcontroller 2 In the Receive window see that the printed text has changed to indicate the LED PWM duty cycle 3 Turn the potentiometer on the daughter card to change the brightness of the LED on the daughter card 4 Change the GPIOO pin state back to Logic High and notice that the firmware switches back to blinking the LED The firmware on the C8051F800 target microcontroller does not need to be customized to use the UART and communicate with ToolStick Terminal The firmware on the microcontroller should write to the UART as it would in a
16. es Notice that the LED blinks once for every time the processor is started and the Num_LED_Flashes variable also increments by one i e Rev 0 1 11 SILICON LABS ToolStick F800DC 6 7 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 the 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 there is already not a breakpoint set on line of code that increments the Num LED Flashes variable set the breakpoint using the steps described in Section 6 6 2 Start the processor using the Go button and wait till 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 gt Step menu option The highlighted line in the disassembly window indicates the next instruction to be executed The blue line marker in the editor window will stay on the same C source line until all of the assembly instructions are completed hdc IL O 35 35 M 2 me 8051 RS PAT DUE A P eel Address s TIMER ISE JE r tt ie INC fF 043E F8 MOV RO A s This I
17. ins the ToolStick C8051F800 Daughter Card 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 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 C8051F800 Daughter Card are used as general purpose development platforms for the target microcontrollers and some are used to demonstrate a specific feature or application The C8051F800 Daughter Card includes a C8051F800 GM MCU QFN20 package three LEDs a potentiometer a push button switch two capacitive 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 Figure 3 shows the ToolStick C8051F800 Daughter Card and identifies the various co
18. mponents Card Edge Power LED P1 0 LED P1 1 LED C8051F800 GM MCU Full Pin Access Seu VBUS VDD GND GND C2eseae Too eT elo aja TOOLSTICK F800 DC Adapter ch grey PWR 1 0 01 02 O rrj d R2 R10 P1 4 Push Button Switch 0 7 Potentiometer Capacitive Sense Switches Figure 3 ToolStick C8051F800 Daughter Card 2 Rev 0 1 SILICON LABS ToolStick F800DC 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 m Silicon Laboratories Integrated Development Environment IDE m Keil Demonstration Tools m ToolStick Terminal application The Keil Demo Tools include a compiler assembler and linker See 5 2 Keil Demonstration Toolset for more details about the demo tools ToolStick Terminal communicates with the target microcontrollers UART through the ToolStick Base Adapter It can also read write two of the 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 m Configuration Wizard 2 m Keil uVision2 and uVision3 Drivers m M CU Production Programmer and Flash Programming Utilities m OuickSense Studio
19. nality 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 See Section 6 8 Using ToolStick Terminal on page 13 for more information The software is available on the ToolStick webpage www silabs com toolstick 5 6 Keil uVision2 and uVision3 Silicon Labs Drivers As an alternative to the Silicon Labs IDE the u Vision debug driver allows the Keil ui Vision IDE to communicate with Silicon Labs on chip debug logic In system Flash memory programming integrated into the driver allows for rapidly updating target code The uVision IDE 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 pu Vision driver documentation The documentation and software available from the Downloads webpage www silabs com mcudownloads 5 7 Programming Utilities The Silicon Labs IDE is the primary tool for downloading firmware to the MCU during development There are two software programming tools that are intended for use during prototyping or in the field the MCU Production Programmer and the Flash Programming Utilities The MCU Production Programmer is ins
20. ny standard application and all of the translation is handled by the ToolStick Base Adapter Rev 0 1 13 SILICON LABS ToolStick F800DC 7 Additional Demo Examples 7 1 Capacitive Sense Switch Example In addition to the 8000 FeaturesDemo example firmware the ToolStick download package also includes a demo project named F800DC CapacitiveSense The example source file F800DC CapacitiveSense c demonstrates the configuration and usage of the capacitive sense switches labeled P1 5 and P1 6 Refer to the source file for step by step instructions to build and test this example The project and source files for these demos can be found in the C SiLabs MCU ToolStick F800DC Firmware directory by default 7 2 QuickSense Firmware API Example The QuickSense Studio software install available at www silabs com quicksense includes a QuickSense Firm ware API example for the ToolStick C8051F800 daughter card This is installed in the CASiLabsWMCUIQuickSense Studio Kits F800 ToolStickDC directory by default In addition to the source files a pre built Intel Hex file F800DC hex is also included for quick evaluation This firmware uses the QuickSense Firm ware API to measure capacitance on the two sensing pads and application layer code indicates touch using the LEDs on the board While the P1 5 and P1 6 sensing pads are pressed the firmware lights up the P1 0 and P1 1 LEDs respectively For a more detailed description of the Q
21. on or use of any product or circuit and specifically disclaims any and all liability including without limitation conse quential or incidental damages Silicon Laboratories products are not designed intended or authorized for use in applications intended to support or sustain life or for any other application in which the failure of the Silicon Laboratories product could create a situation where per sonal injury or death may occur Should Buyer purchase or use Silicon Laboratories products for any such unintended or unauthorized ap plication Buyer shall indemnify and hold Silicon Laboratories harmless against all claims and damages Silicon Laboratories and Silicon Labs are trademarks of Silicon Laboratories Inc Other products or brandnames mentioned herein are trademarks or registered trademarks of their respective holders amp 18 Rev 0 1 6 SILICON LABS
22. onfigure 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 available from the Downloads webpage www silabs com mcudownloads amp 4 Rev 0 1 SILICON LABS ToolStick F800DC 5 4 Keil uVision Silicon Labs Drivers As an alternative to the Silicon Labs IDE the uVision debug driver allows the Keil u Vision IDEs to communicate with Silicon Labs on chip debug logic In system Flash memory programming integrated into the driver allows for rapidly updating target code The uVision 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 p Vision driver documentation The documentation and software 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 functio
23. part of this demo shows how to use the IDE to connect and download the firmware view and modify registers use watch windows use breakpoints and single step through code The second part of the demo shows how to use ToolStick Terminal to receive UART data from the daughter card and how to use the GPIO pins 6 1 Hardware Setup Connect the ToolStick hardware to the PC using the steps below while taking note of the recommendations in Section 1 1 Connect the ToolStick Base Adapter to the ToolStick C8051F800 Daughter Card 2 If available connect the USB extension cable to the ToolStick Base Adapter 3 Connect the ToolStick to a USB port on a PC See Figure 6 below for an example hardware setup using the C8051F330 ToolStick Daughter Card Figure 6 Hardware Setup Example m Rev 0 1 7 SILICON LABS ToolStick F800DC 6 2 Connecting to the Device and Downloading Firmware This section describes how to open the IDE open and build a project connect to a device and download the firmware 1 Open the Silicon Laboratories IDE from the Start gt Programs Silicon Laboratories menu In the IDE go to Project gt Open Project Browse to C SiLabs MCU ToolStick F800DC Firmware Select F800DC FeaturesDemo wsp and click OK In the IDE select Project Rebuild Project Go to Options Connection Options Select USB Debug Adapter for the Serial Adapter and C2 for the Debug Interface and then click
24. talled with the IDE to the directory C Silabs MCU Utilities Production Programmer default The Flash Programming Utilities can be optionally installed from the Downloads webpage www silabs com mcudownloads and is installed to C Silabs MCU Utilities FLASH Programming default Rev 0 1 9 SILICON LABS ToolStick F800DC 5 8 QuickSense Studio The QuickSense Studio software facilitates rapid code development and analysis for applications using the Silicon Labs family of QuickSense products The Studio is comprised of multiple programs that guide users through an intuitive development flow including graphical configuration wizards firmware templates and performance moni toring tools These programs interface with the QuickSense Firmware API a highly configurable open source firm ware library that provides support for many different applications from simple buttons to complex algorithms like gesture recognition IE EI Ex E r i m LI ST QuickSense Performance Analysis Tool QuickSense Studio File Settings Help set Up This page allows you to define the parameters of your Quicksense TM Firmware API project You will need to select the target MCU and the destination Folder For the project C Project Name Not Specified a Project Path lt Not_Specified gt Host MCU lt Not_Specified gt Ot h e r Re eva nt Programs I ild D o c
25. ticklF 800D CG Documentation directories The installer for the ToolStick software is available at www silabs com toolstick Rev 0 1 15 SILICON LABS ToolStick F800DC 10 C8051F800 Daughter Card Schematic 0199 0199 0199 HILIMS 0189 512 00189 0199 5197 00199 031 037 N33d9 SIVA Y3LIWOILN3LOd 0149 0149 X17TIVNINYILLSL 0149 X4TIVNINYJLLSL 0199 0189 0199 0199 SC o zd d TT OJ 4 sval TTOJ 918 esa 3 Std oca 9 pie aa DC x stal 9 219 aa 8 O 4 aa 8 otd ld ua 3 Eod oa 908 9 1 od T T OJ rod 14 OI Od 541 69 amp zod sa vod eo CE ear 69 lt M029 8 929 DIJEWIBYIS 191UDNEG YINSIOOL 008419080 Z 4 00 l M 63 94 0 3SN3S dvo eS 0 0 gt ga Ould 35435 dv2 zs SNOLLNE 3SN3S 3AILIOVdVO tld 94 tS 00 vy 00 cy N3339 x N3349 x x ca zd uMd 04 0 7 ML old 4 Ly Vid Old 034 Ia A azo A A N M029 1923 158 ML 44 sam 0 on aan Lid lt 91 lt 619 lt _ lt lt 2281 I dL 6291 8231 sngA 3 0 0 Q22 0 td OD azo eA W9 008415082 7929 1Su
26. uickSense Firmware API or the Serial Interface see AN366 QuickSense API For a more detailed description of active inactive thresholds see AN367 Understanding Capacitive Sensing Signal to Noise Ratios For a discussion on baselining in the QuickSense Firmware API see AN418 Baselining in the QuickSense Firmware API 8 Using the C8051F800 Daughter Card as a Development Platform The prototyping area on the ToolStick C8051F800 daughter card makes it easy to interface to external hardware All of the I O pins are available so it possible to create a complete system 8 1 C8051F800 Pin Connections It is important to note that if external hardware is being added some of the existing components on the board can interfere with the signaling The following is a list of port pins on the C8051F800 that are connected to other components m P0 4 PO 5 These pins are connected directly to the ToolStick Base Adapter for UART communication m P1 2 P1 3 These pins are connected directly to the ToolStick Base Adapter s GPIO pins By default these GPIO pins on the Base Adapter are high impedance pins so they will not affect any signaling Configuring these pins on the Base Adapter to output pin or handshaking pins could affect signaling m P1 0 P1 1 These pins are connected to the cathodes of the green LEDs D2 D3 on the daughter card The LEDs or the R2 R10 resistors can be removed to disconnect an LED from the corresponding pin m PO0
Download Pdf Manuals
Related Search
Related Contents
039 - FC2 Dell Wyse 920280-01L mounting kit カタログはコチラ B00LRK8HJ8 Albrecht AE 6690 manual Instrucciones 汎用性と費用対効果に優れたソリューション 堅牢な高 Copyright © All rights reserved.
Failed to retrieve file