background image

C 8 0 5 1 T 6 3 x - D K

6

Rev. 0.1

5.  Using the Keil Software 8051 Tools with the Silicon Laboratories IDE

To perform source-level debugging with the IDE, configure the Keil 8051 tools to generate an absolute object file in
the OMF-51 format with object extensions and debug records enabled. Build the OMF-51 absolute object file by
calling the Keil 8051 tools at the command line (e.g., batch file or make file) or by using the project manager built
into the IDE. The default configuration when using the Silicon Laboratories IDE project manager enables object
extension and debug record generation. Refer to "AN104: Integrating Keil 8051 Tools into the Silicon Labs IDE" in
the 

SiLabs\MCU\Documentation\Appnotes

 directory on the CDROM for additional information on using the Keil

8051 tools with the Silicon Laboratories IDE.

To build an absolute object file using the Silicon Laboratories IDE project manager, you must first create a project.
A project consists of a set of files, IDE configuration, debug views, and a target build configuration (list of files and
tool configurations used as input to the assembler, compiler, and linker when building an output object file). The
following sections illustrate the steps necessary to manually create a project with one or more source files, build a
program, and download it to the target in preparation for debugging. (The IDE will automatically create a single-file
project using the currently open and active source file if you select Build/Make Project before a project is defined.)

5.1.  Creating a New Project

1. Select “Project

New Project” to open a new project and reset all configuration settings to default.

2. Select “File

New File” to open an editor window. Create your source file(s) and save the file(s) with a 

recognized extension, such as 

.c

.h

, or 

.asm

, to enable color syntax highlighting.

3. Right-click on "New Project" in the Project Window. Select “Add Files to Project”. Select files in the file browser, 

and click “Open”. Continue adding files until all project files have been added.

4. For each of the files in the Project Window that you want assembled, compiled, and linked into the target build, 

right-click on the file name, and select “Add File to Build”. Each file will be assembled or compiled as 
appropriate (based on file extension) and linked into the build of the absolute object file.

Note:

If a project contains a large number of files, the "Group" feature of the IDE can be used to organize them. Right-click on
"New Project" in the Project Window. Select “Add Groups to Project”. Add predefined groups or add customized groups.
Right-click on the group name, and choose “Add File to Group”. Select files to be added. Continue adding files until all
project files have been added.

5.1.1. Building and Downloading the Program for Debugging

1. Once all source files have been added to the target build, build the project by clicking on the “Build/Make 

Project” button in the toolbar or by selecting “Project

Build/Make Project” from the menu.

Note:

After the project has been built the first time, the Build/Make Project command will only build the files that have been
changed since the previous build. To rebuild all files and project dependencies, click on the “Rebuild All” button in the
toolbar or select “Project

Rebuild All” from the menu.

2. Before connecting to the target device, several connection options may need to be set. Open the Connection 

Options window by selecting “Options

Connection Options...” in the IDE menu. First, select the "USB Debug 

Adapter" option. The USB Debug circuitry is integrated onto the C8051T630 Motherboard.

3. Next, the correct debug interface must be selected. C8051T63x family devices and the F336 all use the Silicon 

Labs "C2" 2-wire debug interface. Once all the selections are made, click the OK button to close the window.

4. Click the “Connect

 button in the toolbar, or select “Debug

Connect” from the menu to connect to the device.

5. Download the project to the target by clicking the “Download Code” button in the toolbar.

Note:

To enable automatic downloading if the program build is successful, select “Enable Automatic Connect/Download after
Build” in the “Project

Target Build Configuration” dialog. If errors occur during the build process, the IDE will not attempt

the download.

6. Save the project when finished with the debug session to preserve the current target build configuration, editor 

settings, and the location of all open debug views. To save the project, select “Project

Save Project As...” from 

the menu. Create a new name for the project, and click on “Save”.

Summary of Contents for C8051T630

Page 1: ...r Source code examples and register definition files Documentation AC to DC universal power adapter Two USB cables 2 About the Daughter Boards The C8051T63x Development Kit includes an Emulation Daughter Board EDB and a QFN Socket Daughter Board QFN DB The EDB has an installed C8051F336 device which is a Flash based device that can be used for the majority of C8051T63x code development The QFN DB ...

Page 2: ... USB cable are connected can damage the motherboard the daughter board or the socketed device Remove power from the motherboard and remove the USB cable before removing a C8051T63x device from the socket Inserting or removing a device from the socket when the power adapter or USB cable are connected can damage the motherboard the daughter board or the socketed device The above hardware setup instr...

Page 3: ...acker utility 1 Follow the steps to copy the driver files to the desired location The default directory is C SiLabs MCU CP210x 2 The final window will give an option to install the driver on the target system Select the Launch the CP210x VCP Driver Installer option if you are ready to install the driver 3 If selected the driver installer will now launch providing an option to specify the driver in...

