Silicon Laboratories C8051F960, Si1020 User Manual

C8051F96x/Si102x
UDP C8051F960/Si1020 MCU CARD WITH EMIF U
SERS GUIDE
1. Introduction
The Unified Development Platform (UDP) provides a development and demonstration platform for Silicon Laboratories microcontrollers and the Silicon Laboratories software tools, including the Silicon Laboratories Integrated Development Environment (IDE).
Figure 1. Unified Development Platform
Rev. 0.2 2/14 Copyright © 2014 by Silicon Laboratories C8051F96x
C8051F96x/Si102x
2. Relevant Documents
This document provides a hardware overview for the Unified Development Platform (UDP) system UDP C8051F960/Si1020 MCU Card with EMIF. Additional information on the UDP system can be found in the documents listed in this section.
2.1. Motherboard User’s Guide
The UDP Motherboard User’s Guide contains information on the motherboard features and can be found at
www.silabs.com.
2.2. Card User’s Guides
The UDP MCU Card and Radio Card User’s Guides can be found at www.silabs.com.
2 Rev. 0.2
C8051F96x/Si102x
USB Debug Adapter
USB
Connectivity
Power
Adapter (P1)
VBAT
Switch
VIORF
Switch
VIO
Switch
3. Hardware Setup
3.1. Using the MCU Card Alone
Refer to Figure 2 for a diagram of the hardware configuration when using the MCU card without a UDP motherboard.
1. Connect the USB Debug Adapter to the 2x5 debug connector on the MCU card 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. Move the SW5 VBAT switch to the middle VREG position.
5. Move the SW7 VIO switch to the upper VBAT position.
6. Move the SW12 VIORF switch to the upper VBAT position.
7. Connect the 9 V DC adapter to P1.
Notes:
Use the Reset button in the IDE to reset the target when connected using a USB Debug Adapter. Remove power from the MCU card and the USB Debug Adapter before connecting or disconnecting the
ribbon cable from the MCU card. Connecting or disconnecting the cable when the devices have powe r can damage the device and/or the USB Debug Adapter.
Figure 2. Hardware Setup Using the MCU Card Alone
Rev. 0.2 3
C8051F96x/Si102x
USB Debug Adapter
Power
Adapter
(J20)
USB
Connector
(J16)
VBAT
Switch
3.2. Using the MCU Card with the UDP Motherboard
Refer to Figure 3 for a diagram of the hardware configuration when using the MCU card with a UDP motherboard.
1. Connect the MCU card to the UDP motherboard slot.
2. (Optional) Connect the I/O card to the UDP motherboard slot.
3. (Optional) Connect a radio card to the radio card slot in the UDP motherboard.
4. (Optional) Connect an EZLink card to the EZLink card slot in the UDP motherboard.
5. Connect the USB Debug Adapter to the 2x5 debug connector on the MCU card with the 10-pin ribbon cable.
6. Connect one end of the USB cable to the USB connector on the USB Debug Adapter.
7. Connect the other end of the USB cable to a USB Port on the PC.
8. Connect the ac/dc power adapter to power jack J20 on the UDP motherboard. The board can also be powered from the J16 USB or J1 mini USB connectors.
9. Move the SW5 VBAT switch on the MCU card to the VREG position.
10. Move the SW7 VIO switch on the MCU card to the upper VBAT position.
11. Move the SW12 VIORF switch on the MCU card to the upper VBAT position.
12. Move the S3 power switch on the UDP motherboard to the ON position.
Notes:
Use the Reset button in the IDE to reset the target when connected using a USB Debug Adapter. Remove power from the target boa rd and the USB De bug Adapter before connecting or disconnecting the
ribbon cable from the target board. Connecting or disconnecting the cable when the devices have power can damage the device and/or the USB Debug Adapter.
Th e MCU card can be used alone without th e motherboard . However, the motherboard must be power ed if
an MCU card is connected.
Figure 3. Hardware Setup Using the Unified Development Platform
4 Rev. 0.2
C8051F96x/Si102x
4. 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 C8051F960 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 C8051F96x family by checking the C8051F96x 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.
Part Management menu item.
Figure 4. Simplicity Studio
Silicon LabsSimplicity StudioSimplicity Studio
PreferencesSimplicity
Rev. 0.2 5
C8051F96x/Si102x
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 Project.
3. In the Kit drop-down, select C8051F960 Development Kit, in the Part drop-down, select C8051F960, and in the SDK drop-down, select the desired SDK. Click Next.
4. Select Example and click Next.
5. Under C8051F960 Development Kit in the Blinky folder, select F96x 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
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.
Build Project.
NewSilicon Labs MCU
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 HelpSearch.
6 Rev. 0.2
C8051F96x/Si102x
4.3. Legacy 8-bit IDE
Note: Using the Simplicity Studio tools with the C8051F960 Development Kit is recommended. See section 4. "Software
Setup‚" on page 5 for more information.
Download the 8-bit software from the website (www.silabs.com/8bit-software) or use the provided installer on the CD-ROM to install the software tools for the C8051F96x devices. After installation, examples can be found in ...\Examples\C8051F96x or ...\Examples\Si102x_3x in the installation directory. At a minimum, the C8051F960 DK requires:
Silicon Labs IDE—Software enabling initial evaluation, development, and debugging. Configuration Wizard 2—Initialization code generation software for the C8051F96x devices. Keil C51 Tools—Keil 8051 Compiler/Assembler/Linker toolchain. CP210x Drivers—Virtual COM Port (VCP) drivers for th e CP210x COM interface. More information on this
installation process can be found in Section Figure 3.
Other software available includes:
Keil µVision Driver—Driver for the Keil µVision IDE that enables development and debugging on
C8051Fxxx MCUs.
Flash Programming Utilities and MCU Production 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.
Also available on the 8-bit software webpage is the Battery Life Estimator, which gives designers a quick and easy way to understand the discharge characteristics of different system configurations to help optimize low-power applications.
The development kit includes the latest version of the C51 Keil 8051 toolset. This toolset is initially limited to a code size of 2 kB and programs start at code address 0x0800. After registration, the code size limit is removed entirely and programs will start at code address 0x0000.
To register the Keil toolset:
1. Find the Product Serial Number printed on the CD-ROM. If you no longer have this serial number,
register on the Silicon Labs website (www.silabs.com/8bit-software) to obtain the serial number.
2. Open the Keil µVision4 IDE from the installation directory with administrative privileges.
3. Select File
License Management to open the License Management window.
Rev. 0.2 7
C8051F96x/Si102x
Figure 5. Keil µVision4 IDE License Management Window
4. Click on the Get LIC via Internet... button to open the Obtaining a License IDE Code (LIC) window.
5. Press OK to open a browser window to the Keil website. If the window doesn’t open, navigate to
www.keil.com/license/install.htm.
6. Enter the Silicon Labs Product Serial Number printed on the CD-ROM, along with any additional required information.
7. Once the form is complete, click the Submit button. An email will be sent to the provided email address with the license activation code.
8. Copy the License ID Code (LIC) from the email.
9. Paste the LIC into the New License ID Code (LIC) text box at the bottom of the License Management window in µVision4.
10. Press the Add LIC button. The window should now list the PK51 Prof. Developers Kit for Silabs as a licensed product.
11. Click the Close button.
4.4. CP210x USB to UART VCP Driver Installation
The MCU Card includes a Silicon Labs CP210x USB-to-UART Bridge Controller. Device drivers for the CP210x need to be installed before the PC software can communicate with the MCU 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 agreement and follow the steps to install the driver on the system. The installer will let you know when your system is up to date. The driver files included in this installation have been certified by Microsoft.
3. To complete the installation process, connect the included USB cable between the host computer and the COM PORT USB connector (J5) on the MCU Card. Windows will automatically finish the driver installation. Information windows will pop up from the taskbar to show the installation progress.
4. If needed, the driver files can be uninstalled by selecting Windows Driver Package—Silicon
Laboratories... option in the Programs and Features window.
8 Rev. 0.2
C8051F96x/Si102x
4.5. Silicon Labs Battery Life Estimator
The Battery Life Estimator is a system design tool for battery operated devices. It allows the user to select the type of battery they are using in the system and enter the supply current profile of their application. Using this information, it performs a simulation and provides an estimated system operating time. The Battery Life Estimator is shown in Figure 6.
From Figure 6, the two inputs to the Battery Life Estimator are battery type and discharge profile. The utility includes battery profiles for common battery types such as AAA, AA, A76 Button Cell, and CR2032 coin cell. The discharge profile is application-specific and describes the supply current requirements of the system under various supply voltages and battery configura tions. The discharge profile is independent of the selected power source. Several read-only discharge profiles for common applications are included in the pulldown menu. The user may also create a new profile for their own applications.
To create a new profile:
1. Select the profile that most closely matches the target application or choose the "Custom Profile".
2. Click Manage.
3. Click Duplicate.
4. Click Edit.
Profiles may be edited with the easy-to-use GUI (shown in Figure 7).
Figure 6. Battery Life Estimator Utility
Rev. 0.2 9
C8051F96x/Si102x
Figure 7. Battery Life Estimator Discharge Profile Editor
The Discharge Profile Editor allows the user to modify the profile name and description. The four text entry boxes on the left hand side of the form allow the user to specify the a mount of time the system spends in each power mode. On the right hand side, the user may specify the supply current of the system in each power mode.
Since supply current is typically dependent on supply voltage, the discharge profile ed itor provides two columns for supply current. The V2 and V1 voltages at the top of the two column s specify the voltages at which the current measurements were taken. The Battery Life Estimator creates a linear approximation based on the input data and is able to feed the simulation engine with an approximate supply current demand for every input voltage.
The minimum system operating voltage input field allows the system operating time to stop increasing when the simulated battery voltage drops below a certain threshold. This is primarily to allow operating time estimates for systems that cannot operate down to 1. 8 V, which is the voltage of two fully drained single-cell batteries plac ed in series.
10 Rev. 0.2
C8051F96x/Si102x
The wakeup frequency box calculates the period of a single iteration through the four power modes and displays the system wake up frequency. This is typically the "sample rate" in low power analog sensors.
Once the battery type and discharge profile is specified, the user can click the "Simulate" button to start a new simulation. The simulation engine calculates the estimated battery life when using one single-cell battery, two single-cell batteries in series, and two single-cell batteries in parallel. Figure 8 shows the simulation output window.
Figure 8. Battery Life Estimator Utility Simulation Results Form
The primary outputs of the Battery Life Estimator are an e stimate d system ope ratin g time and a sim ulated gr aph of battery voltage vs. time. Additional outputs include estimated battery capacity, average current, self-discharge current, and the ability to export graph data to a comma delimited text file for plotting in an external graphing application.
Rev. 0.2 11
C8051F96x/Si102x
5. UDP C8051F960/Si1020 MCU Card with EMIF Overview
The C8051F96x MCU card enables application development on the C8051F960 MCU. The card connects to the MCU Card expansion slot on the UDP motherboard and provides complete access to the MCU resources. Each expansion board has a unique ID that can be read out of an EEPROM or MCU on the board, which enables software tools to recognize the connected hardw are and automatically select the appropriate firmware image. The target MCU card can also be detached from the UDP and used alone as a development or demonstration tool.
Figure 9 shows the C8051F96x MCU card.
Figure 10 highlights some of the features of the UDP C8051F960/Si1020 MCU Card with EMIF.
12 Rev. 0.2
Figure 9. C8051F96x UDP MCU Card
C8051F96x/Si102x
Debug Connector
9 V Wall Adapter
Connector
VIO Switch
VIORF Switch
VBAT Switch
UPPI Pico Board
Connector
Potentiometer
Pulse Counter
Terminals
Reset Push-Button
Push-Button Switches and LEDs
Mini-B USB
Connector
5.1. UPPI Pico Board Connector (J5, J6, J7, J8)
The UPPI Pico Board connector accommodates a variety of C8051F96x and Si102x/3x UPPI Pico Boards. The C8051F960 MCU and Si1020 Wireless MCU UPPI Pico Boards share a common form factor. This enables the MCU card to support a wide variety of wired and wireless applications.
The supported UPPI Pico Boards include:
The Si1020/30 UPPI Pico Boards include an EZRadioPRO include an RF transceiver; instead, these boards support most Silicon Labs 40-pin radio test cards when used with the Unified Development Platform Motherboard.
Figure 10. UDP C8051F960/Si1020 MCU Card with EMIF
UPPI-F960 UPPI-Si1020GMxxxTR
®
transceiver. The C8051F960 UPPI Pico Boards do not
Rev. 0.2 13
Loading...
+ 30 hidden pages