Summary of Contents for Silicon Laboratories C8051F912
Page 1
1. The target board included in this kit is provided with a pre-soldered C8051F912 MCU (QSOP24 package). 2. Code developed on the C8051F912 can be easily ported to the other members of this MCU family. 3. Refer to the C8051F91x-C8051F90x data sheet for the differences between the members of this MCU family.
The Silicon Laboratories IDE integrates a source-code editor, a source-level debugger, and an in-system Flash programmer. See Section 5. "Using the Keil Software 8051 Tools with the Silicon Laboratories IDE‚" on page 9 for detailed information on how to use the IDE. The Keil Evaluation Toolset includes a compiler, linker, and assembler and easily integrates into the IDE.
Page 3
C8051F912-DK 3.3.2. 3rd Party Toolsets The Silicon Laboratories IDE has native support for many 8051 compilers. The full list of natively supported tools is as follows: Keil Raisonance Tasking Hi-Tech SDCC The demo applications for the C8051F912 target board are written to work with the Keil and SDCC toolsets.
Page 4
C8051F912-DK 3.5. Configuration Wizard 2 The Configuration Wizard 2 is a code generation tool for all of the Silicon Laboratories devices. Code is generated through the use of dialog boxes for each of the device's peripherals. Figure 2. Configuration Wizard 2 Utility The Configuration Wizard utility helps accelerate development by automatically generating initialization source code to configure and enable the on-chip resources needed by most design projects.
Page 5
C8051F912-DK 3.6. 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.
Page 6
C8051F912-DK Figure 4. 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 amount of time the system spends in each power mode.
Page 7
C8051F912-DK 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.
4. 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 6. 1. Connect the USB Debug Adapter to the DEBUG connector on the target board with the 10-pin ribbon cable.
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).
Page 10
C8051F912-DK 5.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.
(WDT), configuring the Port I/O crossbar, configuring a timer for an interrupt routine, initializing the system clock, and configuring a GPIO port pin. When compiled/assembled and linked this program flashes the green LED on the C8051F912 Target Board about five times a second using the interrupt handler with a C8051F912 timer.
C8051F912-DK 7. Target Board The C8051F912 Development Kit includes a target board with a C8051F912 device pre-installed for evaluation and preliminary software development. Numerous input/output (I/O) connections are provided to facilitate prototyping using the target board. Refer to Figure 7 for the locations of the various I/O connectors. Figure 9 on page 14 shows the factory default shorting block positions.
Page 13
Battery Holder for 3 V Coin Cell (CR2032). Battery Holder for 1.5 V Button Cell (A76 or 357). Note: BT2 is only used in two-cell mode. (CR2032) (AAA) (AAA) (A76 or 357) Figure 8. Bottom of C8051F912 Target Board Rev. 0.1 Downloaded from Elcodis.com electronic components distributor...
Page 14
C8051F912-DK 7.1. Target Board Shorting Blocks: Factory Defaults The C8051F912 Target Board comes from the factory with pre-installed shorting blocks on many headers. Figure 9 shows the positions of the factory default shorting blocks. P1.6 P0.2 P0.3 P1.5 P1.4 USB POWER...
Page 15
OFF position prior to switching between one-cell and two-cell mode using SW4. The power options are described in the paragraphs below. 7.2.1. Wall Power When the J10/J11 three-way header is set to WALL_PWR, the C8051F912 Target Board may be powered from the following power sources: ...
Page 16
For low-frequency operation, the C8051F912 features a smaRTClock real time clock. A 32.768 kHz Watch crystal (Y2) is included on the target board. If you wish to operate the C8051F912 device at a frequency not available with the internal oscillators, an external crystal may be used. Refer to the C8051F91x-C8051F90x data sheet for more information on configuring the system clock source.
Page 17
Two touch sensitive (contactless) switches are provided on the target board. The operation of these switches require appropriate firmware running on the C8051F912 MCU that can sense the state of the switch. See Section 6.3. "Touch Sensitive Switch Example‚" on page 11 for details about example source code.
Page 18
7.6. Expansion I/O Connector (P1) The 96-pin Expansion I/O connector P1 provides access to all signal pins of the C8051F912 device (except the C2 debug interface signals). In addition, power supply and ground pins are included. A small through-hole prototyping area is also provided.
Page 19
J12[1–2] CTS (P0.7) 7.9. Analog I/O (H1) Several of the C8051F912 target device’s port pins are connected to the H1 terminal block. Refer to Table 5 for the H1 terminal block connections. Table 5. H1 Terminal Block Pin Descriptions Pin # Description P0.6/CNVSTR...
Page 20
7.11. VREF and AGND Connector (J13, J14) The C8051F912 Target Board also features 4.7 µF capacitor in parallel with a 0.1 µF that can be connected to P0.0/VREF when using the Precision Voltage Reference. The capacitors are connected to P0.0/VREF when a shorting block is installed on J13.
4. Where can I find a schematic of the C8051F912 Target Board? A target board schematic can be found in the C8051F912-DK User’s Guide which is available on the Development Tools CD and is installed in the following folder (by default): C:\SiLabs\MCU\Documentation\UsersGuides 5.
Page 22
C8051F912-DK 6. What can I do to reduce active supply current? Below are some suggestions for reducing the active supply current: a. Clear all wake-up sources in the PCU0CF register. This will allow the low power oscillator to be disabled when it is not being used as the system clock.
Page 23
C8051F912-DK 11. When the missing clock detector is enabled, why does the MCU reset if I switch from the default system clock (Low Power Oscillator divided by 8) to smaRTClock divided by 1? Background: —The missing clock detector will trigger a reset if the system clock period exceeds 100 µs.
Page 28
Silicon Laboratories products are not designed, intended, or authorized for use in applications intended to support or sustain life, or for any other application in which the failure of the Silicon Laboratories product could create a situation where per- sonal injury or death may occur.
Need help?
Do you have a question about the C8051F912 and is the answer not in the manual?
Questions and answers