background image

C 8 0 5 1 F 3 3 6 / 7 / 8 / 9

Rev. 0.3

3

4.1.  Running Blinky

Each project has its own source files, target configuration, SDK configuration, and build configurations such as the

Debug

 and 

Release

 build configurations. The IDE can be used to manage multiple projects in a collection called a

workspace. Workspace settings are applied globally to all projects within the workspace. This can include settings
such as key bindings, window preferences, and code style and formatting options. Project actions, such as build
and debug are context sensitive. For example, the user must select a project in the 

Project Explorer

 view in order

to build that project.

To create a project based on the Blinky example:

1.  Click the 

Simplicity IDE

 tile from the Simplicity Studio home screen.

2.  Click the 

Create new project

 link from the welcome screen or go to

 File

New

Silicon Labs MCU 

Project

.

3.  In the 

Kit

 drop-down, select 

C8051F338 Development Kit

, in the 

Part

 drop-down, select 

C8051F338

, and 

in the 

SDK

 drop-down, select the desired SDK. Click 

Next

.

4.  Select 

Example

 and click 

Next

.

5.  Under 

C8051F338 Development Kit

 in the 

Blinky

 folder, select 

F336-9 Blinky 

and click 

Finish

.

6.  Click on the project in the 

Project Explorer

 and click 

Build

, the hammer icon in the top bar. Alternatively, 

go to 

Project

Build Project

.

7.  Click 

Debug

 to download the project to the hardware and start a debug session.

8.  Press the 

Resume 

button to start the code running. The LED should blink. 

9.  Press the 

Suspend

 button to stop the code.

10.  Press the 

Reset the device

 button to reset the target MCU.

11.  Press the 

Disconnect

 button to return to the development perspective.

4.2.  Simplicity Studio Help

Simplicity Studio includes detailed help information and device documentation within the tool. The help contains
descriptions for each dialog window. To view the documentation for a dialog, click the question mark icon in the
window:

This will open a pane specific to the dialog with additional details.

The documentation within the tool can also be viewed by going to 

Help

Help Contents

 or 

Help

Search

.

Summary of Contents for C8051F336

Page 1: ...dapter The target board is connected to a PC running the Silicon Laboratories IDE via the USB Debug Adapter as shown in Figure 1 1 Connect the USB Debug Adapter to the DEBUG connector 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 p...

Page 2: ...tudio Simplicity Studio from the start menu or clicking the Simplicity Studio shortcut on the desktop Follow the instructions to install the software and click Simplicity IDE to launch the IDE The first time the project creation wizard runs the Setup Environment wizard will guide the user through the process of configuring the build tools and SDK selection In the Part Selection step of the wizard ...

Page 3: ...the Part drop down select C8051F338 and in the SDK drop down select the desired SDK Click Next 4 Select Example and click Next 5 Under C8051F338 Development Kit in the Blinky folder select F336 9 Blinky and click Finish 6 Click on the project in the Project Explorer and click Build the hammer icon in the top bar Alternatively go to Project Build Project 7 Click Debug to download the project to the...

Page 4: ...ction Programmer Programming utilities for the production line More information on the available programming options can be found on the website http www silabs com products mcu Pages ProgrammingOptions aspx ToolStick Development Tools Software and examples for the ToolStick development platform More information on this platform can be found at www silabs com toolstick The development kit includes...

Page 5: ...U through the UART interface Use the drivers included CD ROM or download the latest drivers from the website www silabs com interface software 1 If using the CD ROM the CP210x Drivers option will launch the appropriate driver installer If downloading the driver package from the website unzip the files to a location and run the appropriate installer for the system x86 or x64 2 Accept the license ag...

Page 6: ... power adapter P2 USB connector connects to PC for serial communication J1 26 pin Expansion I O connector J2 MCU power header VDD J3 Port I O configuration header J4 DEBUG connector for Debug Adapter interface J5 USB connector for UART0 interface J6 Connects pin P0 1 to node IDAC and resistor R2 J7 J8 Connects the potentiometer R14 to pin P1 6 and 3VD J9 J10 External crystal enable connectors J11 ...

Page 7: ...5 shows the positions of the factory default shorting blocks Figure 5 C8051F338 Target Board Shorting Blocks Factory Defaults SW3 P2 CP 2102 U3 F338 U1 P1 DEBUG J4 3VD GND P1 3 D7 USB D4 P0 7 SW2 RESET SW1 TB1 SILICON LABS www silabs com J11 J7 J8 J1 J2 J3 J6 J9 J10 J5 Prototype Area R14 PWR D6 Prototype Area I O Connection Points Pin 2 Pin 1 Pin 2 Pin 1 Pin 2 Pin 1 Pin 1 Pin 2 Pin 1 ...

Page 8: ... 24 5 MHz base frequency 2 which is enabled as the system clock source on reset After reset the internal oscillator operates at a frequency of 3 0625 MHz 2 by default but may be configured by software to operate at other frequencies For low frequency operation the C8051F338 features a programmable low frequency internal oscillator 80 kHz base frequency 10 Therefore in many applications an external...

Page 9: ...at can sense the state of the switch All the four shorting blocks should be present on header J11 to properly connect this switch to the MCU Three LEDs are provided on the target board to serve as indicators The red LED labeled PWR is used to indicate the presence of power to the target board The green LED labeled with port pin name P1 3 is connected to the C8051F338 s GPIO pin P1 3 through the he...

Page 10: ... a list of pin descriptions for J1 5 6 Target Board DEBUG Interface J4 The DEBUG connector J4 provides access to the DEBUG C2 pins of the C8051F338 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 J1 Pin Descriptions Pin Description Pin Description 1 3 VD 3 3 VDC 14 P...

Page 11: ...38 target board also features a Current to Voltage 1 K load resistor that may be connected to the 10 bit current mode Digital to Analog Converter IDAC output that can be enabled on port pin P0 1 Install a shorting block on J6 to connect port pin P0 1 of the target device to the load resistor If enabled by software the IDAC signal is then routed to the J1 2 and TB1 2 connectors 5 10 C2 Pin Sharing ...

Page 12: ...8 Target Board Pin Assignments and Headers MCU Pin Name Pin Primary Function Alternate Fixed Function Target Board Function Relevant Headers P0 0 2 P0 0 VREF VREF J1 3 TB1 6 J5 1 P0 1 1 P0 1 IDAC IDAC J1 4 J1 2 TB1 2 J6 1 P0 2 24 P0 2 XTAL1 XTAL1 J1 5 J9 2 P0 3 23 P0 3 XTAL2 XTAL2 J1 6 J10 2 P0 4 22 P0 4 TX_MCU TX_MCU J1 7 J3 5 P0 5 21 P0 5 RX_MCU RX_MCU J1 8 J3 7 P0 6 20 P0 6 CNVSTR CNVSTR J1 9 T...

Page 13: ...C8051F336 7 8 9 Rev 0 3 13 6 Schematics Figure 6 C8051F338 Target Board Schematic Page 1 of 2 ...

Page 14: ...C8051F336 7 8 9 14 Rev 0 3 Figure 7 C8051F338 Target Board Schematic Page 2 of 2 ...

Page 15: ...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...

Page 16: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Silicon Laboratories C8051F336DK ...

Reviews: