Silicon Laboratories C8051F326/7 User Manual

C8051F326/7
PC
USB
Cable
USB Debug Adapter
AC/DC
Adapter
Target Board
SILICON LABORATORIES
PWR
P1.6
P3.7RESET
Port 4Port 3Port 1
Port 2 Port 0
MCU
Silicon Laboratories
USB DEBUG ADAPTER
Run
StopPower
C8051F326 DEVELOPMENT KIT USERS GUIDE
1. Kit Contents
The C8051F326/7 Development Kit contains the following items:
• C8051F326 Target Board
• C8051Fxxx Development Kit Quick-Start Guide
• USB Cable
• USB Debug Adapter (USB to Debug Interface)
• USB Cable
2. Hardware Setup using a USB Debug Adapter
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.
P1
4. Connect the ac/dc power adapter to power jack
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 board and the USB Debug Adapter before connecting or disconnecting the ribbon cable from the target board. Conn ecting or disconnecting the cable whe n the devices have power can damage the device and/or the USB Debug Adapter.
Figure 1. Hardware Setup using a USB Debug Adapter
Rev. 0.3 5/14 Copyright © 2014 by Silicon Laboratories C8051F326/7
C8051F326/7
3. Software Setup
Simplicity Studio greatly reduces development time and complexity with Silicon Labs EFM32 and 8051 MCU products by providing a high-powered IDE, tools for hardware configuration, and links to helpful resources, all in one place.
Once Simplicity Studio is installed, the application itself can be used to install additional software and documentation components to aid in the development and evaluation process.
The following Simplicity Studio components are required for the C8051F326 Development Kit:
8051 Products Part Support Simplicity Developer Platform
Download and install Simplicity Studio from www.silabs.com/8bit-software or www.silabs.com/simplicity-studio. Once installed, run Simplicity Studio by selecting St art 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, select from the list of installed parts only the parts to use during development. Choosing parts and families in this step affects the displayed or filtered parts in the later device selection menus. Choose the C8051F326/7 family by checking the C8051F32x check box. Modify the part selection at any time by accessing the Part Management dialog from the Window
Studio
Simplicity Studio can detect if certain toolchains are not activated. If the Licensing Helper is displayed after completing the Setup Environment wizard, follow the instructions to activate the toolchain.
2 Rev. 0.3
Part Management menu item.
Figure 2. Simplicity Studio
Silicon LabsSimplicity StudioSimplicity Studio
PreferencesSimplicity
C8051F326/7
3.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 Software Examples tile from the Simplicity Studio home screen.
2. In the Kit drop-down, select C8051F326 Development Kit, in the Part drop-down, select C8051F326, and in the SDK drop-down, select the desired SDK. Click Next.
3. Select Example and click Next.
4. Under C8051F326 Development Kit in the Blinky folder, select F326-7 BlinkyC and click Next, then Finish.
5. Click on the project in the Project Explorer and click Build, the hammer icon in the top bar. Alternatively, go to Project
6. Click Debug to download the project to the hardware and start a debug session.
7. Press the Resume button to start the code running. The LED should blink.
Build Project.
8. Press the Suspend button to stop the code.
9. Press the Reset the device button to reset the target MCU.
10. Press the Disconnect button to return to the development perspective.
3.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 HelpSearch.
Rev. 0.3 3
C8051F326/7
DEBUG
P1
J5
Prototype Area
J4
Pin 2
J1
Pin 1
C8051
F326
Pin 1
J8
P2.1 P2.0 RESET
PWR
P2.3
P2.2
J10
J7
J2
Pin 1
Pin 2
J3
J11
J9
4. Target Board
The
C8051F326/7 and preliminary software development. Numerous input/output (I/O) connections are prov ided to facil itate prototy p­ing using the target board. Refer to
P1Power connector (accepts input from 7 to 15 VDC unregulated power adapter) J122-pin Expansion I/O connector J2Power Target Board from power adapter at P1 J3Port I/O Configuration connector J4DEBUG connector for Debug Adapter interface J5DB-9 connector for UART0 RS232 interface J7VIO to VDD connector J8USB Debug Adapter target board power connector J9USB connector for USB interface J10External CMOS oscillator connector J11Power Target Board from USB at J9
Development Kit includes a target board with a
Figure 3
for the locations of the various I/O connectors.
C8051F326
device pre-installed for evaluation
4 Rev. 0.3
Figure 3. C8051F326 Target Board
Loading...
+ 7 hidden pages