background image

S i 1 0 x x - D K

Rev. 0.1

9

 

6.  Example Source Code

Example source code and register definition files are provided in the “

SiLabs\MCU\Examples\Si100x\

” or the

SiLabs\MCU\Examples\Si101x\

” default directory during IDE installation. These files may be used as a template

for code development. Example applications include a blinking LED example which configures the LED on the
motherboard to blink at a fixed rate.

6.1.  Register Definition Files

Register definition files 

Si1000_defs.h and Si1010_defs.h 

define all SFR registers and bit-addressable control/

status bits. A macro definition header file 

compiler_defs.h

 is also included, and is required to be able to use the

Si1000 and Si1010_defs.h

 header file with various tool chains. These files are installed into the

SiLabs\MCU\Examples\Si100x\Header_Files\

” and “

SiLabs\MCU\Examples\Si101x\Header_Files\

” directories

during IDE installation by default. The register and bit names are identical to those used in the Si100x and Si101x
data sheets. These 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. 

6.2.  Blinking LED Example

The example source files 

Si100x_Blinky.asm

 and 

Si101x_Blinky.c

 installed in the default directories

SiLabs\MCU\Examples\Si100x\Blinky

” and “

SiLabs\MCU\Examples\Si101x\Blinky

” show examples of several

basic MCU functions. These include disabling the watchdog timer (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 LED on the Si1000 Motherboard about five times a
second using the interrupt handler with an on-chip timer.

6.3.  RF Examples

The Si100x and Si101x MCUs support RF communication. Examples of RF communication using the Si100x and
Si101x products are described in Application Note AN474. The source code for the RF examples is installed into
the “

SiLabs\MCU\Examples\Si100x\EZRadioPRO\

” and “

SiLabs\MCU\Examples\Si101x\EZRadioPRO\

” during

IDE installation. The most basic example is the TxTone example. When downloaded and run on the MCU, a
915 MHz tone will be generated from the EZRadioPRO peripheral output. 

Summary of Contents for Si1000

Page 1: ...rately for low band or low transmit power applications 2 Kit Contents The Si1000 and Si1010 Development Kit contains the following items Si1000 motherboard which supports all Si10xx series daughtercards Si1000 or Si1010 daughtercard Si1000 or Si1010 MCU pre soldered on the daughtercard Si10xx Development Kit Quick Start Guide Silicon Laboratories IDE and Product Information CD ROM CD content inclu...

Page 2: ...iver files to the desired location The default directory is C SiLabs MCU CP210x 2 The final window will give an option to install the driver on the target system Select the Launch the CP210x VCP Driver Installer option if you are ready to install the driver 3 If selected the driver installer will now launch providing an option to specify the driver installation location After pressing the Install ...

Page 3: ...version of the C51 compiler is the same as the full version with the following limitations Maximum 4 kB code generation and there is no floating point library included When installed from the CD ROM the C51 compiler is initially limited to a code size of 2 kB and programs start at code address 0x0800 Refer to AN104 Integrating Keil Tools into the Silicon Labs IDE for instructions to change the lim...

Page 4: ...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 3 Figure 3 Battery Life Estimator Utility From Figure 3 the two inputs to the Battery Life Estimator are battery type and discharge prof...

Page 5: ...he easy to use GUI shown in Figure 4 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 On the right hand side the user may specify the supply current of the system...

Page 6: ... batteries placed in series 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 b...

Page 7: ...e Setup using a USB Debug Adapter The motherboard 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 motherboard with the 10 pin ribbon cable 2 Connect one end of the USB cable to the USB connector on the USB Debug Adapter 3 Verify that a shorting block is installed on J17 and that S...

Page 8: ...he 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 5 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 define...

Page 9: ...tware 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 6 2 Blinking LED Example The example source files Si100x_Blinky asm and Si101x_Blinky c installed in the default directories SiLabs MCU Examples Si100x Blinky and SiLabs MCU Examples Si101x Blinky show examples o...

Page 10: ...ogrammed with pass through firmware to make them appear as fixed function stand alone EZRadioPRO devices such as the Si4430 1 2 3 An SDBC DK3 development kit is required to connect to the Wireless Development Suite in this mode To program the Si10xx daughtercards for this mode download the following hex file to the daughtercard For Si100x daughtercards C Silabs MCU Examples Si100x EZRadioPRO SPI_P...

Page 11: ...Si10xx DK Rev 0 1 11 Figure 7 Port I O Usage Matrix ...

Page 12: ...or R14 and capacitor C19 J8 Connects P0 2 and P0 3 to switches and P1 5 and P1 6 to LEDs J9 DEBUG connector for Debug Adapter interface J10 J11 Selects the power supply source Wall Power AAA Battery or Coin Cell J12 Connects Port I O to UART0 interface J13 Connects external VREF capacitor to the P0 0 VREF J14 Connects the PCB ground plane to P0 1 AGND J15 Connects negative potentiometer R14 termin...

Page 13: ... board See Figure 9 BT1 Battery Holder for 1 5 V AAA Use for one cell or two cell mode BT2 Battery Holder for 1 5 V AAA Use for two cell mode only BT3 Battery Holder for 3 V Coin Cell CR2032 BT4 Battery Holder for 1 5 V Button Cell A76 or 357 Figure 9 Bottom of Si1000 Motherboard ...

Page 14: ...locks Factory Defaults The Si1000 motherboard comes from the factory with pre installed shorting blocks on many headers Figure 10 shows the positions of the factory default shorting blocks Figure 10 Si1000 Motherboard Shorting Blocks Factory Defaults ...

Page 15: ...ell mode the VBAT supply net is powered directly from the 1 VD This power supply net takes 3 VD and passes it through a 1 65 V LDO The LDO s output voltage is variable and can be set by changing the value of resistor R32 10 2 2 AAA Battery When the J10 J11 three way header is set to AAA_BAT the Si10xx Target Board may be powered from a single AAA battery inserted in BT1 or from the series combinat...

Page 16: ...e with the internal oscillators an external crystal may be used Refer to the Si100x or Si101x data sheet for more information on configuring the system clock source 10 3 2 External Oscillator Options The daughtercards are designed to facilitate the installation of an external crystal Y1 Install a 10 M resistor at R9 and install capacitors at C20 and C21 using values appropriate for the crystal you...

Page 17: ... connector P3 One power LED is also added to each of the two primary supply nets powering the MCU VDD DC and VBAT The LEDs connected to the supply nets may be disabled by removing the shorting blocks from J1 and J5 Two LEDs are connected to GPIO pins P1 5 and P1 6 for use by application software See Table 1 for the port pins and headers corresponding to each LED A potentiometer R15 is also provide...

Page 18: ...1 3 VD 1 GND 1 nc 2 nc 2 nc 2 nc 3 nc 3 nc 3 nc 4 nc 4 nc 4 nc 5 nc 5 nc 5 nc 6 nc 6 nc 6 nc 7 nc 7 nc 7 nc 8 nc 8 nc 8 nc 9 GPIO_2 9 GPIO_1 9 GPIO_0 10 nc 10 P0 1 AGND 10 P0 6 CNVSTR 11 P0 5 RX 11 P0 4 TX 11 P0 3H 12 P0 2H 12 P0 7 IREF0 12 P0 0 VREF 13 P2 1 13 nc 13 nc 14 CLK 14 NSS PWR 14 MOSI 15 MISO SCL 15 SCK SDA 15 nc 16 nc 16 nc 16 nc 17 nc 17 nc 17 nc 18 nc 18 nc 18 nc 19 nc 19 nc 19 nc 20...

Page 19: ...n header J12 The shorting block positions for connecting each of these signals to the CP2103 are listed in Table 4 To use this interface the USB to UART device drivers should be installed as described in Section 3 2 CP210x USB to UART VCP Driver Installation on page 2 10 9 Analog I O H1 Several of the Si10xx target device s port pins are connected to the H1 terminal block Refer to Table 5 for the ...

Page 20: ...apacitors are connected to P0 0 VREF when a shorting block is installed on J13 Using the Precision Voltage Reference is optional since Si10xx devices have an on chip High Speed Voltage Reference The shorting block J14 allows P0 1 AGND to be connected to ground This provides a noise free ground reference to the analog to digital Converter The use of this dedicated analog ground is optional 10 12 C2...

Page 21: ...S i 10xx DK Rev 0 1 21 11 Schematics Figure 11 Si1000 Motherboard Schematic 1 of 3 ...

Page 22: ...Si 10xx DK 22 Rev 0 1 Figure 12 Si1000 Motherboard Schematic 2 of 3 ...

Page 23: ...S i 10xx DK Rev 0 1 23 Figure 13 Si1000 Motherboard Schematic 3 of 3 ...

Page 24: ...CK 39 P2 7 C2D 40 P2 6 41 XTAL4 42 EP_RF P 2 EP_UC P 1 GND GND GND 1 2 3 4 5 6 7 8 9 10 J1 GND GND GND R18 NIRQ P0 0 P0 1 P0 2 P0 3 P0 4 P0 5 P0 6 P0 7 P1 7 P1 6 P1 5 P2 0 P2 1 P2 2 P2 3 P2 4 P2 5 P2 6 P2 7 C2D NRST C2CK L3 L4 C24 C25 GND GND R19 R20 C26 C27 GND GND Q1 GND GND2 GND Q5 VDD VDD2 C4 GND GND GND C1 C2 C3 GND GND GND C0 CM CM2 CM3 CR2 LM2 LM L0 LR LC RDC CC1 GND ANT C17 C16 C11 C21 C28...

Page 25: ...Si10xx DK Rev 0 1 25 NOTES ...

Page 26: ...ricate any integrated circuits The products are not designed or authorized to be used within any Life Support System without the specific written consent of Silicon Laboratories A Life Support System is any product or system intended to support or sustain life and or health which if it fails can be reasonably expected to result in significant personal injury or death Silicon Laboratories products ...

Page 27: ......

Reviews: