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 11: ...Si10xx DK Rev 0 1 11 Figure 7 Port I O Usage Matrix ...
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 25: ...Si10xx DK Rev 0 1 25 NOTES ...
Page 27: ......