Page 4: ...n version of the C51 compiler is the same as the full version with the following limitations 1 Maximum 4 kB code generation 2 There is no floating point library included When installed from the CD ROM the C51 compiler is initially 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 l...

Page 5: ...ision3 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 refer to the µVision driver documentation The documentation and software are available on the kit CD and from the downloads webpage www silabs com mcudownloads 4 7 ToolStick Termina...

Page 6: ... name and select Add File to Build Each file will be assembled or compiled as appropriate based on file extension and linked into the build of the absolute object file Note If a project contains a large number of files the Group feature of the IDE can be used to organize them Right click on New Project in the Project Window Select Add Groups to Project Add predefined groups or add customized group...

Page 7: ...r with a timer 7 Development Boards The C8051T63x Development Kit includes a motherboard that interfaces to various daughter boards The C8051T630 Emulation Daughter Board contains a C8051F336 device to be used for preliminary software development The C8051T630 Socket Daughter Board allows programming and evaluation of the actual C8051T63x family of devices Numerous input output I O connections are...

Page 8: ...1 J7 J10 J8 VDD_PWR J6 VDD_PWR VDD_PWR VDD_PWR 3VD VDD_EXT VDD_F326 VDD_CCP2103 USB ACTIVE TX_F326 P0 4 P0 5 RX_CP2103 TX_CP2103 RX_F326 CTS_F326 P1 1 P1 2 RTS_CP2103 CTS_CP2103 RTS_F326 VPP P1 3 P0 7 PWR D10 DEBUG PWR RUN STOP D7 D12 D11 SW J9 J5 C8051T630 MB Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 Pin 1 J4 J13 Pin 1 J1 ...

Page 9: ...LABS www silabs com RESET P4 COMM P5 P1 P2 J3 LED J11 J7 J10 J8 VDD_PWR J6 VDD_PWR VDD_PWR VDD_PWR 3VD VDD_EXT VDD_F326 VDD_CCP2103 USB ACTIVE TX_F326 P0 4 P0 5 RX_CP2103 TX_CP2103 RX_F326 CTS_F326 P1 1 P1 2 RTS_CP2103 CTS_CP2103 RTS_F326 VPP P1 3 P0 7 PWR D10 DEBUG PWR RUN STOP D7 D12 D11 SW J9 J5 C8051T630 MB J4 J13 J1 ...

Page 10: ...K 10 Rev 0 1 Figure 5 C8051T630 Emulation Daughter Board Figure 6 C8051T630 QFN20 Socket Daughter Board F336 C8051T630 EDB U1 SILICON LABS www silabs com C8051T630 QFN20 SKT DB SILICON LABS www silabs com U1 Pin 1 ...

Page 11: ... adapter circuit is being powered through P5 s USB connector The red LED labeled VPP D7 indicates when the VPP programming voltage is being applied to the device The green LED labeled LED D1 can be connected to the C8051T63x s GPIO pin through header J9 Remove the shorting block from the header to disconnect the LED from the port pin The red LED labeled USB ACTIVE D2 will turn on whenever the CP21...

Page 12: ...e CP2103 USB to UART bridge device and the communications interface of the USB Debug Adapter The CP2103 bridge device connects to a PC through the USB connector labeled COMM P4 This USB connector supplies power to the CP2103 and can supply power to the rest of the motherboard by configuring J6 and J7 as shown in Figure 7 To use the CP2103 as a communications interface the CP2103 Virtual COM Port d...

Page 13: ...fering with the normal application operation of P0 2 When programming the device J11 should be shorted with a shorting block When running normal application code J11 can be removed 7 10 Using Alternate Supplies with the C8051T63x Development Kit For most evaluation purposes the onboard 3 3 V supply regulator is sufficient to be used as a VDD power supply However in applications where a different s...

Page 14: ...C8051T63x DK 14 Rev 0 1 8 Schematics Figure 9 C8051T630 Motherboard Schematic 1 of 2 ...

Page 15: ...C8051T63x DK Rev 0 1 15 Figure 10 C8051T630 Motherboard Schematic 2 of 2 ...

Page 16: ...C8051T63x DK 16 Rev 0 1 Figure 11 C8051T630 Emulation Daughter Board Schematic ...

Page 17: ...C8051T63x DK Rev 0 1 17 Figure 12 C8051T630 QFN 20 Daughter Board Schematic ...

Page 18: ...or health which if it fails can be reasonably expected to result in significant personal injury or death Silicon Laboratories products are generally not intended for military applications Silicon Laboratories products shall under no circumstances be used in weapons of mass destruction including but not limited to nuclear biological or chemical weapons or missiles capable of delivering such weapons...

Reviews: