background image

C8051F36x-DK

Rev. 0.1

3

Keil 8051 Tools Into the Silicon Labs IDE”

 in the “

SiLabs\MCU\Documentation\Appnotes

” directory on the CD-

ROM 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 the program 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.) 

4.4.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 rec-

ognized 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. 

Right-click on “New Project” in the 

Project Window

. Select 

Add Groups to project

. Add pre-defined 

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.

4.4.2. 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 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 appropriate adapter in the “Serial Adapter” section. Next, the correct “Debug Interface” must be selected.
C8051F36x family devices use the Silicon Labs 2-wire (C2) debug interface. Once all the selections are
made, click the OK button to close the window. 

3. Click the 

Connect

 button in the toolbar or select 

Debug

Connect

 from the menu to connect to the device. 

4. 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 con-

nect/download after build

 in the 

Project

Target Build Configuration

 dialog. If errors occur during the 

build process, the IDE will not attempt the download.

5. 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 C8051F360x-DK

Page 1: ...r on the target board with the 10 pin ribbon cable 2 Connect one end of the USB cable to the USB connector on the USB Debug Adapter 3 Connect the other end of the USB cable to a USB Port on the PC 4 Connect the AC DC Power Adapter to power jack P2 on the target board Notes Use the Reset button in the IDE to reset the target when connected using a USB Debug Adapter Remove power from the target boar...

Page 2: ...lers is also supported This development kit includes the Keil Software A51 macro assembler BL51 linker and evaluation version C51 C compiler These tools can be used from within the Silicon Laboratories IDE 4 1 System Requirements The Silicon Laboratories IDE requirements Pentium class host PC running Windows 2000 or Windows XP One available COM or USB port 64 MB RAM and 40 MB free HD space recomme...

Page 3: ... be used to organize Right click on New Project in the Project Window Select Add Groups to project Add pre defined 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 4 4 2 Building and Downloading the Program for Debugging 1 Once all source files have been added to the tar...

Page 4: ... bit names are identical to those used in the C8051F36x data sheet Both register definition files are also installed in the default search path used by the Keil Software 8051 tools Therefore when using the Keil 8051 tools included with the development kit A51 C51 it is not necessary to copy a register definition file to each project s file directory 5 2 Blinking LED Example The example source file...

Page 5: ...ts the 3 V supply net to the VDD supply net J8 Supply signal header J9 Debug connector for debug adapter interface J10 J11 External crystal port pin enable connectors J12 Port I O jumper configuration block J13 Jumper connection for potentiometer to pin 2 5 J14 Jumper connection for potentiometer source to 3 V J15 Jumper connection for pin 0 3 to capacitors used when VREF is internally generated J...

Page 6: ...the C8051F360 s general purpose I O GPIO pins through headers Pressing P3 0 or P3 1 generates a logic low signal on the port pin Remove the shorting blocks from the J12 header to disconnect Switch P3 0 and Switch P3 1 from the port pins See Table 1 for the port pins and headers corresponding to each switch Four LEDs are also provided on the target board The red LED labeled PWR is used to indicate ...

Page 7: ...port connectors 6 4 Target Board DEBUG Interface J9 The DEBUG connector J9 provides access to the DEBUG C2 pins of the C8051F360 It is used to connect the Serial Adapter or the USB Debug Adapter to the target board for in circuit debugging and Flash programming Table 3 shows the DEBUG pin definitions Table 2 J12 J19 Port Connector Pin Descriptions Pin Description 1 Pn 0 2 Pn 1 3 Pn 2 4 Pn 3 5 Pn 4...

Page 8: ... Adapter 2 The 5 V VBUS signal if P4 is connected to a USB bus and 3 The 5 V USB bus if a USB Debug Adapter is connected to the Debug Header J9 Place a shorting block at header J1 REG_IN P1_PWR to power the board directly from an AC DC Power Adapter Place a shorting block at header J1 REG_IN VBUS to power the board from the USB bus connected to P4 Place a shorting block at header J1 REG_IN SER_PWR...

Page 9: ...C8051F36x DK Rev 0 1 9 7 Schematics Figure 3 C8051F360 Target Board Schematic Page 1 of 2 ...

Page 10: ...C8051F36x DK 10 Rev 0 1 Figure 4 C8051F360 Target Board Schematic Page 2 of 2 ...

Page 11: ...C8051F36x DK Rev 0 1 11 NOTES ...

Page 12: ...y 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 application or use of any product or circuit and speci...

Reviews: