background image

C8051F35x-DK

Rev. 0.1

3

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. C8051F35x family devices use the Silicon Labs 2-wire (C2) debug interface. You must select 

C2 

in the

Options->Debug Interface

 menu to enable connection to C8051F35x target devices. Click the 

Connect

button in the toolbar or select 

Debug->Connect

 from the menu to connect to the device. 

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

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

Page 1: ...e C8051F35x Development Kit User s Guide this document 2 Hardware Setup The target board is connected to a PC running the Silicon Laboratories IDE via the Serial Adapter as shown in Figure 1 1 Connect one end of the RS232 serial cable to a Serial COM Port on the PC 2 Connect the other end of the RS232 serial cable to the DB 9 connector on the Serial Adapter 3 Connect the Serial Adapter to the DEBU...

Page 2: ...uded with the development kit and is installed during IDE installation The evaluation version of the C51 compiler is the same as the full professional version except code size is limited to 4 kB and the floating point library is not included The C51 compiler reference manual can be found under the Help menu in the IDE or in the SiLabs MCU hlp directory C51 pdf 4 4 Using the Keil Software 8051 Tool...

Page 3: ...ading 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 fil...

Page 4: ...names are identical to those used in the C8051F35x 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 files bli...

Page 5: ...or J3 Port I O Configuration Jumper Block J4 DEBUG connector for Serial Adapter interface J5 DB 9 connector for UART0 RS232 interface J6 Analog I O terminal block J7 Connector for IDAC0 voltage circuit J8 Serial Adapter target board power connector J9 J10 External crystal enable connectors J11 Connector for IDAC1 voltage circuit J12 Connector block for Thermistor circuitry J13 J14 ADC external vol...

Page 6: ...or mation on the use of external oscillators 6 2 Switches and LEDs Two switches are provided on the target board Switch SW1 is connected to the RESET pin of the C8051F350 Pressing SW1 puts the device into its hardware reset state Switch SW2 is connected to the C8051F350 s general purpose I O GPIO pin through jumpers Pressing SW2 generates a logic low signal on the port pin Remove the shorting bloc...

Page 7: ...or J1 6 4 Target Board DEBUG Interface J4 The DEBUG connector J4 provides access to the DEBUG C2 pins of the C8051F350 It is used to connect the Serial Adapter to the target board for in circuit debugging and Flash programming Table 3 shows the DEBUG pin definitions Pin Description Pin Description Pin Description 1 VDD 13 P1 2 25 AIN3 2 GND 14 P1 3 26 AIN4 3 P0 0 15 P1 4 27 AIN5 4 P0 1 16 P1 5 28 ...

Page 8: ...k on J11 to connect the IDAC1 P1 7 pin of the target device to a converting resistor The IDAC signals are then routed to the J1 and J6 connectors 6 8 Serial Adapter Target Board Power Connector J8 The Serial Adapter includes a connection to provide power to the target board This connection is routed from J4 10 to J8 1 Place a shorting block at jumper J8 2 3 to power the board directly from an AC D...

Page 9: ...erial Adapter labeled JTAG see Figure 3 The Serial Adapter supports both Silicon Laboratories JTAG and C2 debug interfaces All Serial Adapters may be powered from the target board but the EC1 and EC2 Serial Adapter units cannot provide power to the target board Table 5 shows the pin definitions for the Serial Adapter s JTAG connector Notes 1 When powering the Serial Adapter via the JTAG connector ...

Page 10: ...C8051F35x DK 10 Rev 0 1 8 Schematic Figure 4 C8051F350 Target Board Schematic Page 1 ...

Page 11: ...C8051F35x DK Rev 0 1 11 Figure 5 C8051F350 Target Board Schematic Page 2 ...

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: